utils

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyApplicationWithSync

func ApplyApplicationWithSync(client kubernetes.Interface, radixclient radixclient.Interface, commonTestUtils *commontest.Utils, applicationBuilder utils.ApplicationBuilder)

ApplyApplicationWithSync syncs based on application builder, and default builder for registration.

func ApplyDeploymentWithSync

func ApplyDeploymentWithSync(client kubernetes.Interface, radixclient radixclient.Interface, promclient prometheusclient.Interface, commonTestUtils *commontest.Utils, secretproviderclient secretsstorevclient.Interface, deploymentBuilder builders.DeploymentBuilder)

ApplyDeploymentWithSync syncs based on deployment builder, and default builders for application and registration.

func ApplyRegistrationWithSync

func ApplyRegistrationWithSync(client kubernetes.Interface, radixclient radixclient.Interface, commonTestUtils *commontest.Utils, registrationBuilder utils.RegistrationBuilder)

ApplyRegistrationWithSync syncs based on registration builder

func CreateApplicationConfig

func CreateApplicationConfig(client kubernetes.Interface, radixClient radixclient.Interface, secretProviderClient secretsstorevclient.Interface, appName string) (*applicationconfig.ApplicationConfig, error)

CreateApplicationConfig creates an application config based on input

func IsBefore added in v1.9.0

func IsBefore(j, i Job) bool

IsBefore Checks that job-j is before job-i

Types

type DeployKey

type DeployKey struct {
	PrivateKey string
	PublicKey  string
}

DeployKey Represention of a deploy key pair

func GenerateDeployKey

func GenerateDeployKey() (*DeployKey, error)

GenerateDeployKey Generates a deploy key

type Job added in v1.9.0

type Job interface {
	GetCreated() string
	GetStarted() string
	GetEnded() string
	GetStatus() string
}

type KubeUtil

KubeUtil Interface to be mocked in tests

func NewKubeUtil

func NewKubeUtil(useOutClusterClient bool) KubeUtil

NewKubeUtil Constructor

type RadixMiddleware

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

RadixMiddleware The middleware between router and radix handler functions

func NewRadixMiddleware

func NewRadixMiddleware(kubeUtil KubeUtil, path, method string, allowUnauthenticatedUsers bool, kubeApiQPS float32, kubeApiBurst int, next models.RadixHandlerFunc) *RadixMiddleware

NewRadixMiddleware Constructor for radix middleware

func (*RadixMiddleware) Handle

func (handler *RadixMiddleware) Handle(w http.ResponseWriter, r *http.Request)

Handle Wraps radix handler methods

type RestClientConfigOption added in v1.14.2

type RestClientConfigOption func(*restclient.Config)

func WithBurst added in v1.14.2

func WithBurst(burst int) RestClientConfigOption

func WithQPS added in v1.14.2

func WithQPS(qps float32) RestClientConfigOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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