models

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: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeploymentTargetKindV1Alpha = "DeploymentTarget"

	ObjectRuleTypeBranchV1Alpha      = "BRANCH"
	ObjectRuleTypeTagV1Alpha         = "TAG"
	ObjectRuleTypePullRequestV1Alpha = "PR"

	ObjectRuleMatchModeAllV1Alpha   = "ALL"
	ObjectRuleMatchModeExactV1Alpha = "EXACT"
	ObjectRuleMatchModeRegexV1Alpha = "REGEX"

	HistoryRequestCursorTypeFirstV1Alpha  = "FIRST"
	HistoryRequestCursorTypeAfterV1Alpha  = "AFTER"
	HistoryRequestCursorTypeBeforeV1Alpha = "BEFORE"
)

Variables

View Source
var DeploymentTargetCmdAliases = []string{"deployment-target", "deployment-targets", "dt", "dts", "deployment", "deployments"}

Functions

This section is empty.

Types

type AgentListV1Alpha

type AgentListV1Alpha struct {
	Agents []AgentV1Alpha `json:"agents" yaml:"agents"`
	Cursor string         `json:"cursor" yaml:"cursor"`
}

func NewAgentListV1AlphaFromJson

func NewAgentListV1AlphaFromJson(data []byte) (*AgentListV1Alpha, error)

type AgentTypeListV1Alpha

type AgentTypeListV1Alpha struct {
	AgentTypes []AgentTypeV1Alpha `json:"agent_types" yaml:"agent_types"`
}

func NewAgentTypeListV1AlphaFromJson

func NewAgentTypeListV1AlphaFromJson(data []byte) (*AgentTypeListV1Alpha, error)

type AgentTypeV1Alpha

type AgentTypeV1Alpha struct {
	ApiVersion string                   `json:"apiVersion,omitempty" yaml:"apiVersion"`
	Kind       string                   `json:"kind,omitempty" yaml:"kind"`
	Metadata   AgentTypeV1AlphaMetadata `json:"metadata" yaml:"metadata"`
	Status     AgentTypeV1AlphaStatus   `json:"status" yaml:"status"`
}

func NewAgentTypeV1Alpha

func NewAgentTypeV1Alpha(name string) AgentTypeV1Alpha

func NewAgentTypeV1AlphaFromJson

func NewAgentTypeV1AlphaFromJson(data []byte) (*AgentTypeV1Alpha, error)

func NewAgentTypeV1AlphaFromYaml

func NewAgentTypeV1AlphaFromYaml(data []byte) (*AgentTypeV1Alpha, error)

func (*AgentTypeV1Alpha) ObjectName

func (s *AgentTypeV1Alpha) ObjectName() string

func (*AgentTypeV1Alpha) ToJson

func (s *AgentTypeV1Alpha) ToJson() ([]byte, error)

func (*AgentTypeV1Alpha) ToYaml

func (s *AgentTypeV1Alpha) ToYaml() ([]byte, error)

type AgentTypeV1AlphaMetadata

type AgentTypeV1AlphaMetadata struct {
	Name       string      `json:"name,omitempty" yaml:"name,omitempty"`
	CreateTime json.Number `json:"create_time,omitempty" yaml:"create_time,omitempty"`
	UpdateTime json.Number `json:"update_time,omitempty" yaml:"update_time,omitempty"`
}

type AgentTypeV1AlphaStatus

type AgentTypeV1AlphaStatus struct {
	TotalAgentCount   int    `json:"total_agent_count,omitempty" yaml:"total_agent_count,omitempty"`
	RegistrationToken string `json:"registration_token,omitempty" yaml:"registration_token,omitempty"`
}

type AgentV1Alpha

type AgentV1Alpha struct {
	ApiVersion string               `json:"apiVersion,omitempty" yaml:"apiVersion"`
	Kind       string               `json:"kind,omitempty" yaml:"kind"`
	Metadata   AgentV1AlphaMetadata `json:"metadata" yaml:"metadata"`
	Status     AgentV1AlphaStatus   `json:"status" yaml:"status"`
}

func NewAgentV1Alpha

func NewAgentV1Alpha(name string) AgentV1Alpha

func NewAgentV1AlphaFromJson

func NewAgentV1AlphaFromJson(data []byte) (*AgentV1Alpha, error)

func NewAgentV1AlphaFromYaml

func NewAgentV1AlphaFromYaml(data []byte) (*AgentV1Alpha, error)

func (*AgentV1Alpha) ObjectName

func (s *AgentV1Alpha) ObjectName() string

func (*AgentV1Alpha) ToJson

func (s *AgentV1Alpha) ToJson() ([]byte, error)

func (*AgentV1Alpha) ToYaml

func (s *AgentV1Alpha) ToYaml() ([]byte, error)

type AgentV1AlphaMetadata

type AgentV1AlphaMetadata struct {
	Name        string      `json:"name,omitempty" yaml:"name,omitempty"`
	Type        string      `json:"type,omitempty" yaml:"type,omitempty"`
	ConnectedAt json.Number `json:"connected_at,omitempty" yaml:"connected_at,omitempty"`
	DisabledAt  json.Number `json:"disabled_at,omitempty" yaml:"disabled_at,omitempty"`
	Version     string      `json:"version,omitempty" yaml:"version,omitempty"`
	OS          string      `json:"os,omitempty" yaml:"os,omitempty"`
	Arch        string      `json:"arch,omitempty" yaml:"arch,omitempty"`
	Hostname    string      `json:"hostname,omitempty" yaml:"hostname,omitempty"`
	IPAddress   string      `json:"ip_address,omitempty" yaml:"ip_address,omitempty"`
	PID         json.Number `json:"pid,omitempty" yaml:"pid,omitempty"`
}

