client

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DeactivateOpName = "deactivate"
	ActivateOpName   = "activate"
)

Variables

View Source
var UserAgent = "" // injected via main on every release

Functions

This section is empty.

Types

type AgentApiV1AlphaApi

type AgentApiV1AlphaApi struct {
	BaseClient           BaseClient
	ResourceNameSingular string
	ResourceNamePlural   string
}

func NewAgentApiV1AlphaApi

func NewAgentApiV1AlphaApi() AgentApiV1AlphaApi

func (*AgentApiV1AlphaApi) GetAgent

func (c *AgentApiV1AlphaApi) GetAgent(name string) (*models.AgentV1Alpha, error)

func (*AgentApiV1AlphaApi) ListAgents

func (c *AgentApiV1AlphaApi) ListAgents(agentType string, cursor string) (*models.AgentListV1Alpha, error)

type AgentTypeApiV1AlphaApi

type AgentTypeApiV1AlphaApi struct {
	BaseClient           BaseClient
	ResourceNameSingular string
	ResourceNamePlural   string
}

func NewAgentTypeApiV1AlphaApi

func NewAgentTypeApiV1AlphaApi() AgentTypeApiV1AlphaApi

func (*AgentTypeApiV1AlphaApi) CreateAgentType

func (*AgentTypeApiV1AlphaApi) DeleteAgentType

func (c *AgentTypeApiV1AlphaApi) DeleteAgentType(name string) error

func (*AgentTypeApiV1AlphaApi) GetAgentType

func (c *AgentTypeApiV1AlphaApi) GetAgentType(name string) (*models.AgentTypeV1Alpha, error)

func (*AgentTypeApiV1AlphaApi) ListAgentTypes

func (c *AgentTypeApiV1AlphaApi) ListAgentTypes() (*models.AgentTypeListV1Alpha, error)

type BaseClient

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

func NewBaseClient

func NewBaseClient(authToken string, host string, apiVersion string) BaseClient

func NewBaseClientFromConfig

func NewBaseClientFromConfig() BaseClient

func (*BaseClient) Delete

func (c *BaseClient) Delete(kind string, name string) ([]byte, int, error)

func (*BaseClient) Get

func (c *BaseClient) Get(kind string, resource string) ([]byte, int, error)

func (*BaseClient) List

func (c *BaseClient) List(kind string) ([]byte, int, error)

func (*BaseClient) ListWithParams

func (c *BaseClient) ListWithParams(kind string, query url.Values) ([]byte, int, error)

func (*BaseClient) Patch

func (c *BaseClient) Patch(kind string, name string, resource []byte) ([]byte, int, error)

func (*BaseClient) Post

func (c *BaseClient) Post(kind string, resource []byte) ([]byte, int, error)

func (*BaseClient) PostAction

func (c *BaseClient) PostAction(kind, item, action string, resource []byte) ([]byte, int, error)

func (*BaseClient) PostHeaders

func (c *BaseClient) PostHeaders(kind string, resource []byte, headers map[string]string) ([]byte, int, error)

func (*BaseClient) PostMultipart

func (c *BaseClient) PostMultipart(kind string, args map[string]string, fileArgName, path string) ([]byte, int, error)

func (*BaseClient) SetApiVersion

func (c *BaseClient) SetApiVersion(apiVersion string) *BaseClient

type DashboardApiV1AlphaApi

type DashboardApiV1AlphaApi struct {
	BaseClient           BaseClient
	ResourceNameSingular string
	ResourceNamePlural   string
}

func NewDashboardV1AlphaApi

func NewDashboardV1AlphaApi() DashboardApiV1AlphaApi

func (*DashboardApiV1AlphaApi) CreateDashboard

func (*DashboardApiV1AlphaApi) DeleteDashboard

func (c *DashboardApiV1AlphaApi) DeleteDashboard(name string) error

func (*DashboardApiV1AlphaApi) GetDashboard

func (c *DashboardApiV1AlphaApi) GetDashboard(name string) (*models.DashboardV1Alpha, error)

func (*DashboardApiV1AlphaApi) ListDashboards

func (c *DashboardApiV1AlphaApi) ListDashboards() (*models.DashboardListV1Alpha, error)

func (*DashboardApiV1AlphaApi) UpdateDashboard

type DeploymentTargetsApiV1AlphaApi

type DeploymentTargetsApiV1AlphaApi struct {
	BaseClient           BaseClient
	ResourceNameSingular string
	ResourceNamePlural   string
}

func NewDeploymentTargetsV1AlphaApi

func NewDeploymentTargetsV1AlphaApi() DeploymentTargetsApiV1AlphaApi

func (*DeploymentTargetsApiV1AlphaApi) Activate

func (c *DeploymentTargetsApiV1AlphaApi) Activate(targetId string) (bool, error)

