controllercontext

package
v4.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidContext

func IsInvalidContext(err error) bool

IsInvalidContext asserts invalidContextError.

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 {
	APILBBackendPoolID  string
	AzureClientSet      *client.AzureClientSet
	AzureNetwork        *network.Subnets
	Client              ContextClient
	CloudConfig         cloudconfig.Interface
	ContainerURL        *azblob.ContainerURL
	EtcdLBBackendPoolID string
	MasterSubnetID      string
	Release             ContextRelease
	WorkerSubnetID      string
}

func FromContext

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

func (*Context) Validate

func (c *Context) Validate() error

type ContextClient

type ContextClient struct {
	TenantCluster ContextClientTenantCluster
}

type ContextClientTenantCluster

type ContextClientTenantCluster struct {
	G8s versioned.Interface
	K8s kubernetes.Interface
}

type ContextRelease

type ContextRelease struct {
	Components []v1alpha1.ReleaseSpecComponent
}

Jump to

Keyboard shortcuts

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