Documentation ¶
Index ¶
- Variables
- type ConfigRequest
- func (m *ConfigRequest) BindPort(name string, value uint16) error
- func (*ConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (m *ConfigRequest) GetPort(name string) (uint16, error)
- func (m *ConfigRequest) GetSecret(name string) *wrappers.StringValue
- func (x *ConfigRequest) GetV1() *ConfigRequest_V1
- func (m *ConfigRequest) ListPorts() []a2conf.PortInfo
- func (m *ConfigRequest) ListSecrets() []a2conf.SecretInfo
- func (c *ConfigRequest) PrepareSystemConfig(creds *ac.TLSCredentials) (ac.PreparedSystemConfig, error)
- func (*ConfigRequest) ProtoMessage()
- func (x *ConfigRequest) ProtoReflect() protoreflect.Message
- func (x *ConfigRequest) Reset()
- func (m *ConfigRequest) ServiceName() string
- func (c *ConfigRequest) SetGlobalConfig(g *ac.GlobalConfig)
- func (m *ConfigRequest) SetSecret(name string, value *wrappers.StringValue) error
- func (x *ConfigRequest) String() string
- func (c *ConfigRequest) Validate() error
- type ConfigRequest_V1
- func (*ConfigRequest_V1) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigRequest_V1) GetSys() *ConfigRequest_V1_System
- func (*ConfigRequest_V1) ProtoMessage()
- func (x *ConfigRequest_V1) ProtoReflect() protoreflect.Message
- func (x *ConfigRequest_V1) Reset()
- func (x *ConfigRequest_V1) String() string
- type ConfigRequest_V1_System
- func (*ConfigRequest_V1_System) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigRequest_V1_System) GetAutomateHaChefManagePg() *wrapperspb.BoolValue
- func (x *ConfigRequest_V1_System) GetLog() *shared.Log
- func (x *ConfigRequest_V1_System) GetMaxConnections() *wrapperspb.Int32Value
- func (x *ConfigRequest_V1_System) GetMlsa() *shared.Mlsa
- func (x *ConfigRequest_V1_System) GetResolvers() *ConfigRequest_V1_System_Resolvers
- func (x *ConfigRequest_V1_System) GetService() *ConfigRequest_V1_System_Service
- func (x *ConfigRequest_V1_System) GetTimeouts() *ConfigRequest_V1_System_Timeouts
- func (x *ConfigRequest_V1_System) GetTls() *shared.TLSCredentials
- func (*ConfigRequest_V1_System) ProtoMessage()
- func (x *ConfigRequest_V1_System) ProtoReflect() protoreflect.Message
- func (x *ConfigRequest_V1_System) Reset()
- func (x *ConfigRequest_V1_System) String() string
- type ConfigRequest_V1_System_Endpoint
- func (*ConfigRequest_V1_System_Endpoint) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigRequest_V1_System_Endpoint) GetAddress() *wrapperspb.StringValue
- func (x *ConfigRequest_V1_System_Endpoint) GetIsDomain() *wrapperspb.BoolValue
- func (x *ConfigRequest_V1_System_Endpoint) GetPort() *wrapperspb.StringValue
- func (*ConfigRequest_V1_System_Endpoint) ProtoMessage()
- func (x *ConfigRequest_V1_System_Endpoint) ProtoReflect() protoreflect.Message
- func (x *ConfigRequest_V1_System_Endpoint) Reset()
- func (x *ConfigRequest_V1_System_Endpoint) String() string
- type ConfigRequest_V1_System_Resolvers
- func (*ConfigRequest_V1_System_Resolvers) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigRequest_V1_System_Resolvers) GetEnableSystemNameservers() *wrapperspb.BoolValue
- func (x *ConfigRequest_V1_System_Resolvers) GetNameservers() []*wrapperspb.StringValue
- func (*ConfigRequest_V1_System_Resolvers) ProtoMessage()
- func (x *ConfigRequest_V1_System_Resolvers) ProtoReflect() protoreflect.Message
- func (x *ConfigRequest_V1_System_Resolvers) Reset()
- func (x *ConfigRequest_V1_System_Resolvers) String() string
- type ConfigRequest_V1_System_Service
- func (*ConfigRequest_V1_System_Service) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigRequest_V1_System_Service) GetExternalPostgresql() *shared.External_Postgresql
- func (x *ConfigRequest_V1_System_Service) GetHost() *wrapperspb.StringValuedeprecated
- func (x *ConfigRequest_V1_System_Service) GetParsedNodes() []*ConfigRequest_V1_System_Endpoint
- func (x *ConfigRequest_V1_System_Service) GetPort() *wrapperspb.Int32Value
- func (*ConfigRequest_V1_System_Service) ProtoMessage()
- func (x *ConfigRequest_V1_System_Service) ProtoReflect() protoreflect.Message
- func (x *ConfigRequest_V1_System_Service) Reset()
- func (x *ConfigRequest_V1_System_Service) String() string
- type ConfigRequest_V1_System_Timeouts
- func (*ConfigRequest_V1_System_Timeouts) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigRequest_V1_System_Timeouts) GetConnect() *wrapperspb.Int32Value
- func (x *ConfigRequest_V1_System_Timeouts) GetIdle() *wrapperspb.Int32Value
- func (*ConfigRequest_V1_System_Timeouts) ProtoMessage()
- func (x *ConfigRequest_V1_System_Timeouts) ProtoReflect() protoreflect.Message
- func (x *ConfigRequest_V1_System_Timeouts) Reset()
- func (x *ConfigRequest_V1_System_Timeouts) String() string
Constants ¶
This section is empty.
Variables ¶
var File_config_pg_gateway_config_request_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ConfigRequest ¶
type ConfigRequest struct { V1 *ConfigRequest_V1 `protobuf:"bytes,1,opt,name=v1,proto3" json:"v1,omitempty" toml:"v1,omitempty" mapstructure:"v1,omitempty"` // contains filtered or unexported fields }
func DefaultConfigRequest ¶
func DefaultConfigRequest() *ConfigRequest
DefaultConfigRequest returns a new instance of ConfigRequest with default values.
func NewConfigRequest ¶
func NewConfigRequest() *ConfigRequest
NewConfigRequest returns a new instance of ConfigRequest with zero values.
func (*ConfigRequest) BindPort ¶
func (m *ConfigRequest) BindPort(name string, value uint16) error
BindPort sets the port tagged with the given name
func (*ConfigRequest) Descriptor
deprecated
func (*ConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConfigRequest.ProtoReflect.Descriptor instead.
func (*ConfigRequest) GetPort ¶
func (m *ConfigRequest) GetPort(name string) (uint16, error)
GetPort gets the port tagged with the given name. If the value is not set, it returns 0.
func (*ConfigRequest) GetSecret ¶
func (m *ConfigRequest) GetSecret(name string) *wrappers.StringValue
GetSecret gets a secret by name. Returns nil if it is not set
func (*ConfigRequest) GetV1 ¶
func (x *ConfigRequest) GetV1() *ConfigRequest_V1
func (*ConfigRequest) ListPorts ¶
func (m *ConfigRequest) ListPorts() []a2conf.PortInfo
ListPorts lists all the ports exposed by the config
func (*ConfigRequest) ListSecrets ¶
func (m *ConfigRequest) ListSecrets() []a2conf.SecretInfo
ListSecrets lists all the secrets exposed by the config
func (*ConfigRequest) PrepareSystemConfig ¶
func (c *ConfigRequest) PrepareSystemConfig(creds *ac.TLSCredentials) (ac.PreparedSystemConfig, error)
PrepareSystemConfig returns a system configuration that can be used to start the service.
func (*ConfigRequest) ProtoMessage ¶
func (*ConfigRequest) ProtoMessage()
func (*ConfigRequest) ProtoReflect ¶
func (x *ConfigRequest) ProtoReflect() protoreflect.Message
func (*ConfigRequest) Reset ¶
func (x *ConfigRequest) Reset()
func (*ConfigRequest) ServiceName ¶
func (m *ConfigRequest) ServiceName() string
ServiceName returns the name of the service this config belongs to
func (*ConfigRequest) SetGlobalConfig ¶
func (c *ConfigRequest) SetGlobalConfig(g *ac.GlobalConfig)
SetGlobalConfig is a callback that allows us to populate the configuration of an individual service with global automate config.
func (*ConfigRequest) SetSecret ¶
func (m *ConfigRequest) SetSecret(name string, value *wrappers.StringValue) error
SetSecret sets a secret by name. Returns ErrSecretNotFound if the secret does not exist
func (*ConfigRequest) String ¶
func (x *ConfigRequest) String() string
func (*ConfigRequest) Validate ¶
func (c *ConfigRequest) Validate() error
Validate validates that the config is sufficient to start the Service. If validation succeeds it will return nil, if it fails it will return a new instance of config.InvalidConfigError that has the missing keys and invalid fields populated.
type ConfigRequest_V1 ¶
type ConfigRequest_V1 struct { Sys *ConfigRequest_V1_System `protobuf:"bytes,1,opt,name=sys,proto3" json:"sys,omitempty" toml:"sys,omitempty" mapstructure:"sys,omitempty"` // contains filtered or unexported fields }
func (*ConfigRequest_V1) Descriptor
deprecated
func (*ConfigRequest_V1) Descriptor() ([]byte, []int)
Deprecated: Use ConfigRequest_V1.ProtoReflect.Descriptor instead.
func (*ConfigRequest_V1) GetSys ¶
func (x *ConfigRequest_V1) GetSys() *ConfigRequest_V1_System
func (*ConfigRequest_V1) ProtoMessage ¶
func (*ConfigRequest_V1) ProtoMessage()
func (*ConfigRequest_V1) ProtoReflect ¶
func (x *ConfigRequest_V1) ProtoReflect() protoreflect.Message
func (*ConfigRequest_V1) Reset ¶
func (x *ConfigRequest_V1) Reset()
func (*ConfigRequest_V1) String ¶
func (x *ConfigRequest_V1) String() string
type ConfigRequest_V1_System ¶
type ConfigRequest_V1_System struct { Mlsa *shared.Mlsa `protobuf:"bytes,1,opt,name=mlsa,proto3" json:"mlsa,omitempty" toml:"mlsa,omitempty" mapstructure:"mlsa,omitempty"` Service *ConfigRequest_V1_System_Service `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty" toml:"service,omitempty" mapstructure:"service,omitempty"` Tls *shared.TLSCredentials `protobuf:"bytes,3,opt,name=tls,proto3" json:"tls,omitempty" toml:"tls,omitempty" mapstructure:"tls,omitempty"` Log *shared.Log `protobuf:"bytes,4,opt,name=log,proto3" json:"log,omitempty" toml:"log,omitempty" mapstructure:"log,omitempty"` Timeouts *ConfigRequest_V1_System_Timeouts `` /* 129-byte string literal not displayed */ Resolvers *ConfigRequest_V1_System_Resolvers `` /* 133-byte string literal not displayed */ MaxConnections *wrapperspb.Int32Value `` /* 177-byte string literal not displayed */ AutomateHaChefManagePg *wrapperspb.BoolValue `` /* 229-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ConfigRequest_V1_System) Descriptor
deprecated
func (*ConfigRequest_V1_System) Descriptor() ([]byte, []int)
Deprecated: Use ConfigRequest_V1_System.ProtoReflect.Descriptor instead.
func (*ConfigRequest_V1_System) GetAutomateHaChefManagePg ¶
func (x *ConfigRequest_V1_System) GetAutomateHaChefManagePg() *wrapperspb.BoolValue
func (*ConfigRequest_V1_System) GetLog ¶
func (x *ConfigRequest_V1_System) GetLog() *shared.Log
func (*ConfigRequest_V1_System) GetMaxConnections ¶
func (x *ConfigRequest_V1_System) GetMaxConnections() *wrapperspb.Int32Value
func (*ConfigRequest_V1_System) GetMlsa ¶
func (x *ConfigRequest_V1_System) GetMlsa() *shared.Mlsa
func (*ConfigRequest_V1_System) GetResolvers ¶
func (x *ConfigRequest_V1_System) GetResolvers() *ConfigRequest_V1_System_Resolvers
func (*ConfigRequest_V1_System) GetService ¶
func (x *ConfigRequest_V1_System) GetService() *ConfigRequest_V1_System_Service
func (*ConfigRequest_V1_System) GetTimeouts ¶
func (x *ConfigRequest_V1_System) GetTimeouts() *ConfigRequest_V1_System_Timeouts
func (*ConfigRequest_V1_System) GetTls ¶
func (x *ConfigRequest_V1_System) GetTls() *shared.TLSCredentials
func (*ConfigRequest_V1_System) ProtoMessage ¶
func (*ConfigRequest_V1_System) ProtoMessage()
func (*ConfigRequest_V1_System) ProtoReflect ¶
func (x *ConfigRequest_V1_System) ProtoReflect() protoreflect.Message
func (*ConfigRequest_V1_System) Reset ¶
func (x *ConfigRequest_V1_System) Reset()
func (*ConfigRequest_V1_System) String ¶
func (x *ConfigRequest_V1_System) String() string
type ConfigRequest_V1_System_Endpoint ¶
type ConfigRequest_V1_System_Endpoint struct { IsDomain *wrapperspb.BoolValue `` /* 147-byte string literal not displayed */ Address *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" toml:"address,omitempty" mapstructure:"address,omitempty"` Port *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty" toml:"port,omitempty" mapstructure:"port,omitempty"` // contains filtered or unexported fields }
func (*ConfigRequest_V1_System_Endpoint) Descriptor
deprecated
func (*ConfigRequest_V1_System_Endpoint) Descriptor() ([]byte, []int)
Deprecated: Use ConfigRequest_V1_System_Endpoint.ProtoReflect.Descriptor instead.
func (*ConfigRequest_V1_System_Endpoint) GetAddress ¶
func (x *ConfigRequest_V1_System_Endpoint) GetAddress() *wrapperspb.StringValue
func (*ConfigRequest_V1_System_Endpoint) GetIsDomain ¶
func (x *ConfigRequest_V1_System_Endpoint) GetIsDomain() *wrapperspb.BoolValue
func (*ConfigRequest_V1_System_Endpoint) GetPort ¶
func (x *ConfigRequest_V1_System_Endpoint) GetPort() *wrapperspb.StringValue
func (*ConfigRequest_V1_System_Endpoint) ProtoMessage ¶
func (*ConfigRequest_V1_System_Endpoint) ProtoMessage()
func (*ConfigRequest_V1_System_Endpoint) ProtoReflect ¶
func (x *ConfigRequest_V1_System_Endpoint) ProtoReflect() protoreflect.Message
func (*ConfigRequest_V1_System_Endpoint) Reset ¶
func (x *ConfigRequest_V1_System_Endpoint) Reset()
func (*ConfigRequest_V1_System_Endpoint) String ¶
func (x *ConfigRequest_V1_System_Endpoint) String() string
type ConfigRequest_V1_System_Resolvers ¶
type ConfigRequest_V1_System_Resolvers struct { Nameservers []*wrapperspb.StringValue `` /* 141-byte string literal not displayed */ EnableSystemNameservers *wrapperspb.BoolValue `` /* 226-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ConfigRequest_V1_System_Resolvers) Descriptor
deprecated
func (*ConfigRequest_V1_System_Resolvers) Descriptor() ([]byte, []int)
Deprecated: Use ConfigRequest_V1_System_Resolvers.ProtoReflect.Descriptor instead.
func (*ConfigRequest_V1_System_Resolvers) GetEnableSystemNameservers ¶
func (x *ConfigRequest_V1_System_Resolvers) GetEnableSystemNameservers() *wrapperspb.BoolValue
func (*ConfigRequest_V1_System_Resolvers) GetNameservers ¶
func (x *ConfigRequest_V1_System_Resolvers) GetNameservers() []*wrapperspb.StringValue
func (*ConfigRequest_V1_System_Resolvers) ProtoMessage ¶
func (*ConfigRequest_V1_System_Resolvers) ProtoMessage()
func (*ConfigRequest_V1_System_Resolvers) ProtoReflect ¶
func (x *ConfigRequest_V1_System_Resolvers) ProtoReflect() protoreflect.Message
func (*ConfigRequest_V1_System_Resolvers) Reset ¶
func (x *ConfigRequest_V1_System_Resolvers) Reset()
func (*ConfigRequest_V1_System_Resolvers) String ¶
func (x *ConfigRequest_V1_System_Resolvers) String() string
type ConfigRequest_V1_System_Service ¶
type ConfigRequest_V1_System_Service struct { // Deprecated: Do not use. Host *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty" toml:"host,omitempty" mapstructure:"host,omitempty"` // The listen host is no longer setable(localhost only) Port *wrapperspb.Int32Value `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty" toml:"port,omitempty" mapstructure:"port,omitempty"` ExternalPostgresql *shared.External_Postgresql `` /* 197-byte string literal not displayed */ ParsedNodes []*ConfigRequest_V1_System_Endpoint `` /* 162-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ConfigRequest_V1_System_Service) Descriptor
deprecated
func (*ConfigRequest_V1_System_Service) Descriptor() ([]byte, []int)
Deprecated: Use ConfigRequest_V1_System_Service.ProtoReflect.Descriptor instead.
func (*ConfigRequest_V1_System_Service) GetExternalPostgresql ¶
func (x *ConfigRequest_V1_System_Service) GetExternalPostgresql() *shared.External_Postgresql
func (*ConfigRequest_V1_System_Service) GetHost
deprecated
func (x *ConfigRequest_V1_System_Service) GetHost() *wrapperspb.StringValue
Deprecated: Do not use.
func (*ConfigRequest_V1_System_Service) GetParsedNodes ¶
func (x *ConfigRequest_V1_System_Service) GetParsedNodes() []*ConfigRequest_V1_System_Endpoint
func (*ConfigRequest_V1_System_Service) GetPort ¶
func (x *ConfigRequest_V1_System_Service) GetPort() *wrapperspb.Int32Value
func (*ConfigRequest_V1_System_Service) ProtoMessage ¶
func (*ConfigRequest_V1_System_Service) ProtoMessage()
func (*ConfigRequest_V1_System_Service) ProtoReflect ¶
func (x *ConfigRequest_V1_System_Service) ProtoReflect() protoreflect.Message
func (*ConfigRequest_V1_System_Service) Reset ¶
func (x *ConfigRequest_V1_System_Service) Reset()
func (*ConfigRequest_V1_System_Service) String ¶
func (x *ConfigRequest_V1_System_Service) String() string
type ConfigRequest_V1_System_Timeouts ¶
type ConfigRequest_V1_System_Timeouts struct { Connect *wrapperspb.Int32Value `protobuf:"bytes,1,opt,name=connect,proto3" json:"connect,omitempty" toml:"connect,omitempty" mapstructure:"connect,omitempty"` Idle *wrapperspb.Int32Value `protobuf:"bytes,2,opt,name=idle,proto3" json:"idle,omitempty" toml:"idle,omitempty" mapstructure:"idle,omitempty"` // contains filtered or unexported fields }
func (*ConfigRequest_V1_System_Timeouts) Descriptor
deprecated
func (*ConfigRequest_V1_System_Timeouts) Descriptor() ([]byte, []int)
Deprecated: Use ConfigRequest_V1_System_Timeouts.ProtoReflect.Descriptor instead.
func (*ConfigRequest_V1_System_Timeouts) GetConnect ¶
func (x *ConfigRequest_V1_System_Timeouts) GetConnect() *wrapperspb.Int32Value
func (*ConfigRequest_V1_System_Timeouts) GetIdle ¶
func (x *ConfigRequest_V1_System_Timeouts) GetIdle() *wrapperspb.Int32Value
func (*ConfigRequest_V1_System_Timeouts) ProtoMessage ¶
func (*ConfigRequest_V1_System_Timeouts) ProtoMessage()
func (*ConfigRequest_V1_System_Timeouts) ProtoReflect ¶
func (x *ConfigRequest_V1_System_Timeouts) ProtoReflect() protoreflect.Message
func (*ConfigRequest_V1_System_Timeouts) Reset ¶
func (x *ConfigRequest_V1_System_Timeouts) Reset()
func (*ConfigRequest_V1_System_Timeouts) String ¶
func (x *ConfigRequest_V1_System_Timeouts) String() string