proxy

package
v0.0.0-...-13fd1a8 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachRequest

type AttachRequest interface {
	CRIObject
	ContainerIdObject
}

AttachRequest wraps a CRI AttachRequest object

type AttachRequest_119

type AttachRequest_119 struct {
	// contains filtered or unexported fields
}

func (*AttachRequest_119) ContainerId

func (o *AttachRequest_119) ContainerId() string

func (*AttachRequest_119) SetContainerId

func (o *AttachRequest_119) SetContainerId(id string)

func (*AttachRequest_119) Unwrap

func (o *AttachRequest_119) Unwrap() interface{}

func (*AttachRequest_119) Wrap

func (o *AttachRequest_119) Wrap(v interface{})

type AttachResponse

type AttachResponse interface {
	CRIObject
	UrlObject
}

AttachResponse wraps a CRI AttachResponse object

type AttachResponse_119

type AttachResponse_119 struct {
	// contains filtered or unexported fields
}

func (*AttachResponse_119) SetUrl

func (o *AttachResponse_119) SetUrl(url string)

func (*AttachResponse_119) Unwrap

func (o *AttachResponse_119) Unwrap() interface{}

func (*AttachResponse_119) Url

func (o *AttachResponse_119) Url() string

func (*AttachResponse_119) Wrap

func (o *AttachResponse_119) Wrap(v interface{})

type CRI119

type CRI119 struct{}

CRI119 denotes the CRI version 1.10

func (*CRI119) ProbeRequest

func (c *CRI119) ProbeRequest() (interface{}, interface{})

func (*CRI119) ProtoPackage

func (c *CRI119) ProtoPackage() string

func (*CRI119) Register

func (c *CRI119) Register(server *grpc.Server)

func (*CRI119) WrapObject

func (c *CRI119) WrapObject(o interface{}) (CRIObject, CRIObject, error)

type CRIObject

type CRIObject interface {
	// Wrap sets the inner object to specified value.  If v is
	// nil, a new instance of the corresponding inner type is used
	// to initialize the inner object. Otherwise v must be a pointer
	// to a raw CRI object.
	Wrap(v interface{})
	// Unwrap returns the underlying raw CRI object.
	Unwrap() interface{}
}

CRIObject denotes a wrapped CRI object.

type CRIVersion

type CRIVersion interface {
	// Register registers the CRI version with a gRPC Server.
	Register(*grpc.Server)
	// ProbeRequest returns raw CRI request and response objects
	// that can be used to check the server availability and
	// compatibility with this CRI version.
	ProbeRequest() (interface{}, interface{})
	// WrapObject wraps a raw CRI object and returns the wrapped
	// source object, and, in case if the object is a Request,
	// also an empty Response object that matches it
	WrapObject(interface{}) (CRIObject, CRIObject, error)
	// ProtoPackage returns proto package used by the CRI version.
	ProtoPackage() string
}

CRI version denotes a version of CRI.

type Container

type Container interface {
	CRIObject
	IdObject
	PodSandboxIdObject
	ImageObject
	Copy() Container
}

Container wraps a CRI Container object

type ContainerIdObject

type ContainerIdObject interface {
	// ContainerId returns the container id of the object.
	ContainerId() string
	// SetContainerId returns the container id of the object.
	SetContainerId(string)
}

ContainerIdObject is a wrapped CRI object that contains a container id.

type ContainerStats

type ContainerStats interface {
	CRIObject
	IdObject
	Copy() ContainerStats
}

ContainerStats wraps a CRI ContainerStats object

type ContainerStatsRequest

type ContainerStatsRequest interface {
	CRIObject
	ContainerIdObject
}

ContainerStatsRequest wraps a CRI ContainerStatsRequest object

type ContainerStatsRequest_119

type ContainerStatsRequest_119 struct {
	// contains filtered or unexported fields
}

func (*ContainerStatsRequest_119) ContainerId

func (o *ContainerStatsRequest_119) ContainerId() string

func (*ContainerStatsRequest_119) SetContainerId

func (o *ContainerStatsRequest_119) SetContainerId(id string)

func (*ContainerStatsRequest_119) Unwrap

func (o *ContainerStatsRequest_119) Unwrap() interface{}

func (*ContainerStatsRequest_119) Wrap

func (o *ContainerStatsRequest_119) Wrap(v interface{})

type ContainerStatsResponse

type ContainerStatsResponse interface {
	CRIObject
	Stats() ContainerStats
}

ContainerStatsResponse wraps a CRI ContainerStatsResponse object

type ContainerStatsResponse_116

type ContainerStatsResponse_116 struct {
	// contains filtered or unexported fields
}

func (*ContainerStatsResponse_116) Stats

func (*ContainerStatsResponse_116) Unwrap

func (o *ContainerStatsResponse_116) Unwrap() interface{}

func (*ContainerStatsResponse_116) Wrap

func (o *ContainerStatsResponse_116) Wrap(v interface{})

type ContainerStats_119

type ContainerStats_119 struct {
	// contains filtered or unexported fields
}

func (*ContainerStats_119) Copy

func (*ContainerStats_119) Id

func (o *ContainerStats_119) Id() string

func (*ContainerStats_119) SetId

func (o *ContainerStats_119) SetId(id string)

func (*ContainerStats_119) Unwrap

func (o *ContainerStats_119) Unwrap() interface{}

func (*ContainerStats_119) Wrap

func (o *ContainerStats_119) Wrap(v interface{})

type ContainerStatus

type ContainerStatus interface {
	CRIObject
	IdObject
	ImageObject
	Copy() ContainerStatus
}

ContainerStatus wraps a CRI ContainerStatus object

type ContainerStatusRequest

type ContainerStatusRequest interface {
	CRIObject
	ContainerIdObject
}

ContainerStatusRequest wraps a CRI ContainerStatusRequest object

type ContainerStatusRequest_119

type ContainerStatusRequest_119 struct {
	// contains filtered or unexported fields
}

func (*ContainerStatusRequest_119) ContainerId

func (o *ContainerStatusRequest_119) ContainerId() string

func (*ContainerStatusRequest_119) SetContainerId

func (o *ContainerStatusRequest_119) SetContainerId(id string)

func (*ContainerStatusRequest_119) Unwrap

func (o *ContainerStatusRequest_119) Unwrap() interface{}

