Documentation
¶
Index ¶
- Variables
- func EvaluateContextualTemplate(raw string, vars map[string]string) (string, error)
- type APIAuth
- type APIConfig
- type CompressionType
- type EncodingConfig
- type EncodingOptions
- type EncodingType
- type EndpointConfig
- type EntityProperties
- type Errors
- type K8sResourceIdentifier
- type K8sResourceKind
- type K8sResourcePath
- type LatestTagResponse
- type LogConfig
- type LogUploadConfig
- type ParamConf
- type UpdaterConfig
- type VersioningServiceClient
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SupportedK8sResourceKinds = map[K8sResourceKind]bool{ K8sDaemonset: true, K8sDeployment: true, K8sStatefulset: true, } )
Functions ¶
Types ¶
type APIConfig ¶
type APIConfig struct { BaseURL string `yaml:"base_url"` LatestTagEndpoint EndpointConfig `yaml:"latest_tag"` MetadataEndpoint *EndpointConfig `yaml:"metadata,omitempty"` LogUpload *LogUploadConfig `yaml:"log_upload,omitempty"` TopLevelAuth *APIAuth `yaml:"auth,omitempty"` }
type CompressionType ¶
type CompressionType string
const ( CompressionGzip CompressionType = "gzip" CompressionNoOp = "" )
type EncodingConfig ¶
type EncodingConfig struct { Type EncodingType `yaml:"type"` Opts *EncodingOptions `yaml:"options,omitempty"` }
type EncodingOptions ¶
type EncodingOptions struct {
Delimiter string `yaml:"delimiter,omitempty"`
}
type EncodingType ¶
type EncodingType string
const ( EncodingJSON EncodingType = "json" EncodingRaw = "raw" )
type EndpointConfig ¶
type EntityProperties ¶
type EntityProperties struct { ID string `yaml:"id"` ImageName string `yaml:"image"` K8sPaths []K8sResourcePath `yaml:"paths"` }
type Errors ¶
type Errors struct {
// contains filtered or unexported fields
}
func (*Errors) ErrorOrNil ¶
type K8sResourceIdentifier ¶
type K8sResourceIdentifier struct { Namespace string Kind K8sResourceKind Name string UpdateKeyPath string }
type K8sResourceKind ¶
type K8sResourceKind string
const ( K8sDaemonset K8sResourceKind = "ds" K8sDeployment K8sResourceKind = "deploy" K8sStatefulset K8sResourceKind = "sts" )
type K8sResourcePath ¶
type K8sResourcePath string
func (K8sResourcePath) Parse ¶
func (rp K8sResourcePath) Parse() (*K8sResourceIdentifier, error)
type LatestTagResponse ¶
type LogUploadConfig ¶
type LogUploadConfig struct { Enabled bool `yaml:"enabled"` PresignedUploadURLEndpoint EndpointConfig `yaml:"presigned_upload_url"` Method string `yaml:"method"` Encoding *EncodingConfig `yaml:"encoding"` Compression CompressionType `yaml:"compression,omitempty"` Params *ParamConf `yaml:"params,omitempty"` }
type UpdaterConfig ¶
type UpdaterConfig struct { Entities []EntityProperties `yaml:"entities"` API APIConfig `yaml:"api"` Log *LogConfig `yaml:"log,omitempty"` Metadata map[string]string `yaml:"-"` }
Click to show internal directories.
Click to hide internal directories.