type AgentV1AlphaStatus

type AgentV1AlphaStatus struct {
	State string `json:"state,omitempty" yaml:"state,omitempty"`
}

type CordonResponseV1Alpha

type CordonResponseV1Alpha struct {
	TargetId string `json:"target_id,omitempty" yaml:"target_id,omitempty"`
	Cordoned bool   `json:"cordoned,omitempty" yaml:"cordoned,omitempty"`
}

func NewCordonResponseV1AlphaFromJson

func NewCordonResponseV1AlphaFromJson(data []byte) (*CordonResponseV1Alpha, error)

type DashboardListV1Alpha

type DashboardListV1Alpha struct {
	Dashboards []DashboardV1Alpha `json:"dashboards" yaml:"dashboards"`
}

func NewDashboardListV1AlphaFromJson

func NewDashboardListV1AlphaFromJson(data []byte) (*DashboardListV1Alpha, error)

type DashboardV1Alpha

type DashboardV1Alpha struct {
	ApiVersion string `json:"apiVersion,omitempty" yaml:"apiVersion"`
	Kind       string `json:"kind,omitempty" yaml:"kind"`
	Metadata   struct {
		Name       string      `json:"name,omitempty"`
		Title      string      `json:"title,omitempty"`
		Id         string      `json:"id,omitempty"`
		CreateTime json.Number `json:"create_time,omitempty,string" yaml:"create_time,omitempty"`
		UpdateTime json.Number `json:"update_time,omitempty,string" yaml:"update_time,omitempty"`
	} `json:"metadata,omitempty"`

	Spec struct {
		Widgets []struct {
			Name    string            `json:"name,omitempty"`
			Type    string            `json:"type,omitempty"`
			Filters map[string]string `json:"filters,omitempty"`
		} `json:"widgets,omitempty"`
	} `json:"spec,omitempty"`
}

func NewDashboardV1Alpha

func NewDashboardV1Alpha(name string) DashboardV1Alpha

func NewDashboardV1AlphaFromJson

func NewDashboardV1AlphaFromJson(data []byte) (*DashboardV1Alpha, error)

func NewDashboardV1AlphaFromYaml

func NewDashboardV1AlphaFromYaml(data []byte) (*DashboardV1Alpha, error)

func (*DashboardV1Alpha) ObjectName

func (d *DashboardV1Alpha) ObjectName() string

func (*DashboardV1Alpha) ToJson

func (d *DashboardV1Alpha) ToJson() ([]byte, error)

func (*DashboardV1Alpha) ToYaml

func (d *DashboardV1Alpha) ToYaml() ([]byte, error)

type DebugJobV1Alpha

type DebugJobV1Alpha struct {
	JobId    string `json:"job_id,omitempty" yaml:"job_id"`
	Duration int    `json:"duration,omitempty,string" yaml:"duration,omitempty"`
}

func NewDebugJobV1Alpha

func NewDebugJobV1Alpha(job_id string, duration int) *DebugJobV1Alpha

func (*DebugJobV1Alpha) ToJson

func (j *DebugJobV1Alpha) ToJson() ([]byte, error)

type DebugProjectV1Alpha

type DebugProjectV1Alpha struct {
	ProjectIdOrName string `json:"project_id_or_name,omitempty" yaml:"project_id_or_name"`
	Duration        int    `json:"duration,omitempty,string" yaml:"duration,omitempty"`
	MachineType     string `json:"machine_type,omitempty" yaml:"machine_type,omitempty"`
}

func NewDebugProjectV1Alpha

func NewDebugProjectV1Alpha(project string, duration int, machine string) *DebugProjectV1Alpha

func (*DebugProjectV1Alpha) ToJson

func (j *DebugProjectV1Alpha) ToJson() ([]byte, error)

type DeploymentEnvVarV1Alpha

type DeploymentEnvVarV1Alpha struct {
	Name  string `json:"name" yaml:"name"`
	Value string `json:"value" yaml:"value"`
}

type DeploymentEnvVarsV1Alpha

type DeploymentEnvVarsV1Alpha []*DeploymentEnvVarV1Alpha

type DeploymentTargetCreateRequestV1Alpha

type DeploymentTargetCreateRequestV1Alpha struct {
	DeploymentTargetV1Alpha
	UniqueToken string `json:"unique_token" yaml:"-"`
}

func NewDeploymentTargetCreateRequestV1AlphaFromYaml

func NewDeploymentTargetCreateRequestV1AlphaFromYaml(data []byte) (*DeploymentTargetCreateRequestV1Alpha, error)

func (*DeploymentTargetCreateRequestV1Alpha) LoadFiles

func (DeploymentTargetCreateRequestV1Alpha) ObjectName

func (*DeploymentTargetCreateRequestV1Alpha) ToJson

func (*DeploymentTargetCreateRequestV1Alpha) ToYaml

type DeploymentTargetEnvVarV1Alpha

type DeploymentTargetEnvVarV1Alpha struct {
	Name  string        `json:"name" yaml:"name"`
	Value HashedContent `json:"value" yaml:"value"`
}

type DeploymentTargetEnvVarsV1Alpha

type DeploymentTargetEnvVarsV1Alpha []*DeploymentTargetEnvVarV1Alpha

type DeploymentTargetFileV1Alpha

type DeploymentTargetFileV1Alpha struct {
	Path    string        `json:"path" yaml:"path"`
	Content HashedContent `json:"content" yaml:"content"`
	Source  string        `json:"-" yaml:"source"`
}

func (*DeploymentTargetFileV1Alpha) LoadContent