func (*ContainerStatusRequest_119) Wrap

func (o *ContainerStatusRequest_119) Wrap(v interface{})

type ContainerStatusResponse

type ContainerStatusResponse interface {
	CRIObject
	Status() ContainerStatus
}

ContainerStatusResponse wraps a CRI ContainerStatusResponse object

type ContainerStatusResponse_119

type ContainerStatusResponse_119 struct {
	// contains filtered or unexported fields
}

func (*ContainerStatusResponse_119) Status

func (*ContainerStatusResponse_119) Unwrap

func (o *ContainerStatusResponse_119) Unwrap() interface{}

func (*ContainerStatusResponse_119) Wrap

func (o *ContainerStatusResponse_119) Wrap(v interface{})

type ContainerStatus_119

type ContainerStatus_119 struct {
	// contains filtered or unexported fields
}

func (*ContainerStatus_119) Copy

func (*ContainerStatus_119) Id

func (o *ContainerStatus_119) Id() string

func (*ContainerStatus_119) Image

func (o *ContainerStatus_119) Image() string

func (*ContainerStatus_119) SetId

func (o *ContainerStatus_119) SetId(id string)

func (*ContainerStatus_119) SetImage

func (o *ContainerStatus_119) SetImage(image string)

func (*ContainerStatus_119) Unwrap

func (o *ContainerStatus_119) Unwrap() interface{}

func (*ContainerStatus_119) Wrap

func (o *ContainerStatus_119) Wrap(v interface{})

type Container_119

type Container_119 struct {
	// contains filtered or unexported fields
}

func (*Container_119) Copy

func (o *Container_119) Copy() Container

func (*Container_119) Id

func (o *Container_119) Id() string

func (*Container_119) Image

func (o *Container_119) Image() string

func (*Container_119) PodSandboxId

func (o *Container_119) PodSandboxId() string

func (*Container_119) SetId

func (o *Container_119) SetId(id string)

func (*Container_119) SetImage

func (o *Container_119) SetImage(image string)

func (*Container_119) SetPodSandboxId

func (o *Container_119) SetPodSandboxId(id string)

func (*Container_119) Unwrap

func (o *Container_119) Unwrap() interface{}

func (*Container_119) Wrap

func (o *Container_119) Wrap(v interface{})

type CreateContainerRequest

type CreateContainerRequest interface {
	CRIObject
	PodSandboxIdObject
	ImageObject
}

CreateContainerRequest wraps a CRI CreateContainerRequest object

type CreateContainerRequest_119

type CreateContainerRequest_119 struct {
	// contains filtered or unexported fields
}

func (*CreateContainerRequest_119) Image

func (*CreateContainerRequest_119) PodSandboxId

func (o *CreateContainerRequest_119) PodSandboxId() string

func (*CreateContainerRequest_119) SetImage

func (o *CreateContainerRequest_119) SetImage(image string)

func (*CreateContainerRequest_119) SetPodSandboxId

func (o *CreateContainerRequest_119) SetPodSandboxId(id string)

func (*CreateContainerRequest_119) Unwrap

func (o *CreateContainerRequest_119) Unwrap() interface{}

func (*CreateContainerRequest_119) Wrap

func (o *CreateContainerRequest_119) Wrap(v interface{})

type CreateContainerResponse

type CreateContainerResponse interface {
	CRIObject
	ContainerIdObject
}

CreateContainerResponse wraps a CRI CreateContainerResponse object

type CreateContainerResponse_119

type CreateContainerResponse_119 struct {
	// contains filtered or unexported fields
}

func (*CreateContainerResponse_119) ContainerId

func (o *CreateContainerResponse_119) ContainerId() string

func (*CreateContainerResponse_119) SetContainerId

func (o *CreateContainerResponse_119) SetContainerId(id string)

func (*CreateContainerResponse_119) Unwrap

func (o *CreateContainerResponse_119) Unwrap() interface{}

func (*CreateContainerResponse_119) Wrap

func (o *CreateContainerResponse_119) Wrap(v interface{})

type Downgradable

type Downgradable interface {
	// Downgraded returns the underlying object converted to an
	// older CRI version as a raw CRI object.
	Downgrade() (interface{}, error)
}

Downgradable denotes a CRI object that can be downgraded to an older CRI version.

type ExecRequest

type ExecRequest interface {
	CRIObject
	ContainerIdObject
}

ExecRequest wraps a CRI ExecRequest object

type ExecRequest_119

type ExecRequest_119 struct {
	// contains filtered or unexported fields
}

func (*ExecRequest_119) ContainerId

func (o *ExecRequest_119) ContainerId() string

func (*ExecRequest_119) SetContainerId

func (o *ExecRequest_119) SetContainerId(id string)

func (*ExecRequest_119) Unwrap

func (o *ExecRequest_119) Unwrap() interface{}

func (*ExecRequest_119) Wrap

func (o *ExecRequest_119) Wrap(v interface{})

type ExecResponse

type ExecResponse interface {
	CRIObject
	UrlObject
}

ExecResponse wraps a CRI ExecResponse object

type ExecResponse_119

type ExecResponse_119 struct {
	// contains filtered or unexported fields
}

func (*ExecResponse_119) SetUrl

func (o *ExecResponse_119) SetUrl(url string)

func (*ExecResponse_119) Unwrap

func (o *ExecResponse_119) Unwrap() interface{}

func (*ExecResponse_119) Url

func (o *ExecResponse_119) Url() string

func (*ExecResponse_119) Wrap

func (o *ExecResponse_119) Wrap(v interface{})

type ExecSyncRequest

type ExecSyncRequest interface {
	CRIObject
	ContainerIdObject
}

ExecSyncRequest wraps a CRI ExecSyncRequest object

type ExecSyncRequest_119

type ExecSyncRequest_119 struct {
	// contains filtered or unexported fields
}

func (*ExecSyncRequest_119) ContainerId

func (o *ExecSyncRequest_119) ContainerId() string

func (*ExecSyncRequest_119) SetContainerId

func (o *ExecSyncRequest_119) SetContainerId(id string)

func (*ExecSyncRequest_119) Unwrap

func (o *ExecSyncRequest_119) Unwrap() interface{}

func (*ExecSyncRequest_119) Wrap

func (o *ExecSyncRequest_119) Wrap(v interface{})

