clients

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteSecret

func DeleteSecret(ctx context.Context, k client.Client, ref *xpv1.SecretKeySelector) error

func ErrorIsNotFound

func ErrorIsNotFound(err error) bool

func GetConfig

GetConfig constructs a ClientOptions configuration that can be used to authenticate to argocd API by the argocd Go client

func GetInitialAdminPassword

func GetInitialAdminPassword(ctx context.Context, k client.Client, pc *v1alpha1.ProviderConfig) (string, error)

GetInitialAdminPassword returns the ArgoCD initial admin password.

func GetSecret

func GetSecret(ctx context.Context, k client.Client, ref *xpv1.SecretKeySelector) (string, error)

func IsBoolPtrEqualToBool

func IsBoolPtrEqualToBool(bp *bool, b bool) bool

IsBoolPtrEqualToBool compares a *bool with bool

func SaveAdminToken

func SaveAdminToken(ctx context.Context, k client.Client, pc *v1alpha1.ProviderConfig, token string) error

func SetSecret

func SetSecret(ctx context.Context, k client.Client, ref *xpv1.SecretKeySelector, val string) error

func UseProviderConfig

UseProviderConfig to produce a config that can be used to create an ArgoCD client.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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