func (f *DeploymentTargetFileV1Alpha) LoadContent() error

type DeploymentTargetFilesV1Alpha

type DeploymentTargetFilesV1Alpha []*DeploymentTargetFileV1Alpha

func (*DeploymentTargetFilesV1Alpha) Load

type DeploymentTargetListV1Alpha

type DeploymentTargetListV1Alpha []*DeploymentTargetV1Alpha

func NewDeploymentTargetListV1AlphaFromJson

func NewDeploymentTargetListV1AlphaFromJson(data []byte) (*DeploymentTargetListV1Alpha, error)

type DeploymentTargetMetadataV1Alpha

type DeploymentTargetMetadataV1Alpha struct {
	Id             string     `json:"id" yaml:"id"`
	Name           string     `json:"name" yaml:"name"`
	ProjectId      string     `json:"project_id" yaml:"project_id"`
	OrganizationId string     `json:"organization_id" yaml:"organization_id"`
	CreatedBy      string     `json:"created_by,omitempty" yaml:"created_by,omitempty"`
	UpdatedBy      string     `json:"updated_by,omitempty" yaml:"updated_by,omitempty"`
	CreatedAt      *time.Time `json:"created_at,omitempty" yaml:"created_at,omitempty"`
	UpdatedAt      *time.Time `json:"updated_at,omitempty" yaml:"updated_at,omitempty"`
	Description    string     `json:"description" yaml:"description"`
	Url            string     `json:"url" yaml:"url"`
}

type DeploymentTargetSpecV1Alpha

type DeploymentTargetSpecV1Alpha struct {
	State              string                          `json:"state" yaml:"state"`
	StateMessage       string                          `json:"state_message" yaml:"state_message"`
	SubjectRules       []*SubjectRuleV1Alpha           `json:"subject_rules" yaml:"subject_rules"`
	ObjectRules        []*ObjectRuleV1Alpha            `json:"object_rules" yaml:"object_rules"`
	LastDeployment     *DeploymentV1Alpha              `json:"last_deployment,omitempty" yaml:"last_deployment,omitempty"`
	Active             bool                            `json:"active" yaml:"active"`
	BookmarkParameter1 string                          `json:"bookmark_parameter1" yaml:"bookmark_parameter1"`
	BookmarkParameter2 string                          `json:"bookmark_parameter2" yaml:"bookmark_parameter2"`
	BookmarkParameter3 string                          `json:"bookmark_parameter3" yaml:"bookmark_parameter3"`
	EnvVars            *DeploymentTargetEnvVarsV1Alpha `json:"env_vars,omitempty" yaml:"env_vars,omitempty"`
	Files              *DeploymentTargetFilesV1Alpha   `json:"files,omitempty" yaml:"files,omitempty"`
}

type DeploymentTargetUpdateRequestV1Alpha

type DeploymentTargetUpdateRequestV1Alpha DeploymentTargetCreateRequestV1Alpha

func NewDeploymentTargetUpdateRequestV1AlphaFromYaml

func NewDeploymentTargetUpdateRequestV1AlphaFromYaml(data []byte) (*DeploymentTargetUpdateRequestV1Alpha, error)

func (*DeploymentTargetUpdateRequestV1Alpha) LoadFiles

func (DeploymentTargetUpdateRequestV1Alpha) ObjectName

type DeploymentTargetV1Alpha

type DeploymentTargetV1Alpha struct {
	ApiVersion string `json:"-" yaml:"apiVersion"`
	Kind       string `json:"-" yaml:"kind"`

	DeploymentTargetMetadataV1Alpha `yaml:"metadata,omitempty"`
	DeploymentTargetSpecV1Alpha     `yaml:"spec,omitempty"`
}

func NewDeploymentTargetV1AlphaFromJson

func NewDeploymentTargetV1AlphaFromJson(data []byte) (*DeploymentTargetV1Alpha, error)

func NewDeploymentTargetV1AlphaFromYaml

func NewDeploymentTargetV1AlphaFromYaml(data []byte) (*DeploymentTargetV1Alpha, error)

func (*DeploymentTargetV1Alpha) LoadFiles

func (dt *DeploymentTargetV1Alpha) LoadFiles() error

func (*DeploymentTargetV1Alpha) ToJson

func (dt *DeploymentTargetV1Alpha) ToJson() ([]byte, error)

func (*DeploymentTargetV1Alpha) ToYaml

func (dt *DeploymentTargetV1Alpha) ToYaml() ([]byte, error)

type DeploymentV1Alpha

type DeploymentV1Alpha struct {
	Id             string                    `json:"id" yaml:"id"`
	TargetId       string                    `json:"target_id" yaml:"target_id"`
	PrevPipelineId string                    `json:"prev_pipeline_id" yaml:"prev_pipeline_id"`
	PipelineId     string                    `json:"pipeline_id" yaml:"pipeline_id"`
	TriggeredBy    string                    `json:"triggered_by,omitempty" yaml:"triggered_by,omitempty"`
	TriggeredAt    *time.Time                `json:"triggered_at,omitempty" yaml:"triggered_at,omitempty"`
	State          string                    `json:"state" yaml:"state"`
	StateMessage   string                    `json:"state_message" yaml:"state_message"`
	SwitchId       string                    `json:"switch_id" yaml:"switch_id"`
	TargetName     string                    `json:"target_name" yaml:"target_name"`
	EnvVars        *DeploymentEnvVarsV1Alpha `json:"env_vars,omitempty" yaml:"env_vars,omitempty"`
}

type DeploymentsHistoryV1Alpha

