kubernetes

package
v0.0.0-...-ce96b73 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(server, secret string, cadata []byte) (*kubernetes.Clientset, error)

Types

type Config

type Config struct {
	ServerUri string
	Secret    string
	CAData    string
}

type ConfigRepository

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

func CreateConfigRepository

func CreateConfigRepository(db DataSource) *ConfigRepository

func (*ConfigRepository) Environment

func (repo *ConfigRepository) Environment(envId string) (*Environment, error)

type DataSource

type DataSource interface {
	Query(query string, args ...interface{}) (*sql.Rows, error)
	QueryRow(query string, args ...interface{}) *sql.Row
}

type DeploymentPatch

type DeploymentPatch struct {
	ComponentId   string              `json:"-"`
	ComponentName string              `json:"-"`
	PlatformName  string              `json:"-"`
	Spec          DeploymentPatchSpec `json:"spec,omitempty"`
}

func CreateImagePatch

func CreateImagePatch(container, imageRef string) DeploymentPatch

func (DeploymentPatch) DisplayName

func (p DeploymentPatch) DisplayName() string

type DeploymentPatchSpec

type DeploymentPatchSpec struct {
	Template PodTemplatePatch `json:"template,omitempty"`
}

type Environment

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

func (*Environment) Platform

func (env *Environment) Platform(name string) (*platform, error)

type PodTemplatePatch

type PodTemplatePatch struct {
	Spec corev1.PodSpec `json:"spec,omitempty"`
}

Jump to

Keyboard shortcuts

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