Documentation
¶
Index ¶
- Constants
- func EncodeResourceToJSON(obj interface{}) ([]byte, error)
- func IsValidServiceAccountRole(role ServiceAccountRole) bool
- type APIError
- type AuthProvider
- type Cluster
- type Company
- type CreateJob
- type CreateJobRequest
- type CronJob
- type DeployProject
- type DeployProjectRequest
- type Deployment
- type Environment
- type JWTServiceAccountJSON
- type JWTTokenRequest
- type Job
- type MarketplaceItem
- type PipelineStatus
- type Pipelines
- type Pod
- type Port
- type Project
- type ProjectCluster
- type PublicKey
- type RefreshTokenRequest
- type Repository
- type RuntimeEvent
- type Service
- type ServiceAccount
- type ServiceAccountRequest
- type ServiceAccountRole
- type UserToken
Constants ¶
View Source
const ( ServiceAccountBasic = "client_secret_basic" ServiceAccountJWT = "private_key_jwt" ServiceAccountRoleGuest = ServiceAccountRole("guest") ServiceAccountRoleReporter = ServiceAccountRole("reporter") ServiceAccountRoleDeveloper = ServiceAccountRole("developer") ServiceAccountRoleMaintainer = ServiceAccountRole("maintainer") ServiceAccountRoleProjectAdmin = ServiceAccountRole("project-admin") ServiceAccountRoleCompanyOwner = ServiceAccountRole("company-owner") )
Variables ¶
This section is empty.
Functions ¶
func EncodeResourceToJSON ¶
func IsValidServiceAccountRole ¶
func IsValidServiceAccountRole(role ServiceAccountRole) bool
Types ¶
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"` }
type CreateJobRequest ¶ added in v0.8.0
type DeployProject ¶
type DeployProjectRequest ¶
type Deployment ¶ added in v0.8.0
type Environment ¶
type Environment struct { DisplayName string `json:"label"` //nolint:tagliatelle EnvID string `json:"envId"` Cluster ProjectCluster `json:"cluster"` IsProduction bool `json:"isProduction"` }
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 }
type ProjectCluster ¶ added in v0.8.0
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 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 ServiceAccountRequest ¶
type ServiceAccountRequest struct { Name string `json:"name"` Type string `json:"tokenEndpointAuthMethod"` //nolint: tagliatelle Role ServiceAccountRole `json:"role"` PublicKey PublicKey `json:"publicKey,omitempty"` }
type ServiceAccountRole ¶
type ServiceAccountRole string
func (ServiceAccountRole) String ¶
func (role ServiceAccountRole) String() string
Click to show internal directories.
Click to hide internal directories.