Documentation ¶
Index ¶
- Constants
- type BeskarConfig
- type BeskarConfigV1
- type BeskarYumAzureStorage
- type BeskarYumConfig
- type BeskarYumConfigV1
- type BeskarYumFSStorage
- type BeskarYumGCSStorage
- type BeskarYumRegistry
- type BeskarYumS3Storage
- type BeskarYumStorage
- type Cache
- type Gossip
- type Plugin
- type PluginBackend
- type PluginMTLS
Constants ¶
View Source
const ( BeskarYumConfigFile = "beskar-yum.yaml" DefaultBeskarYumDataDir = "/tmp/beskar-yum" FSStorageDriver = "filesystem" S3StorageDriver = "s3" GCSStorageDriver = "gcs" AzureStorageDriver = "azure" )
View Source
const ( DefaultConfigDir = "/etc/beskar" BeskarConfigFile = "beskar.yaml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeskarConfig ¶
type BeskarConfig struct { Version string `yaml:"version"` Profiling bool `yaml:"profiling"` Cache Cache `yaml:"cache"` Gossip Gossip `yaml:"gossip"` Plugins map[string]Plugin `yaml:"plugins"` Registry *configuration.Configuration `yaml:"registry"` }
func ParseBeskarConfig ¶
func ParseBeskarConfig(dir string) (*BeskarConfig, error)
func (*BeskarConfig) RunInKubernetes ¶
func (bc *BeskarConfig) RunInKubernetes() bool
type BeskarConfigV1 ¶
type BeskarConfigV1 BeskarConfig
type BeskarYumAzureStorage ¶
type BeskarYumConfig ¶
type BeskarYumConfig struct { Version string `yaml:"version"` Addr string `yaml:"addr"` Registry BeskarYumRegistry `yaml:"registry"` Storage BeskarYumStorage `yaml:"storage"` Profiling bool `yaml:"profiling"` DataDir string `yaml:"datadir"` ConfigDirectory string `yaml:"-"` }
func ParseBeskarYumConfig ¶
func ParseBeskarYumConfig(dir string) (*BeskarYumConfig, error)
func (BeskarYumConfig) ListenIP ¶
func (bc BeskarYumConfig) ListenIP() (string, error)
func (BeskarYumConfig) ListenPort ¶
func (bc BeskarYumConfig) ListenPort() (string, error)
type BeskarYumConfigV1 ¶
type BeskarYumConfigV1 BeskarYumConfig
type BeskarYumFSStorage ¶
type BeskarYumFSStorage struct {
Directory string `yaml:"directory"`
}
type BeskarYumGCSStorage ¶
type BeskarYumRegistry ¶
type BeskarYumS3Storage ¶
type BeskarYumS3Storage struct { Endpoint string `yaml:"endpoint"` Bucket string `yaml:"bucket"` AccessKeyID string `yaml:"access-key-id"` SecretAccessKey string `yaml:"secret-access-key"` SessionToken string `yaml:"session-token"` Region string `yaml:"region"` DisableSSL bool `yaml:"disable-ssl"` }
type BeskarYumStorage ¶
type BeskarYumStorage struct { Driver string `yaml:"driver"` Prefix string `yaml:"prefix"` S3 BeskarYumS3Storage `yaml:"s3"` Filesystem BeskarYumFSStorage `yaml:"filesystem"` GCS BeskarYumGCSStorage `yaml:"gcs"` Azure BeskarYumAzureStorage `yaml:"azure"` }
type Plugin ¶
type Plugin struct { Prefix string `yaml:"prefix"` Mediatype string `yaml:"mediatype"` Backends []PluginBackend `yaml:"backends"` }
type PluginBackend ¶
type PluginBackend struct { URL string `yaml:"url"` MTLS PluginMTLS `yaml:"mtls"` }
type PluginMTLS ¶
Click to show internal directories.
Click to hide internal directories.