distribution

package
v0.0.0-...-f9bae2f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DistributionInspectInternalServerErrorCode int = 500

DistributionInspectInternalServerErrorCode is the HTTP code returned for type DistributionInspectInternalServerError

View Source
const DistributionInspectOKCode int = 200

DistributionInspectOKCode is the HTTP code returned for type DistributionInspectOK

View Source
const DistributionInspectUnauthorizedCode int = 401

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

ContextValidate validates this distribution inspect distribution inspect o k body descriptor based on context it is used

func (*DistributionInspectDistributionInspectOKBodyDescriptor) MarshalBinary

MarshalBinary interface implementation

func (*DistributionInspectDistributionInspectOKBodyDescriptor) UnmarshalBinary

UnmarshalBinary interface implementation

func (*DistributionInspectDistributionInspectOKBodyDescriptor) Validate

Validate validates this distribution inspect distribution inspect o k body descriptor

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

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

SetPayload sets the payload to the distribution inspect internal server error response

func (*DistributionInspectInternalServerError) WithPayload

WithPayload adds the payload to the distribution inspect internal server error response

func (*DistributionInspectInternalServerError) WriteResponse

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

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

func (*DistributionInspectOKBody) Validate

func (o *DistributionInspectOKBody) Validate(formats strfmt.Registry) error

Validate validates this distribution inspect o k body

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

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

func (*DistributionInspectPlatformsItems0) Validate

Validate validates this distribution inspect platforms items0

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

func (o *DistributionInspectURL) Must(u *url.URL, err error) *url.URL

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

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 {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL