controllercontext

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func NewContext

func NewContext(ctx context.Context, c Context) context.Context

Types

type Context

type Context struct {
	// Spec holds the desired state we compute in a resource and then keep
	// inside the context to be used in a different resource.
	Spec ContextSpec

	// Status holds the data used to communicate between controller's
	// resources. It can be edited in place as Context is stored as
	// a pointer within context.Context. The content of the status should
	// reflect the current state.
	Status ContextStatus
}

func FromContext

func FromContext(ctx context.Context) (*Context, error)

type ContextSpec

type ContextSpec struct {
	APIServerEncryptionKey  string
	BaseDomain              string
	Calico                  ContextSpecCalico
	DisableEncryptionAtRest bool
	Docker                  ContextSpecDocker
	Etcd                    ContextSpecEtcd
	Extension               ContextSpecExtension
	Ingress                 ContextSpecIngress
	Kubernetes              ContextSpecKubernetes
	// Defines the provider which should be rendered.
	Provider string
	Registry ContextSpecRegistry
	SSO      ContextSpecSSO
}

type ContextSpecCalico

type ContextSpecCalico struct {
	CIDR    string
	Disable bool
	MTU     string
	Subnet  string
}

type ContextSpecDocker

type ContextSpecDocker struct {
	Daemon       ContextSpecDockerDaemon
	NetworkSetup ContextSpecDockerNetworkSetup
}

type ContextSpecDockerDaemon

type ContextSpecDockerDaemon struct {
	CIDR string
}

type ContextSpecDockerNetworkSetup

type ContextSpecDockerNetworkSetup struct {
	Image string
}

type ContextSpecEtcd

type ContextSpecEtcd struct {
	Domain string
	Image  string
	Port   int
	Prefix string
}

type ContextSpecExtension

type ContextSpecExtension struct {
	Files []ContextSpecExtensionFile
	Units []ContextSpecExtensionUnit
	Users []ContextSpecExtensionUser
}

type ContextSpecExtensionFile

type ContextSpecExtensionFile struct {
	Content  string
	Metadata ContextSpecExtensionFileMetadata
}

type ContextSpecExtensionFileMetadata

type ContextSpecExtensionFileMetadata struct {
	Compression bool
	Owner       ContextSpecExtensionFileMetadataOwner
	Path        string
	Permissions int
}

type ContextSpecExtensionFileMetadataOwnerGroup

type ContextSpecExtensionFileMetadataOwnerGroup struct {
	ID   string
	Name string
}

type ContextSpecExtensionFileMetadataOwnerUser

type ContextSpecExtensionFileMetadataOwnerUser struct {
	ID   string
	Name string
}

type ContextSpecExtensionUnit

type ContextSpecExtensionUnit struct {
	Content  string
	Metadata ContextSpecExtensionUnitMetadata
}

type ContextSpecExtensionUnitMetadata

type ContextSpecExtensionUnitMetadata struct {
	Enabled bool
	Name    string
}

type ContextSpecExtensionUser

type ContextSpecExtensionUser struct {
	Name      string
	PublicKey string
}

type ContextSpecIngress

type ContextSpecIngress struct {
	Disable bool
}

type ContextSpecKubernetes

type ContextSpecKubernetes struct {
	API           ContextSpecKubernetesAPI
	CloudProvider string
	DNS           ContextSpecKubernetesDNS
	Domain        string
	Kubelet       ContextSpecKubernetesKubelet
	Image         string
	IPRange       string
	OIDC          ContextSpecOIDC
}

type ContextSpecKubernetesAPI

type ContextSpecKubernetesAPI struct {
	Domain     string
	SecurePort int
}

type ContextSpecKubernetesDNS

type ContextSpecKubernetesDNS struct {
	IP string
}

type ContextSpecKubernetesKubelet

type ContextSpecKubernetesKubelet struct {
	CommandArgs []string
	Domain      string
	Labels      string
}

type ContextSpecOIDC

type ContextSpecOIDC struct {
	Enabled        bool
	ClientID       string
	IssuerURL      string
	UsernameClaim  string
	UsernamePrefix string
	GroupsClaim    string
	GroupsPrefix   string
}

type ContextSpecRegistry

type ContextSpecRegistry struct {
	Domain               string
	PullProgressDeadline string
}

type ContextSpecSSO

type ContextSpecSSO struct {
	PublicKey string
}

type ContextStatus

type ContextStatus struct {
	Files map[string]string
	Units map[string]string
}

Jump to

Keyboard shortcuts

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