sidecar

package
v0.0.0-...-5006184 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContainerName        = "integration"
	ListenPortName       = "integration"
	ListenPortHealthName = "health"
)

Variables

This section is empty.

Functions

func NewIntegrationEnablement

func NewIntegrationEnablement(integrations ...Integration) (*schedulerApi.ProfileTemplate, error)

func NewShutdownAnnotations

func NewShutdownAnnotations(coreContainers []string) *schedulerApi.ProfileTemplate

Types

type Core

type Core struct {
	Internal *bool
	External *bool
}

func (*Core) Envs

func (c *Core) Envs(int Integration, envs ...core.EnvVar) []core.EnvVar

func (*Core) GetExternal

func (c *Core) GetExternal() bool

func (*Core) GetInternal

func (c *Core) GetInternal() bool

type Integration

type Integration interface {
	Name() []string
	Envs() ([]core.EnvVar, error)
	GlobalEnvs() ([]core.EnvVar, error)
	Volumes() ([]core.Volume, []core.VolumeMount, error)
	Validate() error
}

type IntegrationAnnotations

type IntegrationAnnotations interface {
	Integration

	Annotations() (map[string]string, error)
}

type IntegrationAuthenticationV1

type IntegrationAuthenticationV1 struct {
	Core *Core

	DeploymentName string
	Spec           api.DeploymentSpec
}

func (IntegrationAuthenticationV1) Envs

func (IntegrationAuthenticationV1) GlobalEnvs

func (i IntegrationAuthenticationV1) GlobalEnvs() ([]core.EnvVar, error)

func (IntegrationAuthenticationV1) Name

func (IntegrationAuthenticationV1) Validate

func (i IntegrationAuthenticationV1) Validate() error

func (IntegrationAuthenticationV1) Volumes

type IntegrationAuthorizationV0

type IntegrationAuthorizationV0 struct {
	Core *Core
}

func (IntegrationAuthorizationV0) Envs

func (IntegrationAuthorizationV0) GlobalEnvs

func (i IntegrationAuthorizationV0) GlobalEnvs() ([]core.EnvVar, error)

func (IntegrationAuthorizationV0) Name

func (IntegrationAuthorizationV0) Validate

func (i IntegrationAuthorizationV0) Validate() error

func (IntegrationAuthorizationV0) Volumes

type IntegrationEnvoyV3

type IntegrationEnvoyV3 struct {
	Core *Core
	Spec api.DeploymentSpec
}

func (IntegrationEnvoyV3) Envs

func (i IntegrationEnvoyV3) Envs() ([]core.EnvVar, error)

func (IntegrationEnvoyV3) GlobalEnvs

func (i IntegrationEnvoyV3) GlobalEnvs() ([]core.EnvVar, error)

func (IntegrationEnvoyV3) Name

func (i IntegrationEnvoyV3) Name() []string

func (IntegrationEnvoyV3) Validate

func (i IntegrationEnvoyV3) Validate() error

func (IntegrationEnvoyV3) Volumes

func (i IntegrationEnvoyV3) Volumes() ([]core.Volume, []core.VolumeMount, error)

type IntegrationSchedulerV1

type IntegrationSchedulerV1 struct {
	Core *Core

	DeploymentName string
	Spec           api.DeploymentSpec
}

func (IntegrationSchedulerV1) Envs

func (i IntegrationSchedulerV1) Envs() ([]core.EnvVar, error)

func (IntegrationSchedulerV1) GlobalEnvs

func (i IntegrationSchedulerV1) GlobalEnvs() ([]core.EnvVar, error)

func (IntegrationSchedulerV1) Name

func (i IntegrationSchedulerV1) Name() []string

func (IntegrationSchedulerV1) Validate

func (i IntegrationSchedulerV1) Validate() error

func (IntegrationSchedulerV1) Volumes

type IntegrationSchedulerV2

type IntegrationSchedulerV2 struct {
	Core *Core

	DeploymentName string
	Spec           api.DeploymentSpec
}

func (IntegrationSchedulerV2) Envs

func (i IntegrationSchedulerV2) Envs() ([]core.EnvVar, error)

func (IntegrationSchedulerV2) GlobalEnvs

func (i IntegrationSchedulerV2) GlobalEnvs() ([]core.EnvVar, error)

func (IntegrationSchedulerV2) Name

func (i IntegrationSchedulerV2) Name() []string

func (IntegrationSchedulerV2) Validate

func (i IntegrationSchedulerV2) Validate() error

func (IntegrationSchedulerV2) Volumes

type IntegrationShutdownV1

type IntegrationShutdownV1 struct {
	Core *Core
}

func (IntegrationShutdownV1) Annotations

func (i IntegrationShutdownV1) Annotations() (map[string]string, error)

func (IntegrationShutdownV1) Envs

func (i IntegrationShutdownV1) Envs() ([]core.EnvVar, error)

func (IntegrationShutdownV1) GlobalEnvs

func (i IntegrationShutdownV1) GlobalEnvs() ([]core.EnvVar, error)

func (IntegrationShutdownV1) Name

func (i IntegrationShutdownV1) Name() []string

func (IntegrationShutdownV1) Validate

func (i IntegrationShutdownV1) Validate() error

func (IntegrationShutdownV1) Volumes

func (i IntegrationShutdownV1) Volumes() ([]core.Volume, []core.VolumeMount, error)

type IntegrationStorageV2

type IntegrationStorageV2 struct {
	Core    *Core
	Storage *platformApi.ArangoPlatformStorage
}

func (IntegrationStorageV2) Envs

func (i IntegrationStorageV2) Envs() ([]core.EnvVar, error)

func (IntegrationStorageV2) GlobalEnvs

func (i IntegrationStorageV2) GlobalEnvs() ([]core.EnvVar, error)

func (IntegrationStorageV2) Name

func (i IntegrationStorageV2) Name() []string

func (IntegrationStorageV2) Validate

func (i IntegrationStorageV2) Validate() error

func (IntegrationStorageV2) Volumes

func (i IntegrationStorageV2) Volumes() ([]core.Volume, []core.VolumeMount, error)

Jump to

Keyboard shortcuts

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