kubernetes

package
v0.0.0-...-52bbffb Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildFromFlagsConfig

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

func NewBuildFromFlagsConfig

func NewBuildFromFlagsConfig(path string) *BuildFromFlagsConfig

func (*BuildFromFlagsConfig) Get

func (config *BuildFromFlagsConfig) Get() (*rest.Config, error)

type Client

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

func (Client) ListJobs

func (client Client) ListJobs() (*OwnersList, error)

func (Client) ListNamespaces

func (client Client) ListNamespaces() (*[]models.Namespace, error)

func (Client) ListNodes

func (client Client) ListNodes() (*[]models.Node, error)

func (Client) ListPods

func (client Client) ListPods() (*[]models.Pod, error)

func (Client) ListReplicaSets

func (client Client) ListReplicaSets() (*OwnersList, error)

type Configurator

type Configurator interface {
	Get() (*rest.Config, error)
}

type IClient

type IClient interface {
	ListPods() (*[]models.Pod, error)
	ListNodes() (*[]models.Node, error)
	ListNamespaces() (*[]models.Namespace, error)
}

func NewKubernetesClient

func NewKubernetesClient(configurator Configurator) (IClient, error)

type InClusterConfig

type InClusterConfig struct{}

func NewInClusterConfig

func NewInClusterConfig() *InClusterConfig

func (*InClusterConfig) Get

func (config *InClusterConfig) Get() (*rest.Config, error)

type Owner

type Owner struct {
	Name, Type string
}

func FindOwnerByReference

func FindOwnerByReference(ownerReferences *[]metav1.OwnerReference) *Owner

type OwnersList

type OwnersList map[string]*Owner

Directories

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

Jump to

Keyboard shortcuts

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