type DeploymentsHistoryV1Alpha struct {
	Deployments  []DeploymentV1Alpha `json:"deployments,omitempty" yaml:"deployments,omitempty"`
	CursorBefore int64               `json:"cursor_before,omitempty" yaml:"cursor_before,omitempty"`
	CursorAfter  int64               `json:"cursor_after,omitempty" yaml:"cursor_after,omitempty"`
}

func NewDeploymentsHistoryV1AlphaFromJson

func NewDeploymentsHistoryV1AlphaFromJson(data []byte) (*DeploymentsHistoryV1Alpha, error)

func (*DeploymentsHistoryV1Alpha) ToYaml

func (d *DeploymentsHistoryV1Alpha) ToYaml() ([]byte, error)

type ForkedPullRequests

type ForkedPullRequests struct {
	AllowedSecrets      []string `json:"allowed_secrets,omitempty" yaml:"allowed_secrets,omitempty"`
	AllowedContributors []string `json:"allowed_contributors,omitempty" yaml:"allowed_contributors,omitempty"`
}

type HashedContent

type HashedContent string

func (HashedContent) MarshalYAML

func (c HashedContent) MarshalYAML() (data interface{}, err error)

func (*HashedContent) UnmarshalYAML

func (c *HashedContent) UnmarshalYAML(unmarshal func(interface{}) error) error

type HistoryRequestFiltersV1Alpha

type HistoryRequestFiltersV1Alpha struct {
	CursorType  string `json:"cursor_type,omitempty" yaml:"cursor_type,omitempty"`
	CursorValue string `json:"cursor_value,omitempty" yaml:"cursor_value,omitempty"`
	GitRefType  string `json:"git_ref_type,omitempty" yaml:"git_ref_type,omitempty"`
	GitRefLabel string `json:"git_ref_label,omitempty" yaml:"git_ref_label,omitempty"`
	TriggeredBy string `json:"triggered_by,omitempty" yaml:"triggered_by,omitempty"`
	Parameter1  string `json:"parameter1,omitempty" yaml:"parameter1,omitempty"`
	Parameter2  string `json:"parameter2,omitempty" yaml:"parameter2,omitempty"`
	Parameter3  string `json:"parameter3,omitempty" yaml:"parameter3,omitempty"`
}

func (HistoryRequestFiltersV1Alpha) ToURLValues

func (hr HistoryRequestFiltersV1Alpha) ToURLValues() (values url.Values, err error)

type JobDebugSSHKeyV1Alpha

type JobDebugSSHKeyV1Alpha struct {
	Key string `json:"key,omitempty" yaml:"key"`
}

func NewJobDebugSSHKeyV1AlphaFromJSON

func NewJobDebugSSHKeyV1AlphaFromJSON(data []byte) (*JobDebugSSHKeyV1Alpha, error)

type JobListV1Alpha

type JobListV1Alpha struct {
	Jobs []JobV1Alpha `json:"jobs" yaml:"jobs"`
}

func NewJobListV1AlphaFromJson

func NewJobListV1AlphaFromJson(data []byte) (*JobListV1Alpha, error)

type JobV1Alpha

type JobV1Alpha struct {
	ApiVersion string `json:"apiVersion,omitempty" yaml:"apiVersion"`
	Kind       string `json:"kind,omitempty" yaml:"kind"`

	Metadata *JobV1AlphaMetadata `json:"metadata,omitempty"`
	Spec     *JobV1AlphaSpec     `json:"spec,omitempty"`
	Status   *JobV1AlphaStatus   `json:"status,omitempty"`
}

func NewJobV1Alpha

func NewJobV1Alpha(name string) *JobV1Alpha

func NewJobV1AlphaFromJson

func NewJobV1AlphaFromJson(data []byte) (*JobV1Alpha, error)

func NewJobV1AlphaFromYaml

func NewJobV1AlphaFromYaml(data []byte) (*JobV1Alpha, error)

func (*JobV1Alpha) AgentName

func (j *JobV1Alpha) AgentName() string

func (*JobV1Alpha) IsSelfHosted

func (j *JobV1Alpha) IsSelfHosted() bool

func (*JobV1Alpha) ObjectName

func (j *JobV1Alpha) ObjectName() string

func (*JobV1Alpha) ToJson

func (j *JobV1Alpha) ToJson() ([]byte, error)

func (*JobV1Alpha) ToYaml

func (j *JobV1Alpha) ToYaml() ([]byte, error)

type JobV1AlphaAgent

type JobV1AlphaAgent struct {
	Machine          JobV1AlphaAgentMachine           `json:"machine,omitempty" yaml:"machine,omitempty"`
	Containers       []JobV1AlphaAgentContainer       `json:"containers,omitempty" yaml:"containers,omitempty"`
	ImagePullSecrets []JobV1AlphaAgentImagePullSecret `json:"image_pull_secrets,omitempty" yaml:"image_pull_secrets,omitempty"`
}

type JobV1AlphaAgentContainer

type JobV1AlphaAgentContainer struct {
	Name    string                 `json:"name,omitempty" yaml:"name,omitempty"`
	Image   string                 `json:"image,omitempty" yaml:"image,omitempty"`
	Command string                 `json:"command,omitempty" yaml:"command,omitempty"`
	EnvVars []JobV1AlphaSpecEnvVar `json:"env_vars,omitempty" yaml:"env_vars,omitempty"`
	Secrets []JobV1AlphaSpecSecret `json:"secrets,omitempty" yaml:"secrets,omitempty"`
}

type JobV1AlphaAgentImagePullSecret

type JobV1AlphaAgentImagePullSecret struct {
	Name string `json:"name,omitempty" yaml:"name,omitempty"`
}

type JobV1AlphaAgentMachine