type ExecSyncResponse

type ExecSyncResponse interface {
	CRIObject
}

ExecSyncResponse wraps a CRI ExecSyncResponse object

type ExecSyncResponse_119

type ExecSyncResponse_119 struct {
	// contains filtered or unexported fields
}

func (*ExecSyncResponse_119) Unwrap

func (o *ExecSyncResponse_119) Unwrap() interface{}

func (*ExecSyncResponse_119) Wrap

func (o *ExecSyncResponse_119) Wrap(v interface{})

type FilesystemUsage

type FilesystemUsage interface {
	CRIObject
}

FilesystemUsage wraps a CRI FilesystemUsage object

type FilesystemUsage_119

type FilesystemUsage_119 struct {
	// contains filtered or unexported fields
}

func (*FilesystemUsage_119) Unwrap

func (o *FilesystemUsage_119) Unwrap() interface{}

func (*FilesystemUsage_119) Wrap

func (o *FilesystemUsage_119) Wrap(v interface{})

type IdFilterObject

type IdFilterObject interface {
	// IdFilter returns the id used by the filter.
	IdFilter() string
	// SetIdFilter sets the id used by the filter.
	SetIdFilter(string)
}

IdFilterObject is a wrapped CRI object that denotes a filter that uses an id.

type IdObject

type IdObject interface {
	// Id returns the id of the object.
	Id() string
	// SetId sets the id of the object.
	SetId(string)
}

IdObject is a wrapped CRI object that has an id.

type Image

type Image interface {
	CRIObject
	IdObject
	Copy() Image
	RepoTags() []string
	SetRepoTags([]string)
	RepoDigests() []string
	SetRepoDigests([]string)
}

Image wraps a CRI Image object

type ImageFilterObject

type ImageFilterObject interface {
	// ImageFilter returns the image reference that's used by the filter.
	ImageFilter() string
	// ImageFilter sets the image reference that's used by the filter.
	SetImageFilter(string)
}

ImageFilterObject is a wrapped CRI object that denotes a filter that uses an image reference.

type ImageFsInfoRequest

type ImageFsInfoRequest interface {
	CRIObject
}

ImageFsInfoRequest wraps a CRI ImageFsInfoRequest object

type ImageFsInfoRequest_119

type ImageFsInfoRequest_119 struct {
	// contains filtered or unexported fields
}

func (*ImageFsInfoRequest_119) Unwrap

func (o *ImageFsInfoRequest_119) Unwrap() interface{}

func (*ImageFsInfoRequest_119) Wrap

func (o *ImageFsInfoRequest_119) Wrap(v interface{})

type ImageFsInfoResponse

type ImageFsInfoResponse interface {
	CRIObject
	ObjectList
}

ImageFsInfoResponse wraps a CRI ImageFsInfoResponse object

type ImageFsInfoResponse_119

type ImageFsInfoResponse_119 struct {
	// contains filtered or unexported fields
}

func (*ImageFsInfoResponse_119) Items

func (o *ImageFsInfoResponse_119) Items() []CRIObject

func (*ImageFsInfoResponse_119) SetItems

func (o *ImageFsInfoResponse_119) SetItems(items []CRIObject)

func (*ImageFsInfoResponse_119) Unwrap

func (o *ImageFsInfoResponse_119) Unwrap() interface{}

func (*ImageFsInfoResponse_119) Wrap

func (o *ImageFsInfoResponse_119) Wrap(v interface{})

type ImageObject

type ImageObject interface {
	// Image returns the image reference of the object.
	Image() string
	// SEtImage sets the image reference of the object.
	SetImage(string)
}

ImageObject is a wrapped CRI object that contains an image reference.

type ImageStatusRequest

type ImageStatusRequest interface {
	CRIObject
	ImageObject
}

ImageStatusRequest wraps a CRI ImageStatusRequest object

type ImageStatusRequest_119

type ImageStatusRequest_119 struct {
	// contains filtered or unexported fields
}

func (*ImageStatusRequest_119) Image

func (o *ImageStatusRequest_119) Image() string

func (*ImageStatusRequest_119) SetImage

func (o *ImageStatusRequest_119) SetImage(image string)

func (*ImageStatusRequest_119) Unwrap

func (o *ImageStatusRequest_119) Unwrap() interface{}

func (*ImageStatusRequest_119) Wrap

func (o *ImageStatusRequest_119) Wrap(v interface{})

type ImageStatusResponse

type ImageStatusResponse interface {
	CRIObject
	Image() Image
	SetImage(Image)
}

ImageStatusResponse wraps a CRI ImageStatusResponse object

type ImageStatusResponse_119

type ImageStatusResponse_119 struct {
	// contains filtered or unexported fields
}

func (*ImageStatusResponse_119) Image

func (o *ImageStatusResponse_119) Image() Image

func (*ImageStatusResponse_119) SetImage

func (o *ImageStatusResponse_119) SetImage(image Image)

func (*ImageStatusResponse_119) Unwrap

func (o *ImageStatusResponse_119) Unwrap() interface{}

func (*ImageStatusResponse_119) Wrap

func (o *ImageStatusResponse_119) Wrap(v interface{})

type Image_119

type Image_119 struct {
	// contains filtered or unexported fields
}

func (*Image_119) Copy

func (o *Image_119) Copy() Image

func (*Image_119) Id

func (o *Image_119) Id() string

func (*Image_119) RepoDigests

func (o *Image_119) RepoDigests() []string

func (*Image_119) RepoTags

func (o *Image_119) RepoTags() []string

func (*Image_119) SetId

func (o *Image_119) SetId(id string)

func (*Image_119) SetRepoDigests

func (o *Image_119) SetRepoDigests(repoDigests []string)

func (*Image_119) SetRepoTags

func (o *Image_119) SetRepoTags(repoTags []string)

func (*Image_119) Unwrap

func (o *Image_119) Unwrap() interface{}

func (*Image_119) Wrap

func (o *Image_119) Wrap(v interface{})

type Interceptor

