lib

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APPLICATION_NAME = "docker-ls"
)

Variables

View Source
var DEFAULT_REGISTRY_URL url.URL

Functions

func ApplicationName added in v0.4.1

func ApplicationName() string

func Version

func Version() string

Types

type AutorizationError

type AutorizationError string

func (AutorizationError) Error

func (e AutorizationError) Error() string

type Config

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

func NewConfig

func NewConfig() Config

func (*Config) AllowInsecure

func (c *Config) AllowInsecure() bool

func (*Config) BindToFlags

func (c *Config) BindToFlags(flags *flag.FlagSet)

func (*Config) Credentials

func (c *Config) Credentials() auth.RegistryCredentials

func (*Config) LoadCredentialsFromDockerConfig added in v0.4.0

func (c *Config) LoadCredentialsFromDockerConfig()

func (*Config) MaxConcurrentRequests

func (c *Config) MaxConcurrentRequests() uint

func (*Config) PageSize added in v0.3.0

func (c *Config) PageSize() uint

func (*Config) RegistryUrl added in v0.3.0

func (c *Config) RegistryUrl() *url.URL

func (*Config) SetAllowInsecure

func (c *Config) SetAllowInsecure(allowInsecure bool)

func (*Config) SetCredentials

func (c *Config) SetCredentials(credentials RegistryCredentials)

func (*Config) SetMaxConcurrentRequests

func (c *Config) SetMaxConcurrentRequests(maxRequests uint)

func (*Config) SetPagesize

func (c *Config) SetPagesize(pageSize uint)

func (*Config) SetUrl

func (c *Config) SetUrl(url url.URL)

func (*Config) SetUseBasicAuth

func (c *Config) SetUseBasicAuth(basicAuth bool)

func (*Config) SetUserAgent added in v0.4.1

func (c *Config) SetUserAgent(userAgent string)

func (*Config) UseBasicAuth added in v0.3.0

func (c *Config) UseBasicAuth() bool

func (*Config) UserAgent added in v0.4.1

func (c *Config) UserAgent() string

func (*Config) Validate

func (c *Config) Validate() error

type InvalidRequestError

type InvalidRequestError string

func (InvalidRequestError) Error

func (e InvalidRequestError) Error() string

type InvalidStatusCodeError

type InvalidStatusCodeError string

func (InvalidStatusCodeError) Error

func (e InvalidStatusCodeError) Error() string

type LayerDetails

type LayerDetails interface {
	ContentDigest() string
}

type MalformedResponseError

type MalformedResponseError string

func (MalformedResponseError) Error

func (e MalformedResponseError) Error() string

type NotFoundError

type NotFoundError string

func (NotFoundError) Error

func (e NotFoundError) Error() string

type NotImplementedByRemoteError

type NotImplementedByRemoteError string

func (NotImplementedByRemoteError) Error

type Refspec

type Refspec interface {
	flag.Value

	Repository() string
	Reference() string
}

func EmptyRefspec

func EmptyRefspec() Refspec

func NewRefspec

func NewRefspec(repository, reference string) Refspec

type RegistryApi

type RegistryApi interface {
	ListRepositories() RepositoryListResponse
	ListTags(repositoryName string) TagListResponse
	GetTagDetails(ref Refspec, manifestVersion uint) (TagDetails, error)
	DeleteTag(ref Refspec) error
	GetStatistics() connector.Statistics
}

func NewRegistryApi

func NewRegistryApi(cfg Config) (api RegistryApi, err error)

type RegistryCredentials

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

func NewRegistryCredentials

func NewRegistryCredentials(user, password string) RegistryCredentials

func (*RegistryCredentials) BindToFlags

func (c *RegistryCredentials) BindToFlags(flags *flag.FlagSet)

func (*RegistryCredentials) IdentityToken added in v0.5.0

func (r *RegistryCredentials) IdentityToken() string

func (*RegistryCredentials) IsBlank added in v0.4.0

func (r *RegistryCredentials) IsBlank() bool

func (*RegistryCredentials) LoadCredentialsFromDockerConfig added in v0.4.0

func (r *RegistryCredentials) LoadCredentialsFromDockerConfig(url url.URL)

func (*RegistryCredentials) Password

func (r *RegistryCredentials) Password() string

func (*RegistryCredentials) SetPassword added in v0.2.0

func (r *RegistryCredentials) SetPassword(password string)

func (*RegistryCredentials) SetUser added in v0.3.0

func (r *RegistryCredentials) SetUser(user string)

func (*RegistryCredentials) User

func (r *RegistryCredentials) User() string

type Repository

type Repository interface {
	Name() string
}

type RepositoryListResponse

type RepositoryListResponse interface {
	Repositories() <-chan Repository
	LastError() error
}

type Tag

type Tag interface {
	Name() string
	RepositoryName() string
}

type TagDetails

type TagDetails interface {
	RawManifest() interface{}
	ContentDigest() string
	RepositoryName() string
	TagName() string
	Layers() []LayerDetails
}

type TagListResponse

type TagListResponse interface {
	Tags() <-chan Tag
	LastError() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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