Documentation ¶
Index ¶
- Constants
- type DistributionInspect
- type DistributionInspectDistributionInspectOKBodyDescriptor
- func (o *DistributionInspectDistributionInspectOKBodyDescriptor) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *DistributionInspectDistributionInspectOKBodyDescriptor) MarshalBinary() ([]byte, error)
- func (o *DistributionInspectDistributionInspectOKBodyDescriptor) UnmarshalBinary(b []byte) error
- func (o *DistributionInspectDistributionInspectOKBodyDescriptor) Validate(formats strfmt.Registry) error
- type DistributionInspectHandler
- type DistributionInspectHandlerFunc
- type DistributionInspectInternalServerError
- func (o *DistributionInspectInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *DistributionInspectInternalServerError) WithPayload(payload *models.ErrorResponse) *DistributionInspectInternalServerError
- func (o *DistributionInspectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DistributionInspectOK
- type DistributionInspectOKBody
- func (o *DistributionInspectOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *DistributionInspectOKBody) MarshalBinary() ([]byte, error)
- func (o *DistributionInspectOKBody) UnmarshalBinary(b []byte) error
- func (o *DistributionInspectOKBody) Validate(formats strfmt.Registry) error
- type DistributionInspectParams
- type DistributionInspectPlatformsItems0
- func (o *DistributionInspectPlatformsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *DistributionInspectPlatformsItems0) MarshalBinary() ([]byte, error)
- func (o *DistributionInspectPlatformsItems0) UnmarshalBinary(b []byte) error
- func (o *DistributionInspectPlatformsItems0) Validate(formats strfmt.Registry) error
- type DistributionInspectURL
- func (o *DistributionInspectURL) Build() (*url.URL, error)
- func (o *DistributionInspectURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DistributionInspectURL) Must(u *url.URL, err error) *url.URL
- func (o *DistributionInspectURL) SetBasePath(bp string)
- func (o *DistributionInspectURL) String() string
- func (o *DistributionInspectURL) StringFull(scheme, host string) string
- func (o *DistributionInspectURL) WithBasePath(bp string) *DistributionInspectURL
- type DistributionInspectUnauthorized
- func (o *DistributionInspectUnauthorized) SetPayload(payload *models.ErrorResponse)
- func (o *DistributionInspectUnauthorized) WithPayload(payload *models.ErrorResponse) *DistributionInspectUnauthorized
- func (o *DistributionInspectUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const DistributionInspectInternalServerErrorCode int = 500
DistributionInspectInternalServerErrorCode is the HTTP code returned for type DistributionInspectInternalServerError
const DistributionInspectOKCode int = 200
DistributionInspectOKCode is the HTTP code returned for type DistributionInspectOK
DistributionInspectUnauthorizedCode is the HTTP code returned for type DistributionInspectUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DistributionInspect ¶
type DistributionInspect struct { Context *middleware.Context Handler DistributionInspectHandler }
DistributionInspect swagger:route GET /distribution/{name}/json Distribution distributionInspect
Get image information from the registry ¶
Return image digest and platform information by contacting the registry.
func NewDistributionInspect ¶
func NewDistributionInspect(ctx *middleware.Context, handler DistributionInspectHandler) *DistributionInspect
NewDistributionInspect creates a new http.Handler for the distribution inspect operation
func (*DistributionInspect) ServeHTTP ¶
func (o *DistributionInspect) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DistributionInspectDistributionInspectOKBodyDescriptor ¶
type DistributionInspectDistributionInspectOKBodyDescriptor struct { // digest Digest string `json:"Digest,omitempty"` // media type MediaType string `json:"MediaType,omitempty"` // size Size int64 `json:"Size,omitempty"` // u r ls URLs []string `json:"URLs"` }
DistributionInspectDistributionInspectOKBodyDescriptor A descriptor struct containing digest, media type, and size.
swagger:model DistributionInspectDistributionInspectOKBodyDescriptor
func (*DistributionInspectDistributionInspectOKBodyDescriptor) ContextValidate ¶
func (o *DistributionInspectDistributionInspectOKBodyDescriptor) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this distribution inspect distribution inspect o k body descriptor based on context it is used
func (*DistributionInspectDistributionInspectOKBodyDescriptor) MarshalBinary ¶
func (o *DistributionInspectDistributionInspectOKBodyDescriptor) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DistributionInspectDistributionInspectOKBodyDescriptor) UnmarshalBinary ¶
func (o *DistributionInspectDistributionInspectOKBodyDescriptor) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DistributionInspectHandler ¶
type DistributionInspectHandler interface {
Handle(DistributionInspectParams) middleware.Responder
}
DistributionInspectHandler interface for that can handle valid distribution inspect params
type DistributionInspectHandlerFunc ¶
type DistributionInspectHandlerFunc func(DistributionInspectParams) middleware.Responder
DistributionInspectHandlerFunc turns a function with the right signature into a distribution inspect handler
func (DistributionInspectHandlerFunc) Handle ¶
func (fn DistributionInspectHandlerFunc) Handle(params DistributionInspectParams) middleware.Responder
Handle executing the request and returning a response
type DistributionInspectInternalServerError ¶
type DistributionInspectInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
DistributionInspectInternalServerError Server error
swagger:response distributionInspectInternalServerError
func NewDistributionInspectInternalServerError ¶
func NewDistributionInspectInternalServerError() *DistributionInspectInternalServerError
NewDistributionInspectInternalServerError creates DistributionInspectInternalServerError with default headers values
func (*DistributionInspectInternalServerError) SetPayload ¶
func (o *DistributionInspectInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the distribution inspect internal server error response
func (*DistributionInspectInternalServerError) WithPayload ¶
func (o *DistributionInspectInternalServerError) WithPayload(payload *models.ErrorResponse) *DistributionInspectInternalServerError
WithPayload adds the payload to the distribution inspect internal server error response
func (*DistributionInspectInternalServerError) WriteResponse ¶
func (o *DistributionInspectInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DistributionInspectOK ¶
type DistributionInspectOK struct { /* In: Body */ Payload *DistributionInspectOKBody `json:"body,omitempty"` }
DistributionInspectOK descriptor and platform information
swagger:response distributionInspectOK
func NewDistributionInspectOK ¶
func NewDistributionInspectOK() *DistributionInspectOK
NewDistributionInspectOK creates DistributionInspectOK with default headers values
func (*DistributionInspectOK) SetPayload ¶
func (o *DistributionInspectOK) SetPayload(payload *DistributionInspectOKBody)
SetPayload sets the payload to the distribution inspect o k response
func (*DistributionInspectOK) WithPayload ¶
func (o *DistributionInspectOK) WithPayload(payload *DistributionInspectOKBody) *DistributionInspectOK
WithPayload adds the payload to the distribution inspect o k response
func (*DistributionInspectOK) WriteResponse ¶
func (o *DistributionInspectOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DistributionInspectOKBody ¶
type DistributionInspectOKBody struct { // descriptor // Required: true Descriptor *DistributionInspectDistributionInspectOKBodyDescriptor `json:"Descriptor"` // An array containing all platforms supported by the image. // // Required: true Platforms []*DistributionInspectPlatformsItems0 `json:"Platforms"` }
DistributionInspectOKBody DistributionInspectResponse
swagger:model DistributionInspectOKBody
func (*DistributionInspectOKBody) ContextValidate ¶
func (o *DistributionInspectOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this distribution inspect o k body based on the context it is used
func (*DistributionInspectOKBody) MarshalBinary ¶
func (o *DistributionInspectOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DistributionInspectOKBody) UnmarshalBinary ¶
func (o *DistributionInspectOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DistributionInspectParams ¶
type DistributionInspectParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Image name or id Required: true In: path */ Name string }
DistributionInspectParams contains all the bound params for the distribution inspect operation typically these are obtained from a http.Request
swagger:parameters DistributionInspect
func NewDistributionInspectParams ¶
func NewDistributionInspectParams() DistributionInspectParams
NewDistributionInspectParams creates a new DistributionInspectParams object
There are no default values defined in the spec.
func (*DistributionInspectParams) BindRequest ¶
func (o *DistributionInspectParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewDistributionInspectParams() beforehand.
type DistributionInspectPlatformsItems0 ¶
type DistributionInspectPlatformsItems0 struct { // architecture Architecture string `json:"Architecture,omitempty"` // features Features []string `json:"Features"` // o s OS string `json:"OS,omitempty"` // o s features OSFeatures []string `json:"OSFeatures"` // o s version OSVersion string `json:"OSVersion,omitempty"` // variant Variant string `json:"Variant,omitempty"` }
DistributionInspectPlatformsItems0 distribution inspect platforms items0
swagger:model DistributionInspectPlatformsItems0
func (*DistributionInspectPlatformsItems0) ContextValidate ¶
func (o *DistributionInspectPlatformsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this distribution inspect platforms items0 based on context it is used
func (*DistributionInspectPlatformsItems0) MarshalBinary ¶
func (o *DistributionInspectPlatformsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DistributionInspectPlatformsItems0) UnmarshalBinary ¶
func (o *DistributionInspectPlatformsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DistributionInspectURL ¶
type DistributionInspectURL struct { Name string // contains filtered or unexported fields }
DistributionInspectURL generates an URL for the distribution inspect operation
func (*DistributionInspectURL) Build ¶
func (o *DistributionInspectURL) Build() (*url.URL, error)
Build a url path and query string
func (*DistributionInspectURL) BuildFull ¶
func (o *DistributionInspectURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DistributionInspectURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DistributionInspectURL) SetBasePath ¶
func (o *DistributionInspectURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DistributionInspectURL) String ¶
func (o *DistributionInspectURL) String() string
String returns the string representation of the path with query string
func (*DistributionInspectURL) StringFull ¶
func (o *DistributionInspectURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DistributionInspectURL) WithBasePath ¶
func (o *DistributionInspectURL) WithBasePath(bp string) *DistributionInspectURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type DistributionInspectUnauthorized ¶
type DistributionInspectUnauthorized struct { models.ErrorResponse `json:"body,omitempty"` }Payload *
DistributionInspectUnauthorized Failed authentication or no image found
swagger:response distributionInspectUnauthorized
func NewDistributionInspectUnauthorized ¶
func NewDistributionInspectUnauthorized() *DistributionInspectUnauthorized
NewDistributionInspectUnauthorized creates DistributionInspectUnauthorized with default headers values
func (*DistributionInspectUnauthorized) SetPayload ¶
func (o *DistributionInspectUnauthorized) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the distribution inspect unauthorized response
func (*DistributionInspectUnauthorized) WithPayload ¶
func (o *DistributionInspectUnauthorized) WithPayload(payload *models.ErrorResponse) *DistributionInspectUnauthorized
WithPayload adds the payload to the distribution inspect unauthorized response
func (*DistributionInspectUnauthorized) WriteResponse ¶
func (o *DistributionInspectUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client