server

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigClientError = func(err error) error {
		return eris.Wrap(err, "error while getting kube config")
	}
)

Functions

func NewServerVersionClient

func NewServerVersionClient(namespace string, configClient DeploymentClient, imageNameParser docker.ImageNameParser) *serverVersionClient

Types

type DeploymentClient

type DeploymentClient interface {
	GetDeployments(namespace string, labelSelector string) (*k8s_apps.DeploymentList, error)
}

func NewDeploymentClient

func NewDeploymentClient(loader common_config.KubeLoader, opts *options.Options) DeploymentClient

type ImageMeta

type ImageMeta struct {
	Tag      string
	Name     string
	Registry string
}

type ServerVersion

type ServerVersion struct {
	Namespace  string
	Containers []*docker.Image
}

type ServerVersionClient

type ServerVersionClient interface {
	GetServerVersion() (*ServerVersion, error)
}

func DefaultServerVersionClientProvider

func DefaultServerVersionClientProvider(opts *options.Options, loader common_config.KubeLoader, imageNameParser docker.ImageNameParser) ServerVersionClient

default ServerVersionClient

Directories

Path Synopsis
Package mock_server is a generated GoMock package.
Package mock_server is a generated GoMock package.

Jump to

Keyboard shortcuts

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