client

package
v0.0.0-...-b4f4e10 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const FunctionContainerName = "nuclio"
View Source
const MaxLogLines = 100

Variables

This section is empty.

Functions

func GetDomainNameInvokeURL

func GetDomainNameInvokeURL(serviceName, namespace string) (string, int)

func NuclioioToFunctionConfig

func NuclioioToFunctionConfig(nuclioioFunction *nuclioio.NuclioFunction) *functionconfig.Config

Types

type Consumer

type Consumer struct {
	NuclioClientSet nuclioioclient.Interface
	KubeClientSet   kubernetes.Interface
	KubeHost        string
	// contains filtered or unexported fields
}

func NewConsumer

func NewConsumer(ctx context.Context, logger logger.Logger, kubeconfigPath string) (*Consumer, error)

type Deleter

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

func NewDeleter

func NewDeleter(parentLogger logger.Logger, platform platform.Platform) (*Deleter, error)

func (*Deleter) Delete

func (d *Deleter) Delete(ctx context.Context, consumer *Consumer, deleteFunctionOptions *platform.DeleteFunctionOptions) error

type Deployer

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

func NewDeployer

func NewDeployer(parentLogger logger.Logger, consumer *Consumer, platform platform.Platform) (*Deployer, error)

func (*Deployer) CreateOrUpdateFunction

func (d *Deployer) CreateOrUpdateFunction(ctx context.Context,
	functionInstance *nuclioio.NuclioFunction,
	createFunctionOptions *platform.CreateFunctionOptions,
	functionStatus *functionconfig.Status) (*nuclioio.NuclioFunction, error)

func (*Deployer) Deploy

type Function

type Function struct {
	platform.AbstractFunction
	// contains filtered or unexported fields
}

func NewFunction

func NewFunction(parentLogger logger.Logger,
	parentPlatform platform.Platform,
	nuclioioFunction *nuclioio.NuclioFunction,
	consumer *Consumer) (*Function, error)

func (*Function) GetConfig

func (f *Function) GetConfig() *functionconfig.Config

func (*Function) GetReplicas

func (f *Function) GetReplicas() (int, int)

GetReplicas returns the current # of replicas and the configured # of replicas

func (*Function) Initialize

func (f *Function) Initialize(ctx context.Context, str []string) error

Initialize loads sub-resources so we can populate our configuration

type Getter

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

func NewGetter

func NewGetter(parentLogger logger.Logger, platform platform.Platform) (*Getter, error)

func (*Getter) Get

func (g *Getter) Get(ctx context.Context,
	consumer *Consumer,
	getFunctionsOptions *platform.GetFunctionsOptions) ([]platform.Function, error)

type Updater

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

func NewUpdater

func NewUpdater(parentLogger logger.Logger, consumer *Consumer, platform platform.Platform) (*Updater, error)

func (*Updater) Update

func (u *Updater) Update(ctx context.Context, updateFunctionOptions *platform.UpdateFunctionOptions) error

func (*Updater) UpdateState

func (u *Updater) UpdateState(ctx context.Context, functionName, namespace string, authConfig *platform.AuthConfig, state functionconfig.FunctionState) error

UpdateState will update a function CRD state we don't require permissions for this operation because it's used internally by the platform

Directories

Path Synopsis
clientset
versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
versioned/typed/nuclio.io/v1beta1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
versioned/typed/nuclio.io/v1beta1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
informers
listers

Jump to

Keyboard shortcuts

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