controllercontext

package
v7.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 6 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 {
	MasterLBBackendPoolID string
	AzureClientSet        *client.AzureClientSet
	CloudConfig           cloudconfig.Interface
	ContainerURL          *azblob.ContainerURL
	MasterSubnetID        string
	Release               ContextRelease
	WorkerSubnetID        string
}

func FromContext

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

func (*Context) Validate

func (c *Context) Validate() error

type ContextRelease

type ContextRelease struct {
	Release v1alpha1.Release
}

Jump to

Keyboard shortcuts

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