Documentation ¶
Index ¶
- Constants
- Variables
- func PluginInitFunc(ic *plugin.InitContext) (interface{}, error)
- type Daemon
- func (c *Daemon) Attach(ctx context.Context, name string, opts *v1alpha1.AttachOptions) (*client.StreamResponse, error)
- func (c *Daemon) Close() error
- func (c *Daemon) CreateContainer(ctx context.Context, podID, image string, opts *v1alpha1.ContainerOptions) (string, error)
- func (c *Daemon) CreatePod(ctx context.Context, name string, opts *v1alpha1.PodOptions) (string, error)
- func (c *Daemon) CreateVolume(ctx context.Context, name string) (*client.Volume, error)
- func (d *Daemon) Events(ctx context.Context) (<-chan status.Event, error)
- func (c *Daemon) Exec(ctx context.Context, containerName string, cmd []string, ...) (*client.StreamResponse, error)
- func (c *Daemon) GetContainer(ctx context.Context, name string) (*v1.Pod, *v1.Container, string, error)
- func (c *Daemon) GetImage(ctx context.Context, image string) (*client.Image, error)
- func (c *Daemon) ListImages(ctx context.Context) (images []client.Image, err error)
- func (c *Daemon) ListPods(ctx context.Context) ([]v1.Pod, error)
- func (c *Daemon) ListVolumes(ctx context.Context) ([]client.Volume, error)
- func (c *Daemon) LogContainer(ctx context.Context, containerID string, opts *v1.PodLogOptions) (<-chan log.Entry, error)
- func (c *Daemon) PullImage(ctx context.Context, image string, authConfig *client.AuthConfig) (string, error)
- func (c *Daemon) PullProgress(ctx context.Context, image string) (<-chan []status.Info, error)
- func (c *Daemon) PushImage(ctx context.Context, image string, authConfig *client.AuthConfig) error
- func (c *Daemon) PushProgress(ctx context.Context, image string) (<-chan []status.Info, error)
- func (c *Daemon) RemoveContainer(ctx context.Context, containerID string) error
- func (c *Daemon) RemoveImage(ctx context.Context, id string) error
- func (c *Daemon) RemoveVolume(ctx context.Context, name string, force bool) error
- func (c *Daemon) StartContainer(ctx context.Context, containerID string) error
- func (c *Daemon) StopContainer(ctx context.Context, containerID string, timeout int64) error
- func (c *Daemon) TagImage(ctx context.Context, image string, tags ...string) error
Constants ¶
View Source
const ( AnnotationUserContainerConfig = "k3c.io/user-container-config" AnnotationContainerConfig = "k3c.io/container-config" AnnotationCpus = "k3c.io/cpus" )
View Source
const ( AnnotationPodConfig = "k3c.io/pod-config" AnnotationRestartPolicy = "k3c.io/restart-policy" )
Variables ¶
View Source
var ( Config = config.DefaultK3Config() PluginRegistration = plugin.Registration{ ID: "k3c", Type: plugin.GRPCPlugin, Config: Config, Requires: []plugin.Type{ plugin.InternalPlugin, plugin.ServicePlugin, }, InitFn: PluginInitFunc, } )
Functions ¶
func PluginInitFunc ¶ added in v0.2.0
func PluginInitFunc(ic *plugin.InitContext) (interface{}, error)
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
func (*Daemon) Attach ¶
func (c *Daemon) Attach(ctx context.Context, name string, opts *v1alpha1.AttachOptions) (*client.StreamResponse, error)
func (*Daemon) CreateContainer ¶
func (*Daemon) CreateVolume ¶ added in v0.2.0
func (*Daemon) Exec ¶
func (c *Daemon) Exec(ctx context.Context, containerName string, cmd []string, opts *v1alpha1.ExecOptions) (*client.StreamResponse, error)
func (*Daemon) GetContainer ¶
func (*Daemon) ListImages ¶
func (*Daemon) ListVolumes ¶ added in v0.2.0
func (*Daemon) LogContainer ¶
func (*Daemon) PullProgress ¶
func (*Daemon) PushProgress ¶
func (*Daemon) RemoveContainer ¶
func (*Daemon) RemoveVolume ¶ added in v0.2.0
func (*Daemon) StartContainer ¶
func (*Daemon) StopContainer ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.