A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pkg.go.dev/github.com/moby/moby/api/types/registry below:

registry package - github.com/moby/moby/api/types/registry - Go Packages

AuthHeader is the name of the header used to send encoded registry authorization credentials for registry operations (push/pull).

This section is empty.

EncodeAuthConfig serializes the auth configuration as a base64url encoded (RFC4648, section 5) JSON string for sending through the X-Registry-Auth header.

type AuthConfig struct {
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
	Auth     string `json:"auth,omitempty"`

	
	
	
	Email string `json:"email,omitempty"`

	ServerAddress string `json:"serveraddress,omitempty"`

	
	
	IdentityToken string `json:"identitytoken,omitempty"`

	
	RegistryToken string `json:"registrytoken,omitempty"`
}

AuthConfig contains authorization information for connecting to a Registry.

DecodeAuthConfig decodes base64url encoded (RFC4648, section 5) JSON authentication information as sent through the X-Registry-Auth header.

This function always returns an AuthConfig, even if an error occurs. It is up to the caller to decide if authentication is required, and if the error can be ignored.

func DecodeAuthConfigBody deprecated

DecodeAuthConfigBody decodes authentication information as sent as JSON in the body of a request. This function is to provide backward compatibility with old clients and API versions. Current clients and API versions expect authentication to be provided through the X-Registry-Auth header.

Like DecodeAuthConfig, this function always returns an AuthConfig, even if an error occurs. It is up to the caller to decide if authentication is required, and if the error can be ignored.

Deprecated: this function is no longer used and will be removed in the next release.

type AuthenticateOKBody ΒΆ
type AuthenticateOKBody struct {

	
	
	IdentityToken string `json:"IdentityToken"`

	
	
	Status string `json:"Status"`
}

AuthenticateOKBody authenticate o k body swagger:model AuthenticateOKBody

DistributionInspect describes the result obtained from contacting the registry to retrieve image metadata

IndexInfo contains information about a registry

RepositoryInfo Examples:

{
  "Index" : {
    "Name" : "docker.io",
    "Mirrors" : ["https://registry-2.docker.io/v1/", "https://registry-3.docker.io/v1/"],
    "Secure" : true,
    "Official" : true,
  },
  "RemoteName" : "library/debian",
  "LocalName" : "debian",
  "CanonicalName" : "docker.io/debian"
  "Official" : true,
}

{
  "Index" : {
    "Name" : "127.0.0.1:5000",
    "Mirrors" : [],
    "Secure" : false,
    "Official" : false,
  },
  "RemoteName" : "user/repo",
  "LocalName" : "127.0.0.1:5000/user/repo",
  "CanonicalName" : "127.0.0.1:5000/user/repo",
  "Official" : false,
}

NetIPNet is the net.IPNet type, which can be marshalled and unmarshalled to JSON

MarshalJSON returns the JSON representation of the IPNet

String returns the CIDR notation of ipnet

UnmarshalJSON sets the IPNet from a byte array of JSON

RequestAuthConfig is a function interface that clients can supply to retry operations after getting an authorization error.

The function must return the AuthHeader value (AuthConfig), encoded in base64url format (RFC4648, section 5), which can be decoded by DecodeAuthConfig.

It must return an error if the privilege request fails.

SearchOptions holds parameters to search images with.

type SearchResult struct {
	
	StarCount int `json:"star_count"`
	
	IsOfficial bool `json:"is_official"`
	
	Name string `json:"name"`
	
	
	
	IsAutomated bool `json:"is_automated"`
	
	Description string `json:"description"`
}

SearchResult describes a search result returned from a registry

type SearchResults struct {
	
	Query string `json:"query"`
	
	NumResults int `json:"num_results"`
	
	Results []SearchResult `json:"results"`
}

SearchResults lists a collection search results returned from a registry

type ServiceConfig struct {
	InsecureRegistryCIDRs []*NetIPNet           `json:"InsecureRegistryCIDRs"`
	IndexConfigs          map[string]*IndexInfo `json:"IndexConfigs"`
	Mirrors               []string

	ExtraFields map[string]any `json:"-"`
}

ServiceConfig stores daemon registry services configuration.

MarshalJSON implements a custom marshaler to include legacy fields in API responses.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4