type JobV1AlphaAgentMachine struct {
	Type    string `json:"type,omitempty" yaml:"type,omitempty"`
	OsImage string `json:"os_image,omitempty" yaml:"os_image,omitempty"`
}

type JobV1AlphaMetadata

type JobV1AlphaMetadata struct {
	Name       string      `json:"name,omitempty"`
	Id         string      `json:"id,omitempty"`
	CreateTime json.Number `json:"create_time,omitempty,string" yaml:"create_time,omitempty"`
	UpdateTime json.Number `json:"update_time,omitempty,string" yaml:"update_time,omitempty"`
	StartTime  json.Number `json:"start_time,omitempty,string" yaml:"start_time,omitempty"`
	FinishTime json.Number `json:"finish_time,omitempty,string" yaml:"finish_time,omitempty"`
}

type JobV1AlphaSpec

type JobV1AlphaSpec struct {
	Agent                  JobV1AlphaAgent        `json:"agent,omitempty" yaml:"agent,omitempty"`
	Files                  []JobV1AlphaSpecFile   `json:"files,omitempty" yaml:"files,omitempty"`
	EnvVars                []JobV1AlphaSpecEnvVar `json:"env_vars,omitempty" yaml:"env_vars,omitempty"`
	Secrets                []JobV1AlphaSpecSecret `json:"secrets,omitempty" yaml:"secrets,omitempty"`
	Commands               []string               `json:"commands,omitempty" yaml:"commands,omitempty"`
	EpilogueAlwaysCommands []string               `json:"epilogue_always_commands,omitempty" yaml:"epilogue_always_commands,omitempty"`
	EpilogueOnPassCommands []string               `json:"epilogue_on_pass_commands,omitempty" yaml:"epilogue_on_pass_commands,omitempty"`
	EpilogueOnFailCommands []string               `json:"epilogue_on_fail_commands,omitempty" yaml:"epilogue_on_fail_commands,omitempty"`
	ProjectId              string                 `json:"project_id,omitempty" yaml:"project_id,omitempty"`
}

type JobV1AlphaSpecEnvVar

type JobV1AlphaSpecEnvVar struct {
	Name  string `json:"name,omitempty" yaml:"name,omitempty"`
	Value string `json:"value,omitempty" yaml:"value,omitempty"`
}

type JobV1AlphaSpecFile

type JobV1AlphaSpecFile struct {
	Path    string `json:"path,omitempty" yaml:"path,omitempty"`
	Content string `json:"content,omitempty" yaml:"content,omitempty"`
}

type JobV1AlphaSpecSecret

type JobV1AlphaSpecSecret struct {
	Name string `json:"name,omitempty" yaml:"name,omitempty"`
}

type JobV1AlphaStatus

type JobV1AlphaStatus struct {
	State  string `json:"state" yaml:"state"`
	Result string `json:"result" yaml:"result"`
	Agent  struct {
		Ip    string `json:"ip" yaml:"ip"`
		Name  string `json:"name" yaml:"name"`
		Ports []struct {
			Name   string `json:"name" yaml:"name"`
			Number int32  `json:"number" yaml:"number"`
		} `json:"ports,omitempty"`
	} `json:"agent,omitempty"`
}

type NotificationListV1Alpha

type NotificationListV1Alpha struct {
	Notifications []NotificationV1Alpha `json:"notifications" yaml:"notifications"`
}

func NewNotificationListV1AlphaFromJson

func NewNotificationListV1AlphaFromJson(data []byte) (*NotificationListV1Alpha, error)

type NotificationV1Alpha

type NotificationV1Alpha struct {
	ApiVersion string `json:"apiVersion,omitempty" yaml:"apiVersion"`
	Kind       string `json:"kind,omitempty" yaml:"kind"`

	Metadata NotificationV1AlphaMetadata `json:"metadata" yaml:"metadata"`
	Spec     NotificationV1AlphaSpec     `json:"spec" yaml:"spec"`
	Status   NotificationV1AlphaStatus   `json:"status" yaml:"status"`
}

func NewNotificationV1Alpha

func NewNotificationV1Alpha(name string) *NotificationV1Alpha

func NewNotificationV1AlphaFromJson

func NewNotificationV1AlphaFromJson(data []byte) (*NotificationV1Alpha, error)

func NewNotificationV1AlphaFromYaml

func NewNotificationV1AlphaFromYaml(data []byte) (*NotificationV1Alpha, error)

func (*NotificationV1Alpha) ObjectName

func (n *NotificationV1Alpha) ObjectName() string

func (*NotificationV1Alpha) ToJson

func (n *NotificationV1Alpha) ToJson() ([]byte, error)

func (*NotificationV1Alpha) ToYaml

func (n *NotificationV1Alpha) ToYaml() ([]byte, error)

type NotificationV1AlphaMetadata

type NotificationV1AlphaMetadata struct {
	Name       string      `json:"name,omitempty" yaml:"name,omitempty"`
	Id         string      `json:"id,omitempty" yaml:"id,omitempty"`
	CreateTime json.Number `json:"create_time,omitempty,string" yaml:"create_time,omitempty"`
	UpdateTime json.Number `json:"update_time,omitempty,string" yaml:"update_time,omitempty"`
}

type NotificationV1AlphaSpec

type NotificationV1AlphaSpec struct {
	Rules []NotificationV1AlphaSpecRule `json:"rules,omitempty" yaml:"rules,omitempty"`
}

type NotificationV1AlphaSpecRule

type NotificationV1AlphaSpecRule struct {
	Name   string                            `json:"name,omitempty" yaml:"name,omitempty"`
	Filter NotificationV1AlphaSpecRuleFilter `json:"filter,omitempty" yaml:"filter,omitempty"`
	Notify NotificationV1AlphaSpecRuleNotify `json:"notify,omitempty" yaml:"notify,omitempty"`
}

