Documentation ¶
Index ¶
- type CreateBackendRequest
- type CreateOrganizationRequest
- type CreateProjectRequest
- type CreateSourceRequest
- type CreateStackRequest
- type CreateWorkspaceRequest
- type StackImportRequest
- type UpdateBackendRequest
- type UpdateOrganizationRequest
- type UpdateProjectRequest
- type UpdateSourceRequest
- type UpdateStackRequest
- type UpdateVariableRequest
- type UpdateWorkspaceRequest
- type WorkspaceCredentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateBackendRequest ¶
type CreateBackendRequest struct { // Name is the name of the backend. Name string `json:"name" binding:"required"` // Description is a human-readable description of the backend. Description string `json:"description"` // BackendConfig is the configuration of the backend. BackendConfig v1.BackendConfig `json:"backendConfig"` }
CreateBackendRequest represents the create request structure for backend.
type CreateOrganizationRequest ¶
type CreateOrganizationRequest struct { // Name is the name of the organization. Name string `json:"name"` // Description is a human-readable description of the organization. Description string `json:"description"` // Labels are custom labels associated with the organization. Labels []string `json:"labels"` // Owners is a list of owners for the organization. Owners []string `json:"owners" binding:"required"` }
CreateOrganizationRequest represents the create request structure for organization.
func (*CreateOrganizationRequest) Decode ¶
func (payload *CreateOrganizationRequest) Decode(r *http.Request) error
func (*CreateOrganizationRequest) Validate ¶ added in v0.13.0
func (payload *CreateOrganizationRequest) Validate() error
type CreateProjectRequest ¶
type CreateProjectRequest struct { // Name is the name of the project. Name string `json:"name"` // SourceID is the configuration source id associated with the project. SourceID uint `json:"sourceID"` // OrganizationID is the organization id associated with the project. OrganizationID uint `json:"organizationID"` // Description is a human-readable description of the project. Description string `json:"description"` // Path is the relative path of the project within the sources. Path string `json:"path"` // Domain is the domain of the project, typically serving as the parent folder name for the project. Domain string `json:"domain" binding:"required"` // Labels are custom labels associated with the project. Labels []string `json:"labels"` // Owners is a list of owners for the project. Owners []string `json:"owners"` }
CreateProjectRequest represents the create request structure for project.
func (*CreateProjectRequest) Decode ¶
func (payload *CreateProjectRequest) Decode(r *http.Request) error
func (*CreateProjectRequest) Validate ¶ added in v0.13.0
func (payload *CreateProjectRequest) Validate() error
type CreateSourceRequest ¶
type CreateSourceRequest struct { // SourceProvider is the type of the source provider. SourceProvider string `json:"sourceProvider" binding:"required"` // Remote is the source URL, including scheme. Remote string `json:"remote" binding:"required"` // Description is a human-readable description of the source. Description string `json:"description"` // Labels are custom labels associated with the source. Labels []string `json:"labels"` // Owners is a list of owners for the source. Owners []string `json:"owners"` }
CreateSourceRequest represents the create request structure for source.
type CreateStackRequest ¶
type CreateStackRequest struct { // Name is the name of the stack. Name string `json:"name" binding:"required"` // ProjectID is the project id of the stack within the source. ProjectID uint `json:"projectID"` // ProjectName is the project name of the stack within the source. ProjectName string `json:"projectName"` // Type is the type of the stack. Type string `json:"type"` // Path is the relative path of the stack within the source. Path string `json:"path"` // DesiredVersion is the desired revision of stack. DesiredVersion string `json:"desiredVersion"` // Description is a human-readable description of the stack. Description string `json:"description"` // Labels are custom labels associated with the stack. Labels []string `json:"labels"` // Owners is a list of owners for the stack. Owners []string `json:"owners"` }
CreateStackRequest represents the create request structure for stack.
func (*CreateStackRequest) Decode ¶
func (payload *CreateStackRequest) Decode(r *http.Request) error
func (*CreateStackRequest) Validate ¶ added in v0.13.0
func (payload *CreateStackRequest) Validate() error
type CreateWorkspaceRequest ¶
type CreateWorkspaceRequest struct { // Name is the name of the workspace. Name string `json:"name" binding:"required"` // Description is a human-readable description of the workspace. Description string `json:"description"` // Labels are custom labels associated with the workspace. Labels []string `json:"labels"` // Owners is a list of owners for the workspace. Owners []string `json:"owners" binding:"required"` // BackendID is the configuration backend id associated with the workspace. BackendID uint `json:"backendID" binding:"required"` }
CreateWorkspaceRequest represents the create request structure for workspace.
type StackImportRequest ¶ added in v0.13.0
type UpdateBackendRequest ¶
type UpdateBackendRequest struct { // ID is the id of the backend. ID uint `json:"id" binding:"required"` CreateBackendRequest `json:",inline" yaml:",inline"` }
UpdateBackendRequest represents the update request structure for backend.
type UpdateOrganizationRequest ¶
type UpdateOrganizationRequest struct { // ID is the id of the organization. ID uint `json:"id" binding:"required"` CreateOrganizationRequest `json:",inline" yaml:",inline"` }
UpdateOrganizationRequest represents the update request structure for organization.
func (*UpdateOrganizationRequest) Decode ¶
func (payload *UpdateOrganizationRequest) Decode(r *http.Request) error
func (*UpdateOrganizationRequest) Validate ¶ added in v0.13.0
func (payload *UpdateOrganizationRequest) Validate() error
type UpdateProjectRequest ¶
type UpdateProjectRequest struct { // ID is the id of the project. ID uint `json:"id" binding:"required"` CreateProjectRequest `json:",inline" yaml:",inline"` }
UpdateProjectRequest represents the update request structure for project.
func (*UpdateProjectRequest) Decode ¶
func (payload *UpdateProjectRequest) Decode(r *http.Request) error
func (*UpdateProjectRequest) Validate ¶ added in v0.13.0
func (payload *UpdateProjectRequest) Validate() error
type UpdateSourceRequest ¶
type UpdateSourceRequest struct { // ID is the id of the source. ID uint `json:"id" binding:"required"` // SourceProvider is the type of the source provider. SourceProvider string `json:"sourceProvider"` // Remote is the source URL, including scheme. Remote string `json:"remote"` // Description is a human-readable description of the source. Description string `json:"description"` // Labels are custom labels associated with the source. Labels []string `json:"labels"` // Owners is a list of owners for the source. Owners []string `json:"owners"` }
UpdateSourceRequest represents the update request structure for source.
type UpdateStackRequest ¶
type UpdateStackRequest struct { // ID is the id of the stack. ID uint `json:"id" binding:"required"` CreateStackRequest `json:",inline" yaml:",inline"` }
UpdateStackRequest represents the update request structure for stack.
func (*UpdateStackRequest) Decode ¶
func (payload *UpdateStackRequest) Decode(r *http.Request) error
func (*UpdateStackRequest) Validate ¶ added in v0.13.0
func (payload *UpdateStackRequest) Validate() error
type UpdateVariableRequest ¶ added in v0.13.0
type UpdateVariableRequest struct { // Project is the project related to stack Project string `json:"project,omitempty"` // Path is the relative path of the stack within the source. Path string `json:"path,omitempty"` IsSecret bool `json:"isSecret,omitempty"` // key is the unique index to use value in specific stack Key string `json:"key,omitempty"` // value is the plain value of no sensitive data Value string `json:"value,omitempty"` SecretValue *entity.SecretValue `json:"secretValue,omitempty"` }
type UpdateWorkspaceRequest ¶
type UpdateWorkspaceRequest struct { // ID is the id of the workspace. ID uint `json:"id" binding:"required"` // Name is the name of the workspace. Name string `json:"name"` // Description is a human-readable description of the workspace. Description string `json:"description"` // Labels are custom labels associated with the workspace. Labels map[string]string `json:"labels"` // Owners is a list of owners for the workspace. Owners []string `json:"owners" binding:"required"` // BackendID is the configuration backend id associated with the workspace. BackendID uint `json:"backendID" binding:"required"` }
UpdateWorkspaceRequest represents the update request structure for workspace.
type WorkspaceCredentials ¶ added in v0.13.0
type WorkspaceCredentials struct { KubeConfigContent string `json:"kubeConfigContent,omitempty"` KubeConfigPath string `json:"kubeConfigPath,omitempty"` AliCloudAccessKey string `json:"alicloudAccessKey,omitempty"` AliCloudSecretKey string `json:"alicloudSecretKey,omitempty"` AliCloudRegion string `json:"alicloudRegion,omitempty"` AwsAccessKey string `json:"awsAccessKey,omitempty"` AwsSecretKey string `json:"awsSecretKey,omitempty"` AwsRegion string `json:"awsRegion,omitempty"` }