clients

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolValue

func BoolValue(ptr *bool) bool

BoolValue converts a *bool to bool

func GetConfig

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

func Int64Value

func Int64Value(ptr *int64) int64

Int64Value converts a *int64 to int64

func IsBoolEqualToBoolPtr

func IsBoolEqualToBoolPtr(bp *bool, b bool) bool

IsBoolEqualToBoolPtr compares a *bool with bool

func IsInt64EqualToInt64Ptr

func IsInt64EqualToInt64Ptr(ip *int64, i int64) bool

IsInt64EqualToInt64Ptr compares a *bool with bool

func LateInitializeInt64Ptr

func LateInitializeInt64Ptr(in *int64, from int64) *int64

LateInitializeInt64Ptr returns `from` if `in` is nil and `from` is non-empty, in other cases it returns `in`.

func LateInitializeStringPtr

func LateInitializeStringPtr(in *string, from string) *string

LateInitializeStringPtr returns `from` if `in` is nil and `from` is non-empty, in other cases it returns `in`.

func NewClient

func NewClient(opts *argocd.ClientOptions) *argocd.Client

NewClient creates new argocd Client with provided argocd Configurations/Credentials.

func StringToPtr

func StringToPtr(s string) *string

StringToPtr converts string to *string

func StringValue

func StringValue(ptr *string) string

StringValue converts a *string to string

func UseProviderConfig

func UseProviderConfig(ctx context.Context, c client.Client, mg resource.Managed) (*argocd.ClientOptions, error)

UseProviderConfig to produce a config that can be used to authenticate to AWS.

Types

This section is empty.

Directories

Path Synopsis
mock
applications
Package application is a generated GoMock package.
Package application is a generated GoMock package.
applicationsets
Package applicationsets is a generated GoMock package.
Package applicationsets is a generated GoMock package.
cluster
Package cluster is a generated GoMock package.
Package cluster is a generated GoMock package.
projects
Package projects is a generated GoMock package.
Package projects is a generated GoMock package.
repositories
Package repositories is a generated GoMock package.
Package repositories is a generated GoMock package.

Jump to

Keyboard shortcuts

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