argocdclient

package
v0.0.0-...-cf479b4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgoCDClient

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

func NewArgoCDClient

func NewArgoCDClient(serverAddr string, username string, password string, insecure bool, caCertPath string) (*ArgoCDClient, error)

func (*ArgoCDClient) CreateApplication

func (c *ArgoCDClient) CreateApplication(newApp *application.ApplicationCreateRequest) (*v1alpha1.Application, error)

func (*ArgoCDClient) DoRequestWithRetry

func (c *ArgoCDClient) DoRequestWithRetry(requestFunc func(appClient application.ApplicationServiceClient) error) error

func (*ArgoCDClient) GetApplication

func (c *ArgoCDClient) GetApplication(query application.ApplicationQuery) (*v1alpha1.Application, error)

func (*ArgoCDClient) ListApplications

func (c *ArgoCDClient) ListApplications() (*v1alpha1.ApplicationList, error)

type LoginRequest

type LoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type LoginResponse

type LoginResponse struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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