func (*DeploymentTargetsApiV1AlphaApi) Create

func (*DeploymentTargetsApiV1AlphaApi) Deactivate

func (c *DeploymentTargetsApiV1AlphaApi) Deactivate(targetId string) (bool, error)

func (*DeploymentTargetsApiV1AlphaApi) Delete

func (c *DeploymentTargetsApiV1AlphaApi) Delete(targetId string) error

func (*DeploymentTargetsApiV1AlphaApi) Describe

func (*DeploymentTargetsApiV1AlphaApi) DescribeByName

func (c *DeploymentTargetsApiV1AlphaApi) DescribeByName(targetName, projectId string) (*models.DeploymentTargetV1Alpha, error)

func (*DeploymentTargetsApiV1AlphaApi) DescribeWithSecrets

func (c *DeploymentTargetsApiV1AlphaApi) DescribeWithSecrets(targetId string) (*models.DeploymentTargetV1Alpha, error)

func (*DeploymentTargetsApiV1AlphaApi) History

func (*DeploymentTargetsApiV1AlphaApi) List

func (*DeploymentTargetsApiV1AlphaApi) Update

type JobsApiV1AlphaApi

type JobsApiV1AlphaApi struct {
	BaseClient           BaseClient
	ResourceNameSingular string
	ResourceNamePlural   string
}

func NewJobsV1AlphaApi

func NewJobsV1AlphaApi() JobsApiV1AlphaApi

func (*JobsApiV1AlphaApi) CreateDebugJob

func (c *JobsApiV1AlphaApi) CreateDebugJob(j *models.DebugJobV1Alpha) (*models.JobV1Alpha, error)

func (*JobsApiV1AlphaApi) CreateDebugProject

func (c *JobsApiV1AlphaApi) CreateDebugProject(j *models.DebugProjectV1Alpha) (*models.JobV1Alpha, error)

func (*JobsApiV1AlphaApi) CreateJob

func (*JobsApiV1AlphaApi) GetJob

func (c *JobsApiV1AlphaApi) GetJob(name string) (*models.JobV1Alpha, error)

func (*JobsApiV1AlphaApi) GetJobDebugSSHKey

func (c *JobsApiV1AlphaApi) GetJobDebugSSHKey(id string) (*models.JobDebugSSHKeyV1Alpha, error)

func (*JobsApiV1AlphaApi) ListJobs

func (c *JobsApiV1AlphaApi) ListJobs(states []string) (*models.JobListV1Alpha, error)

func (*JobsApiV1AlphaApi) StopJob

func (c *JobsApiV1AlphaApi) StopJob(id string) error

type NotificationsV1AlphaApi

type NotificationsV1AlphaApi struct {
	BaseClient           BaseClient
	ResourceNameSingular string
	ResourceNamePlural   string
}

func NewNotificationsV1AlphaApi

func NewNotificationsV1AlphaApi() NotificationsV1AlphaApi

func (*NotificationsV1AlphaApi) CreateNotification

func (*NotificationsV1AlphaApi) DeleteNotification

func (c *NotificationsV1AlphaApi) DeleteNotification(name string) error

func (*NotificationsV1AlphaApi) GetNotification

func (c *NotificationsV1AlphaApi) GetNotification(name string) (*models.NotificationV1Alpha, error)

func (*NotificationsV1AlphaApi) ListNotifications

func (c *NotificationsV1AlphaApi) ListNotifications() (*models.NotificationListV1Alpha, error)

func (*NotificationsV1AlphaApi) UpdateNotification

type PipelinesApiV1AlphaApi

type PipelinesApiV1AlphaApi struct {
	BaseClient           BaseClient
	ResourceNameSingular string
	ResourceNamePlural   string
}

func NewPipelinesV1AlphaApi

func NewPipelinesV1AlphaApi() PipelinesApiV1AlphaApi

func (*PipelinesApiV1AlphaApi) DescribePpl

func (c *PipelinesApiV1AlphaApi) DescribePpl(id string) (*models.PipelineV1Alpha, error)

func (*PipelinesApiV1AlphaApi) ListPpl

func (c *PipelinesApiV1AlphaApi) ListPpl(projectID string) ([]byte, error)

func (*PipelinesApiV1AlphaApi) ListPplByWfID

func (c *PipelinesApiV1AlphaApi) ListPplByWfID(projectID, wfID string) ([]byte, error)

func (*PipelinesApiV1AlphaApi) PartialRebuildPpl

func (c *PipelinesApiV1AlphaApi) PartialRebuildPpl(id string) ([]byte, error)

func (*PipelinesApiV1AlphaApi) StopPpl

func (c *PipelinesApiV1AlphaApi) StopPpl(id string) ([]byte, error)

type ProjectApiV1AlphaApi

type ProjectApiV1AlphaApi struct {
	BaseClient           BaseClient
	ResourceNameSingular string
	ResourceNamePlural   string
}

