Documentation
¶
Index ¶
- Constants
- type ArgoCDClient
- func (a *ArgoCDClient) Create(req *model.CreteRequestPayload) (json.RawMessage, error)
- func (a *ArgoCDClient) CreateOrUpdateCluster(ctx context.Context, clusterName, kubeconfigData string) error
- func (a *ArgoCDClient) CreateRepository(ctx context.Context, repo *Repository) (*v1alpha1.Repository, error)
- func (a *ArgoCDClient) Delete(req *model.DeleteRequestPayload) (json.RawMessage, error)
- func (a *ArgoCDClient) DeleteCluster(ctx context.Context, clusterURL string) (*cluster.ClusterResponse, error)
- func (a *ArgoCDClient) DeleteRepository(ctx context.Context, repo string) (*repository.RepoResponse, error)
- func (a *ArgoCDClient) GetAppSyncStatus(ctx context.Context, namespace, name string) (*v1alpha1.Application, error)
- func (a *ArgoCDClient) GetCluster(ctx context.Context, clusterURL string) (*v1alpha1.Cluster, error)
- func (a *ArgoCDClient) GetRepository(ctx context.Context, repo string) (*v1alpha1.Repository, error)
- func (a *ArgoCDClient) List(req *model.ListRequestPayload) (json.RawMessage, error)
- func (a *ArgoCDClient) ListClusters(ctx context.Context) (*v1alpha1.ClusterList, error)
- func (a *ArgoCDClient) ListRepositories(ctx context.Context) (*v1alpha1.RepositoryList, error)
- func (a *ArgoCDClient) TriggerAppSync(ctx context.Context, namespace, name string) (*v1alpha1.Application, error)
- type Configuration
- type ConnectionState
- type Repository
- type TokenResponse
Constants ¶
View Source
const ( CredEntityName = "k8s" CredIdentifier = "kubeconfig" )
View Source
const TokenPath = "api/v1/session"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgoCDClient ¶
type ArgoCDClient struct {
// contains filtered or unexported fields
}
func (*ArgoCDClient) Create ¶
func (a *ArgoCDClient) Create(req *model.CreteRequestPayload) (json.RawMessage, error)
func (*ArgoCDClient) CreateOrUpdateCluster ¶
func (a *ArgoCDClient) CreateOrUpdateCluster(ctx context.Context, clusterName, kubeconfigData string) error
func (*ArgoCDClient) CreateRepository ¶
func (a *ArgoCDClient) CreateRepository(ctx context.Context, repo *Repository) (*v1alpha1.Repository, error)
func (*ArgoCDClient) Delete ¶
func (a *ArgoCDClient) Delete(req *model.DeleteRequestPayload) (json.RawMessage, error)
func (*ArgoCDClient) DeleteCluster ¶
func (a *ArgoCDClient) DeleteCluster(ctx context.Context, clusterURL string) (*cluster.ClusterResponse, error)
func (*ArgoCDClient) DeleteRepository ¶
func (a *ArgoCDClient) DeleteRepository(ctx context.Context, repo string) (*repository.RepoResponse, error)
func (*ArgoCDClient) GetAppSyncStatus ¶
func (a *ArgoCDClient) GetAppSyncStatus(ctx context.Context, namespace, name string) (*v1alpha1.Application, error)
func (*ArgoCDClient) GetCluster ¶
func (*ArgoCDClient) GetRepository ¶
func (a *ArgoCDClient) GetRepository(ctx context.Context, repo string) (*v1alpha1.Repository, error)
func (*ArgoCDClient) List ¶
func (a *ArgoCDClient) List(req *model.ListRequestPayload) (json.RawMessage, error)
func (*ArgoCDClient) ListClusters ¶
func (a *ArgoCDClient) ListClusters(ctx context.Context) (*v1alpha1.ClusterList, error)
func (*ArgoCDClient) ListRepositories ¶
func (a *ArgoCDClient) ListRepositories(ctx context.Context) (*v1alpha1.RepositoryList, error)
func (*ArgoCDClient) TriggerAppSync ¶
func (a *ArgoCDClient) TriggerAppSync(ctx context.Context, namespace, name string) (*v1alpha1.Application, error)
type Configuration ¶
type Configuration struct { ServiceURL string `envconfig:"ARGOCD_SERVICE_URL" default:"argo-cd-argocd-server.argo-cd.svc.cluster.local"` IsSSLEnabled bool `envconfig:"IS_SSL_ENABLED" default:"false"` Username string `envconfig:"USERNAME" default:"admin"` Password string `envconfig:"ARGOCD_PASSWORD"` }
type ConnectionState ¶
type Repository ¶
type Repository struct { Project string `json:"Project"` Repo string `json:"Repo"` Username string `json:"Username"` Password string `json:"Password"` Type string `json:"Type"` Insecure bool `json:"Insecure"` EnableLFS bool `json:"EnableLFS"` InsecureIgnoreHostKey bool `json:"InsecureIgnoreHostKey"` ConnectionState ConnectionState `json:"ConnectionState"` Upsert bool `json:"Upsert"` }
type TokenResponse ¶
type TokenResponse struct {
Token string `json:"token" required:"true"`
}
Click to show internal directories.
Click to hide internal directories.