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_Service
- type ConfigRequest_V1
- func (*ConfigRequest_V1) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigRequest_V1) GetSvc() *ConfigRequest_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_System
- func (*ConfigRequest_V1_System) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigRequest_V1_System) GetGateway() *ConfigRequest_V1_System_Gateway
- func (x *ConfigRequest_V1_System) GetMlsa() *shared.Mlsa
- func (x *ConfigRequest_V1_System) GetService() *ConfigRequest_V1_System_Service
- 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_Gateway
- func (*ConfigRequest_V1_System_Gateway) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigRequest_V1_System_Gateway) GetBackup() *ConfigRequest_V1_System_Gateway_Backup
- func (*ConfigRequest_V1_System_Gateway) ProtoMessage()
- func (x *ConfigRequest_V1_System_Gateway) ProtoReflect() protoreflect.Message
- func (x *ConfigRequest_V1_System_Gateway) Reset()
- func (x *ConfigRequest_V1_System_Gateway) String() string
- type ConfigRequest_V1_System_Gateway_Backup
- func (*ConfigRequest_V1_System_Gateway_Backup) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigRequest_V1_System_Gateway_Backup) GetFilesystem() *ConfigRequest_V1_System_Gateway_Backup_Filesystem
- func (x *ConfigRequest_V1_System_Gateway_Backup) GetGcs() *shared.Backups_GCS
- func (x *ConfigRequest_V1_System_Gateway_Backup) GetS3() *shared.Backups_S3
- func (*ConfigRequest_V1_System_Gateway_Backup) ProtoMessage()
- func (x *ConfigRequest_V1_System_Gateway_Backup) ProtoReflect() protoreflect.Message
- func (x *ConfigRequest_V1_System_Gateway_Backup) Reset()
- func (x *ConfigRequest_V1_System_Gateway_Backup) String() string
- type ConfigRequest_V1_System_Gateway_Backup_Filesystem
- func (*ConfigRequest_V1_System_Gateway_Backup_Filesystem) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigRequest_V1_System_Gateway_Backup_Filesystem) GetPath() *wrappers.StringValue
- func (*ConfigRequest_V1_System_Gateway_Backup_Filesystem) ProtoMessage()
- func (x *ConfigRequest_V1_System_Gateway_Backup_Filesystem) ProtoReflect() protoreflect.Message
- func (x *ConfigRequest_V1_System_Gateway_Backup_Filesystem) Reset()
- func (x *ConfigRequest_V1_System_Gateway_Backup_Filesystem) String() string
- type ConfigRequest_V1_System_Service
- func (*ConfigRequest_V1_System_Service) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigRequest_V1_System_Service) GetHost() *wrappers.StringValuedeprecated
- func (x *ConfigRequest_V1_System_Service) GetPort() *wrappers.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
Constants ¶
This section is empty.
Variables ¶
var File_config_backup_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
func NewConfigRequest ¶
func NewConfigRequest() *ConfigRequest
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)
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 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
type ConfigRequest_Service ¶
type ConfigRequest_Service struct {
// contains filtered or unexported fields
}
func (*ConfigRequest_Service) Descriptor
deprecated
func (*ConfigRequest_Service) Descriptor() ([]byte, []int)
Deprecated: Use ConfigRequest_Service.ProtoReflect.Descriptor instead.
func (*ConfigRequest_Service) ProtoMessage ¶
func (*ConfigRequest_Service) ProtoMessage()
func (*ConfigRequest_Service) ProtoReflect ¶
func (x *ConfigRequest_Service) ProtoReflect() protoreflect.Message
func (*ConfigRequest_Service) Reset ¶
func (x *ConfigRequest_Service) Reset()
func (*ConfigRequest_Service) String ¶
func (x *ConfigRequest_Service) String() string
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_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_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_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"` Tls *shared.TLSCredentials `protobuf:"bytes,2,opt,name=tls,proto3" json:"tls,omitempty" toml:"tls,omitempty" mapstructure:"tls,omitempty"` Service *ConfigRequest_V1_System_Service `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty" toml:"service,omitempty" mapstructure:"service,omitempty"` Gateway *ConfigRequest_V1_System_Gateway `protobuf:"bytes,4,opt,name=gateway,proto3" json:"gateway,omitempty" toml:"gateway,omitempty" mapstructure:"gateway,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) GetGateway ¶
func (x *ConfigRequest_V1_System) GetGateway() *ConfigRequest_V1_System_Gateway
func (*ConfigRequest_V1_System) GetMlsa ¶
func (x *ConfigRequest_V1_System) GetMlsa() *shared.Mlsa
func (*ConfigRequest_V1_System) GetService ¶
func (x *ConfigRequest_V1_System) GetService() *ConfigRequest_V1_System_Service
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_Gateway ¶
type ConfigRequest_V1_System_Gateway struct { Backup *ConfigRequest_V1_System_Gateway_Backup `protobuf:"bytes,1,opt,name=backup,proto3" json:"backup,omitempty" toml:"backup,omitempty" mapstructure:"backup,omitempty"` // contains filtered or unexported fields }
func (*ConfigRequest_V1_System_Gateway) Descriptor
deprecated
func (*ConfigRequest_V1_System_Gateway) Descriptor() ([]byte, []int)
Deprecated: Use ConfigRequest_V1_System_Gateway.ProtoReflect.Descriptor instead.
func (*ConfigRequest_V1_System_Gateway) GetBackup ¶
func (x *ConfigRequest_V1_System_Gateway) GetBackup() *ConfigRequest_V1_System_Gateway_Backup
func (*ConfigRequest_V1_System_Gateway) ProtoMessage ¶
func (*ConfigRequest_V1_System_Gateway) ProtoMessage()
func (*ConfigRequest_V1_System_Gateway) ProtoReflect ¶
func (x *ConfigRequest_V1_System_Gateway) ProtoReflect() protoreflect.Message
func (*ConfigRequest_V1_System_Gateway) Reset ¶
func (x *ConfigRequest_V1_System_Gateway) Reset()
func (*ConfigRequest_V1_System_Gateway) String ¶
func (x *ConfigRequest_V1_System_Gateway) String() string
type ConfigRequest_V1_System_Gateway_Backup ¶
type ConfigRequest_V1_System_Gateway_Backup struct { Filesystem *ConfigRequest_V1_System_Gateway_Backup_Filesystem `` /* 137-byte string literal not displayed */ S3 *shared.Backups_S3 `protobuf:"bytes,2,opt,name=s3,proto3" json:"s3,omitempty" toml:"s3,omitempty" mapstructure:"s3,omitempty"` Gcs *shared.Backups_GCS `protobuf:"bytes,3,opt,name=gcs,proto3" json:"gcs,omitempty" toml:"gcs,omitempty" mapstructure:"gcs,omitempty"` // contains filtered or unexported fields }
func (*ConfigRequest_V1_System_Gateway_Backup) Descriptor
deprecated
func (*ConfigRequest_V1_System_Gateway_Backup) Descriptor() ([]byte, []int)
Deprecated: Use ConfigRequest_V1_System_Gateway_Backup.ProtoReflect.Descriptor instead.
func (*ConfigRequest_V1_System_Gateway_Backup) GetFilesystem ¶
func (x *ConfigRequest_V1_System_Gateway_Backup) GetFilesystem() *ConfigRequest_V1_System_Gateway_Backup_Filesystem
func (*ConfigRequest_V1_System_Gateway_Backup) GetGcs ¶
func (x *ConfigRequest_V1_System_Gateway_Backup) GetGcs() *shared.Backups_GCS
func (*ConfigRequest_V1_System_Gateway_Backup) GetS3 ¶
func (x *ConfigRequest_V1_System_Gateway_Backup) GetS3() *shared.Backups_S3
func (*ConfigRequest_V1_System_Gateway_Backup) ProtoMessage ¶
func (*ConfigRequest_V1_System_Gateway_Backup) ProtoMessage()
func (*ConfigRequest_V1_System_Gateway_Backup) ProtoReflect ¶
func (x *ConfigRequest_V1_System_Gateway_Backup) ProtoReflect() protoreflect.Message
func (*ConfigRequest_V1_System_Gateway_Backup) Reset ¶
func (x *ConfigRequest_V1_System_Gateway_Backup) Reset()
func (*ConfigRequest_V1_System_Gateway_Backup) String ¶
func (x *ConfigRequest_V1_System_Gateway_Backup) String() string
type ConfigRequest_V1_System_Gateway_Backup_Filesystem ¶
type ConfigRequest_V1_System_Gateway_Backup_Filesystem struct { Path *wrappers.StringValue `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty" toml:"path,omitempty" mapstructure:"path,omitempty"` // contains filtered or unexported fields }
func (*ConfigRequest_V1_System_Gateway_Backup_Filesystem) Descriptor
deprecated
func (*ConfigRequest_V1_System_Gateway_Backup_Filesystem) Descriptor() ([]byte, []int)
Deprecated: Use ConfigRequest_V1_System_Gateway_Backup_Filesystem.ProtoReflect.Descriptor instead.
func (*ConfigRequest_V1_System_Gateway_Backup_Filesystem) GetPath ¶
func (x *ConfigRequest_V1_System_Gateway_Backup_Filesystem) GetPath() *wrappers.StringValue
func (*ConfigRequest_V1_System_Gateway_Backup_Filesystem) ProtoMessage ¶
func (*ConfigRequest_V1_System_Gateway_Backup_Filesystem) ProtoMessage()
func (*ConfigRequest_V1_System_Gateway_Backup_Filesystem) ProtoReflect ¶
func (x *ConfigRequest_V1_System_Gateway_Backup_Filesystem) ProtoReflect() protoreflect.Message
func (*ConfigRequest_V1_System_Gateway_Backup_Filesystem) Reset ¶
func (x *ConfigRequest_V1_System_Gateway_Backup_Filesystem) Reset()
func (*ConfigRequest_V1_System_Gateway_Backup_Filesystem) String ¶
func (x *ConfigRequest_V1_System_Gateway_Backup_Filesystem) 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"` // 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) GetHost
deprecated
func (x *ConfigRequest_V1_System_Service) GetHost() *wrappers.StringValue
Deprecated: Do not use.
func (*ConfigRequest_V1_System_Service) GetPort ¶
func (x *ConfigRequest_V1_System_Service) GetPort() *wrappers.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