Documentation ¶
Index ¶
- Constants
- Variables
- type AgentApiV1AlphaApi
- type AgentTypeApiV1AlphaApi
- func (c *AgentTypeApiV1AlphaApi) CreateAgentType(d *models.AgentTypeV1Alpha) (*models.AgentTypeV1Alpha, error)
- func (c *AgentTypeApiV1AlphaApi) DeleteAgentType(name string) error
- func (c *AgentTypeApiV1AlphaApi) GetAgentType(name string) (*models.AgentTypeV1Alpha, error)
- func (c *AgentTypeApiV1AlphaApi) ListAgentTypes() (*models.AgentTypeListV1Alpha, error)
- type BaseClient
- func (c *BaseClient) Delete(kind string, name string) ([]byte, int, error)
- func (c *BaseClient) Get(kind string, resource string) ([]byte, int, error)
- func (c *BaseClient) List(kind string) ([]byte, int, error)
- func (c *BaseClient) ListWithParams(kind string, query url.Values) ([]byte, int, error)
- func (c *BaseClient) Patch(kind string, name string, resource []byte) ([]byte, int, error)
- func (c *BaseClient) Post(kind string, resource []byte) ([]byte, int, error)
- func (c *BaseClient) PostAction(kind, item, action string, resource []byte) ([]byte, int, error)
- func (c *BaseClient) PostHeaders(kind string, resource []byte, headers map[string]string) ([]byte, int, error)
- func (c *BaseClient) PostMultipart(kind string, args map[string]string, fileArgName, path string) ([]byte, int, error)
- func (c *BaseClient) SetApiVersion(apiVersion string) *BaseClient
- type DashboardApiV1AlphaApi
- func (c *DashboardApiV1AlphaApi) CreateDashboard(d *models.DashboardV1Alpha) (*models.DashboardV1Alpha, error)
- func (c *DashboardApiV1AlphaApi) DeleteDashboard(name string) error
- func (c *DashboardApiV1AlphaApi) GetDashboard(name string) (*models.DashboardV1Alpha, error)
- func (c *DashboardApiV1AlphaApi) ListDashboards() (*models.DashboardListV1Alpha, error)
- func (c *DashboardApiV1AlphaApi) UpdateDashboard(d *models.DashboardV1Alpha) (*models.DashboardV1Alpha, error)
- type DeploymentTargetsApiV1AlphaApi
- func (c *DeploymentTargetsApiV1AlphaApi) Activate(targetId string) (bool, error)
- func (c *DeploymentTargetsApiV1AlphaApi) Create(createRequest *models.DeploymentTargetCreateRequestV1Alpha) (*models.DeploymentTargetV1Alpha, error)
- func (c *DeploymentTargetsApiV1AlphaApi) Deactivate(targetId string) (bool, error)
- func (c *DeploymentTargetsApiV1AlphaApi) Delete(targetId string) error
- func (c *DeploymentTargetsApiV1AlphaApi) Describe(targetId string) (*models.DeploymentTargetV1Alpha, error)
- func (c *DeploymentTargetsApiV1AlphaApi) DescribeByName(targetName, projectId string) (*models.DeploymentTargetV1Alpha, error)
- func (c *DeploymentTargetsApiV1AlphaApi) DescribeWithSecrets(targetId string) (*models.DeploymentTargetV1Alpha, error)
- func (c *DeploymentTargetsApiV1AlphaApi) History(targetId string, historyRequest models.HistoryRequestFiltersV1Alpha) (*models.DeploymentsHistoryV1Alpha, error)
- func (c *DeploymentTargetsApiV1AlphaApi) List(projectId string) (*models.DeploymentTargetListV1Alpha, error)
- func (c *DeploymentTargetsApiV1AlphaApi) Update(updateRequest *models.DeploymentTargetUpdateRequestV1Alpha) (*models.DeploymentTargetV1Alpha, error)
- type JobsApiV1AlphaApi
- func (c *JobsApiV1AlphaApi) CreateDebugJob(j *models.DebugJobV1Alpha) (*models.JobV1Alpha, error)
- func (c *JobsApiV1AlphaApi) CreateDebugProject(j *models.DebugProjectV1Alpha) (*models.JobV1Alpha, error)
- func (c *JobsApiV1AlphaApi) CreateJob(j *models.JobV1Alpha) (*models.JobV1Alpha, error)
- func (c *JobsApiV1AlphaApi) GetJob(name string) (*models.JobV1Alpha, error)
- func (c *JobsApiV1AlphaApi) GetJobDebugSSHKey(id string) (*models.JobDebugSSHKeyV1Alpha, error)
- func (c *JobsApiV1AlphaApi) ListJobs(states []string) (*models.JobListV1Alpha, error)
- func (c *JobsApiV1AlphaApi) StopJob(id string) error
- type NotificationsV1AlphaApi
- func (c *NotificationsV1AlphaApi) CreateNotification(n *models.NotificationV1Alpha) (*models.NotificationV1Alpha, error)
- func (c *NotificationsV1AlphaApi) DeleteNotification(name string) error
- func (c *NotificationsV1AlphaApi) GetNotification(name string) (*models.NotificationV1Alpha, error)
- func (c *NotificationsV1AlphaApi) ListNotifications() (*models.NotificationListV1Alpha, error)
- func (c *NotificationsV1AlphaApi) UpdateNotification(n *models.NotificationV1Alpha) (*models.NotificationV1Alpha, error)
- type PipelinesApiV1AlphaApi
- func (c *PipelinesApiV1AlphaApi) DescribePpl(id string) (*models.PipelineV1Alpha, error)
- func (c *PipelinesApiV1AlphaApi) ListPpl(projectID string) ([]byte, error)
- func (c *PipelinesApiV1AlphaApi) ListPplByWfID(projectID, wfID string) ([]byte, error)
- func (c *PipelinesApiV1AlphaApi) PartialRebuildPpl(id string) ([]byte, error)
- func (c *PipelinesApiV1AlphaApi) StopPpl(id string) ([]byte, error)
- type ProjectApiV1AlphaApi
- func (c *ProjectApiV1AlphaApi) CreateProject(d *models.ProjectV1Alpha) (*models.ProjectV1Alpha, error)
- func (c *ProjectApiV1AlphaApi) DeleteProject(name string) error
- func (c *ProjectApiV1AlphaApi) GetProject(name string) (*models.ProjectV1Alpha, error)
- func (c *ProjectApiV1AlphaApi) ListProjects() (*models.ProjectListV1Alpha, error)
- func (c *ProjectApiV1AlphaApi) UpdateProject(d *models.ProjectV1Alpha) (*models.ProjectV1Alpha, error)
- type ProjectSecretsApiV1Api
- func (c *ProjectSecretsApiV1Api) CreateSecret(d *models.ProjectSecretV1) (*models.ProjectSecretV1, error)
- func (c *ProjectSecretsApiV1Api) DeleteSecret(name string) error
- func (c *ProjectSecretsApiV1Api) GetSecret(name string) (*models.ProjectSecretV1, error)
- func (c *ProjectSecretsApiV1Api) ListSecrets() (*models.SecretListV1Beta, error)
- func (c *ProjectSecretsApiV1Api) UpdateSecret(d *models.ProjectSecretV1) (*models.ProjectSecretV1, error)
- type SecretApiV1BetaApi
- func (c *SecretApiV1BetaApi) CreateSecret(d *models.SecretV1Beta) (*models.SecretV1Beta, error)
- func (c *SecretApiV1BetaApi) DeleteSecret(name string) error
- func (c *SecretApiV1BetaApi) GetSecret(name string) (*models.SecretV1Beta, error)
- func (c *SecretApiV1BetaApi) ListSecrets() (*models.SecretListV1Beta, error)
- func (c *SecretApiV1BetaApi) UpdateSecret(d *models.SecretV1Beta) (*models.SecretV1Beta, error)
- type TroubleshootApiV1AlphaApi
- func (c *TroubleshootApiV1AlphaApi) TroubleshootJob(jobID string) (*models.TroubleshootV1Alpha, error)
- func (c *TroubleshootApiV1AlphaApi) TroubleshootPipeline(pplID string) (*models.TroubleshootV1Alpha, error)
- func (c *TroubleshootApiV1AlphaApi) TroubleshootWorkflow(workflowID string) (*models.TroubleshootV1Alpha, error)
- type WorkflowApiV1AlphaApi
- func (c *WorkflowApiV1AlphaApi) CreateSnapshotWf(project_id, label, archivePath string) ([]byte, error)
- func (c *WorkflowApiV1AlphaApi) ListWorkflows(project_id string) (*models.WorkflowListV1Alpha, error)
- func (c *WorkflowApiV1AlphaApi) Rebuild(id string) ([]byte, error)
- func (c *WorkflowApiV1AlphaApi) StopWf(id string) ([]byte, error)
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 (c *AgentTypeApiV1AlphaApi) CreateAgentType(d *models.AgentTypeV1Alpha) (*models.AgentTypeV1Alpha, error)
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) ListWithParams ¶
func (*BaseClient) PostAction ¶
func (*BaseClient) PostHeaders ¶
func (*BaseClient) PostMultipart ¶
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 (c *DashboardApiV1AlphaApi) CreateDashboard(d *models.DashboardV1Alpha) (*models.DashboardV1Alpha, error)
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 ¶
func (c *DashboardApiV1AlphaApi) UpdateDashboard(d *models.DashboardV1Alpha) (*models.DashboardV1Alpha, error)
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 (c *DeploymentTargetsApiV1AlphaApi) Create(createRequest *models.DeploymentTargetCreateRequestV1Alpha) (*models.DeploymentTargetV1Alpha, error)
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 (c *DeploymentTargetsApiV1AlphaApi) Describe(targetId string) (*models.DeploymentTargetV1Alpha, error)
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 (c *DeploymentTargetsApiV1AlphaApi) History(targetId string, historyRequest models.HistoryRequestFiltersV1Alpha) (*models.DeploymentsHistoryV1Alpha, error)
func (*DeploymentTargetsApiV1AlphaApi) List ¶
func (c *DeploymentTargetsApiV1AlphaApi) List(projectId string) (*models.DeploymentTargetListV1Alpha, error)
func (*DeploymentTargetsApiV1AlphaApi) Update ¶
func (c *DeploymentTargetsApiV1AlphaApi) Update(updateRequest *models.DeploymentTargetUpdateRequestV1Alpha) (*models.DeploymentTargetV1Alpha, error)
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 (c *JobsApiV1AlphaApi) CreateJob(j *models.JobV1Alpha) (*models.JobV1Alpha, error)
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 (c *NotificationsV1AlphaApi) CreateNotification(n *models.NotificationV1Alpha) (*models.NotificationV1Alpha, error)
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 ¶
func (c *NotificationsV1AlphaApi) UpdateNotification(n *models.NotificationV1Alpha) (*models.NotificationV1Alpha, error)
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)
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 (c *ProjectApiV1AlphaApi) CreateProject(d *models.ProjectV1Alpha) (*models.ProjectV1Alpha, error)
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 ¶
func (c *ProjectApiV1AlphaApi) UpdateProject(d *models.ProjectV1Alpha) (*models.ProjectV1Alpha, error)
type ProjectSecretsApiV1Api ¶
type ProjectSecretsApiV1Api struct { BaseClient BaseClient ResourceNameSingular string ResourceNamePlural string }
func NewProjectSecretV1Api ¶
func NewProjectSecretV1Api(projectID string) ProjectSecretsApiV1Api
func (*ProjectSecretsApiV1Api) CreateSecret ¶
func (c *ProjectSecretsApiV1Api) CreateSecret(d *models.ProjectSecretV1) (*models.ProjectSecretV1, error)
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 ¶
func (c *ProjectSecretsApiV1Api) UpdateSecret(d *models.ProjectSecretV1) (*models.ProjectSecretV1, error)
type SecretApiV1BetaApi ¶
type SecretApiV1BetaApi struct { BaseClient BaseClient ResourceNameSingular string ResourceNamePlural string }
func NewSecretV1BetaApi ¶
func NewSecretV1BetaApi() SecretApiV1BetaApi
func (*SecretApiV1BetaApi) CreateSecret ¶
func (c *SecretApiV1BetaApi) CreateSecret(d *models.SecretV1Beta) (*models.SecretV1Beta, error)
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 ¶
func (c *SecretApiV1BetaApi) UpdateSecret(d *models.SecretV1Beta) (*models.SecretV1Beta, error)
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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.