type NotificationV1AlphaSpecRuleFilter

type NotificationV1AlphaSpecRuleFilter struct {
	Projects  []string `json:"projects,omitempty" yaml:"projects,omitempty"`
	Branches  []string `json:"branches,omitempty" yaml:"branches,omitempty"`
	Pipelines []string `json:"pipelines,omitempty" yaml:"pipelines,omitempty"`
	Blocks    []string `json:"blocks,omitempty" yaml:"blocks,omitempty"`
	States    []string `json:"states,omitempty" yaml:"states,omitempty"`
	Results   []string `json:"results,omitempty" yaml:"results,omitempty"`
}

type NotificationV1AlphaSpecRuleNotify

type NotificationV1AlphaSpecRuleNotify struct {
	Slack struct {
		Endpoint string   `json:"endpoint,omitempty" yaml:"endpoint,omitempty"`
		Channels []string `json:"channels,omitempty" yaml:"channels,omitempty"`
		Message  string   `json:"message,omitempty" yaml:"message,omitempty"`
	} `json:"slack,omitempty" yaml:"slack,omitempty"`

	Email struct {
		Subject string   `json:"subject,omitempty" yaml:"subject,omitempty"`
		CC      []string `json:"cc,omitempty" yaml:"cc,omitempty"`
		BCC     []string `json:"bcc,omitempty" yaml:"bcc,omitempty"`
		Content string   `json:"content,omitempty" yaml:"content,omitempty"`
	} `json:"email,omitempty" yaml:"email,omitempty"`

	Webhook struct {
		Endpoint string `json:"endpoint,omitempty" yaml:"endpoint,omitempty"`
		Timeout  int32  `json:"timeout,omitempty" yaml:"timeout,omitempty"`
		Action   string `json:"action,omitempty" yaml:"action,omitempty"`
		Retries  int32  `json:"retries,omitempty" yaml:"retries,omitempty"`
		Secret   string `json:"secret,omitempty" yaml:"secret,omitempty"`
	} `json:"webhook,omitempty" yaml:"webhook,omitempty"`
}

type NotificationV1AlphaStatus

type NotificationV1AlphaStatus struct {
	Failures []NotificationV1AlphaStatusFailure `json:"failures,omitempty" yaml:"failures,omitempty"`
}

type NotificationV1AlphaStatusFailure

type NotificationV1AlphaStatusFailure struct {
	Time    json.Number `json:"time,omitempty,string" yaml:"time,omitempty"`
	Message string      `json:"message,omitempty,string" yaml:"message,omitempty"`
}

type ObjectRuleV1Alpha

type ObjectRuleV1Alpha struct {
	Type      string `json:"type" yaml:"type"`
	MatchMode string `json:"match_mode" yaml:"match_mode"`
	Pattern   string `json:"pattern" yaml:"pattern"`
}

type PipelineFile

type PipelineFile struct {
	Path  string `json:"path"`
	Level string `json:"level"`
}

type PipelineV1Alpha

type PipelineV1Alpha struct {
	Pipeline struct {
		ID     string `json:"ppl_id"`
		Name   string `json:"name,omitempty"`
		State  string `json:"state,omitempty"`
		Result string `json:"result,omitempty" yaml:"result,omitempty"`
		Reason string `json:"result_reason,omitempty" yaml:"result_reason,omitempty"`
		Error  string `json:"error_description,omitempty"  yaml:"error_description,omitempty"`
	} `json:"pipeline,omitempty"`
	Blocks []PipelineV1AlphaBlock `json:"blocks,omitempty"`
}

func NewPipelineV1AlphaFromJson

func NewPipelineV1AlphaFromJson(data []byte) (*PipelineV1Alpha, error)

func (*PipelineV1Alpha) IsDone

func (j *PipelineV1Alpha) IsDone() bool

func (*PipelineV1Alpha) ToYaml

func (j *PipelineV1Alpha) ToYaml() ([]byte, error)

type PipelineV1AlphaBlock

type PipelineV1AlphaBlock struct {
	Name   string                     `json:"name"`
	State  string                     `json:"state"`
	Result string                     `json:"result,omitempty" yaml:"result,omitempty"`
	Reason string                     `json:"result_reason,omitempty" yaml:"result_reason,omitempty"`
	Error  string                     `json:"error_description,omitempty"  yaml:"error_description,omitempty"`
	Jobs   []PipelineV1AlphaBlockJobs `json:"jobs"`
}

type PipelineV1AlphaBlockJobs

type PipelineV1AlphaBlockJobs struct {
	Name  string `json:"name"`
	JobID string `json:"job_id"`
}

type PipelinesListV1Alpha

type PipelinesListV1Alpha []PplListElemV1Alpha

type PplListElemV1Alpha

type PplListElemV1Alpha struct {
	Id        string `json:"ppl_id"`
	Name      string `json:"name"`
	State     string `json:"state"`
	CreatedAt struct {
		Seconds int64 `json:"seconds"`
	} `json:"created_at"`
	Label string `json:"branch_name"`
}

type ProjectListV1Alpha

type ProjectListV1Alpha struct {
	Projects []ProjectV1Alpha `json:"projects" yaml:"projects"`
}

func NewProjectListV1AlphaFromJson

func NewProjectListV1AlphaFromJson(data []byte) (*ProjectListV1Alpha, error)

type ProjectSecretListV1

type ProjectSecretListV1 struct {
	Secrets []ProjectSecretV1 `json:"secrets" yaml:"secrets"`
}

func NewProjectSecretListV1FromJson

