MCPcopy Create free account
hub / github.com/docker/secrets-engine / Build

Method Build

x/api/plugins/v1/api.pb.go:801–837  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

799}
800
801func (b0 Plugin_builder) Build() *Plugin {
802 m0 := &Plugin{}
803 b, x := &b0, m0
804 _, _ = b, x
805 if b.Name != nil {
806 protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 8)
807 x.xxx_hidden_Name = b.Name
808 }
809 if b.Version != nil {
810 protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 8)
811 x.xxx_hidden_Version = b.Version
812 }
813 if b.Disabled != nil {
814 protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 2, 8)
815 x.xxx_hidden_Disabled = *b.Disabled
816 }
817 if b.External != nil {
818 protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 3, 8)
819 x.xxx_hidden_External = *b.External
820 }
821 if b.Configurable != nil {
822 protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 4, 8)
823 x.xxx_hidden_Configurable = *b.Configurable
824 }
825 if b.RunStatus != nil {
826 protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 5, 8)
827 x.xxx_hidden_RunStatus = *b.RunStatus
828 }
829 if b.StatusMessage != nil {
830 protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 6, 8)
831 x.xxx_hidden_StatusMessage = b.StatusMessage
832 }
833 if b.SecretsProvider != nil {
834 x.xxx_hidden_Metadata = &plugin_SecretsProvider{b.SecretsProvider}
835 }
836 return m0
837}
838
839type case_Plugin_Metadata protoreflect.FieldNumber
840

Callers 14

ListPluginsMethod · 0.95
GetVersionMethod · 0.45
EnablePluginMethod · 0.45
DisablePluginMethod · 0.45
VersionMethod · 0.45
ListPluginsMethod · 0.45
EnablePluginMethod · 0.45
DisablePluginMethod · 0.45
registerMethod · 0.45
RegisterPluginMethod · 0.45
Test_setupFunction · 0.45
resolver_test.goFile · 0.45

Calls

no outgoing calls

Tested by 7

ListPluginsMethod · 0.76
GetVersionMethod · 0.36
EnablePluginMethod · 0.36
DisablePluginMethod · 0.36
RegisterPluginMethod · 0.36
Test_setupFunction · 0.36
newGetSecretRequestFunction · 0.36