clients

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEndpointSecret

func CreateEndpointSecret(ctx context.Context, k client.Client, opts CreateSecretOpts) error

func DeleteEndpointSecret

func DeleteEndpointSecret(ctx context.Context, k client.Client, ref *xpv1.SecretReference) error

func GetConfig

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

func GetEndpointSecret

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

func GetInitialAdminPassword

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

GetInitialAdminPassword returns the ArgoCD initial admin password.

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 UseProviderConfig

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

Types

type CreateSecretOpts

type CreateSecretOpts struct {
	Token     string
	TargetURL string
	SecretRef *xpv1.SecretReference
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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