Documentation ¶
Index ¶
- Constants
- func EncodeResourceToJSON(obj interface{}) ([]byte, error)
- func IAMEnvironmentRoleCompletion() func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func IAMRoleCompletion(project bool) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func IsValidEnvironmentRole(role IAMRole) bool
- func IsValidIAMRole(role IAMRole, project bool) bool
- type APIError
- type AddMembersToGroup
- type AddUserRequest
- type AuthProvider
- type Cluster
- type Company
- type ConfigurationManagement
- type CreateGroupRequest
- type CreateJob
- type CreateJobRequest
- type CronJob
- type DeployProject
- type DeployProjectRequest
- type Deployment
- type EditEnvironmentRole
- type EditIAMRole
- type EditProjectRole
- type Environment
- type EnvironmentRole
- type GroupIdentity
- type IAMIdentity
- type IAMRole
- type JWTServiceAccountJSON
- type JWTTokenRequest
- type Job
- type MarketplaceItem
- type PipelineStatus
- type Pipelines
- type Pod
- type Port
- type Project
- type ProjectCluster
- type ProjectConfigurationManagement
- type ProjectRole
- type PublicKey
- type RefreshTokenRequest
- type RemoveMembersToGroup
- type Repository
- type RuntimeEvent
- type Service
- type ServiceAccount
- type ServiceAccountIdentity
- type ServiceAccountRequest
- type UserIdentity
- type UserToken
Constants ¶
View Source
const ( ServiceAccountBasic = "client_secret_basic" ServiceAccountJWT = "private_key_jwt" IAMRoleGuest = IAMRole("guest") IAMRoleReporter = IAMRole("reporter") IAMRoleDeveloper = IAMRole("developer") IAMRoleMaintainer = IAMRole("maintainer") IAMRoleProjectAdmin = IAMRole("project-admin") IAMRoleCompanyOwner = IAMRole("company-owner") )
Variables ¶
This section is empty.
Functions ¶
func EncodeResourceToJSON ¶
func IAMEnvironmentRoleCompletion ¶ added in v0.12.0
func IAMRoleCompletion ¶ added in v0.11.0
func IsValidEnvironmentRole ¶ added in v0.12.0
func IsValidIAMRole ¶ added in v0.11.0
Types ¶
type AddMembersToGroup ¶ added in v0.11.0
type AddMembersToGroup struct {
Members []string `json:"emails"` //nolint: tagliatelle
}
type AddUserRequest ¶ added in v0.11.0
type AuthProvider ¶
type Company ¶
type Company struct { ID string `json:"_id"` //nolint:tagliatelle Name string `json:"name"` TenantID string `json:"tenantId"` Pipelines Pipelines `json:"pipelines"` Repository Repository `json:"repository"` ConfigurationManagement ConfigurationManagement `json:"configurationManagement"` }
type ConfigurationManagement ¶ added in v0.16.0
type ConfigurationManagement struct {
SaveChangesRules []*rulesentities.SaveChangesRules `json:"saveChangesRules"`
}
type CreateGroupRequest ¶ added in v0.11.0
type CreateJobRequest ¶ added in v0.8.0
type DeployProject ¶
type DeployProjectRequest ¶
type Deployment ¶ added in v0.8.0
type EditEnvironmentRole ¶ added in v0.12.0
type EditIAMRole ¶ added in v0.11.0
type EditIAMRole struct { Role IAMRole `json:"role,omitempty"` ProjectsRole []EditProjectRole `json:"projectsRole,omitempty"` }
type EditProjectRole ¶ added in v0.12.0
type EditProjectRole struct { ProjectID string `json:"projectId"` Role *IAMRole `json:"role,omitempty"` EnvironmentsRole []EditEnvironmentRole `json:"environmentsRole,omitempty"` }
type Environment ¶
type Environment struct { DisplayName string `json:"label"` //nolint:tagliatelle EnvID string `json:"envId"` Cluster ProjectCluster `json:"cluster"` IsProduction bool `json:"isProduction"` }
type EnvironmentRole ¶ added in v0.12.0
type GroupIdentity ¶ added in v0.10.0
type GroupIdentity struct { ID string `json:"_id"` //nolint: tagliatelle Name string `json:"name"` Role string `json:"role"` RoleID string `json:"roleId"` Members []UserIdentity `json:"members"` }
type IAMIdentity ¶ added in v0.10.0
type IAMIdentity struct { ID string `json:"identityId"` //nolint: tagliatelle Name string `json:"name"` Type string `json:"identityType"` //nolint: tagliatelle Roles []string `json:"companyRoles"` //nolint: tagliatelle ProjectsRole []ProjectRole `json:"projects"` //nolint: tagliatelle }
type JWTServiceAccountJSON ¶ added in v0.7.0
type JWTTokenRequest ¶
type MarketplaceItem ¶ added in v0.8.0
type PipelineStatus ¶
type Pod ¶ added in v0.8.0
type Pod struct { Name string `json:"name"` Phase string `json:"phase"` Status string `json:"status"` Age time.Time `json:"startTime"` //nolint:tagliatelle Component []struct { Name string `json:"name"` Version string `json:"version"` } `json:"component"` Containers []struct { Name string `json:"name"` Ready bool `json:"ready"` RestartCount int `json:"restartCount"` Status string `json:"status"` } `json:"containers"` }
type Project ¶
type Project struct { ID string `json:"_id"` //nolint:tagliatelle Name string `json:"name"` ConfigurationGitPath string `json:"configurationGitPath"` Environments []Environment `json:"environments"` ProjectID string `json:"projectId"` Pipelines Pipelines `json:"pipelines"` CompanyID string `json:"tenantId"` //nolint:tagliatelle ConfigurationManagement ProjectConfigurationManagement `json:"configurationManagement"` }
type ProjectCluster ¶ added in v0.8.0
type ProjectConfigurationManagement ¶ added in v0.16.0
type ProjectConfigurationManagement struct {
SaveChangesRules []*rulesentities.ProjectSaveChangesRules `json:"saveChangesRules"`
}
type ProjectRole ¶ added in v0.12.0
type ProjectRole struct { ID string `json:"_id"` //nolint: tagliatelle Roles []string `json:"roles"` Environments []EnvironmentRole `json:"environments"` }
type PublicKey ¶ added in v0.7.0
type PublicKey struct { Type string `json:"kty"` //nolint: tagliatelle Use string `json:"use"` //nolint: tagliatelle Algorithm string `json:"alg"` //nolint: tagliatelle KeyID string `json:"kid"` //nolint: tagliatelle Modulus string `json:"n"` //nolint: tagliatelle Exponent string `json:"e"` //nolint: tagliatelle }
type RefreshTokenRequest ¶
type RefreshTokenRequest struct {
RefreshToken string `json:"refreshToken"`
}
type RemoveMembersToGroup ¶ added in v0.11.0
type RemoveMembersToGroup struct {
Members []string `json:"memberIds"` //nolint: tagliatelle
}
type Repository ¶
type Repository struct {
Type string `json:"type"`
}
type RuntimeEvent ¶ added in v0.8.0
type RuntimeEvent struct { Type string `json:"type"` Object string `json:"subObjectPath"` //nolint: tagliatelle Message string `json:"message"` Reason string `json:"reason"` FirstSeen time.Time `json:"firstSeen"` LastSeen time.Time `json:"lastSeen"` }
func (*RuntimeEvent) UnmarshalJSON ¶ added in v0.8.0
func (re *RuntimeEvent) UnmarshalJSON(data []byte) error
type ServiceAccount ¶ added in v0.7.0
type ServiceAccountIdentity ¶ added in v0.10.0
type ServiceAccountIdentity struct { ID string `json:"clientId"` //nolint: tagliatelle Name string `json:"name"` AuthMethod string `json:"authMethod"` Roles []string `json:"companyRoles"` //nolint: tagliatelle LastLogin time.Time `json:"lastLogin"` }
func (*ServiceAccountIdentity) UnmarshalJSON ¶ added in v0.10.0
func (sai *ServiceAccountIdentity) UnmarshalJSON(data []byte) error
type ServiceAccountRequest ¶
type UserIdentity ¶ added in v0.10.0
type UserIdentity struct { ID string `json:"userId"` //nolint: tagliatelle Email string `json:"email"` FullName string `json:"fullname"` //nolint: tagliatelle Name string `json:"name"` Roles []string `json:"companyRoles"` //nolint: tagliatelle LastLogin time.Time `json:"lastLogin"` Groups []GroupIdentity `json:"groups"` }
func (*UserIdentity) UnmarshalJSON ¶ added in v0.10.0
func (ui *UserIdentity) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.