Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIOpts ¶
func (*APIOpts) UnmarshalYAML ¶
type Config ¶
type Config struct { Registries []*RegistryOpts `yaml:"registries"` WebhookListener WebhookListenerOpts `yaml:"webhook-listener"` PubSubListener PubSubListenerOpts `yaml:"pubsub-listener"` Indexer IndexerOpts `yaml:"indexer"` API APIOpts `yaml:"api"` }
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig creates a default configuration with sane defaults
func (*Config) UnmarshalYAML ¶
type Credentials ¶
type IndexerOpts ¶
type IndexerOpts struct { QueueLength uint64 `yaml:"queue-length"` StateFile string `yaml:"state-file"` IndexOnStartup bool `yaml:"index-on-startup"` }
func (*IndexerOpts) GetStateStorage ¶
func (i *IndexerOpts) GetStateStorage(ctx context.Context) (index.StateStorage, error)
func (*IndexerOpts) UnmarshalYAML ¶
func (i *IndexerOpts) UnmarshalYAML(value *yaml.Node) error
type PubSubListenerOpts ¶
func (*PubSubListenerOpts) Enabled ¶
func (p *PubSubListenerOpts) Enabled() bool
func (*PubSubListenerOpts) UnmarshalYAML ¶
func (p *PubSubListenerOpts) UnmarshalYAML(value *yaml.Node) error
type RegistryOpts ¶
type RegistryOpts struct { BaseURL *url.URL Prefixes []string Credentials *Credentials }
func (*RegistryOpts) GetCredentialStore ¶
func (c *RegistryOpts) GetCredentialStore(context context.Context) (docker_auth.CredentialStore, error)
func (*RegistryOpts) MarshalYAML ¶
func (r *RegistryOpts) MarshalYAML() (interface{}, error)
func (*RegistryOpts) UnmarshalYAML ¶
func (c *RegistryOpts) UnmarshalYAML(value *yaml.Node) error
type WebhookListenerOpts ¶
func (*WebhookListenerOpts) Enabled ¶
func (w *WebhookListenerOpts) Enabled() bool
func (*WebhookListenerOpts) UnmarshalYAML ¶
func (w *WebhookListenerOpts) UnmarshalYAML(value *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.