func NewProjectV1AlphaApi

func NewProjectV1AlphaApi() ProjectApiV1AlphaApi

func NewProjectV1AlphaApiWithCustomClient

func NewProjectV1AlphaApiWithCustomClient(client BaseClient) ProjectApiV1AlphaApi

func (*ProjectApiV1AlphaApi) CreateProject

func (*ProjectApiV1AlphaApi) DeleteProject

func (c *ProjectApiV1AlphaApi) DeleteProject(name string) error

func (*ProjectApiV1AlphaApi) GetProject

func (c *ProjectApiV1AlphaApi) GetProject(name string) (*models.ProjectV1Alpha, error)

func (*ProjectApiV1AlphaApi) ListProjects

func (c *ProjectApiV1AlphaApi) ListProjects() (*models.ProjectListV1Alpha, error)

func (*ProjectApiV1AlphaApi) UpdateProject

type ProjectSecretsApiV1Api

type ProjectSecretsApiV1Api struct {
	BaseClient           BaseClient
	ResourceNameSingular string
	ResourceNamePlural   string
}

func NewProjectSecretV1Api

func NewProjectSecretV1Api(projectID string) ProjectSecretsApiV1Api

func (*ProjectSecretsApiV1Api) CreateSecret

func (*ProjectSecretsApiV1Api) DeleteSecret

func (c *ProjectSecretsApiV1Api) DeleteSecret(name string) error

func (*ProjectSecretsApiV1Api) GetSecret

func (c *ProjectSecretsApiV1Api) GetSecret(name string) (*models.ProjectSecretV1, error)

func (*ProjectSecretsApiV1Api) ListSecrets

func (c *ProjectSecretsApiV1Api) ListSecrets() (*models.SecretListV1Beta, error)

func (*ProjectSecretsApiV1Api) UpdateSecret

type SecretApiV1BetaApi

type SecretApiV1BetaApi struct {
	BaseClient           BaseClient
	ResourceNameSingular string
	ResourceNamePlural   string
}

func NewSecretV1BetaApi

func NewSecretV1BetaApi() SecretApiV1BetaApi

func (*SecretApiV1BetaApi) CreateSecret

func (*SecretApiV1BetaApi) DeleteSecret

func (c *SecretApiV1BetaApi) DeleteSecret(name string) error

func (*SecretApiV1BetaApi) GetSecret

func (c *SecretApiV1BetaApi) GetSecret(name string) (*models.SecretV1Beta, error)

func (*SecretApiV1BetaApi) ListSecrets

func (c *SecretApiV1BetaApi) ListSecrets() (*models.SecretListV1Beta, error)

func (*SecretApiV1BetaApi) UpdateSecret

type TroubleshootApiV1AlphaApi

type TroubleshootApiV1AlphaApi struct {
	BaseClient           BaseClient
	ResourceNameSingular string
	ResourceNamePlural   string
}

func NewTroubleshootV1AlphaApi

func NewTroubleshootV1AlphaApi() TroubleshootApiV1AlphaApi

func (*TroubleshootApiV1AlphaApi) TroubleshootJob

func (c *TroubleshootApiV1AlphaApi) TroubleshootJob(jobID string) (*models.TroubleshootV1Alpha, error)

func (*TroubleshootApiV1AlphaApi) TroubleshootPipeline

func (c *TroubleshootApiV1AlphaApi) TroubleshootPipeline(pplID string) (*models.TroubleshootV1Alpha, error)

func (*TroubleshootApiV1AlphaApi) TroubleshootWorkflow

func (c *TroubleshootApiV1AlphaApi) TroubleshootWorkflow(workflowID string) (*models.TroubleshootV1Alpha, error)

type WorkflowApiV1AlphaApi

type WorkflowApiV1AlphaApi struct {
	BaseClient           BaseClient
	ResourceNameSingular string
	ResourceNamePlural   string
}

func NewWorkflowV1AlphaApi

func NewWorkflowV1AlphaApi() WorkflowApiV1AlphaApi

func (*WorkflowApiV1AlphaApi) CreateSnapshotWf

func (c *WorkflowApiV1AlphaApi) CreateSnapshotWf(project_id, label, archivePath string) ([]byte, error)

func (*WorkflowApiV1AlphaApi) ListWorkflows

func (c *WorkflowApiV1AlphaApi) ListWorkflows(project_id string) (*models.WorkflowListV1Alpha, error)

func (*WorkflowApiV1AlphaApi) Rebuild

func (c *WorkflowApiV1AlphaApi) Rebuild(id string) ([]byte, error)

func (*WorkflowApiV1AlphaApi) StopWf

func (c *WorkflowApiV1AlphaApi) StopWf(id string) ([]byte, error)

Jump to

Keyboard shortcuts

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