shared

package
v0.0.0-...-6794c67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 19 Imported by: 41

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExternalCipherSuite = toCipherString(append(
	append(commonCiphers, commonExcludes...),

	"AES256-GCM-SHA384"))

ExternalCipherSuite should be the default for ssl_ciphers for any processes that handle external requests. Note that these ciphers are not used for Golang services.

View Source
var File_config_shared_global_proto protoreflect.FileDescriptor
View Source
var File_config_shared_tls_proto protoreflect.FileDescriptor
View Source
var InternalCipherSuite = toCipherString(append(commonCiphers, commonExcludes...))

InternalCipherSuites should be the default for ssl_ciphers for any processes that only handle internal requests. Note that these ciphers are not used for Golang services.

View Source
var LogrusLogLevels = []string{
	"trace",
	"debug",
	"info",
	"warning",
	"error",
	"fatal",
	"panic",
}

LogrusLogLevels constains the log levels accepted by the Golang logrus library. Defined here:

https://github.com/chef/automate/blob/master/vendor/github.com/sirupsen/logrus/logrus.go#L16-L33

View Source
var NginxLogLevels = []string{
	"debug",
	"info",
	"notice",
	"warn",
	"error",
	"crit",
	"alert",
	"emerg",
}

NginxLogLevels contains the log levels accepted by nginx according to:

http://nginx.org/en/docs/ngx_core_module.html#error_log
View Source
var ZapLogLevels = []string{
	"debug",
	"info",
	"warn",
	"error",
	"dpanic",
	"panic",
	"fatal",
}

ZapLogLevels contains the log levels accepted by the Golang Zap library. Defined here:

https://github.com/chef/automate/blob/master/vendor/go.uber.org/zap/level.go#L28-L47

Functions

func GlobalLogLevelToNginxLevel

func GlobalLogLevelToNginxLevel(level string) string

Convert the accepted GlobalLogLevels to a log level accepted by nginx's error_log setting.

func GlobalLogLevelToZapLevel

func GlobalLogLevelToZapLevel(level string) string

Convert the accepted GlobalLogLevels to a log level accepted by Golang's ZAP logger

func Merge

func Merge(base proto.Message, in proto.Message, merged proto.Message) error

Merge merges `in` onto `base` and puts the result in `merged`. Note that `merged` should be pointer to a zero value for the struct type.

func Validate

func Validate(vs ...error) error

Validate calls validator functions and aggregates the errors into a single single InvalidConfigError.

func ValidateDisclaimerFilePath

func ValidateDisclaimerFilePath(filePath string) error

func ValidateLogrusLogLevel

func ValidateLogrusLogLevel(level string) error

func ValidateNginxLogLevel

func ValidateNginxLogLevel(level string) error

func ValidateZapLogLevel

func ValidateZapLogLevel(level string) error

Types

type Backups

type Backups struct {

	// location should be one of ["filesystem", "s3", "gcs"]
	Location   *wrappers.StringValue `` /* 129-byte string literal not displayed */
	Filesystem *Backups_Filesystem   `` /* 137-byte string literal not displayed */
	S3         *Backups_S3           `protobuf:"bytes,4,opt,name=s3,proto3" json:"s3,omitempty" toml:"s3,omitempty" mapstructure:"s3,omitempty"`
	Gcs        *Backups_GCS          `protobuf:"bytes,5,opt,name=gcs,proto3" json:"gcs,omitempty" toml:"gcs,omitempty" mapstructure:"gcs,omitempty"`
	// contains filtered or unexported fields
}

func (*Backups) Descriptor deprecated

func (*Backups) Descriptor() ([]byte, []int)

Deprecated: Use Backups.ProtoReflect.Descriptor instead.

func (*Backups) GetFilesystem

func (x *Backups) GetFilesystem() *Backups_Filesystem

func (*Backups) GetGcs

func (x *Backups) GetGcs() *Backups_GCS

func (*Backups) GetLocation

func (x *Backups) GetLocation() *wrappers.StringValue

func (*Backups) GetS3

func (x *Backups) GetS3() *Backups_S3

func (*Backups) ProtoMessage

func (*Backups) ProtoMessage()

func (*Backups) ProtoReflect

func (x *Backups) ProtoReflect() protoreflect.Message

func (*Backups) Reset

func (x *Backups) Reset()

func (*Backups) String

func (x *Backups) String() string

type Backups_Filesystem

type Backups_Filesystem struct {
	Path                     *wrappers.StringValue `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty" toml:"path,omitempty" mapstructure:"path,omitempty"`
	EsMaxSnapshotBytesPerSec *wrappers.StringValue `` /* 243-byte string literal not displayed */
	EsMaxRestoreBytesPerSec  *wrappers.StringValue `` /* 238-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Backups_Filesystem) Descriptor deprecated

func (*Backups_Filesystem) Descriptor() ([]byte, []int)

Deprecated: Use Backups_Filesystem.ProtoReflect.Descriptor instead.

func (*Backups_Filesystem) GetEsMaxRestoreBytesPerSec

func (x *Backups_Filesystem) GetEsMaxRestoreBytesPerSec() *wrappers.StringValue

func (*Backups_Filesystem) GetEsMaxSnapshotBytesPerSec

func (x *Backups_Filesystem) GetEsMaxSnapshotBytesPerSec() *wrappers.StringValue

func (*Backups_Filesystem) GetPath

func (x *Backups_Filesystem) GetPath() *wrappers.StringValue

func (*Backups_Filesystem) ProtoMessage

func (*Backups_Filesystem) ProtoMessage()

func (*Backups_Filesystem) ProtoReflect

func (x *Backups_Filesystem) ProtoReflect() protoreflect.Message

func (*Backups_Filesystem) Reset

func (x *Backups_Filesystem) Reset()

func (*Backups_Filesystem) String

func (x *Backups_Filesystem) String() string

type Backups_GCS

type Backups_GCS struct {
	Credentials *Backups_GCS_GCPCredentials `` /* 141-byte string literal not displayed */
	Es          *Backups_GCS_Elasticsearch  `protobuf:"bytes,2,opt,name=es,proto3" json:"es,omitempty" toml:"es,omitempty" mapstructure:"es,omitempty"`
	Bucket      *Backups_GCS_Bucket         `protobuf:"bytes,3,opt,name=bucket,proto3" json:"bucket,omitempty" toml:"bucket,omitempty" mapstructure:"bucket,omitempty"`
	// contains filtered or unexported fields
}

func (*Backups_GCS) Descriptor deprecated

func (*Backups_GCS) Descriptor() ([]byte, []int)

Deprecated: Use Backups_GCS.ProtoReflect.Descriptor instead.

func (*Backups_GCS) GetBucket

func (x *Backups_GCS) GetBucket() *Backups_GCS_Bucket

func (*Backups_GCS) GetCredentials

func (x *Backups_GCS) GetCredentials() *Backups_GCS_GCPCredentials

func (*Backups_GCS) GetEs

func (*Backups_GCS) ProtoMessage

func (*Backups_GCS) ProtoMessage()

func (*Backups_GCS) ProtoReflect

func (x *Backups_GCS) ProtoReflect() protoreflect.Message

func (*Backups_GCS) Reset

func (x *Backups_GCS) Reset()

func (*Backups_GCS) String

func (x *Backups_GCS) String() string

type Backups_GCS_Bucket

