Documentation ¶
Index ¶
- type ClientOpt
- type CrioClient
- func (CrioClient) Attach(context.Context, *crioruntime.AttachRequest, ...grpc.CallOption) (*crioruntime.AttachResponse, error)
- func (cc CrioClient) CheckpointContainer(context.Context, *crioruntime.CheckpointContainerRequest, ...grpc.CallOption) (*crioruntime.CheckpointContainerResponse, error)
- func (CrioClient) ContainerStats(context.Context, *crioruntime.ContainerStatsRequest, ...grpc.CallOption) (*crioruntime.ContainerStatsResponse, error)
- func (cc CrioClient) ContainerStatus(_ context.Context, in *crioruntime.ContainerStatusRequest, ...) (*crioruntime.ContainerStatusResponse, error)
- func (CrioClient) CreateContainer(context.Context, *crioruntime.CreateContainerRequest, ...grpc.CallOption) (*crioruntime.CreateContainerResponse, error)
- func (CrioClient) Exec(context.Context, *crioruntime.ExecRequest, ...grpc.CallOption) (*crioruntime.ExecResponse, error)
- func (CrioClient) ExecSync(context.Context, *crioruntime.ExecSyncRequest, ...grpc.CallOption) (*crioruntime.ExecSyncResponse, error)
- func (cc CrioClient) GetContainerEvents(context.Context, *crioruntime.GetEventsRequest, ...grpc.CallOption) (crioruntime.RuntimeService_GetContainerEventsClient, error)
- func (CrioClient) ListContainerStats(context.Context, *crioruntime.ListContainerStatsRequest, ...grpc.CallOption) (*crioruntime.ListContainerStatsResponse, error)
- func (CrioClient) ListContainers(context.Context, *crioruntime.ListContainersRequest, ...grpc.CallOption) (*crioruntime.ListContainersResponse, error)
- func (cc CrioClient) ListMetricDescriptors(context.Context, *crioruntime.ListMetricDescriptorsRequest, ...grpc.CallOption) (*crioruntime.ListMetricDescriptorsResponse, error)
- func (cc CrioClient) ListPodSandbox(_ context.Context, listPodSandboxRequest *crioruntime.ListPodSandboxRequest, ...) (*crioruntime.ListPodSandboxResponse, error)
- func (cc CrioClient) ListPodSandboxMetrics(context.Context, *crioruntime.ListPodSandboxMetricsRequest, ...grpc.CallOption) (*crioruntime.ListPodSandboxMetricsResponse, error)
- func (cc CrioClient) ListPodSandboxStats(context.Context, *crioruntime.ListPodSandboxStatsRequest, ...grpc.CallOption) (*crioruntime.ListPodSandboxStatsResponse, error)
- func (cc CrioClient) PodSandboxStats(context.Context, *crioruntime.PodSandboxStatsRequest, ...grpc.CallOption) (*crioruntime.PodSandboxStatsResponse, error)
- func (cc CrioClient) PodSandboxStatus(_ context.Context, ...) (*crioruntime.PodSandboxStatusResponse, error)
- func (CrioClient) PortForward(context.Context, *crioruntime.PortForwardRequest, ...grpc.CallOption) (*crioruntime.PortForwardResponse, error)
- func (CrioClient) RemoveContainer(context.Context, *crioruntime.RemoveContainerRequest, ...grpc.CallOption) (*crioruntime.RemoveContainerResponse, error)
- func (CrioClient) RemovePodSandbox(context.Context, *crioruntime.RemovePodSandboxRequest, ...grpc.CallOption) (*crioruntime.RemovePodSandboxResponse, error)
- func (CrioClient) ReopenContainerLog(context.Context, *crioruntime.ReopenContainerLogRequest, ...grpc.CallOption) (*crioruntime.ReopenContainerLogResponse, error)
- func (CrioClient) RunPodSandbox(context.Context, *crioruntime.RunPodSandboxRequest, ...grpc.CallOption) (*crioruntime.RunPodSandboxResponse, error)
- func (cc CrioClient) RuntimeConfig(ctx context.Context, in *crioruntime.RuntimeConfigRequest, ...) (*crioruntime.RuntimeConfigResponse, error)
- func (CrioClient) StartContainer(context.Context, *crioruntime.StartContainerRequest, ...grpc.CallOption) (*crioruntime.StartContainerResponse, error)
- func (CrioClient) Status(context.Context, *crioruntime.StatusRequest, ...grpc.CallOption) (*crioruntime.StatusResponse, error)
- func (CrioClient) StopContainer(context.Context, *crioruntime.StopContainerRequest, ...grpc.CallOption) (*crioruntime.StopContainerResponse, error)
- func (CrioClient) StopPodSandbox(context.Context, *crioruntime.StopPodSandboxRequest, ...grpc.CallOption) (*crioruntime.StopPodSandboxResponse, error)
- func (CrioClient) UpdateContainerResources(context.Context, *crioruntime.UpdateContainerResourcesRequest, ...) (*crioruntime.UpdateContainerResourcesResponse, error)
- func (CrioClient) UpdateRuntimeConfig(context.Context, *crioruntime.UpdateRuntimeConfigRequest, ...grpc.CallOption) (*crioruntime.UpdateRuntimeConfigResponse, error)
- func (CrioClient) Version(context.Context, *crioruntime.VersionRequest, ...grpc.CallOption) (*crioruntime.VersionResponse, error)
- type Runtime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientOpt ¶ added in v0.3.4
type ClientOpt func(client *CrioClient)
func WithCachedContainer ¶ added in v0.3.4
type CrioClient ¶ added in v0.3.4
type CrioClient struct {
// contains filtered or unexported fields
}
func NewFakeClient ¶ added in v0.3.4
func NewFakeClient(opts ...ClientOpt) *CrioClient
func (CrioClient) Attach ¶ added in v0.3.4
func (CrioClient) Attach( context.Context, *crioruntime.AttachRequest, ...grpc.CallOption, ) (*crioruntime.AttachResponse, error)
func (CrioClient) CheckpointContainer ¶ added in v0.3.4
func (cc CrioClient) CheckpointContainer( context.Context, *crioruntime.CheckpointContainerRequest, ...grpc.CallOption, ) (*crioruntime.CheckpointContainerResponse, error)
func (CrioClient) ContainerStats ¶ added in v0.3.4
func (CrioClient) ContainerStats( context.Context, *crioruntime.ContainerStatsRequest, ...grpc.CallOption, ) (*crioruntime.ContainerStatsResponse, error)
func (CrioClient) ContainerStatus ¶ added in v0.3.4
func (cc CrioClient) ContainerStatus( _ context.Context, in *crioruntime.ContainerStatusRequest, _ ...grpc.CallOption, ) (*crioruntime.ContainerStatusResponse, error)
func (CrioClient) CreateContainer ¶ added in v0.3.4
func (CrioClient) CreateContainer( context.Context, *crioruntime.CreateContainerRequest, ...grpc.CallOption, ) (*crioruntime.CreateContainerResponse, error)
func (CrioClient) Exec ¶ added in v0.3.4
func (CrioClient) Exec( context.Context, *crioruntime.ExecRequest, ...grpc.CallOption, ) (*crioruntime.ExecResponse, error)
func (CrioClient) ExecSync ¶ added in v0.3.4
func (CrioClient) ExecSync( context.Context, *crioruntime.ExecSyncRequest, ...grpc.CallOption, ) (*crioruntime.ExecSyncResponse, error)
func (CrioClient) GetContainerEvents ¶ added in v0.3.4
func (cc CrioClient) GetContainerEvents( context.Context, *crioruntime.GetEventsRequest, ...grpc.CallOption, ) (crioruntime.RuntimeService_GetContainerEventsClient, error)
func (CrioClient) ListContainerStats ¶ added in v0.3.4
func (CrioClient) ListContainerStats( context.Context, *crioruntime.ListContainerStatsRequest, ...grpc.CallOption, ) (*crioruntime.ListContainerStatsResponse, error)
func (CrioClient) ListContainers ¶ added in v0.3.4
func (CrioClient) ListContainers( context.Context, *crioruntime.ListContainersRequest, ...grpc.CallOption, ) (*crioruntime.ListContainersResponse, error)
func (CrioClient) ListMetricDescriptors ¶ added in v0.3.4
func (cc CrioClient) ListMetricDescriptors( context.Context, *crioruntime.ListMetricDescriptorsRequest, ...grpc.CallOption, ) (*crioruntime.ListMetricDescriptorsResponse, error)
func (CrioClient) ListPodSandbox ¶ added in v0.3.4
func (cc CrioClient) ListPodSandbox( _ context.Context, listPodSandboxRequest *crioruntime.ListPodSandboxRequest, _ ...grpc.CallOption, ) (*crioruntime.ListPodSandboxResponse, error)
func (CrioClient) ListPodSandboxMetrics ¶ added in v0.3.4
func (cc CrioClient) ListPodSandboxMetrics( context.Context, *crioruntime.ListPodSandboxMetricsRequest, ...grpc.CallOption, ) (*crioruntime.ListPodSandboxMetricsResponse, error)
func (CrioClient) ListPodSandboxStats ¶ added in v0.3.4
func (cc CrioClient) ListPodSandboxStats( context.Context, *crioruntime.ListPodSandboxStatsRequest, ...grpc.CallOption, ) (*crioruntime.ListPodSandboxStatsResponse, error)
func (CrioClient) PodSandboxStats ¶ added in v0.3.4
func (cc CrioClient) PodSandboxStats( context.Context, *crioruntime.PodSandboxStatsRequest, ...grpc.CallOption, ) (*crioruntime.PodSandboxStatsResponse, error)
func (CrioClient) PodSandboxStatus ¶ added in v0.3.4
func (cc CrioClient) PodSandboxStatus( _ context.Context, podSandboxStatusRequest *crioruntime.PodSandboxStatusRequest, _ ...grpc.CallOption, ) (*crioruntime.PodSandboxStatusResponse, error)
func (CrioClient) PortForward ¶ added in v0.3.4
func (CrioClient) PortForward( context.Context, *crioruntime.PortForwardRequest, ...grpc.CallOption, ) (*crioruntime.PortForwardResponse, error)
func (CrioClient) RemoveContainer ¶ added in v0.3.4
func (CrioClient) RemoveContainer( context.Context, *crioruntime.RemoveContainerRequest, ...grpc.CallOption, ) (*crioruntime.RemoveContainerResponse, error)
func (CrioClient) RemovePodSandbox ¶ added in v0.3.4
func (CrioClient) RemovePodSandbox( context.Context, *crioruntime.RemovePodSandboxRequest, ...grpc.CallOption, ) (*crioruntime.RemovePodSandboxResponse, error)
func (CrioClient) ReopenContainerLog ¶ added in v0.3.4
func (CrioClient) ReopenContainerLog( context.Context, *crioruntime.ReopenContainerLogRequest, ...grpc.CallOption, ) (*crioruntime.ReopenContainerLogResponse, error)
func (CrioClient) RunPodSandbox ¶ added in v0.3.4
func (CrioClient) RunPodSandbox( context.Context, *crioruntime.RunPodSandboxRequest, ...grpc.CallOption, ) (*crioruntime.RunPodSandboxResponse, error)
func (CrioClient) RuntimeConfig ¶ added in v0.3.4
func (cc CrioClient) RuntimeConfig( ctx context.Context, in *crioruntime.RuntimeConfigRequest, opts ...grpc.CallOption, ) (*crioruntime.RuntimeConfigResponse, error)
func (CrioClient) StartContainer ¶ added in v0.3.4
func (CrioClient) StartContainer( context.Context, *crioruntime.StartContainerRequest, ...grpc.CallOption, ) (*crioruntime.StartContainerResponse, error)
func (CrioClient) Status ¶ added in v0.3.4
func (CrioClient) Status( context.Context, *crioruntime.StatusRequest, ...grpc.CallOption, ) (*crioruntime.StatusResponse, error)
func (CrioClient) StopContainer ¶ added in v0.3.4
func (CrioClient) StopContainer( context.Context, *crioruntime.StopContainerRequest, ...grpc.CallOption, ) (*crioruntime.StopContainerResponse, error)
func (CrioClient) StopPodSandbox ¶ added in v0.3.4
func (CrioClient) StopPodSandbox( context.Context, *crioruntime.StopPodSandboxRequest, ...grpc.CallOption, ) (*crioruntime.StopPodSandboxResponse, error)
func (CrioClient) UpdateContainerResources ¶ added in v0.3.4
func (CrioClient) UpdateContainerResources( context.Context, *crioruntime.UpdateContainerResourcesRequest, ...grpc.CallOption, ) (*crioruntime.UpdateContainerResourcesResponse, error)
func (CrioClient) UpdateRuntimeConfig ¶ added in v0.3.4
func (CrioClient) UpdateRuntimeConfig( context.Context, *crioruntime.UpdateRuntimeConfigRequest, ...grpc.CallOption, ) (*crioruntime.UpdateRuntimeConfigResponse, error)
func (CrioClient) Version ¶ added in v0.3.4
func (CrioClient) Version(context.Context, *crioruntime.VersionRequest, ...grpc.CallOption) (*crioruntime.VersionResponse, error)
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func NewFakeRuntime ¶
func (*Runtime) NetworkNamespace ¶ added in v0.3.4
Click to show internal directories.
Click to hide internal directories.