registries

package
v0.0.0-...-793517a Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URL string
	// AuthType is an optional way to declare where credentials for the registry are stored.
	//   Valid options: `secret`, `file`
	// AuthName is used to define the location of the credentials
	//   Valid options: `<secret-name>`, `<file_location>`
	AuthType   string `yaml:"auth_type"`
	AuthName   string `yaml:"auth_name"`
	User       string
	Pass       string
	Token      string
	Org        string
	Tag        string
	Type       string
	Name       string
	Runner     string
	Images     []string
	Namespaces []string
	// Fail will tell the registry that it is ok to fail the bootstrap if
	// just this registry has failed.
	Fail          bool     `yaml:"fail_on_error"`
	WhiteList     []string `yaml:"white_list"`
	BlackList     []string `yaml:"black_list"`
	SkipVerifyTLS bool     `yaml:"skip_verify_tls"`
}

Config - Configuration for the registry

func (Config) Validate

func (c Config) Validate() bool

Validate - makes sure the registry config is valid.

type Filter

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

Filter - will handle the filtering by using a black list and white list of regular expressions.

func (*Filter) Init

func (f *Filter) Init()

Init - Initializes Filter, precompiling regex

func (*Filter) Run

func (f *Filter) Run(totalList []string) ([]string, []string)

Run - Executes filter based on white and blacklists

type Registry

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

Registry - manages an adapter to retrieve and manage images to specs.

func NewCustomRegistry

func NewCustomRegistry(configuration Config, adapter adapters.Adapter, asbNamespace string) (Registry, error)

NewCustomRegistry - Create a new registry from the registry config.

func NewRegistry

func NewRegistry(configuration Config, asbNamespace string) (Registry, error)

NewRegistry - Create a new registry from the registry config.

func (Registry) Fail

func (r Registry) Fail(err error) bool

Fail - will determine if the registry should cause a failure.

func (Registry) LoadSpecs

func (r Registry) LoadSpecs() ([]*bundle.Spec, int, error)

LoadSpecs - Load the specs for the registry.

func (Registry) RegistryName

func (r Registry) RegistryName() string

RegistryName - retrieve the registry name to allow namespacing.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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