internal

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultChanSize           = 100000
	DefaultListTimeoutSeconds = 10
)

Variables

This section is empty.

Functions

func CurrentTimeUTC

func CurrentTimeUTC() time.Time

func DeleteNilValues added in v0.20.1

func DeleteNilValues(m map[string]interface{}) map[string]interface{}

DeleteNilVaules returns the given map with all keys with nil values removed.

Types

type Controller

type Controller struct {
	ArcadeClient                  arcade.Client
	ArtifactCredentialsController artifact.CredentialsController
	FiatClient                    fiat.Client
	Front50Client                 front50.Client
	KubernetesController          kubernetes.Controller
	SQLClient                     sql.Client
}

Controller holds all non request-scoped objects.

func (*Controller) AllKubernetesProvidersWithTimeout added in v0.25.0

func (cc *Controller) AllKubernetesProvidersWithTimeout(timeout time.Duration) ([]*kubernetes.Provider, error)

AllKubernetesProvidersWithTimeout returns a all kubernetes providers, defining their client and clientset's timeouts to be the timeout passed in. If no timeout is passed this field is not set.

func (*Controller) KubernetesProvider

func (cc *Controller) KubernetesProvider(account string) (*kubernetes.Provider, error)

KubernetesProvider returns a kubernetes provider instance for a given account name. It instantiates a kubernetes Client and Clientset and attaches these instances to the provider.

func (*Controller) KubernetesProviderWithTimeout

func (cc *Controller) KubernetesProviderWithTimeout(account string,
	timeout time.Duration) (*kubernetes.Provider, error)

KubernetesProviderWithTimeout returns a kubernetes provider, defining its client and clientset timeouts to be the timeout passed in. If no timeout is passed this field is not set.

func (*Controller) KubernetesProvidersForAccountsWithTimeout added in v0.27.0

func (cc *Controller) KubernetesProvidersForAccountsWithTimeout(accounts []string,
	timeout time.Duration) ([]*kubernetes.Provider, error)

KubernetesProvidersForAccountsWithTimeout returns a all kubernetes providers for a given list of accounts, defining their client and clientset's timeouts to be the timeout passed in. If no timeout is passed this field is not set.

Directories

Path Synopsis
api
v1
arcadefakes
Code generated by counterfeiter.
Code generated by counterfeiter.
artifactfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
fiatfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
front50fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
helmfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
cached/disk/diskfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
kubernetesfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
sql
sqlfakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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