Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsTag ¶
ContainsTag determines whether a tag is found in a provided list of tags.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client works with OCI-compliant registries.
func NewClient ¶
func NewClient(options ...ClientOption) (*Client, error)
NewClient returns a new registry client with config.
type ClientOption ¶
type ClientOption func(*Client)
ClientOption allows specifying various settings configurable by the user for overriding the defaults used when creating a new default client.
func ClientOptCredentialsFile ¶
func ClientOptCredentialsFile(credentialsFile string) ClientOption
ClientOptCredentialsFile returns a function that sets the credentialsFile setting on a client options set.
func ClientOptDebug ¶
func ClientOptDebug(debug bool) ClientOption
ClientOptDebug returns a function that sets the debug setting on client options set.
func ClientOptEnableCache ¶
func ClientOptEnableCache(enableCache bool) ClientOption
ClientOptEnableCache returns a function that sets the enableCache setting on a client options set.
func ClientOptResolver ¶
func ClientOptResolver(resolver remotes.Resolver) ClientOption
ClientOptEnableCache returns a function that sets the enableCache setting on a client options set.
func ClientOptWriter ¶
func ClientOptWriter(out io.Writer) ClientOption
ClientOptWriter returns a function that sets the writer setting on client options set.
type LoginOption ¶
type LoginOption func(*loginOperation)
LoginOption allows specifying various settings on login.
func LoginOptBasicAuth ¶
func LoginOptBasicAuth(username, password string) LoginOption
LoginOptBasicAuth returns a function that sets the username/password settings on login.
func LoginOptInsecure ¶
func LoginOptInsecure(insecure bool) LoginOption
LoginOptInsecure returns a function that sets the insecure setting on login.
type LogoutOption ¶
type LogoutOption func(*logoutOperation)
LogoutOption allows specifying various settings on logout.