func NewProjectSecretListV1FromJson(data []byte) (*ProjectSecretListV1, error)

type ProjectSecretV1

type ProjectSecretV1 struct {
	ApiVersion string `json:"apiVersion,omitempty" yaml:"apiVersion"`
	Kind       string `json:"kind,omitempty" yaml:"kind"`

	Metadata ProjectSecretV1Metadata `json:"metadata" yaml:"metadata"`
	Data     ProjectSecretV1Data     `json:"data" yaml:"data"`
}

func NewProjectSecretV1

func NewProjectSecretV1(name string, envVars []ProjectSecretV1EnvVar, files []ProjectSecretV1File) ProjectSecretV1

func NewProjectSecretV1FromJson

func NewProjectSecretV1FromJson(data []byte) (*ProjectSecretV1, error)

func NewProjectSecretV1FromYaml

func NewProjectSecretV1FromYaml(data []byte) (*ProjectSecretV1, error)

func (*ProjectSecretV1) ObjectName

func (s *ProjectSecretV1) ObjectName() string

func (*ProjectSecretV1) ToJson

func (s *ProjectSecretV1) ToJson() ([]byte, error)

func (*ProjectSecretV1) ToYaml

func (s *ProjectSecretV1) ToYaml() ([]byte, error)

type ProjectSecretV1Data

type ProjectSecretV1Data struct {
	EnvVars []ProjectSecretV1EnvVar `json:"env_vars" yaml:"env_vars"`
	Files   []ProjectSecretV1File   `json:"files" yaml:"files"`
}

type ProjectSecretV1EnvVar

type ProjectSecretV1EnvVar struct {
	Name  string `json:"name" yaml:"name"`
	Value string `json:"value" yaml:"value"`
}

type ProjectSecretV1File

type ProjectSecretV1File struct {
	Path    string `json:"path" yaml:"path"`
	Content string `json:"content" yaml:"content"`
}

type ProjectSecretV1Metadata

type ProjectSecretV1Metadata struct {
	Name            string      `json:"name,omitempty" yaml:"name,omitempty"`
	Id              string      `json:"id,omitempty" yaml:"id,omitempty"`
	CreateTime      json.Number `json:"create_time,omitempty,string" yaml:"create_time,omitempty"`
	UpdateTime      json.Number `json:"update_time,omitempty,string" yaml:"update_time,omitempty"`
	ProjectIdOrName string      `json:"project_id_or_name,omitempty" yaml:"project_id_or_name,omitempty"`
}

type ProjectV1Alpha

type ProjectV1Alpha struct {
	ApiVersion string `json:"apiVersion,omitempty" yaml:"apiVersion"`
	Kind       string `json:"kind,omitempty" yaml:"kind"`
	Metadata   struct {
		Name        string `json:"name,omitempty"`
		Id          string `json:"id,omitempty"`
		Description string `json:"description,omitempty"`
	} `json:"metadata,omitempty"`

	Spec struct {
		Visibility string `json:"visibility,omitempty" yaml:"visibility,omitempty"`
		Repository struct {
			Url                string             `json:"url,omitempty"`
			RunOn              []string           `json:"run_on,omitempty" yaml:"run_on"`
			ForkedPullRequests ForkedPullRequests `json:"forked_pull_requests,omitempty" yaml:"forked_pull_requests,omitempty"`
			PipelineFile       string             `json:"pipeline_file" yaml:"pipeline_file"`
			Status             *Status            `json:"status,omitempty" yaml:"status"`
			Whitelist          Whitelist          `json:"whitelist" yaml:"whitelist"`
			IntegrationType    string             `json:"integration_type" yaml:"integration_type"`
		} `json:"repository,omitempty"`
		Schedulers        []Scheduler `json:"schedulers,omitempty" yaml:"schedulers,omitempty"`
		CustomPermissions *bool       `json:"custom_permissions,omitempty" yaml:"custom_permissions,omitempty"`
		DebugPermissions  []string    `json:"debug_permissions,omitempty" yaml:"debug_permissions,omitempty"`
		AttachPermissions []string    `json:"attach_permissions,omitempty" yaml:"attach_permissions,omitempty"`
	} `json:"spec,omitempty"`
}

func NewProjectV1Alpha

func NewProjectV1Alpha(name string) ProjectV1Alpha

func NewProjectV1AlphaFromJson

func NewProjectV1AlphaFromJson(data []byte) (*ProjectV1Alpha, error)

func NewProjectV1AlphaFromYaml

func NewProjectV1AlphaFromYaml(data []byte) (*ProjectV1Alpha, error)

func (*ProjectV1Alpha) ObjectName

func (p *ProjectV1Alpha) ObjectName() string

func (*ProjectV1Alpha) ToJson

func (p *ProjectV1Alpha) ToJson() ([]byte, error)

func (*ProjectV1Alpha) ToYaml

func (p *ProjectV1Alpha) ToYaml() ([]byte, error)

type Scheduler

type Scheduler struct {
	Name         string `json:"name"`
	Id           string `json:"id,omitempty"`
	Branch       string `json:"branch"`
	At           string `json:"at"`
	PipelineFile string `json:"pipeline_file" yaml:"pipeline_file"`
	Status       string `json:"status,omitempty" yaml:"status,omitempty"`
}

type SecretListV1Beta

type SecretListV1Beta struct {
	Secrets []SecretV1Beta `json:"secrets" yaml:"secrets"`
}

func NewSecretListV1BetaFromJson

func NewSecretListV1BetaFromJson(data []byte) (*SecretListV1Beta, error)

type SecretV1Beta

