package
0.18.0
Repository: https://github.com/appcelerator/amp.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AddTrustSigningFlags adds "signing" flags to the provided flagset.
AddTrustVerificationFlags adds content trust flags to the provided flagset.
ConfigureAuth returns an AuthConfig from the specified user, password and server.
CopyToFile writes the content of the reader to the specified file.
ElectAuthServer returns the default registry to use (by asking the daemon).
EncodeAuthToBase64 serializes the auth configuration as JSON base64 payload.
InitEventHandler initializes and returns an EventHandler.
IsTrusted returns true if content trust is enabled, either through the $DOCKER_CONTENT_TRUST environment variable, or through `--disabled-content-trust=false` on a command.
NewAPIClientFromFlags creates a new APIClient from command line flags.
NewDockerCli returns a DockerCli instance with IO output and error streams set by in, out and err.
NewInStream returns a new InStream object from a ReadCloser.
NewOutStream returns a new OutStream object from a Writer.
PrettyPrint outputs arbitrary data for human formatted output by uppercasing the first letter.
PromptForConfirmation requests and checks confirmation from user.
PruneFilters returns consolidated prune filters obtained from config.json and cli.
RegistryAuthenticationPrivilegedFunc returns a RequestPrivilegeFunc from the specified registry index info for the given command.
ResolveAuthConfig is like registry.ResolveAuthConfig, but if using the default index, it uses the default index name for the daemon's platform, not the client's platform.
RetrieveAuthTokenFromImage retrieves an encoded auth token given a complete image.
ShowHelp shows the command help.
UserAgent returns the user agent string used for making API requests.

# Structs

CommonStream is an input stream used by the DockerCli to read user input.
DockerCli is an instance the docker command line client.
InStream is an input stream used by the DockerCli to read user input.
OutStream is an output stream used by the DockerCli to write normal program output.
ServerInfo stores details about the supported features and platform of the server.

# Interfaces

Cli represents the docker command line client.
EventHandler is abstract interface for user to customize own handle functions of each type of events.
Streams is an interface which exposes the standard input and output streams.