Documentation ¶
Index ¶
- Variables
- func IfEmptyButOthersAreNot(stringToCheck string, others []string) bool
- 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(certificate *config.TLSCredentials) (config.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 *config.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) GetSvc() *ConfigRequest_V1_Service
- 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_Service
- type ConfigRequest_V1_System
- func (*ConfigRequest_V1_System) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigRequest_V1_System) GetLogger() *ConfigRequest_V1_System_Logger
- func (x *ConfigRequest_V1_System) GetMlsa() *shared.Mlsa
- func (x *ConfigRequest_V1_System) GetOidc() *ConfigRequest_V1_System_Oidc
- func (x *ConfigRequest_V1_System) GetService() *ConfigRequest_V1_System_Service
- func (x *ConfigRequest_V1_System) GetStorage() *ConfigRequest_V1_System_Storage
- 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_Logger
- func (*ConfigRequest_V1_System_Logger) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigRequest_V1_System_Logger) GetFormat() *wrappers.StringValue
- func (x *ConfigRequest_V1_System_Logger) GetLevel() *wrappers.StringValue
- func (*ConfigRequest_V1_System_Logger) ProtoMessage()
- func (x *ConfigRequest_V1_System_Logger) ProtoReflect() protoreflect.Message
- func (x *ConfigRequest_V1_System_Logger) Reset()
- func (x *ConfigRequest_V1_System_Logger) String() string
- type ConfigRequest_V1_System_Oidc
- func (*ConfigRequest_V1_System_Oidc) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigRequest_V1_System_Oidc) GetClientId() *wrappers.StringValue
- func (x *ConfigRequest_V1_System_Oidc) GetClientSecret() *wrappers.StringValue
- func (x *ConfigRequest_V1_System_Oidc) GetRedirectUrl() *wrappers.StringValue
- func (*ConfigRequest_V1_System_Oidc) ProtoMessage()
- func (x *ConfigRequest_V1_System_Oidc) ProtoReflect() protoreflect.Message
- func (x *ConfigRequest_V1_System_Oidc) Reset()
- func (x *ConfigRequest_V1_System_Oidc) String() string
- type ConfigRequest_V1_System_Service
- func (*ConfigRequest_V1_System_Service) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigRequest_V1_System_Service) GetBldrClientId() *wrappers.StringValue
- func (x *ConfigRequest_V1_System_Service) GetBldrClientSecret() *wrappers.StringValue
- func (x *ConfigRequest_V1_System_Service) GetBldrSigninUrl() *wrappers.StringValue
- func (x *ConfigRequest_V1_System_Service) GetExternalFqdn() *wrappers.StringValue
- func (x *ConfigRequest_V1_System_Service) GetGrpcPort() *wrappers.Int32Value
- func (x *ConfigRequest_V1_System_Service) GetHost() *wrappers.StringValuedeprecated
- func (x *ConfigRequest_V1_System_Service) GetPersistent() *wrappers.BoolValue
- func (x *ConfigRequest_V1_System_Service) GetPort() *wrappers.Int32Value
- func (x *ConfigRequest_V1_System_Service) GetSigninUrl() *wrappers.StringValue
- 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_Storage
- func (*ConfigRequest_V1_System_Storage) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigRequest_V1_System_Storage) GetDatabase() *wrappers.StringValue
- func (x *ConfigRequest_V1_System_Storage) GetUser() *wrappers.StringValue
- func (*ConfigRequest_V1_System_Storage) ProtoMessage()
- func (x *ConfigRequest_V1_System_Storage) ProtoReflect() protoreflect.Message
- func (x *ConfigRequest_V1_System_Storage) Reset()
- func (x *ConfigRequest_V1_System_Storage) String() string
Constants ¶
This section is empty.
Variables ¶
var File_config_session_config_request_proto protoreflect.FileDescriptor
Functions ¶
func IfEmptyButOthersAreNot ¶
IfEmptyButOthersAreNot returns false if the stringToCheck is not empty but true if it is not empty but any of the others are not.
Types ¶
type ConfigRequest ¶
type ConfigRequest struct { V1 *ConfigRequest_V1 `protobuf:"bytes,3,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(certificate *config.TLSCredentials) (config.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 *config.GlobalConfig)
SetGlobalConfig imports settings from the global configuration
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"` Svc *ConfigRequest_V1_Service `protobuf:"bytes,2,opt,name=svc,proto3" json:"svc,omitempty" toml:"svc,omitempty" mapstructure:"svc,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) GetSvc ¶
func (x *ConfigRequest_V1) GetSvc() *ConfigRequest_V1_Service
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_Service ¶
type ConfigRequest_V1_Service struct {
// contains filtered or unexported fields
}
func (*ConfigRequest_V1_Service) Descriptor
deprecated
func (*ConfigRequest_V1_Service) Descriptor() ([]byte, []int)
Deprecated: Use ConfigRequest_V1_Service.ProtoReflect.Descriptor instead.
func (*ConfigRequest_V1_Service) ProtoMessage ¶
func (*ConfigRequest_V1_Service) ProtoMessage()
func (*ConfigRequest_V1_Service) ProtoReflect ¶
func (x *ConfigRequest_V1_Service) ProtoReflect() protoreflect.Message
func (*ConfigRequest_V1_Service) Reset ¶
func (x *ConfigRequest_V1_Service) Reset()
func (*ConfigRequest_V1_Service) String ¶
func (x *ConfigRequest_V1_Service) String() string
type ConfigRequest_V1_System ¶
type ConfigRequest_V1_System struct { Mlsa *shared.Mlsa `protobuf:"bytes,4,opt,name=mlsa,proto3" json:"mlsa,omitempty" toml:"mlsa,omitempty" mapstructure:"mlsa,omitempty"` Service *ConfigRequest_V1_System_Service `protobuf:"bytes,5,opt,name=service,proto3" json:"service,omitempty" toml:"service,omitempty" mapstructure:"service,omitempty"` Tls *shared.TLSCredentials `protobuf:"bytes,6,opt,name=tls,proto3" json:"tls,omitempty" toml:"tls,omitempty" mapstructure:"tls,omitempty"` Oidc *ConfigRequest_V1_System_Oidc `protobuf:"bytes,7,opt,name=oidc,proto3" json:"oidc,omitempty" toml:"oidc,omitempty" mapstructure:"oidc,omitempty"` Storage *ConfigRequest_V1_System_Storage `protobuf:"bytes,8,opt,name=storage,proto3" json:"storage,omitempty" toml:"storage,omitempty" mapstructure:"storage,omitempty"` Logger *ConfigRequest_V1_System_Logger `protobuf:"bytes,9,opt,name=logger,proto3" json:"logger,omitempty" toml:"logger,omitempty" mapstructure:"logger,omitempty"` // 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) GetLogger ¶
func (x *ConfigRequest_V1_System) GetLogger() *ConfigRequest_V1_System_Logger
func (*ConfigRequest_V1_System) GetMlsa ¶
func (x *ConfigRequest_V1_System) GetMlsa() *shared.Mlsa
func (*ConfigRequest_V1_System) GetOidc ¶
func (x *ConfigRequest_V1_System) GetOidc() *ConfigRequest_V1_System_Oidc
func (*ConfigRequest_V1_System) GetService ¶
func (x *ConfigRequest_V1_System) GetService() *ConfigRequest_V1_System_Service
func (*ConfigRequest_V1_System) GetStorage ¶
func (x *ConfigRequest_V1_System) GetStorage() *ConfigRequest_V1_System_Storage
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_Logger ¶
type ConfigRequest_V1_System_Logger struct { Format *wrappers.StringValue `protobuf:"bytes,1,opt,name=format,proto3" json:"format,omitempty" toml:"format,omitempty" mapstructure:"format,omitempty"` Level *wrappers.StringValue `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty" toml:"level,omitempty" mapstructure:"level,omitempty"` // contains filtered or unexported fields }
func (*ConfigRequest_V1_System_Logger) Descriptor
deprecated
func (*ConfigRequest_V1_System_Logger) Descriptor() ([]byte, []int)
Deprecated: Use ConfigRequest_V1_System_Logger.ProtoReflect.Descriptor instead.
func (*ConfigRequest_V1_System_Logger) GetFormat ¶
func (x *ConfigRequest_V1_System_Logger) GetFormat() *wrappers.StringValue
func (*ConfigRequest_V1_System_Logger) GetLevel ¶
func (x *ConfigRequest_V1_System_Logger) GetLevel() *wrappers.StringValue
func (*ConfigRequest_V1_System_Logger) ProtoMessage ¶
func (*ConfigRequest_V1_System_Logger) ProtoMessage()
func (*ConfigRequest_V1_System_Logger) ProtoReflect ¶
func (x *ConfigRequest_V1_System_Logger) ProtoReflect() protoreflect.Message
func (*ConfigRequest_V1_System_Logger) Reset ¶
func (x *ConfigRequest_V1_System_Logger) Reset()
func (*ConfigRequest_V1_System_Logger) String ¶
func (x *ConfigRequest_V1_System_Logger) String() string
type ConfigRequest_V1_System_Oidc ¶
type ConfigRequest_V1_System_Oidc struct { ClientId *wrappers.StringValue `` /* 147-byte string literal not displayed */ ClientSecret *wrappers.StringValue `` /* 167-byte string literal not displayed */ RedirectUrl *wrappers.StringValue `` /* 162-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ConfigRequest_V1_System_Oidc) Descriptor
deprecated
func (*ConfigRequest_V1_System_Oidc) Descriptor() ([]byte, []int)
Deprecated: Use ConfigRequest_V1_System_Oidc.ProtoReflect.Descriptor instead.
func (*ConfigRequest_V1_System_Oidc) GetClientId ¶
func (x *ConfigRequest_V1_System_Oidc) GetClientId() *wrappers.StringValue
func (*ConfigRequest_V1_System_Oidc) GetClientSecret ¶
func (x *ConfigRequest_V1_System_Oidc) GetClientSecret() *wrappers.StringValue
func (*ConfigRequest_V1_System_Oidc) GetRedirectUrl ¶
func (x *ConfigRequest_V1_System_Oidc) GetRedirectUrl() *wrappers.StringValue
func (*ConfigRequest_V1_System_Oidc) ProtoMessage ¶
func (*ConfigRequest_V1_System_Oidc) ProtoMessage()
func (*ConfigRequest_V1_System_Oidc) ProtoReflect ¶
func (x *ConfigRequest_V1_System_Oidc) ProtoReflect() protoreflect.Message
func (*ConfigRequest_V1_System_Oidc) Reset ¶
func (x *ConfigRequest_V1_System_Oidc) Reset()
func (*ConfigRequest_V1_System_Oidc) String ¶
func (x *ConfigRequest_V1_System_Oidc) String() string
type ConfigRequest_V1_System_Service ¶
type ConfigRequest_V1_System_Service struct { // Deprecated: Do not use. Host *wrappers.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 *wrappers.Int32Value `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty" toml:"port,omitempty" mapstructure:"port,omitempty"` SigninUrl *wrappers.StringValue `` /* 152-byte string literal not displayed */ ExternalFqdn *wrappers.StringValue `` /* 167-byte string literal not displayed */ BldrSigninUrl *wrappers.StringValue `` /* 176-byte string literal not displayed */ BldrClientId *wrappers.StringValue `` /* 171-byte string literal not displayed */ BldrClientSecret *wrappers.StringValue `` /* 191-byte string literal not displayed */ Persistent *wrappers.BoolValue `` /* 137-byte string literal not displayed */ GrpcPort *wrappers.Int32Value `` /* 147-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) GetBldrClientId ¶
func (x *ConfigRequest_V1_System_Service) GetBldrClientId() *wrappers.StringValue
func (*ConfigRequest_V1_System_Service) GetBldrClientSecret ¶
func (x *ConfigRequest_V1_System_Service) GetBldrClientSecret() *wrappers.StringValue
func (*ConfigRequest_V1_System_Service) GetBldrSigninUrl ¶
func (x *ConfigRequest_V1_System_Service) GetBldrSigninUrl() *wrappers.StringValue
func (*ConfigRequest_V1_System_Service) GetExternalFqdn ¶
func (x *ConfigRequest_V1_System_Service) GetExternalFqdn() *wrappers.StringValue
func (*ConfigRequest_V1_System_Service) GetGrpcPort ¶
func (x *ConfigRequest_V1_System_Service) GetGrpcPort() *wrappers.Int32Value
func (*ConfigRequest_V1_System_Service) GetHost
deprecated
func (x *ConfigRequest_V1_System_Service) GetHost() *wrappers.StringValue
Deprecated: Do not use.
func (*ConfigRequest_V1_System_Service) GetPersistent ¶
func (x *ConfigRequest_V1_System_Service) GetPersistent() *wrappers.BoolValue
func (*ConfigRequest_V1_System_Service) GetPort ¶
func (x *ConfigRequest_V1_System_Service) GetPort() *wrappers.Int32Value
func (*ConfigRequest_V1_System_Service) GetSigninUrl ¶
func (x *ConfigRequest_V1_System_Service) GetSigninUrl() *wrappers.StringValue
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_Storage ¶
type ConfigRequest_V1_System_Storage struct { Database *wrappers.StringValue `` /* 129-byte string literal not displayed */ User *wrappers.StringValue `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty" toml:"user,omitempty" mapstructure:"user,omitempty"` // contains filtered or unexported fields }
func (*ConfigRequest_V1_System_Storage) Descriptor
deprecated
func (*ConfigRequest_V1_System_Storage) Descriptor() ([]byte, []int)
Deprecated: Use ConfigRequest_V1_System_Storage.ProtoReflect.Descriptor instead.
func (*ConfigRequest_V1_System_Storage) GetDatabase ¶
func (x *ConfigRequest_V1_System_Storage) GetDatabase() *wrappers.StringValue
func (*ConfigRequest_V1_System_Storage) GetUser ¶
func (x *ConfigRequest_V1_System_Storage) GetUser() *wrappers.StringValue
func (*ConfigRequest_V1_System_Storage) ProtoMessage ¶
func (*ConfigRequest_V1_System_Storage) ProtoMessage()
func (*ConfigRequest_V1_System_Storage) ProtoReflect ¶
func (x *ConfigRequest_V1_System_Storage) ProtoReflect() protoreflect.Message
func (*ConfigRequest_V1_System_Storage) Reset ¶
func (x *ConfigRequest_V1_System_Storage) Reset()
func (*ConfigRequest_V1_System_Storage) String ¶
func (x *ConfigRequest_V1_System_Storage) String() string