type SecretV1Beta struct {
	ApiVersion string `json:"apiVersion,omitempty" yaml:"apiVersion"`
	Kind       string `json:"kind,omitempty" yaml:"kind"`

	Metadata  SecretV1BetaMetadata   `json:"metadata" yaml:"metadata"`
	Data      SecretV1BetaData       `json:"data" yaml:"data"`
	OrgConfig *SecretV1BetaOrgConfig `json:"org_config,omitempty" yaml:"org_config,omitempty"`
}

func NewSecretV1Beta

func NewSecretV1Beta(name string, envVars []SecretV1BetaEnvVar, files []SecretV1BetaFile) SecretV1Beta

func NewSecretV1BetaFromJson

func NewSecretV1BetaFromJson(data []byte) (*SecretV1Beta, error)

func NewSecretV1BetaFromYaml

func NewSecretV1BetaFromYaml(data []byte) (*SecretV1Beta, error)

func (*SecretV1Beta) ObjectName

func (s *SecretV1Beta) ObjectName() string

func (*SecretV1Beta) ToJson

func (s *SecretV1Beta) ToJson() ([]byte, error)

func (*SecretV1Beta) ToYaml

func (s *SecretV1Beta) ToYaml() ([]byte, error)

type SecretV1BetaData

type SecretV1BetaData struct {
	EnvVars []SecretV1BetaEnvVar `json:"env_vars" yaml:"env_vars"`
	Files   []SecretV1BetaFile   `json:"files" yaml:"files"`
}

type SecretV1BetaEnvVar

type SecretV1BetaEnvVar struct {
	Name  string `json:"name" yaml:"name"`
	Value string `json:"value" yaml:"value"`
}

type SecretV1BetaFile

type SecretV1BetaFile struct {
	Path    string `json:"path" yaml:"path"`
	Content string `json:"content" yaml:"content"`
}

type SecretV1BetaMetadata

type SecretV1BetaMetadata struct {
	Name       string      `json:"name,omitempty" yaml:"name,omitempty"`
	Id         string      `json:"id,omitempty" yaml:"id,omitempty"`
	CreateTime json.Number `json:"create_time,omitempty,string" yaml:"create_time,omitempty"`
	UpdateTime json.Number `json:"update_time,omitempty,string" yaml:"update_time,omitempty"`
}

type SecretV1BetaOrgConfig

type SecretV1BetaOrgConfig struct {
	Projects_access string   `json:"projects_access,omitempty" yaml:"projects_access,omitempty"`
	Project_ids     []string `json:"project_ids,omitempty" yaml:"project_ids,omitempty"`
	Debug_access    string   `json:"debug_access,omitempty" yaml:"debug_access,omitempty"`
	Attach_access   string   `json:"attach_access,omitempty" yaml:"attach_access,omitempty"`
}

type Status

type Status struct {
	PipelineFiles []PipelineFile `json:"pipeline_files" yaml:"pipeline_files"`
}

type SubjectRuleV1Alpha

type SubjectRuleV1Alpha struct {
	Type      string `json:"type" yaml:"type"`
	SubjectId string `json:"subject_id,omitempty" yaml:"subject_id,omitempty"`
	GitLogin  string `json:"git_login,omitempty" yaml:"git_login,omitempty"`
}

type TroubleshootV1Alpha

type TroubleshootV1Alpha struct {
	Workflow map[string]interface{} `json:"workflow,omitempty" yaml:"workflow,omitempty"`
	Project  map[string]interface{} `json:"project,omitempty" yaml:"project,omitempty"`
	Pipeline map[string]interface{} `json:"pipeline,omitempty" yaml:"pipeline,omitempty"`
	Job      map[string]interface{} `json:"job,omitempty" yaml:"job,omitempty"`
	Block    map[string]interface{} `json:"block,omitempty" yaml:"block,omitempty"`
}

func NewTroubleshootV1AlphaFromJson

func NewTroubleshootV1AlphaFromJson(data []byte) (*TroubleshootV1Alpha, error)

func (*TroubleshootV1Alpha) ToJson

func (j *TroubleshootV1Alpha) ToJson() ([]byte, error)

func (*TroubleshootV1Alpha) ToYaml

func (j *TroubleshootV1Alpha) ToYaml() ([]byte, error)

type Whitelist

type Whitelist struct {
	Branches []string `json:"branches,omitempty"`
	Tags     []string `json:"tags,omitempty"`
}

type WorkflowListV1Alpha

type WorkflowListV1Alpha struct {
	Workflow []WorkflowV1Alpha `json:"workflows" yaml:"projects"`
}

func NewWorkflowListV1AlphaFromJson

func NewWorkflowListV1AlphaFromJson(data []byte) (*WorkflowListV1Alpha, error)

type WorkflowSnapshotResponseV1Alpha

type WorkflowSnapshotResponseV1Alpha struct {
	WfID  string `json:"wf_id,omitempty" yaml:"id,omitempty"`
	PplID string `json:"ppl_id,omitempty" yaml:"initial_ppl_id,omitempty"`
}

func NewWorkflowSnapshotResponseV1AlphaFromJson

func NewWorkflowSnapshotResponseV1AlphaFromJson(data []byte) (*WorkflowSnapshotResponseV1Alpha, error)

type WorkflowV1Alpha

type WorkflowV1Alpha struct {
	Id           string `json:"wf_id,omitempty" yaml:"id,omitempty"`
	InitialPplId string `json:"initial_ppl_id,omitempty" yaml:"initial_ppl_id,omitempty"`
	BranchName   string `json:"branch_name,omitempty" yaml:"branch_name,omitempty"`
	CreatedAt    struct {
		Seconds int64 `json:"seconds"`
	} `json:"created_at"`
}

Jump to

Keyboard shortcuts

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