type Interceptor interface {
	// Register registers CRI services for proxy's CRI version within the Server.
	Register(s *grpc.Server)
	// Match checks whether fullMethod can be handled by this proxy instance.
	Match(fullMethod string) bool
	// Intercept handles a CRI request. It's invoked from a gRPC interceptor.
	Intercept(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
	// Stop disconnects from all the CRI servers
	Stop()
}

Interceptor specifies an interceptor to be used by gRPC server.

type ListContainerStatsRequest

type ListContainerStatsRequest interface {
	CRIObject
	IdFilterObject
	PodSandboxIdFilterObject
}

ListContainerStatsRequest wraps a CRI ListContainerStatsRequest object

type ListContainerStatsRequest_119

type ListContainerStatsRequest_119 struct {
	// contains filtered or unexported fields
}

func (*ListContainerStatsRequest_119) IdFilter

func (o *ListContainerStatsRequest_119) IdFilter() string

func (*ListContainerStatsRequest_119) PodSandboxIdFilter

func (o *ListContainerStatsRequest_119) PodSandboxIdFilter() string

func (*ListContainerStatsRequest_119) SetIdFilter

func (o *ListContainerStatsRequest_119) SetIdFilter(id string)

func (*ListContainerStatsRequest_119) SetPodSandboxIdFilter

func (o *ListContainerStatsRequest_119) SetPodSandboxIdFilter(podSandboxId string)

func (*ListContainerStatsRequest_119) Unwrap

func (o *ListContainerStatsRequest_119) Unwrap() interface{}

func (*ListContainerStatsRequest_119) Wrap

func (o *ListContainerStatsRequest_119) Wrap(v interface{})

type ListContainerStatsResponse

type ListContainerStatsResponse interface {
	CRIObject
	ObjectList
}

ListContainerStatsResponse wraps a CRI ListContainerStatsResponse object

type ListContainerStatsResponse_119

type ListContainerStatsResponse_119 struct {
	// contains filtered or unexported fields
}

func (*ListContainerStatsResponse_119) Items

func (*ListContainerStatsResponse_119) SetItems

func (o *ListContainerStatsResponse_119) SetItems(items []CRIObject)

func (*ListContainerStatsResponse_119) Unwrap

func (o *ListContainerStatsResponse_119) Unwrap() interface{}

func (*ListContainerStatsResponse_119) Wrap

func (o *ListContainerStatsResponse_119) Wrap(v interface{})

type ListContainersRequest

type ListContainersRequest interface {
	CRIObject
	IdFilterObject
	PodSandboxIdFilterObject
}

ListContainersRequest wraps a CRI ListContainersRequest object

type ListContainersRequest_119

type ListContainersRequest_119 struct {
	// contains filtered or unexported fields
}

func (*ListContainersRequest_119) IdFilter

func (o *ListContainersRequest_119) IdFilter() string

func (*ListContainersRequest_119) PodSandboxIdFilter

func (o *ListContainersRequest_119) PodSandboxIdFilter() string

func (*ListContainersRequest_119) SetIdFilter

func (o *ListContainersRequest_119) SetIdFilter(id string)

func (*ListContainersRequest_119) SetPodSandboxIdFilter

func (o *ListContainersRequest_119) SetPodSandboxIdFilter(podSandboxId string)

func (*ListContainersRequest_119) Unwrap

func (o *ListContainersRequest_119) Unwrap() interface{}

func (*ListContainersRequest_119) Wrap

func (o *ListContainersRequest_119) Wrap(v interface{})

type ListContainersResponse

type ListContainersResponse interface {
	CRIObject
	ObjectList
}

ListContainersResponse wraps a CRI ListContainersResponse object

type ListContainersResponse_119

type ListContainersResponse_119 struct {
	// contains filtered or unexported fields
}

func (*ListContainersResponse_119) Items

func (*ListContainersResponse_119) SetItems

func (o *ListContainersResponse_119) SetItems(items []CRIObject)

func (*ListContainersResponse_119) Unwrap

func (o *ListContainersResponse_119) Unwrap() interface{}

func (*ListContainersResponse_119) Wrap

func (o *ListContainersResponse_119) Wrap(v interface{})

type ListImagesRequest

type ListImagesRequest interface {
	CRIObject
	ImageFilterObject
}

ListImagesRequest wraps a CRI ListImagesRequest object

type ListImagesRequest_119

type ListImagesRequest_119 struct {
	// contains filtered or unexported fields
}

func (*ListImagesRequest_119) ImageFilter

func (o *ListImagesRequest_119) ImageFilter() string

func (*ListImagesRequest_119) SetImageFilter

func (o *ListImagesRequest_119) SetImageFilter(image string)

func (*ListImagesRequest_119) Unwrap

func (o *ListImagesRequest_119) Unwrap() interface{}

func (*ListImagesRequest_119) Wrap

func (o *ListImagesRequest_119) Wrap(v interface{})

type ListImagesResponse

type ListImagesResponse interface {
	CRIObject
	ObjectList
}

ListImagesResponse wraps a CRI ListImagesResponse object

type ListImagesResponse_119

type ListImagesResponse_119 struct {
	// contains filtered or unexported fields
}

func (*ListImagesResponse_119) Items

func (o *ListImagesResponse_119) Items() []CRIObject

func (*ListImagesResponse_119) SetItems

func (o *ListImagesResponse_119) SetItems(items []CRIObject)

func (*ListImagesResponse_119) Unwrap

func (o *ListImagesResponse_119) Unwrap() interface{}

func (*ListImagesResponse_119) Wrap

func (o *ListImagesResponse_119) Wrap(v interface{})

type ListPodSandboxRequest

type ListPodSandboxRequest interface {
	CRIObject
	IdFilterObject
}

ListPodSandboxRequest wraps a CRI ListPodSandboxRequest object

type ListPodSandboxRequest_119

type ListPodSandboxRequest_119 struct {
	// contains filtered or unexported fields
}

func (*ListPodSandboxRequest_119) IdFilter

func (o *ListPodSandboxRequest_119) IdFilter() string

func (*ListPodSandboxRequest_119) SetIdFilter

func (o *ListPodSandboxRequest_119) SetIdFilter(id string)

func (*ListPodSandboxRequest_119) Unwrap

func (o *ListPodSandboxRequest_119) Unwrap() interface{}

func (*ListPodSandboxRequest_119) Wrap

func (o *ListPodSandboxRequest_119) Wrap(v interface{})

type ListPodSandboxResponse

type ListPodSandboxResponse interface {
	CRIObject
	ObjectList
}

ListPodSandboxResponse wraps a CRI ListPodSandboxResponse object

type ListPodSandboxResponse_119

type ListPodSandboxResponse_119 struct {
	// contains filtered or unexported fields
}

func (*ListPodSandboxResponse_119) Items

func (*ListPodSandboxResponse_119) SetItems

func (o *ListPodSandboxResponse_119) SetItems(items []CRIObject)

func (*ListPodSandboxResponse_119) Unwrap

func (o *ListPodSandboxResponse_119) Unwrap() interface{}

func (*ListPodSandboxResponse_119) Wrap

func (o *ListPodSandboxResponse_119) Wrap(v interface{})

type ObjectList

type ObjectList interface {
	// Items returns a slice of CRI objects that are contained in the list.
	Items() []CRIObject
	// SetItems sets the list of objects to the specified slice.
	SetItems([]CRIObject)
}

ObjectList denotes a wrapped CRI object that denotes a list of other CRI objects.

type PodSandbox

type PodSandbox interface {
	CRIObject
	IdObject
	Copy() PodSandbox
}

PodSandbox wraps a CRI PodSandbox object

type PodSandboxIdFilterObject

type PodSandboxIdFilterObject interface {
	// PodSandboxIdFilter returns the pod sadnbox id used by the filter.
	PodSandboxIdFilter() string
	// SetPodSandboxIdFilter sets the pod sadnbox id used by the filter.
	SetPodSandboxIdFilter(string)
}

IdFilterObject is a wrapped CRI object that denotes a filter that uses a pod sandbox id.

type PodSandboxIdObject

type PodSandboxIdObject interface {
	// PodSandboxId returns the pod sandbox id of the object.
	PodSandboxId() string
	// PodSandboxId set the pod sandbox id of the object.
	SetPodSandboxId(string)
}

PodSandboxIdObject is a wrapped CRI object that contains a pod sandbox id.

type PodSandboxStatus

type PodSandboxStatus interface {
	CRIObject
	IdObject
	Copy() PodSandboxStatus
}

PodSandboxStatus wraps a CRI PodSandboxStatus object

type PodSandboxStatusRequest

type PodSandboxStatusRequest interface {
	CRIObject
	PodSandboxIdObject
}

PodSandboxStatusRequest wraps a CRI PodSandboxStatusRequest object

type PodSandboxStatusRequest_119

type PodSandboxStatusRequest_119 struct {
	// contains filtered or unexported fields
}

func (*PodSandboxStatusRequest_119) PodSandboxId

func (o *PodSandboxStatusRequest_119) PodSandboxId() string

func (*PodSandboxStatusRequest_119) SetPodSandboxId

func (o *PodSandboxStatusRequest_119) SetPodSandboxId(id string)

func (*PodSandboxStatusRequest_119) Unwrap

func (o *PodSandboxStatusRequest_119) Unwrap() interface{}

func (*PodSandboxStatusRequest_119) Wrap

func (o *PodSandboxStatusRequest_119) Wrap(v interface{})

type PodSandboxStatusResponse

type PodSandboxStatusResponse interface {
	CRIObject
	Status() PodSandboxStatus
}

PodSandboxStatusResponse wraps a CRI PodSandboxStatusResponse object

type PodSandboxStatusResponse_119

type PodSandboxStatusResponse_119 struct {
	// contains filtered or unexported fields
}

func (*PodSandboxStatusResponse_119) Status

func (*PodSandboxStatusResponse_119) Unwrap

func (o *PodSandboxStatusResponse_119) Unwrap() interface{}

func (*PodSandboxStatusResponse_119) Wrap

func (o *PodSandboxStatusResponse_119) Wrap(v interface{})

type PodSandboxStatus_119

type PodSandboxStatus_119 struct {
	// contains filtered or unexported fields
}

func (*PodSandboxStatus_119) Copy

func (*PodSandboxStatus_119) Id

func (o *PodSandboxStatus_119) Id() string

func (*PodSandboxStatus_119) SetId

func (o *PodSandboxStatus_119) SetId(id string)

func (*PodSandboxStatus_119) Unwrap

func (o *PodSandboxStatus_119) Unwrap() interface{}

func (*PodSandboxStatus_119) Wrap

func (o *PodSandboxStatus_119) Wrap(v interface{})

type PodSandbox_119

type PodSandbox_119 struct {
	// contains filtered or unexported fields
}

func (*PodSandbox_119) Copy

func (o *PodSandbox_119) Copy() PodSandbox

func (*PodSandbox_119) Id

func (o *PodSandbox_119) Id() string

func (*PodSandbox_119) SetId

func (o *PodSandbox_119) SetId(id string)

func (*PodSandbox_119) Unwrap

func (o *PodSandbox_119) Unwrap() interface{}

func (*PodSandbox_119) Wrap

func (o *PodSandbox_119) Wrap(v interface{})

type PortForwardRequest

type PortForwardRequest interface {
	CRIObject
	PodSandboxIdObject
}

PortForwardRequest wraps a CRI PortForwardRequest object

type PortForwardRequest_119

type PortForwardRequest_119 struct {
	// contains filtered or unexported fields
}

func (*PortForwardRequest_119) PodSandboxId

func (o *PortForwardRequest_119) PodSandboxId() string

func (*PortForwardRequest_119) SetPodSandboxId

func (o *PortForwardRequest_119) SetPodSandboxId(podSandboxId string)

func (*PortForwardRequest_119) Unwrap

func (o *PortForwardRequest_119) Unwrap() interface{}

func (*PortForwardRequest_119) Wrap

func (o *PortForwardRequest_119) Wrap(v interface{})

type PortForwardResponse

type PortForwardResponse interface {
	CRIObject
	UrlObject
}

PortForwardResponse wraps a CRI PortForwardResponse object

type PortForwardResponse_119

type PortForwardResponse_119 struct {
	// contains filtered or unexported fields
}

func (*PortForwardResponse_119) SetUrl

func (o *PortForwardResponse_119) SetUrl(url string)

func (*PortForwardResponse_119) Unwrap

func (o *PortForwardResponse_119) Unwrap() interface{}

func (*PortForwardResponse_119) Url

func (*PortForwardResponse_119) Wrap

func (o *PortForwardResponse_119) Wrap(v interface{})

type PullImageRequest

type PullImageRequest interface {
	CRIObject
	ImageObject
}

PullImageRequest wraps a CRI PullImageRequest object

type PullImageRequest_119

type PullImageRequest_119 struct {
	// contains filtered or unexported fields
}

func (*PullImageRequest_119) Image

func (o *PullImageRequest_119) Image() string

func (*PullImageRequest_119) SetImage

func (o *PullImageRequest_119) SetImage(image string)

func (*PullImageRequest_119) Unwrap

func (o *PullImageRequest_119) Unwrap() interface{}

func (*PullImageRequest_119) Wrap

func (o *PullImageRequest_119) Wrap(v interface{})

type PullImageResponse

type PullImageResponse interface {
	CRIObject
	ImageObject
}

PullImageResponse wraps a CRI PullImageResponse object

type PullImageResponse_119

type PullImageResponse_119 struct {
	// contains filtered or unexported fields
}

func (*PullImageResponse_119) Image

func (o *PullImageResponse_119) Image() string

func (*PullImageResponse_119) SetImage

func (o *PullImageResponse_119) SetImage(image string)

func (*PullImageResponse_119) Unwrap

func (o *PullImageResponse_119) Unwrap() interface{}

func (*PullImageResponse_119) Wrap

func (o *PullImageResponse_119) Wrap(v interface{})

type RemoveContainerRequest

type RemoveContainerRequest interface {
	CRIObject
	ContainerIdObject
}

RemoveContainerRequest wraps a CRI RemoveContainerRequest object

type RemoveContainerRequest_119

type RemoveContainerRequest_119 struct {
	// contains filtered or unexported fields
}

func (*RemoveContainerRequest_119) ContainerId

func (o *RemoveContainerRequest_119) ContainerId() string

func (*RemoveContainerRequest_119) SetContainerId

func (o *RemoveContainerRequest_119) SetContainerId(id string)

func (*RemoveContainerRequest_119) Unwrap

func (o *RemoveContainerRequest_119) Unwrap() interface{}

func (*RemoveContainerRequest_119) Wrap

func (o *RemoveContainerRequest_119) Wrap(v interface{})

type RemoveContainerResponse

type RemoveContainerResponse interface {
	CRIObject
}

RemoveContainerResponse wraps a CRI RemoveContainerResponse object

type RemoveContainerResponse_119

type RemoveContainerResponse_119 struct {
	// contains filtered or unexported fields
}

func (*RemoveContainerResponse_119) Unwrap

func (o *RemoveContainerResponse_119) Unwrap() interface{}

func (*RemoveContainerResponse_119) Wrap

func (o *RemoveContainerResponse_119) Wrap(v interface{})

type RemoveImageRequest

type RemoveImageRequest interface {
	CRIObject
	ImageObject
}

RemoveImageRequest wraps a CRI RemoveImageRequest object

type RemoveImageRequest_119

type RemoveImageRequest_119 struct {
	// contains filtered or unexported fields
}

func (*RemoveImageRequest_119) Image

func (o *RemoveImageRequest_119) Image() string

func (*RemoveImageRequest_119) SetImage

func (o *RemoveImageRequest_119) SetImage(image string)

func (*RemoveImageRequest_119) Unwrap

func (o *RemoveImageRequest_119) Unwrap() interface{}

func (*RemoveImageRequest_119) Wrap

func (o *RemoveImageRequest_119) Wrap(v interface{})

type RemoveImageResponse

type RemoveImageResponse interface {
	CRIObject
}

RemoveImageResponse wraps a CRI RemoveImageResponse object

type RemoveImageResponse_119

type RemoveImageResponse_119 struct {
	// contains filtered or unexported fields
}

func (*RemoveImageResponse_119) Unwrap

func (o *RemoveImageResponse_119) Unwrap() interface{}

func (*RemoveImageResponse_119) Wrap

func (o *RemoveImageResponse_119) Wrap(v interface{})

type RemovePodSandboxRequest

type RemovePodSandboxRequest interface {
	CRIObject
	PodSandboxIdObject
}

RemovePodSandboxRequest wraps a CRI RemovePodSandboxRequest object

type RemovePodSandboxRequest_119

type RemovePodSandboxRequest_119 struct {
	// contains filtered or unexported fields
}

func (*RemovePodSandboxRequest_119) PodSandboxId

func (o *RemovePodSandboxRequest_119) PodSandboxId() string

func (*RemovePodSandboxRequest_119) SetPodSandboxId

func (o *RemovePodSandboxRequest_119) SetPodSandboxId(id string)

func (*RemovePodSandboxRequest_119) Unwrap

func (o *RemovePodSandboxRequest_119) Unwrap() interface{}

func (*RemovePodSandboxRequest_119) Wrap

func (o *RemovePodSandboxRequest_119) Wrap(v interface{})

type RemovePodSandboxResponse

type RemovePodSandboxResponse interface {
	CRIObject
}

RemovePodSandboxResponse wraps a CRI RemovePodSandboxResponse object

type RemovePodSandboxResponse_119

type RemovePodSandboxResponse_119 struct {
	// contains filtered or unexported fields
}

func (*RemovePodSandboxResponse_119) Unwrap

func (o *RemovePodSandboxResponse_119) Unwrap() interface{}

func (*RemovePodSandboxResponse_119) Wrap

func (o *RemovePodSandboxResponse_119) Wrap(v interface{})

type ReopenContainerLogRequest

type ReopenContainerLogRequest interface {
	CRIObject
	ContainerIdObject
}

ReopenContainerLogRequest wraps a CRI ReopenContainerLogRequest object

type ReopenContainerLogRequest_119

type ReopenContainerLogRequest_119 struct {
	// contains filtered or unexported fields
}

func (*ReopenContainerLogRequest_119) ContainerId

func (o *ReopenContainerLogRequest_119) ContainerId() string

func (*ReopenContainerLogRequest_119) SetContainerId

func (o *ReopenContainerLogRequest_119) SetContainerId(id string)

func (*ReopenContainerLogRequest_119) Unwrap

func (o *ReopenContainerLogRequest_119) Unwrap() interface{}

func (*ReopenContainerLogRequest_119) Wrap

func (o *ReopenContainerLogRequest_119) Wrap(v interface{})

type ReopenContainerLogResponse

type ReopenContainerLogResponse interface {
	CRIObject
}

ReopenContainerLogResponse wraps a CRI ReopenContainerLogResponse object

type ReopenContainerLogResponse_119

type ReopenContainerLogResponse_119 struct {
	// contains filtered or unexported fields
}

func (*ReopenContainerLogResponse_119) Unwrap

func (o *ReopenContainerLogResponse_119) Unwrap() interface{}

func (*ReopenContainerLogResponse_119) Wrap

func (o *ReopenContainerLogResponse_119) Wrap(v interface{})

type RunPodSandboxRequest

type RunPodSandboxRequest interface {
	CRIObject
	GetAnnotations() map[string]string
}

RunPodSandboxRequest wraps a CRI RunPodSandboxRequest object

type RunPodSandboxRequest_119

type RunPodSandboxRequest_119 struct {
	// contains filtered or unexported fields
}

func (*RunPodSandboxRequest_119) GetAnnotations

func (o *RunPodSandboxRequest_119) GetAnnotations() map[string]string

func (*RunPodSandboxRequest_119) Unwrap

func (o *RunPodSandboxRequest_119) Unwrap() interface{}

func (*RunPodSandboxRequest_119) Wrap

func (o *RunPodSandboxRequest_119) Wrap(v interface{})

type RunPodSandboxResponse

type RunPodSandboxResponse interface {
	CRIObject
	PodSandboxIdObject
}

RunPodSandboxResponse wraps a CRI RunPodSandboxResponse object

type RunPodSandboxResponse_119

type RunPodSandboxResponse_119 struct {
	// contains filtered or unexported fields
}

func (*RunPodSandboxResponse_119) PodSandboxId

func (o *RunPodSandboxResponse_119) PodSandboxId() string

func (*RunPodSandboxResponse_119) SetPodSandboxId

func (o *RunPodSandboxResponse_119) SetPodSandboxId(id string)

func (*RunPodSandboxResponse_119) Unwrap

func (o *RunPodSandboxResponse_119) Unwrap() interface{}

func (*RunPodSandboxResponse_119) Wrap

func (o *RunPodSandboxResponse_119) Wrap(v interface{})

type RuntimeProxy

type RuntimeProxy struct {
	// contains filtered or unexported fields
}

RuntimeProxy is a gRPC implementation of internalapi.RuntimeService.

func NewRuntimeProxy

func NewRuntimeProxy(criVersion CRIVersion, addrs []string, connectionTimout time.Duration, streamUrl *url.URL) (*RuntimeProxy, error)

NewRuntimeProxy creates a new internalapi.RuntimeService.

func (*RuntimeProxy) Intercept

func (r *RuntimeProxy) Intercept(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

Intercept implements Intercept method of the Interceptor interface.

func (*RuntimeProxy) Match

func (r *RuntimeProxy) Match(fullMethod string) bool

Match implements Match method of the Interceptor interface.

func (*RuntimeProxy) Register

func (r *RuntimeProxy) Register(s *grpc.Server)

Register implements Register method of the Interceptor interface.

func (*RuntimeProxy) Stop

func (r *RuntimeProxy) Stop()

Stop implements Stop method of the Interceptor interface.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server denotes a gRPC server.

func NewServer

func NewServer(interceptors []Interceptor, hook func()) *Server

NewServer makes a new gRPC server.

func (*Server) Serve

func (s *Server) Serve(addr string, readyCh chan struct{}) error

Serve makes the server listen on the specified addr. If readyCh is not nil, it'll be closed when the server is ready to accept connections.

func (*Server) Stop

func (s *Server) Stop()

Stop stops the server.

type StartContainerRequest

type StartContainerRequest interface {
	CRIObject
	ContainerIdObject
}

StartContainerRequest wraps a CRI StartContainerRequest object

type StartContainerRequest_119

type StartContainerRequest_119 struct {
	// contains filtered or unexported fields
}

func (*StartContainerRequest_119) ContainerId

func (o *StartContainerRequest_119) ContainerId() string

func (*StartContainerRequest_119) SetContainerId

func (o *StartContainerRequest_119) SetContainerId(id string)

func (*StartContainerRequest_119) Unwrap

func (o *StartContainerRequest_119) Unwrap() interface{}

func (*StartContainerRequest_119) Wrap

func (o *StartContainerRequest_119) Wrap(v interface{})

type StartContainerResponse

type StartContainerResponse interface {
	CRIObject
}

StartContainerResponse wraps a CRI StartContainerResponse object

type StartContainerResponse_119

type StartContainerResponse_119 struct {
	// contains filtered or unexported fields
}

func (*StartContainerResponse_119) Unwrap

func (o *StartContainerResponse_119) Unwrap() interface{}

func (*StartContainerResponse_119) Wrap

func (o *StartContainerResponse_119) Wrap(v interface{})

type StatusRequest

type StatusRequest interface {
	CRIObject
}

StatusRequest wraps a CRI StatusRequest object

type StatusRequest_119

type StatusRequest_119 struct {
	// contains filtered or unexported fields
}

func (*StatusRequest_119) Unwrap

func (o *StatusRequest_119) Unwrap() interface{}

func (*StatusRequest_119) Wrap

func (o *StatusRequest_119) Wrap(v interface{})

type StatusResponse

type StatusResponse interface {
	CRIObject
}

StatusResponse wraps a CRI StatusResponse object

type StatusResponse_119

type StatusResponse_119 struct {
	// contains filtered or unexported fields
}

func (*StatusResponse_119) Unwrap

func (o *StatusResponse_119) Unwrap() interface{}

func (*StatusResponse_119) Wrap

func (o *StatusResponse_119) Wrap(v interface{})

type StopContainerRequest

type StopContainerRequest interface {
	CRIObject
	ContainerIdObject
}

StopContainerRequest wraps a CRI StopContainerRequest object

type StopContainerRequest_119

type StopContainerRequest_119 struct {
	// contains filtered or unexported fields
}

func (*StopContainerRequest_119) ContainerId

func (o *StopContainerRequest_119) ContainerId() string

func (*StopContainerRequest_119) SetContainerId

func (o *StopContainerRequest_119) SetContainerId(id string)

func (*StopContainerRequest_119) Unwrap

func (o *StopContainerRequest_119) Unwrap() interface{}

func (*StopContainerRequest_119) Wrap

func (o *StopContainerRequest_119) Wrap(v interface{})

type StopContainerResponse

type StopContainerResponse interface {
	CRIObject
}

StopContainerResponse wraps a CRI StopContainerResponse object

type StopContainerResponse_119

type StopContainerResponse_119 struct {
	// contains filtered or unexported fields
}

func (*StopContainerResponse_119) Unwrap

func (o *StopContainerResponse_119) Unwrap() interface{}

func (*StopContainerResponse_119) Wrap

func (o *StopContainerResponse_119) Wrap(v interface{})

type StopPodSandboxRequest

type StopPodSandboxRequest interface {
	CRIObject
	PodSandboxIdObject
}

StopPodSandboxRequest wraps a CRI StopPodSandboxRequest object

type StopPodSandboxRequest_119

type StopPodSandboxRequest_119 struct {
	// contains filtered or unexported fields
}

func (*StopPodSandboxRequest_119) PodSandboxId

func (o *StopPodSandboxRequest_119) PodSandboxId() string

func (*StopPodSandboxRequest_119) SetPodSandboxId

func (o *StopPodSandboxRequest_119) SetPodSandboxId(id string)

func (*StopPodSandboxRequest_119) Unwrap

func (o *StopPodSandboxRequest_119) Unwrap() interface{}

func (*StopPodSandboxRequest_119) Wrap

func (o *StopPodSandboxRequest_119) Wrap(v interface{})

type StopPodSandboxResponse

type StopPodSandboxResponse interface {
	CRIObject
}

StopPodSandboxResponse wraps a CRI StopPodSandboxResponse object

type StopPodSandboxResponse_119

type StopPodSandboxResponse_119 struct {
	// contains filtered or unexported fields
}

func (*StopPodSandboxResponse_119) Unwrap

func (o *StopPodSandboxResponse_119) Unwrap() interface{}

func (*StopPodSandboxResponse_119) Wrap

func (o *StopPodSandboxResponse_119) Wrap(v interface{})

type UpdateContainerResourcesRequest

type UpdateContainerResourcesRequest interface {
	CRIObject
	ContainerIdObject
}

UpdateContainerResourcesRequest wraps a CRI UpdateContainerResourcesRequest object

type UpdateContainerResourcesRequest_119

type UpdateContainerResourcesRequest_119 struct {
	// contains filtered or unexported fields
}

func (*UpdateContainerResourcesRequest_119) ContainerId

func (*UpdateContainerResourcesRequest_119) SetContainerId

func (o *UpdateContainerResourcesRequest_119) SetContainerId(id string)

func (*UpdateContainerResourcesRequest_119) Unwrap

func (o *UpdateContainerResourcesRequest_119) Unwrap() interface{}

func (*UpdateContainerResourcesRequest_119) Wrap

func (o *UpdateContainerResourcesRequest_119) Wrap(v interface{})

type UpdateContainerResourcesResponse

type UpdateContainerResourcesResponse interface {
	CRIObject
}

UpdateContainerResourcesResponse wraps a CRI UpdateContainerResourcesResponse object

type UpdateContainerResourcesResponse_119

type UpdateContainerResourcesResponse_119 struct {
	// contains filtered or unexported fields
}

func (*UpdateContainerResourcesResponse_119) Unwrap

func (o *UpdateContainerResourcesResponse_119) Unwrap() interface{}

func (*UpdateContainerResourcesResponse_119) Wrap

func (o *UpdateContainerResourcesResponse_119) Wrap(v interface{})

type UpdateRuntimeConfigRequest

type UpdateRuntimeConfigRequest interface {
	CRIObject
}

UpdateRuntimeConfigRequest wraps a CRI UpdateRuntimeConfigRequest object

type UpdateRuntimeConfigRequest_119

type UpdateRuntimeConfigRequest_119 struct {
	// contains filtered or unexported fields
}

func (*UpdateRuntimeConfigRequest_119) Unwrap

func (o *UpdateRuntimeConfigRequest_119) Unwrap() interface{}

func (*UpdateRuntimeConfigRequest_119) Wrap

func (o *UpdateRuntimeConfigRequest_119) Wrap(v interface{})

type UpdateRuntimeConfigResponse

type UpdateRuntimeConfigResponse interface {
	CRIObject
}

UpdateRuntimeConfigResponse wraps a CRI UpdateRuntimeConfigResponse object

type UpdateRuntimeConfigResponse_119

type UpdateRuntimeConfigResponse_119 struct {
	// contains filtered or unexported fields
}

func (*UpdateRuntimeConfigResponse_119) Unwrap

func (o *UpdateRuntimeConfigResponse_119) Unwrap() interface{}

func (*UpdateRuntimeConfigResponse_119) Wrap

func (o *UpdateRuntimeConfigResponse_119) Wrap(v interface{})

type Upgradable

type Upgradable interface {
	// Upgrade returns the underlying object converted to a newer
	// CRI version as a raw CRI object.
	Upgrade() (interface{}, error)
}

Upgradable denotes a CRI object that can be upgraded to a newer CRI version.

type UpgradableCRIVersion

type UpgradableCRIVersion interface {
	CRIVersion
	// UpgradesTo returns a CRI version this one upgrades to.
	UpgradesTo() CRIVersion
}

UpgradableCRIVersion is a CRI version that supports upgrading of the objects for a newer CRI version.

type UrlObject

type UrlObject interface {
	// Url returns the url contained in the object.
	Url() string
	// Url sets the url contained in the object.
	SetUrl(string)
}

UrlObject is a wrapped CRI object that contains an URL.

type VersionRequest

type VersionRequest interface {
	CRIObject
}

VersionRequest wraps a CRI VersionRequest object

type VersionRequest_119

type VersionRequest_119 struct {
	// contains filtered or unexported fields
}

func (*VersionRequest_119) Unwrap

func (o *VersionRequest_119) Unwrap() interface{}

func (*VersionRequest_119) Wrap

func (o *VersionRequest_119) Wrap(v interface{})

type VersionResponse

type VersionResponse interface {
	CRIObject
}

VersionResponse wraps a CRI VersionResponse object

type VersionResponse_119

type VersionResponse_119 struct {
	// contains filtered or unexported fields
}

func (*VersionResponse_119) Unwrap

func (o *VersionResponse_119) Unwrap() interface{}

func (*VersionResponse_119) Wrap

func (o *VersionResponse_119) Wrap(v interface{})

Jump to

Keyboard shortcuts

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