kubernetes

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Overview

Copyright (C) 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0

Portions Copyright (C) 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0

Portions Copyright (C) 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	// valid values for driver-opt loadbalance
	LoadbalanceRandom = "random"
	LoadbalanceSticky = "sticky"

	// valid values for driver-opt worker
	WorkerContainerd           = "containerd"
	WorkerRunc                 = "runc"
	DefaultContainerdNamespace = "k8s.io"
	DefaultContainerdSockPath  = "/run/containerd/containerd.sock"
	DefaultDockerSockPath      = "/var/run/docker.sock"

	//DefaultContainerRuntime    = "containerd" // TODO figure out a way to autodiscover this if not specified for better UX
	DefaultContainerRuntime = "docker" // Temporary since most kubernetes clusters are still Docker based today...

	// TODO - consider adding other default values here to aid users in fine-tuning by editing the configmap post deployment
	DefaultConfigFileTemplate = `` /* 167-byte string literal not displayed */

)
View Source
const (
	DriverName = "kubernetes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	driver.InitConfig
	// contains filtered or unexported fields
}

func (*Driver) Bootstrap

func (d *Driver) Bootstrap(ctx context.Context, l progress.Logger) error

func (*Driver) Clients added in v0.1.4

func (d *Driver) Clients(ctx context.Context) (*driver.BuilderClients, error)

func (*Driver) Factory

func (d *Driver) Factory() driver.Factory

func (*Driver) Features

func (d *Driver) Features() map[driver.Feature]bool

func (*Driver) GetAuthHintMessage

func (d *Driver) GetAuthHintMessage() string

func (*Driver) GetAuthProvider

func (d *Driver) GetAuthProvider(secretName string, stderr io.Writer) session.Attachable

func (*Driver) GetAuthWrapper

func (d *Driver) GetAuthWrapper(secretName string) imagetools.Auth

func (*Driver) GetVersion added in v0.1.4

func (d *Driver) GetVersion(ctx context.Context) (string, error)

func (*Driver) Info

func (d *Driver) Info(ctx context.Context) (*driver.Info, error)

func (*Driver) List

func (d *Driver) List(ctx context.Context) ([]driver.Builder, error)

func (*Driver) Rm

func (d *Driver) Rm(ctx context.Context, force bool) error

func (*Driver) RuntimeSockProxy

func (d *Driver) RuntimeSockProxy(ctx context.Context, name string) (net.Conn, error)

func (*Driver) Stop

func (d *Driver) Stop(ctx context.Context, force bool) error

Directories

Path Synopsis
Portions Copyright (C) 2020 VMware, Inc.
Portions Copyright (C) 2020 VMware, Inc.
Portions Copyright (C) 2020 VMware, Inc.
Portions Copyright (C) 2020 VMware, Inc.
Portions Copyright (C) 2020 VMware, Inc.
Portions Copyright (C) 2020 VMware, Inc.

Jump to

Keyboard shortcuts

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