Documentation ¶
Index ¶
Constants ¶
View Source
const (
// UserAgent sets the header on http requests
UserAgent = "regclient/regctl"
)
Variables ¶
View Source
var ( // ErrCredsNotFound returned when creds needed and cannot be found ErrCredsNotFound = errors.New("auth creds not found") // ErrInvalidInput indicates a required field is invalid ErrInvalidInput = errors.New("invalid input") // ErrMissingInput indicates a required field is missing ErrMissingInput = errors.New("required input missing") // ErrNotFound isn't there, search for your value elsewhere ErrNotFound = errors.New("not found") // ErrNotImplemented returned when method has not been implemented yet // TODO: Delete when all methods are implemented ErrNotImplemented = errors.New("not implemented") // ErrUnsupportedConfigVersion happens when config file version is greater than this command supports ErrUnsupportedConfigVersion = errors.New("unsupported config version") )
Functions ¶
func ExportImage ¶
Types ¶
type Config ¶
type Config struct { Filename string `json:"-"` // filename that was loaded Version int `json:"version,omitempty"` // version the file in case the config file syntax changes in the future Hosts map[string]*config.Host `json:"hosts"` BlobLimit int64 `json:"blobLimit,omitempty"` IncDockerCert *bool `json:"incDockerCert,omitempty"` IncDockerCred *bool `json:"incDockerCred,omitempty"` }
Config struct contains contents loaded from / saved to a config file
Click to show internal directories.
Click to hide internal directories.