type Backups_GCS_Bucket struct {
	BasePath *wrappers.StringValue `` /* 147-byte string literal not displayed */
	Name     *wrappers.StringValue `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" toml:"name,omitempty" mapstructure:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Backups_GCS_Bucket) Descriptor deprecated

func (*Backups_GCS_Bucket) Descriptor() ([]byte, []int)

Deprecated: Use Backups_GCS_Bucket.ProtoReflect.Descriptor instead.

func (*Backups_GCS_Bucket) GetBasePath

func (x *Backups_GCS_Bucket) GetBasePath() *wrappers.StringValue

func (*Backups_GCS_Bucket) GetName

func (x *Backups_GCS_Bucket) GetName() *wrappers.StringValue

func (*Backups_GCS_Bucket) ProtoMessage

func (*Backups_GCS_Bucket) ProtoMessage()

func (*Backups_GCS_Bucket) ProtoReflect

func (x *Backups_GCS_Bucket) ProtoReflect() protoreflect.Message

func (*Backups_GCS_Bucket) Reset

func (x *Backups_GCS_Bucket) Reset()

func (*Backups_GCS_Bucket) String

func (x *Backups_GCS_Bucket) String() string

type Backups_GCS_Elasticsearch

type Backups_GCS_Elasticsearch struct {

	// Backup repo settings
	Compress        *wrappers.BoolValue `` /* 129-byte string literal not displayed */
	ApplicationName *wrappers.BoolValue `` /* 182-byte string literal not displayed */
	// Snapshot settings
	MaxSnapshotBytesPerSec *wrappers.StringValue `` /* 229-byte string literal not displayed */
	MaxRestoreBytesPerSec  *wrappers.StringValue `` /* 224-byte string literal not displayed */
	ChunkSize              *wrappers.StringValue `` /* 152-byte string literal not displayed */
	// GCS client settings
	ReadTimeout    *wrappers.StringValue `` /* 162-byte string literal not displayed */
	ConnectTimeout *wrappers.BoolValue   `` /* 177-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Backups_GCS_Elasticsearch) Descriptor deprecated

func (*Backups_GCS_Elasticsearch) Descriptor() ([]byte, []int)

Deprecated: Use Backups_GCS_Elasticsearch.ProtoReflect.Descriptor instead.

func (*Backups_GCS_Elasticsearch) GetApplicationName

func (x *Backups_GCS_Elasticsearch) GetApplicationName() *wrappers.BoolValue

func (*Backups_GCS_Elasticsearch) GetChunkSize

func (x *Backups_GCS_Elasticsearch) GetChunkSize() *wrappers.StringValue

func (*Backups_GCS_Elasticsearch) GetCompress

func (x *Backups_GCS_Elasticsearch) GetCompress() *wrappers.BoolValue

func (*Backups_GCS_Elasticsearch) GetConnectTimeout

func (x *Backups_GCS_Elasticsearch) GetConnectTimeout() *wrappers.BoolValue

func (*Backups_GCS_Elasticsearch) GetMaxRestoreBytesPerSec

func (x *Backups_GCS_Elasticsearch) GetMaxRestoreBytesPerSec() *wrappers.StringValue

func (*Backups_GCS_Elasticsearch) GetMaxSnapshotBytesPerSec

func (x *Backups_GCS_Elasticsearch) GetMaxSnapshotBytesPerSec() *wrappers.StringValue

func (*Backups_GCS_Elasticsearch) GetReadTimeout

func (x *Backups_GCS_Elasticsearch) GetReadTimeout() *wrappers.StringValue

func (*Backups_GCS_Elasticsearch) ProtoMessage

func (*Backups_GCS_Elasticsearch) ProtoMessage()

func (*Backups_GCS_Elasticsearch) ProtoReflect

func (*Backups_GCS_Elasticsearch) Reset

func (x *Backups_GCS_Elasticsearch) Reset()

func (*Backups_GCS_Elasticsearch) String

func (x *Backups_GCS_Elasticsearch) String() string

type Backups_GCS_GCPCredentials

type Backups_GCS_GCPCredentials struct {
	Json *wrappers.StringValue `protobuf:"bytes,1,opt,name=json,proto3" json:"json,omitempty" toml:"json,omitempty" mapstructure:"json,omitempty"`
	// contains filtered or unexported fields
}

func (*Backups_GCS_GCPCredentials) Descriptor deprecated

func (*Backups_GCS_GCPCredentials) Descriptor() ([]byte, []int)

Deprecated: Use Backups_GCS_GCPCredentials.ProtoReflect.Descriptor instead.

func (*Backups_GCS_GCPCredentials) GetJson

func (*Backups_GCS_GCPCredentials) ProtoMessage

func (*Backups_GCS_GCPCredentials) ProtoMessage()

func (*Backups_GCS_GCPCredentials) ProtoReflect

func (*Backups_GCS_GCPCredentials) Reset

func (x *Backups_GCS_GCPCredentials) Reset()

func (*Backups_GCS_GCPCredentials) String

func (x *Backups_GCS_GCPCredentials) String() string

type Backups_S3

type Backups_S3 struct {
	Credentials *Backups_S3_AWSCredentials `` /* 141-byte string literal not displayed */
	Es          *Backups_S3_Elasticsearch  `protobuf:"bytes,2,opt,name=es,proto3" json:"es,omitempty" toml:"es,omitempty" mapstructure:"es,omitempty"`
	Bucket      *Backups_S3_Bucket         `protobuf:"bytes,3,opt,name=bucket,proto3" json:"bucket,omitempty" toml:"bucket,omitempty" mapstructure:"bucket,omitempty"`
	Ssl         *Backups_S3_SSL            `protobuf:"bytes,4,opt,name=ssl,proto3" json:"ssl,omitempty" toml:"ssl,omitempty" mapstructure:"ssl,omitempty"`
	// contains filtered or unexported fields
}

func (*Backups_S3) Descriptor deprecated

func (*Backups_S3) Descriptor() ([]byte, []int)

Deprecated: Use Backups_S3.ProtoReflect.Descriptor instead.

func (*Backups_S3) GetBucket

func (x *Backups_S3) GetBucket() *Backups_S3_Bucket

func (*Backups_S3) GetCredentials

func (x *Backups_S3) GetCredentials() *Backups_S3_AWSCredentials

func (*Backups_S3) GetEs

func (*Backups_S3) GetSsl

func (x *Backups_S3) GetSsl() *Backups_S3_SSL

func (*Backups_S3) ProtoMessage

func (*Backups_S3) ProtoMessage()

func (*Backups_S3) ProtoReflect

func (x *Backups_S3) ProtoReflect() protoreflect.Message

func (*Backups_S3) Reset

func (x *Backups_S3) Reset()

func (*Backups_S3) String

func (x *Backups_S3) String() string

type Backups_S3_AWSCredentials

type Backups_S3_AWSCredentials struct {
	AccessKey    *wrappers.StringValue `` /* 152-byte string literal not displayed */
	SecretKey    *wrappers.StringValue `` /* 152-byte string literal not displayed */
	SessionToken *wrappers.StringValue `` /* 167-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Backups_S3_AWSCredentials) Descriptor deprecated

func (*Backups_S3_AWSCredentials) Descriptor() ([]byte, []int)

Deprecated: Use Backups_S3_AWSCredentials.ProtoReflect.Descriptor instead.

func (*Backups_S3_AWSCredentials) GetAccessKey

func (x *Backups_S3_AWSCredentials) GetAccessKey() *wrappers.StringValue

func (*Backups_S3_AWSCredentials) GetSecretKey

func (x *Backups_S3_AWSCredentials) GetSecretKey() *wrappers.StringValue

func (*Backups_S3_AWSCredentials) GetSessionToken

func (x *Backups_S3_AWSCredentials) GetSessionToken() *wrappers.StringValue

func (*Backups_S3_AWSCredentials) ProtoMessage

func (*Backups_S3_AWSCredentials) ProtoMessage()

func (*Backups_S3_AWSCredentials) ProtoReflect

func (*Backups_S3_AWSCredentials) Reset

func (x *Backups_S3_AWSCredentials) Reset()

func (*Backups_S3_AWSCredentials) String

func (x *Backups_S3_AWSCredentials) String() string

type Backups_S3_Bucket

type Backups_S3_Bucket struct {
	Endpoint *wrappers.StringValue `` /* 129-byte string literal not displayed */
	BasePath *wrappers.StringValue `` /* 147-byte string literal not displayed */
	Name     *wrappers.StringValue `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty" toml:"name,omitempty" mapstructure:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Backups_S3_Bucket) Descriptor deprecated

func (*Backups_S3_Bucket) Descriptor() ([]byte, []int)

Deprecated: Use Backups_S3_Bucket.ProtoReflect.Descriptor instead.

func (*Backups_S3_Bucket) GetBasePath

func (x *Backups_S3_Bucket) GetBasePath() *wrappers.StringValue

func (*Backups_S3_Bucket) GetEndpoint

func (x *Backups_S3_Bucket) GetEndpoint() *wrappers.StringValue

func (*Backups_S3_Bucket) GetName

func (x *Backups_S3_Bucket) GetName() *wrappers.StringValue

func (*Backups_S3_Bucket) ProtoMessage

func (*Backups_S3_Bucket) ProtoMessage()

func (*Backups_S3_Bucket) ProtoReflect

func (x *Backups_S3_Bucket) ProtoReflect() protoreflect.Message

func (*Backups_S3_Bucket) Reset

func (x *Backups_S3_Bucket) Reset()

func (*Backups_S3_Bucket) String

func (x *Backups_S3_Bucket) String() string

type Backups_S3_Elasticsearch

type Backups_S3_Elasticsearch struct {

	// Backup repo settings
	Compress             *wrappers.BoolValue   `` /* 129-byte string literal not displayed */
	ServerSideEncryption *wrappers.BoolValue   `` /* 211-byte string literal not displayed */
	BufferSize           *wrappers.StringValue `` /* 157-byte string literal not displayed */
	CannedAcl            *wrappers.StringValue `` /* 152-byte string literal not displayed */
	StorageClass         *wrappers.StringValue `` /* 167-byte string literal not displayed */
	// Snapshot settings
	MaxSnapshotBytesPerSec *wrappers.StringValue `` /* 229-byte string literal not displayed */
	MaxRestoreBytesPerSec  *wrappers.StringValue `` /* 224-byte string literal not displayed */
	ChunkSize              *wrappers.StringValue `` /* 152-byte string literal not displayed */
	// S3 client settings
	ReadTimeout        *wrappers.StringValue `` /* 163-byte string literal not displayed */
	MaxRetries         *wrappers.Int32Value  `` /* 158-byte string literal not displayed */
	UseThrottleRetries *wrappers.BoolValue   `` /* 202-byte string literal not displayed */
	Protocol           *wrappers.StringValue `` /* 130-byte string literal not displayed */
	// Aws Elasticsearch
	Region  *wrappers.StringValue `protobuf:"bytes,14,opt,name=region,proto3" json:"region,omitempty" toml:"region,omitempty" mapstructure:"region,omitempty"`
	RoleArn *wrappers.StringValue `` /* 143-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Backups_S3_Elasticsearch) Descriptor deprecated

func (*Backups_S3_Elasticsearch) Descriptor() ([]byte, []int)

Deprecated: Use Backups_S3_Elasticsearch.ProtoReflect.Descriptor instead.

func (*Backups_S3_Elasticsearch) GetBufferSize

func (x *Backups_S3_Elasticsearch) GetBufferSize() *wrappers.StringValue

func (*Backups_S3_Elasticsearch) GetCannedAcl

func (x *Backups_S3_Elasticsearch) GetCannedAcl() *wrappers.StringValue

func (*Backups_S3_Elasticsearch) GetChunkSize

func (x *Backups_S3_Elasticsearch) GetChunkSize() *wrappers.StringValue

func (*Backups_S3_Elasticsearch) GetCompress

func (x *Backups_S3_Elasticsearch) GetCompress() *wrappers.BoolValue

func (*Backups_S3_Elasticsearch) GetMaxRestoreBytesPerSec

func (x *Backups_S3_Elasticsearch) GetMaxRestoreBytesPerSec() *wrappers.StringValue

func (*Backups_S3_Elasticsearch) GetMaxRetries

func (x *Backups_S3_Elasticsearch) GetMaxRetries() *wrappers.Int32Value

func (*Backups_S3_Elasticsearch) GetMaxSnapshotBytesPerSec

func (x *Backups_S3_Elasticsearch) GetMaxSnapshotBytesPerSec() *wrappers.StringValue

func (*Backups_S3_Elasticsearch) GetProtocol

func (x *Backups_S3_Elasticsearch) GetProtocol() *wrappers.StringValue

func (*Backups_S3_Elasticsearch) GetReadTimeout

func (x *Backups_S3_Elasticsearch) GetReadTimeout() *wrappers.StringValue

func (*Backups_S3_Elasticsearch) GetRegion

func (*Backups_S3_Elasticsearch) GetRoleArn

func (*Backups_S3_Elasticsearch) GetServerSideEncryption

func (x *Backups_S3_Elasticsearch) GetServerSideEncryption() *wrappers.BoolValue

func (*Backups_S3_Elasticsearch) GetStorageClass

func (x *Backups_S3_Elasticsearch) GetStorageClass() *wrappers.StringValue

func (*Backups_S3_Elasticsearch) GetUseThrottleRetries

func (x *Backups_S3_Elasticsearch) GetUseThrottleRetries() *wrappers.BoolValue

func (*Backups_S3_Elasticsearch) ProtoMessage

func (*Backups_S3_Elasticsearch) ProtoMessage()

func (*Backups_S3_Elasticsearch) ProtoReflect

func (x *Backups_S3_Elasticsearch) ProtoReflect() protoreflect.Message

func (*Backups_S3_Elasticsearch) Reset

func (x *Backups_S3_Elasticsearch) Reset()

func (*Backups_S3_Elasticsearch) String

func (x *Backups_S3_Elasticsearch) String() string

type Backups_S3_SSL

type Backups_S3_SSL struct {
	RootCert *wrappers.StringValue `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Backups_S3_SSL) Descriptor deprecated

func (*Backups_S3_SSL) Descriptor() ([]byte, []int)

Deprecated: Use Backups_S3_SSL.ProtoReflect.Descriptor instead.

func (*Backups_S3_SSL) GetRootCert

func (x *Backups_S3_SSL) GetRootCert() *wrappers.StringValue

func (*Backups_S3_SSL) ProtoMessage

func (*Backups_S3_SSL) ProtoMessage()

func (*Backups_S3_SSL) ProtoReflect

func (x *Backups_S3_SSL) ProtoReflect() protoreflect.Message

func (*Backups_S3_SSL) Reset

func (x *Backups_S3_SSL) Reset()

func (*Backups_S3_SSL) String

func (x *Backups_S3_SSL) String() string
type Banner struct {
	Show            *wrappers.BoolValue   `protobuf:"bytes,1,opt,name=show,proto3" json:"show,omitempty" toml:"show,omitempty" mapstructure:"show,omitempty"`
	Message         *wrappers.StringValue `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty" toml:"message,omitempty" mapstructure:"message,omitempty"`
	BackgroundColor *wrappers.StringValue `` /* 182-byte string literal not displayed */
	TextColor       *wrappers.StringValue `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Banner) Descriptor deprecated

func (*Banner) Descriptor() ([]byte, []int)

Deprecated: Use Banner.ProtoReflect.Descriptor instead.

func (*Banner) GetBackgroundColor

func (x *Banner) GetBackgroundColor() *wrappers.StringValue

func (*Banner) GetMessage

func (x *Banner) GetMessage() *wrappers.StringValue

func (*Banner) GetShow

func (x *Banner) GetShow() *wrappers.BoolValue

func (*Banner) GetTextColor

func (x *Banner) GetTextColor() *wrappers.StringValue

func (*Banner) ProtoMessage

func (*Banner) ProtoMessage()

func (*Banner) ProtoReflect

func (x *Banner) ProtoReflect() protoreflect.Message

func (*Banner) Reset

func (x *Banner) Reset()

func (*Banner) String

func (x *Banner) String() string

type Disclosure

type Disclosure struct {
	Show            *wrappers.BoolValue   `protobuf:"bytes,1,opt,name=show,proto3" json:"show,omitempty" toml:"show,omitempty" mapstructure:"show,omitempty"`
	MessageFilePath *wrappers.StringValue `` /* 186-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Disclosure) Descriptor deprecated

func (*Disclosure) Descriptor() ([]byte, []int)

Deprecated: Use Disclosure.ProtoReflect.Descriptor instead.

func (*Disclosure) GetMessageFilePath

func (x *Disclosure) GetMessageFilePath() *wrappers.StringValue

func (*Disclosure) GetShow

func (x *Disclosure) GetShow() *wrappers.BoolValue

func (*Disclosure) ProtoMessage

func (*Disclosure) ProtoMessage()

func (*Disclosure) ProtoReflect

func (x *Disclosure) ProtoReflect() protoreflect.Message

func (*Disclosure) Reset

func (x *Disclosure) Reset()

func (*Disclosure) String

func (x *Disclosure) String() string

type Error

type Error interface {
	error
	AddMissingKey(string)
	MissingKeys() []string
	AddInvalidValue(string, string)
	InvalidValues() map[string]string
	AddUnknownError(error)
	UnknownErrors() []error
	AddDeprecation(string, string)
	Deprecations() map[string]string
	IsEmpty() bool
}

type External

type External struct {
	Elasticsearch *External_Elasticsearch `` /* 149-byte string literal not displayed */
	Postgresql    *External_Postgresql    `` /* 137-byte string literal not displayed */
	Automate      *External_Automate      `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*External) Descriptor deprecated

func (*External) Descriptor() ([]byte, []int)

Deprecated: Use External.ProtoReflect.Descriptor instead.

func (*External) GetAutomate

func (x *External) GetAutomate() *External_Automate

func (*External) GetElasticsearch

func (x *External) GetElasticsearch() *External_Elasticsearch

func (*External) GetPostgresql

func (x *External) GetPostgresql() *External_Postgresql

func (*External) ProtoMessage

func (*External) ProtoMessage()

func (*External) ProtoReflect

func (x *External) ProtoReflect() protoreflect.Message

func (*External) Reset

func (x *External) Reset()

func (*External) String

func (x *External) String() string

type External_Automate

type External_Automate struct {
	Enable *wrappers.BoolValue               `protobuf:"bytes,1,opt,name=enable,proto3" json:"enable,omitempty" toml:"enable,omitempty" mapstructure:"enable,omitempty"`
	Node   *wrappers.StringValue             `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty" toml:"node,omitempty" mapstructure:"node,omitempty"`
	Auth   *External_Automate_Authentication `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty" toml:"auth,omitempty" mapstructure:"auth,omitempty"`
	Ssl    *External_Automate_SSL            `protobuf:"bytes,4,opt,name=ssl,proto3" json:"ssl,omitempty" toml:"ssl,omitempty" mapstructure:"ssl,omitempty"`
	// contains filtered or unexported fields
}

func (*External_Automate) Descriptor deprecated

func (*External_Automate) Descriptor() ([]byte, []int)

Deprecated: Use External_Automate.ProtoReflect.Descriptor instead.

func (*External_Automate) GetAuth

func (*External_Automate) GetEnable

func (x *External_Automate) GetEnable() *wrappers.BoolValue

func (*External_Automate) GetNode

func (x *External_Automate) GetNode() *wrappers.StringValue

func (*External_Automate) GetSsl

func (*External_Automate) ProtoMessage

func (*External_Automate) ProtoMessage()

func (*External_Automate) ProtoReflect

func (x *External_Automate) ProtoReflect() protoreflect.Message

func (*External_Automate) Reset

func (x *External_Automate) Reset()

func (*External_Automate) String

func (x *External_Automate) String() string

type External_Automate_Authentication

type External_Automate_Authentication struct {
	Scheme *wrappers.StringValue `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty" toml:"scheme,omitempty" mapstructure:"scheme,omitempty"`
	Token  *wrappers.StringValue `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty" toml:"token,omitempty" mapstructure:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*External_Automate_Authentication) Descriptor deprecated

func (*External_Automate_Authentication) Descriptor() ([]byte, []int)

Deprecated: Use External_Automate_Authentication.ProtoReflect.Descriptor instead.

func (*External_Automate_Authentication) GetScheme

func (*External_Automate_Authentication) GetToken

func (*External_Automate_Authentication) ProtoMessage

func (*External_Automate_Authentication) ProtoMessage()

func (*External_Automate_Authentication) ProtoReflect

func (*External_Automate_Authentication) Reset

func (*External_Automate_Authentication) String

type External_Automate_SSL

type External_Automate_SSL struct {
	RootCert   *wrappers.StringValue `` /* 147-byte string literal not displayed */
	ServerName *wrappers.StringValue `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*External_Automate_SSL) Descriptor deprecated

func (*External_Automate_SSL) Descriptor() ([]byte, []int)

Deprecated: Use External_Automate_SSL.ProtoReflect.Descriptor instead.

func (*External_Automate_SSL) GetRootCert

func (x *External_Automate_SSL) GetRootCert() *wrappers.StringValue

func (*External_Automate_SSL) GetServerName

func (x *External_Automate_SSL) GetServerName() *wrappers.StringValue

func (*External_Automate_SSL) ProtoMessage

func (*External_Automate_SSL) ProtoMessage()

func (*External_Automate_SSL) ProtoReflect

func (x *External_Automate_SSL) ProtoReflect() protoreflect.Message

func (*External_Automate_SSL) Reset

func (x *External_Automate_SSL) Reset()

func (*External_Automate_SSL) String

func (x *External_Automate_SSL) String() string

type External_Elasticsearch

type External_Elasticsearch struct {
	Enable *wrappers.BoolValue                    `protobuf:"bytes,1,opt,name=enable,proto3" json:"enable,omitempty" toml:"enable,omitempty" mapstructure:"enable,omitempty"`
	Nodes  []*wrappers.StringValue                `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty" toml:"nodes,omitempty" mapstructure:"nodes,omitempty"`
	Backup *External_Elasticsearch_Backup         `protobuf:"bytes,3,opt,name=backup,proto3" json:"backup,omitempty" toml:"backup,omitempty" mapstructure:"backup,omitempty"`
	Auth   *External_Elasticsearch_Authentication `protobuf:"bytes,4,opt,name=auth,proto3" json:"auth,omitempty" toml:"auth,omitempty" mapstructure:"auth,omitempty"`
	Ssl    *External_Elasticsearch_SSL            `protobuf:"bytes,5,opt,name=ssl,proto3" json:"ssl,omitempty" toml:"ssl,omitempty" mapstructure:"ssl,omitempty"`
	// contains filtered or unexported fields
}

func (*External_Elasticsearch) Descriptor deprecated

func (*External_Elasticsearch) Descriptor() ([]byte, []int)

Deprecated: Use External_Elasticsearch.ProtoReflect.Descriptor instead.

func (*External_Elasticsearch) GetAuth

func (*External_Elasticsearch) GetBackup

func (*External_Elasticsearch) GetEnable

func (x *External_Elasticsearch) GetEnable() *wrappers.BoolValue

func (*External_Elasticsearch) GetNodes

func (x *External_Elasticsearch) GetNodes() []*wrappers.StringValue

func (*External_Elasticsearch) GetSsl

func (*External_Elasticsearch) ProtoMessage

func (*External_Elasticsearch) ProtoMessage()

func (*External_Elasticsearch) ProtoReflect

func (x *External_Elasticsearch) ProtoReflect() protoreflect.Message

func (*External_Elasticsearch) Reset

func (x *External_Elasticsearch) Reset()

func (*External_Elasticsearch) String

func (x *External_Elasticsearch) String() string

type External_Elasticsearch_Authentication

type External_Elasticsearch_Authentication struct {
	Scheme    *wrappers.StringValue                                       `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty" toml:"scheme,omitempty" mapstructure:"scheme,omitempty"`
	BasicAuth *External_Elasticsearch_Authentication_BasicAuth            `` /* 152-byte string literal not displayed */
	AwsEs     *External_Elasticsearch_Authentication_AwsElasticsearchAuth `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*External_Elasticsearch_Authentication) Descriptor deprecated

func (*External_Elasticsearch_Authentication) Descriptor() ([]byte, []int)

Deprecated: Use External_Elasticsearch_Authentication.ProtoReflect.Descriptor instead.

func (*External_Elasticsearch_Authentication) GetAwsEs

func (*External_Elasticsearch_Authentication) GetBasicAuth

func (*External_Elasticsearch_Authentication) GetScheme

func (*External_Elasticsearch_Authentication) ProtoMessage

func (*External_Elasticsearch_Authentication) ProtoMessage()

func (*External_Elasticsearch_Authentication) ProtoReflect

func (*External_Elasticsearch_Authentication) Reset

func (*External_Elasticsearch_Authentication) String

type External_Elasticsearch_Authentication_AwsElasticsearchAuth

type External_Elasticsearch_Authentication_AwsElasticsearchAuth struct {

	// Authentication for Aws ES must provide a user and password for basic
	// auth. access_key and secret_key can be optionally specified. They are
	// needed for making snapshot repos, but if not provided, we can use the
	// instance creds.
	Username  *wrappers.StringValue `` /* 129-byte string literal not displayed */
	Password  *wrappers.StringValue `` /* 129-byte string literal not displayed */
	AccessKey *wrappers.StringValue `` /* 152-byte string literal not displayed */
	SecretKey *wrappers.StringValue `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*External_Elasticsearch_Authentication_AwsElasticsearchAuth) Descriptor deprecated

Deprecated: Use External_Elasticsearch_Authentication_AwsElasticsearchAuth.ProtoReflect.Descriptor instead.

func (*External_Elasticsearch_Authentication_AwsElasticsearchAuth) GetAccessKey

func (*External_Elasticsearch_Authentication_AwsElasticsearchAuth) GetPassword

func (*External_Elasticsearch_Authentication_AwsElasticsearchAuth) GetSecretKey

func (*External_Elasticsearch_Authentication_AwsElasticsearchAuth) GetUsername

func (*External_Elasticsearch_Authentication_AwsElasticsearchAuth) ProtoMessage

func (*External_Elasticsearch_Authentication_AwsElasticsearchAuth) ProtoReflect

func (*External_Elasticsearch_Authentication_AwsElasticsearchAuth) Reset

func (*External_Elasticsearch_Authentication_AwsElasticsearchAuth) String

type External_Elasticsearch_Authentication_BasicAuth

type External_Elasticsearch_Authentication_BasicAuth struct {
	Username *wrappers.StringValue `` /* 129-byte string literal not displayed */
	Password *wrappers.StringValue `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*External_Elasticsearch_Authentication_BasicAuth) Descriptor deprecated

Deprecated: Use External_Elasticsearch_Authentication_BasicAuth.ProtoReflect.Descriptor instead.

func (*External_Elasticsearch_Authentication_BasicAuth) GetPassword

func (*External_Elasticsearch_Authentication_BasicAuth) GetUsername

func (*External_Elasticsearch_Authentication_BasicAuth) ProtoMessage

func (*External_Elasticsearch_Authentication_BasicAuth) ProtoReflect

func (*External_Elasticsearch_Authentication_BasicAuth) Reset

func (*External_Elasticsearch_Authentication_BasicAuth) String

type External_Elasticsearch_Backup

type External_Elasticsearch_Backup struct {
	Enable   *wrappers.BoolValue                        `protobuf:"bytes,1,opt,name=enable,proto3" json:"enable,omitempty" toml:"enable,omitempty" mapstructure:"enable,omitempty"`
	Location *wrappers.StringValue                      `` /* 129-byte string literal not displayed */
	Fs       *External_Elasticsearch_Backup_FsSettings  `protobuf:"bytes,3,opt,name=fs,proto3" json:"fs,omitempty" toml:"fs,omitempty" mapstructure:"fs,omitempty"`
	S3       *External_Elasticsearch_Backup_S3Settings  `protobuf:"bytes,4,opt,name=s3,proto3" json:"s3,omitempty" toml:"s3,omitempty" mapstructure:"s3,omitempty"`
	Gcs      *External_Elasticsearch_Backup_GCSSettings `protobuf:"bytes,5,opt,name=gcs,proto3" json:"gcs,omitempty" toml:"gcs,omitempty" mapstructure:"gcs,omitempty"`
	// contains filtered or unexported fields
}

func (*External_Elasticsearch_Backup) Descriptor deprecated

func (*External_Elasticsearch_Backup) Descriptor() ([]byte, []int)

Deprecated: Use External_Elasticsearch_Backup.ProtoReflect.Descriptor instead.

func (*External_Elasticsearch_Backup) GetEnable

func (*External_Elasticsearch_Backup) GetFs

func (*External_Elasticsearch_Backup) GetGcs

func (*External_Elasticsearch_Backup) GetLocation

func (*External_Elasticsearch_Backup) GetS3

func (*External_Elasticsearch_Backup) ProtoMessage

func (*External_Elasticsearch_Backup) ProtoMessage()

func (*External_Elasticsearch_Backup) ProtoReflect

func (*External_Elasticsearch_Backup) Reset

func (x *External_Elasticsearch_Backup) Reset()

func (*External_Elasticsearch_Backup) String

type External_Elasticsearch_Backup_FsSettings

type External_Elasticsearch_Backup_FsSettings struct {
	Path     *wrappers.StringValue                                      `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty" toml:"path,omitempty" mapstructure:"path,omitempty"`
	Settings *External_Elasticsearch_Backup_FsSettings_OptionalSettings `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*External_Elasticsearch_Backup_FsSettings) Descriptor deprecated

func (*External_Elasticsearch_Backup_FsSettings) Descriptor() ([]byte, []int)

Deprecated: Use External_Elasticsearch_Backup_FsSettings.ProtoReflect.Descriptor instead.

func (*External_Elasticsearch_Backup_FsSettings) GetPath

func (*External_Elasticsearch_Backup_FsSettings) GetSettings

func (*External_Elasticsearch_Backup_FsSettings) ProtoMessage

func (*External_Elasticsearch_Backup_FsSettings) ProtoReflect

func (*External_Elasticsearch_Backup_FsSettings) Reset

func (*External_Elasticsearch_Backup_FsSettings) String

type External_Elasticsearch_Backup_FsSettings_OptionalSettings

type External_Elasticsearch_Backup_FsSettings_OptionalSettings struct {
	MaxSnapshotBytesPerSec *wrappers.StringValue `` /* 229-byte string literal not displayed */
	MaxRestoreBytesPerSec  *wrappers.StringValue `` /* 224-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*External_Elasticsearch_Backup_FsSettings_OptionalSettings) Descriptor deprecated

Deprecated: Use External_Elasticsearch_Backup_FsSettings_OptionalSettings.ProtoReflect.Descriptor instead.

func (*External_Elasticsearch_Backup_FsSettings_OptionalSettings) GetMaxRestoreBytesPerSec

func (*External_Elasticsearch_Backup_FsSettings_OptionalSettings) GetMaxSnapshotBytesPerSec

func (*External_Elasticsearch_Backup_FsSettings_OptionalSettings) ProtoMessage

func (*External_Elasticsearch_Backup_FsSettings_OptionalSettings) ProtoReflect

func (*External_Elasticsearch_Backup_FsSettings_OptionalSettings) Reset

func (*External_Elasticsearch_Backup_FsSettings_OptionalSettings) String

type External_Elasticsearch_Backup_GCSSettings

type External_Elasticsearch_Backup_GCSSettings struct {
	Bucket   *wrappers.StringValue      `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty" toml:"bucket,omitempty" mapstructure:"bucket,omitempty"`
	Client   *wrappers.StringValue      `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty" toml:"client,omitempty" mapstructure:"client,omitempty"`
	BasePath *wrappers.StringValue      `` /* 147-byte string literal not displayed */
	Settings *Backups_GCS_Elasticsearch `` // optional settings
	/* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*External_Elasticsearch_Backup_GCSSettings) Descriptor deprecated

func (*External_Elasticsearch_Backup_GCSSettings) Descriptor() ([]byte, []int)

Deprecated: Use External_Elasticsearch_Backup_GCSSettings.ProtoReflect.Descriptor instead.

func (*External_Elasticsearch_Backup_GCSSettings) GetBasePath

func (*External_Elasticsearch_Backup_GCSSettings) GetBucket

func (*External_Elasticsearch_Backup_GCSSettings) GetClient

func (*External_Elasticsearch_Backup_GCSSettings) GetSettings

func (*External_Elasticsearch_Backup_GCSSettings) ProtoMessage

func (*External_Elasticsearch_Backup_GCSSettings) ProtoReflect

func (*External_Elasticsearch_Backup_GCSSettings) Reset

func (*External_Elasticsearch_Backup_GCSSettings) String

type External_Elasticsearch_Backup_S3Settings

type External_Elasticsearch_Backup_S3Settings struct {
	Bucket   *wrappers.StringValue     `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty" toml:"bucket,omitempty" mapstructure:"bucket,omitempty"`
	Client   *wrappers.StringValue     `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty" toml:"client,omitempty" mapstructure:"client,omitempty"`
	BasePath *wrappers.StringValue     `` /* 147-byte string literal not displayed */
	Settings *Backups_S3_Elasticsearch `` // optional settings
	/* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*External_Elasticsearch_Backup_S3Settings) Descriptor deprecated

func (*External_Elasticsearch_Backup_S3Settings) Descriptor() ([]byte, []int)

Deprecated: Use External_Elasticsearch_Backup_S3Settings.ProtoReflect.Descriptor instead.

func (*External_Elasticsearch_Backup_S3Settings) GetBasePath

func (*External_Elasticsearch_Backup_S3Settings) GetBucket

func (*External_Elasticsearch_Backup_S3Settings) GetClient

func (*External_Elasticsearch_Backup_S3Settings) GetSettings

func (*External_Elasticsearch_Backup_S3Settings) ProtoMessage

func (*External_Elasticsearch_Backup_S3Settings) ProtoReflect

func (*External_Elasticsearch_Backup_S3Settings) Reset

func (*External_Elasticsearch_Backup_S3Settings) String

type External_Elasticsearch_SSL

type External_Elasticsearch_SSL struct {
	RootCert     *wrappers.StringValue `` /* 147-byte string literal not displayed */
	ServerName   *wrappers.StringValue `` /* 157-byte string literal not displayed */
	RootCertFile *wrappers.StringValue `` /* 171-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*External_Elasticsearch_SSL) Descriptor deprecated

func (*External_Elasticsearch_SSL) Descriptor() ([]byte, []int)

Deprecated: Use External_Elasticsearch_SSL.ProtoReflect.Descriptor instead.

func (*External_Elasticsearch_SSL) GetRootCert

func (*External_Elasticsearch_SSL) GetRootCertFile

func (x *External_Elasticsearch_SSL) GetRootCertFile() *wrappers.StringValue

func (*External_Elasticsearch_SSL) GetServerName

func (x *External_Elasticsearch_SSL) GetServerName() *wrappers.StringValue

func (*External_Elasticsearch_SSL) ProtoMessage

func (*External_Elasticsearch_SSL) ProtoMessage()

func (*External_Elasticsearch_SSL) ProtoReflect

func (*External_Elasticsearch_SSL) Reset

func (x *External_Elasticsearch_SSL) Reset()

func (*External_Elasticsearch_SSL) String

func (x *External_Elasticsearch_SSL) String() string

type External_Postgresql

type External_Postgresql struct {
	Enable *wrappers.BoolValue                 `protobuf:"bytes,1,opt,name=enable,proto3" json:"enable,omitempty" toml:"enable,omitempty" mapstructure:"enable,omitempty"`
	Nodes  []*wrappers.StringValue             `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty" toml:"nodes,omitempty" mapstructure:"nodes,omitempty"`
	Backup *External_Postgresql_Backup         `protobuf:"bytes,3,opt,name=backup,proto3" json:"backup,omitempty" toml:"backup,omitempty" mapstructure:"backup,omitempty"`
	Auth   *External_Postgresql_Authentication `protobuf:"bytes,4,opt,name=auth,proto3" json:"auth,omitempty" toml:"auth,omitempty" mapstructure:"auth,omitempty"`
	Ssl    *External_Postgresql_SSL            `protobuf:"bytes,5,opt,name=ssl,proto3" json:"ssl,omitempty" toml:"ssl,omitempty" mapstructure:"ssl,omitempty"`
	// contains filtered or unexported fields
}

func (*External_Postgresql) Descriptor deprecated

func (*External_Postgresql) Descriptor() ([]byte, []int)

Deprecated: Use External_Postgresql.ProtoReflect.Descriptor instead.

func (*External_Postgresql) GetAuth

func (*External_Postgresql) GetBackup

func (*External_Postgresql) GetEnable

func (x *External_Postgresql) GetEnable() *wrappers.BoolValue

func (*External_Postgresql) GetNodes

func (x *External_Postgresql) GetNodes() []*wrappers.StringValue

func (*External_Postgresql) GetSsl

func (*External_Postgresql) ProtoMessage

func (*External_Postgresql) ProtoMessage()

func (*External_Postgresql) ProtoReflect

func (x *External_Postgresql) ProtoReflect() protoreflect.Message

func (*External_Postgresql) Reset

func (x *External_Postgresql) Reset()

func (*External_Postgresql) String

func (x *External_Postgresql) String() string

type External_Postgresql_Authentication

type External_Postgresql_Authentication struct {
	Scheme   *wrappers.StringValue                                      `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty" toml:"scheme,omitempty" mapstructure:"scheme,omitempty"`
	Password *External_Postgresql_Authentication_PasswordAuthentication `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*External_Postgresql_Authentication) Descriptor deprecated

func (*External_Postgresql_Authentication) Descriptor() ([]byte, []int)

Deprecated: Use External_Postgresql_Authentication.ProtoReflect.Descriptor instead.

func (*External_Postgresql_Authentication) GetPassword

func (*External_Postgresql_Authentication) GetScheme

func (*External_Postgresql_Authentication) ProtoMessage

func (*External_Postgresql_Authentication) ProtoMessage()

func (*External_Postgresql_Authentication) ProtoReflect

func (*External_Postgresql_Authentication) Reset

func (*External_Postgresql_Authentication) String

type External_Postgresql_Authentication_PasswordAuthentication

type External_Postgresql_Authentication_PasswordAuthentication struct {
	Superuser *External_Postgresql_Authentication_PasswordAuthentication_User `` /* 133-byte string literal not displayed */
	Dbuser    *External_Postgresql_Authentication_PasswordAuthentication_User `protobuf:"bytes,2,opt,name=dbuser,proto3" json:"dbuser,omitempty" toml:"dbuser,omitempty" mapstructure:"dbuser,omitempty"`
	// contains filtered or unexported fields
}

func (*External_Postgresql_Authentication_PasswordAuthentication) Descriptor deprecated

Deprecated: Use External_Postgresql_Authentication_PasswordAuthentication.ProtoReflect.Descriptor instead.

func (*External_Postgresql_Authentication_PasswordAuthentication) GetDbuser

func (*External_Postgresql_Authentication_PasswordAuthentication) GetSuperuser

func (*External_Postgresql_Authentication_PasswordAuthentication) ProtoMessage

func (*External_Postgresql_Authentication_PasswordAuthentication) ProtoReflect

func (*External_Postgresql_Authentication_PasswordAuthentication) Reset

func (*External_Postgresql_Authentication_PasswordAuthentication) String

type External_Postgresql_Authentication_PasswordAuthentication_User

type External_Postgresql_Authentication_PasswordAuthentication_User struct {
	Username *wrappers.StringValue `` /* 129-byte string literal not displayed */
	Password *wrappers.StringValue `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*External_Postgresql_Authentication_PasswordAuthentication_User) Descriptor deprecated

Deprecated: Use External_Postgresql_Authentication_PasswordAuthentication_User.ProtoReflect.Descriptor instead.

func (*External_Postgresql_Authentication_PasswordAuthentication_User) GetPassword

func (*External_Postgresql_Authentication_PasswordAuthentication_User) GetUsername

func (*External_Postgresql_Authentication_PasswordAuthentication_User) ProtoMessage

func (*External_Postgresql_Authentication_PasswordAuthentication_User) ProtoReflect

func (*External_Postgresql_Authentication_PasswordAuthentication_User) Reset

func (*External_Postgresql_Authentication_PasswordAuthentication_User) String

type External_Postgresql_Backup

type External_Postgresql_Backup struct {
	Enable *wrappers.BoolValue `protobuf:"bytes,1,opt,name=enable,proto3" json:"enable,omitempty" toml:"enable,omitempty" mapstructure:"enable,omitempty"`
	// contains filtered or unexported fields
}

func (*External_Postgresql_Backup) Descriptor deprecated

func (*External_Postgresql_Backup) Descriptor() ([]byte, []int)

Deprecated: Use External_Postgresql_Backup.ProtoReflect.Descriptor instead.

func (*External_Postgresql_Backup) GetEnable

func (*External_Postgresql_Backup) ProtoMessage

func (*External_Postgresql_Backup) ProtoMessage()

func (*External_Postgresql_Backup) ProtoReflect

func (*External_Postgresql_Backup) Reset

func (x *External_Postgresql_Backup) Reset()

func (*External_Postgresql_Backup) String

func (x *External_Postgresql_Backup) String() string

type External_Postgresql_SSL

type External_Postgresql_SSL struct {

	// Deprecated: Do not use.
	Mode     *wrappers.StringValue `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty" toml:"mode,omitempty" mapstructure:"mode,omitempty"`
	Cert     *wrappers.StringValue `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert,omitempty" toml:"cert,omitempty" mapstructure:"cert,omitempty"`
	Key      *wrappers.StringValue `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty" toml:"key,omitempty" mapstructure:"key,omitempty"`
	RootCert *wrappers.StringValue ``                                                                                                                          /* 147-byte string literal not displayed */
	Enable   *wrappers.BoolValue   `protobuf:"bytes,5,opt,name=enable,proto3" json:"enable,omitempty" toml:"enable,omitempty" mapstructure:"enable,omitempty"` // disabled by default
	// contains filtered or unexported fields
}

func (*External_Postgresql_SSL) Descriptor deprecated

func (*External_Postgresql_SSL) Descriptor() ([]byte, []int)

Deprecated: Use External_Postgresql_SSL.ProtoReflect.Descriptor instead.

func (*External_Postgresql_SSL) GetCert

func (*External_Postgresql_SSL) GetEnable

func (x *External_Postgresql_SSL) GetEnable() *wrappers.BoolValue

func (*External_Postgresql_SSL) GetKey

func (*External_Postgresql_SSL) GetMode deprecated

Deprecated: Do not use.

func (*External_Postgresql_SSL) GetRootCert

func (x *External_Postgresql_SSL) GetRootCert() *wrappers.StringValue

func (*External_Postgresql_SSL) ProtoMessage

func (*External_Postgresql_SSL) ProtoMessage()

func (*External_Postgresql_SSL) ProtoReflect

func (x *External_Postgresql_SSL) ProtoReflect() protoreflect.Message

func (*External_Postgresql_SSL) Reset

func (x *External_Postgresql_SSL) Reset()

func (*External_Postgresql_SSL) String

func (x *External_Postgresql_SSL) String() string

type FrontendTLSCredential

type FrontendTLSCredential struct {
	ServerName string ``                                                                                                                  /* 157-byte string literal not displayed */
	Cert       string `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert,omitempty" toml:"cert,omitempty" mapstructure:"cert,omitempty"` // contents
	CertPath   string ``                                                                                                                  /* 147-byte string literal not displayed */
	Key        string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty" toml:"key,omitempty" mapstructure:"key,omitempty"`     //contents
	KeyPath    string ``                                                                                                                  /* 142-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*FrontendTLSCredential) Descriptor deprecated

func (*FrontendTLSCredential) Descriptor() ([]byte, []int)

Deprecated: Use FrontendTLSCredential.ProtoReflect.Descriptor instead.

func (*FrontendTLSCredential) GetCert

func (x *FrontendTLSCredential) GetCert() string

func (*FrontendTLSCredential) GetCertPath

func (x *FrontendTLSCredential) GetCertPath() string

func (*FrontendTLSCredential) GetKey

func (x *FrontendTLSCredential) GetKey() string

func (*FrontendTLSCredential) GetKeyPath

func (x *FrontendTLSCredential) GetKeyPath() string

func (*FrontendTLSCredential) GetServerName

func (x *FrontendTLSCredential) GetServerName() string

func (*FrontendTLSCredential) ProtoMessage

func (*FrontendTLSCredential) ProtoMessage()

func (*FrontendTLSCredential) ProtoReflect

func (x *FrontendTLSCredential) ProtoReflect() protoreflect.Message

func (*FrontendTLSCredential) Reset

func (x *FrontendTLSCredential) Reset()

func (*FrontendTLSCredential) String

func (x *FrontendTLSCredential) String() string

type GlobalConfig

type GlobalConfig struct {
	V1 *V1 `protobuf:"bytes,1,opt,name=v1,proto3" json:"v1,omitempty" toml:"v1,omitempty" mapstructure:"v1,omitempty"`
	// contains filtered or unexported fields
}

func DefaultGlobalConfig

func DefaultGlobalConfig() *GlobalConfig

DefaultGlobalConfig returns a new GlobalConfig instance with default values.

func NewGlobalConfig

func NewGlobalConfig() *GlobalConfig

NewGlobalConfig returns a new GlobalConfig instance with zero values.

func (*GlobalConfig) Descriptor deprecated

func (*GlobalConfig) Descriptor() ([]byte, []int)

Deprecated: Use GlobalConfig.ProtoReflect.Descriptor instead.

func (*GlobalConfig) GetV1

func (x *GlobalConfig) GetV1() *V1

func (*GlobalConfig) NoProxyString

func (c *GlobalConfig) NoProxyString() *gw.StringValue

NoProxyString turns a non-empty NoProxy whitelist into a string of comma-separated entries for easier consumption by the hab config.

func (*GlobalConfig) ProtoMessage

func (*GlobalConfig) ProtoMessage()

func (*GlobalConfig) ProtoReflect

func (x *GlobalConfig) ProtoReflect() protoreflect.Message

func (*GlobalConfig) ProxyString

func (c *GlobalConfig) ProxyString() *gw.StringValue

ProxyString returns the proxy configuration formatted into the canonical HTTP_PROXY style formatting.

func (*GlobalConfig) Reset

func (x *GlobalConfig) Reset()

func (*GlobalConfig) String

func (x *GlobalConfig) String() string

func (*GlobalConfig) Validate

func (c *GlobalConfig) Validate() error

Validate validates that the config is valid. 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 InvalidConfigError

type InvalidConfigError struct {
	// contains filtered or unexported fields
}

InvalidConfigError is an aggregate error containing missing keys in service ConfigRequest or AutomateConfig's.

func NewInvalidConfigError

func NewInvalidConfigError() *InvalidConfigError

NewInvalidConfigError returns a new instance of InvalidConfigError with zero values.

func (*InvalidConfigError) AddDeprecation

func (e *InvalidConfigError) AddDeprecation(k, m string)

AddDeprecation takes an invalid key and a correction message

func (*InvalidConfigError) AddInvalidValue

func (e *InvalidConfigError) AddInvalidValue(k, m string)

AddInvalidValue takes a key and an invalid message.

func (*InvalidConfigError) AddMissingKey

func (e *InvalidConfigError) AddMissingKey(k string)

AddMissingKey adds a missing key to the error.

func (*InvalidConfigError) AddUnknownError

func (e *InvalidConfigError) AddUnknownError(err error)

AddUnknownError adds and error to the unknown errors

func (*InvalidConfigError) Deprecations

func (e *InvalidConfigError) Deprecations() map[string]string

func (*InvalidConfigError) Error

func (e *InvalidConfigError) Error() string

Error returns the error message as a string.

func (*InvalidConfigError) InvalidValues

func (e *InvalidConfigError) InvalidValues() map[string]string

func (*InvalidConfigError) IsEmpty

func (e *InvalidConfigError) IsEmpty() bool

func (*InvalidConfigError) MissingKeys

func (e *InvalidConfigError) MissingKeys() []string

func (*InvalidConfigError) UnknownErrors

func (e *InvalidConfigError) UnknownErrors() []error

type Log

type Log struct {
	Level  *wrappers.StringValue `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty" toml:"level,omitempty" mapstructure:"level,omitempty"`
	Format *wrappers.StringValue `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty" toml:"format,omitempty" mapstructure:"format,omitempty"`
	// contains filtered or unexported fields
}

func (*Log) Descriptor deprecated

func (*Log) Descriptor() ([]byte, []int)

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetFormat

func (x *Log) GetFormat() *wrappers.StringValue

func (*Log) GetLevel

func (x *Log) GetLevel() *wrappers.StringValue

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

func (x *Log) ProtoReflect() protoreflect.Message

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

type Mlsa

type Mlsa struct {
	Accept *wrappers.BoolValue `protobuf:"bytes,1,opt,name=accept,proto3" json:"accept,omitempty" toml:"accept,omitempty" mapstructure:"accept,omitempty"`
	// contains filtered or unexported fields
}

func (*Mlsa) Descriptor deprecated

func (*Mlsa) Descriptor() ([]byte, []int)

Deprecated: Use Mlsa.ProtoReflect.Descriptor instead.

func (*Mlsa) GetAccept

func (x *Mlsa) GetAccept() *wrappers.BoolValue

func (*Mlsa) ProtoMessage

func (*Mlsa) ProtoMessage()

func (*Mlsa) ProtoReflect

func (x *Mlsa) ProtoReflect() protoreflect.Message

func (*Mlsa) Reset

func (x *Mlsa) Reset()

func (*Mlsa) String

func (x *Mlsa) String() string

type PlatformServiceConfigurable

type PlatformServiceConfigurable interface {
	SetGlobalConfig(*GlobalConfig)
	PrepareSystemConfig(*TLSCredentials) (PreparedSystemConfig, error)
	Validate() error
}

PlatformServiceConfigurable is an interface that must be implemented by ConfigRequests that want to be part of the platform. It is used to setup the configuration for services

type PlatformServiceConfigurableV2

type PlatformServiceConfigurableV2 interface {
	PlatformServiceConfigurable
	ConfigureProduct(*ProductConfig)
}

type PreparedSystemConfig

type PreparedSystemConfig = interface{}

PreparedSystemConfig is a struct that can be rendered and used as a services system configuration.

type ProductConfig

type ProductConfig struct {
	Products []string
}

type Proxy

type Proxy struct {
	Host     *wrappers.StringValue `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty" toml:"host,omitempty" mapstructure:"host,omitempty"`
	Port     *wrappers.Int32Value  `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty" toml:"port,omitempty" mapstructure:"port,omitempty"`
	User     *wrappers.StringValue `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty" toml:"user,omitempty" mapstructure:"user,omitempty"`
	Password *wrappers.StringValue `` /* 129-byte string literal not displayed */
	NoProxy  []string              `` /* 142-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Proxy) Descriptor deprecated

func (*Proxy) Descriptor() ([]byte, []int)

Deprecated: Use Proxy.ProtoReflect.Descriptor instead.

func (*Proxy) GetHost

func (x *Proxy) GetHost() *wrappers.StringValue

func (*Proxy) GetNoProxy

func (x *Proxy) GetNoProxy() []string

func (*Proxy) GetPassword

func (x *Proxy) GetPassword() *wrappers.StringValue

func (*Proxy) GetPort

func (x *Proxy) GetPort() *wrappers.Int32Value

func (*Proxy) GetUser

func (x *Proxy) GetUser() *wrappers.StringValue

func (*Proxy) ProtoMessage

func (*Proxy) ProtoMessage()

func (*Proxy) ProtoReflect

func (x *Proxy) ProtoReflect() protoreflect.Message

func (*Proxy) Reset

func (x *Proxy) Reset()

func (*Proxy) String

func (x *Proxy) String() string

type SessionSettings

type SessionSettings struct {
	EnableIdleTimeout  *wrappers.BoolValue  `` /* 196-byte string literal not displayed */
	IdleTimeoutMinutes *wrappers.Int32Value `` /* 201-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SessionSettings) Descriptor deprecated

func (*SessionSettings) Descriptor() ([]byte, []int)

Deprecated: Use SessionSettings.ProtoReflect.Descriptor instead.

func (*SessionSettings) GetEnableIdleTimeout

func (x *SessionSettings) GetEnableIdleTimeout() *wrappers.BoolValue

func (*SessionSettings) GetIdleTimeoutMinutes

func (x *SessionSettings) GetIdleTimeoutMinutes() *wrappers.Int32Value

func (*SessionSettings) ProtoMessage

func (*SessionSettings) ProtoMessage()

func (*SessionSettings) ProtoReflect

func (x *SessionSettings) ProtoReflect() protoreflect.Message

func (*SessionSettings) Reset

func (x *SessionSettings) Reset()

func (*SessionSettings) String

func (x *SessionSettings) String() string

type TLSCredentials

type TLSCredentials struct {
	RootCertContents string `` /* 191-byte string literal not displayed */
	KeyContents      string `` /* 162-byte string literal not displayed */
	CertContents     string `` /* 167-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TLSCredentials) Descriptor deprecated

func (*TLSCredentials) Descriptor() ([]byte, []int)

Deprecated: Use TLSCredentials.ProtoReflect.Descriptor instead.

func (*TLSCredentials) GetCertContents

func (x *TLSCredentials) GetCertContents() string

func (*TLSCredentials) GetKeyContents

func (x *TLSCredentials) GetKeyContents() string

func (*TLSCredentials) GetRootCertContents

func (x *TLSCredentials) GetRootCertContents() string

func (*TLSCredentials) ProtoMessage

func (*TLSCredentials) ProtoMessage()

func (*TLSCredentials) ProtoReflect

func (x *TLSCredentials) ProtoReflect() protoreflect.Message

func (*TLSCredentials) Reset

func (x *TLSCredentials) Reset()

func (*TLSCredentials) String

func (x *TLSCredentials) String() string

type V1

type V1 struct {
	Fqdn            *wrappers.StringValue    `protobuf:"bytes,1,opt,name=fqdn,proto3" json:"fqdn,omitempty" toml:"fqdn,omitempty" mapstructure:"fqdn,omitempty"`
	Mlsa            *Mlsa                    `protobuf:"bytes,2,opt,name=mlsa,proto3" json:"mlsa,omitempty" toml:"mlsa,omitempty" mapstructure:"mlsa,omitempty"`
	Proxy           *Proxy                   `protobuf:"bytes,3,opt,name=proxy,proto3" json:"proxy,omitempty" toml:"proxy,omitempty" mapstructure:"proxy,omitempty"`
	Backups         *Backups                 `protobuf:"bytes,4,opt,name=backups,proto3" json:"backups,omitempty" toml:"backups,omitempty" mapstructure:"backups,omitempty"`
	Log             *Log                     `protobuf:"bytes,5,opt,name=log,proto3" json:"log,omitempty" toml:"log,omitempty" mapstructure:"log,omitempty"`
	External        *External                `` /* 129-byte string literal not displayed */
	FrontendTls     []*FrontendTLSCredential `` /* 162-byte string literal not displayed */
	Disclosure      *Disclosure              `` /* 137-byte string literal not displayed */
	Banner          *Banner                  `protobuf:"bytes,9,opt,name=banner,proto3" json:"banner,omitempty" toml:"banner,omitempty" mapstructure:"banner,omitempty"`
	SessionSettings *SessionSettings         `` /* 183-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*V1) Descriptor deprecated

func (*V1) Descriptor() ([]byte, []int)

Deprecated: Use V1.ProtoReflect.Descriptor instead.

func (*V1) GetBackups

func (x *V1) GetBackups() *Backups

func (*V1) GetBanner

func (x *V1) GetBanner() *Banner

func (*V1) GetDisclosure

func (x *V1) GetDisclosure() *Disclosure

func (*V1) GetExternal

func (x *V1) GetExternal() *External

func (*V1) GetFqdn

func (x *V1) GetFqdn() *wrappers.StringValue

func (*V1) GetFrontendTls

func (x *V1) GetFrontendTls() []*FrontendTLSCredential

func (*V1) GetLog

func (x *V1) GetLog() *Log

func (*V1) GetMlsa

func (x *V1) GetMlsa() *Mlsa

func (*V1) GetProxy

func (x *V1) GetProxy() *Proxy

func (*V1) GetSessionSettings

func (x *V1) GetSessionSettings() *SessionSettings

func (*V1) ProtoMessage

func (*V1) ProtoMessage()

func (*V1) ProtoReflect

func (x *V1) ProtoReflect() protoreflect.Message

func (*V1) Reset

func (x *V1) Reset()

func (*V1) String

func (x *V1) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL