Documentation
¶
Index ¶
- Constants
- func EncodeResourceToJSON(obj interface{}) ([]byte, error)
- func IsValidServiceAccountRole(role ServiceAccountRole) bool
- type APIError
- type AuthProvider
- type Cluster
- type Company
- type DeployProject
- type DeployProjectRequest
- type Environment
- type JWTServiceAccountJSON
- type JWTTokenRequest
- type PipelineStatus
- type Pipelines
- type Project
- type PublicKey
- type RefreshTokenRequest
- type Repository
- 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 DeployProject ¶
type DeployProjectRequest ¶
type Environment ¶
type JWTServiceAccountJSON ¶ added in v0.7.0
type JWTTokenRequest ¶
type PipelineStatus ¶
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"` TenantID string `json:"tenantId"` }
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 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.