config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RegUsername        string
	RegPassword        string
	ServiceAccountPath string
	RegistryHost       string
	RegistryType       string
	SkipListPath       string
	RepoListPath       string
	DryRun             bool
	ExcludeFilters     []string
	IncludeFilters     []string
	AllowInsecure      bool
	JWExpirySecond     uint
	WorkerCount        int
	SkipErrDelete      bool
	// contains filtered or unexported fields
}

func (Config) ExcludeEngine

func (c Config) ExcludeEngine() fl.IFilterEngine

func (Config) HTTPClient

func (c Config) HTTPClient() http.IHttpClient

func (Config) HTTPWorkerCount added in v0.2.0

func (c Config) HTTPWorkerCount() int

func (Config) Host

func (c Config) Host() string

func (Config) ImageRegistry

func (c Config) ImageRegistry() reg.ImageRegistry

ImageRegistry get related image registry based on known host if not mentioned directly for image host name

func (Config) IncludeEngine

func (c Config) IncludeEngine() fl.IFilterEngine

func (*Config) Init

func (c *Config) Init() (err error)

Init is validating inputs and setups some dependencies for the application to run

func (Config) IsDryRun

func (c Config) IsDryRun() bool

func (Config) Password

func (c Config) Password() string

func (Config) RepositoryList added in v0.2.0

func (c Config) RepositoryList() []reg.Repository

func (Config) SkipDeletionErr added in v0.2.0

func (c Config) SkipDeletionErr() bool

func (Config) SkipList

func (c Config) SkipList() []string

func (Config) Username

func (c Config) Username() string

type IConfig

type IConfig interface {
	Username() string
	Password() string
	SkipList() []string
	IsDryRun() bool
	Host() string
	ImageRegistry() reg.ImageRegistry
	ExcludeEngine() fl.IFilterEngine
	IncludeEngine() fl.IFilterEngine
	HTTPClient() http.IHttpClient
	HTTPWorkerCount() int
	RepositoryList() []reg.Repository
	SkipDeletionErr() bool
	Init() error
}

Directories

Path Synopsis
Package mock_config is a generated GoMock package.
Package mock_config is a generated GoMock package.

Jump to

Keyboard shortcuts

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