Documentation ¶
Index ¶
- Constants
- Variables
- func WithFiles(files []Upload) func(req *http.Request)
- type APIDeprecation
- type AccessToken
- type AccessTokenAudit
- type AccessTokenAuditConnection
- type AccessTokenAuditEdge
- type AccessTokenConnection
- type AccessTokenEdge
- type AccessTokenEdgeFragment
- type AccessTokenFragment
- type Account
- type Application
- type ApplicationDelta
- type ApplicationDescriptor
- type ApplicationInfoItem
- type ApplicationLink
- type ApplicationSpec
- type ApplicationStatus
- type Audit
- type AuditAction
- type AuditConnection
- type AuditEdge
- type AuditMetric
- type AuditType
- type AuthMethod
- type AutoscalingTarget
- type AvailableFeatures
- type AwsCloud
- type AwsCloudAttributes
- type AwsSettingsAttributes
- type BindingAttributes
- type Build
- type BuildAttributes
- type BuildConnection
- type BuildDelta
- type BuildEdge
- type BuildInfo
- type BuildType
- type Certificate
- type CertificateSpec
- type CertificateStatus
- type Changelog
- type Client
- func (c *Client) CreateAccessToken(ctx context.Context, httpRequestOptions ...client.HTTPRequestOption) (*CreateAccessToken, error)
- func (c *Client) CreateCluster(ctx context.Context, attributes ClusterAttributes, ...) (*CreateCluster, error)
- func (c *Client) CreateClusterProvider(ctx context.Context, attributes ClusterProviderAttributes, ...) (*CreateClusterProvider, error)
- func (c *Client) CreateGitRepository(ctx context.Context, attributes GitAttributes, ...) (*CreateGitRepository, error)
- func (c *Client) CreateServiceDeployment(ctx context.Context, clusterID string, attributes ServiceDeploymentAttributes, ...) (*CreateServiceDeployment, error)
- func (c *Client) DeleteAccessToken(ctx context.Context, token string, ...) (*DeleteAccessToken, error)
- func (c *Client) DeleteCluster(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*DeleteCluster, error)
- func (c *Client) DeleteServiceDeployment(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*DeleteServiceDeployment, error)
- func (c *Client) GetAccessToken(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*GetAccessToken, error)
- func (c *Client) GetCluster(ctx context.Context, id *string, ...) (*GetCluster, error)
- func (c *Client) GetClusterProvider(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*GetClusterProvider, error)
- func (c *Client) GetServiceDeployment(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*GetServiceDeployment, error)
- func (c *Client) ListAccessTokens(ctx context.Context, cursor *string, before *string, last *int64, ...) (*ListAccessTokens, error)
- func (c *Client) ListClusterServices(ctx context.Context, httpRequestOptions ...client.HTTPRequestOption) (*ListClusterServices, error)
- func (c *Client) ListClusters(ctx context.Context, cursor *string, before *string, last *int64, ...) (*ListClusters, error)
- func (c *Client) ListDeploymentSettings(ctx context.Context, httpRequestOptions ...client.HTTPRequestOption) (*ListDeploymentSettings, error)
- func (c *Client) ListGitRepositories(ctx context.Context, cursor *string, before *string, last *int64, ...) (*ListGitRepositories, error)
- func (c *Client) ListServiceDeployment(ctx context.Context, after *string, before *string, last *int64, ...) (*ListServiceDeployment, error)
- func (c *Client) ListServiceDeployments(ctx context.Context, cursor *string, before *string, last *int64, ...) (*ListServiceDeployments, error)
- func (c *Client) PingCluster(ctx context.Context, attributes ClusterPing, ...) (*PingCluster, error)
- func (c *Client) RollbackService(ctx context.Context, id string, revisionID string, ...) (*RollbackService, error)
- func (c *Client) UpdateCluster(ctx context.Context, id string, attributes ClusterUpdateAttributes, ...) (*UpdateCluster, error)
- func (c *Client) UpdateClusterProvider(ctx context.Context, id string, attributes ClusterProviderUpdateAttributes, ...) (*UpdateClusterProvider, error)
- func (c *Client) UpdateDeploymentSettings(ctx context.Context, attributes DeploymentSettingsAttributes, ...) (*UpdateDeploymentSettings, error)
- func (c *Client) UpdateRbac(ctx context.Context, rbac RbacAttributes, serviceID *string, clusterID *string, ...) (*UpdateRbac, error)
- func (c *Client) UpdateServiceComponents(ctx context.Context, id string, components []*ComponentAttributes, ...) (*UpdateServiceComponents, error)
- func (c *Client) UpdateServiceDeployment(ctx context.Context, id string, attributes ServiceUpdateAttributes, ...) (*UpdateServiceDeployment, error)
- type CloneAttributes
- type CloudProviderSettingsAttributes
- type CloudSettings
- type CloudSettingsAttributes
- type Cluster
- type ClusterAttributes
- type ClusterConnection
- type ClusterEdge
- type ClusterEdgeFragment
- type ClusterFragment
- type ClusterInfo
- type ClusterPing
- type ClusterProvider
- type ClusterProviderAttributes
- type ClusterProviderConnection
- type ClusterProviderEdge
- type ClusterProviderFragment
- type ClusterProviderUpdateAttributes
- type ClusterUpdateAttributes
- type Command
- type CommandConnection
- type CommandDelta
- type CommandEdge
- type Component
- type ComponentAttributes
- type ComponentState
- type ConfigAttributes
- type ConfigMap
- type Configuration
- type ConfigurationAction
- type ConfigurationCondition
- type ConfigurationItem
- type ConfigurationOverlay
- type ConfigurationOverlaySpec
- type ConfigurationValidation
- type ConsoleConfiguration
- type Container
- type ContainerRecommendation
- type ContainerResources
- type ContainerState
- type ContainerStatus
- type ContextAttributes
- type CostAnalysis
- type CreateAccessToken
- type CreateCluster
- type CreateClusterProvider
- type CreateGitRepository
- type CreateServiceDeployment
- type CronJob
- type CronSpec
- type CronStatus
- type CrossVersionResourceTarget
- type Dashboard
- type DashboardGraph
- type DashboardLabel
- type DashboardMetric
- type DashboardSpec
- type DatabaseVolume
- type DeleteAccessToken
- type DeleteCluster
- type DeleteServiceDeployment
- type Delta
- type Deployment
- type DeploymentSettings
- type DeploymentSettingsAttributes
- type DeploymentSettingsFragment
- type DeploymentSpec
- type DeploymentStatus
- type DeploymentStrategy
- type Event
- type FileContent
- type GcpSettingsAttributes
- type GetAccessToken
- type GetCluster
- type GetClusterProvider
- type GetServiceDeployment
- type GitAttributes
- type GitHealth
- type GitRef
- type GitRefAttributes
- type GitRefFragment
- type GitRepository
- type GitRepositoryConnection
- type GitRepositoryEdge
- type GitRepositoryEdgeFragment
- type GitRepositoryFragment
- type GitStatus
- type GlobalService
- type GlobalServiceAttributes
- type Group
- type GroupAttributes
- type GroupConnection
- type GroupEdge
- type GroupFragment
- type GroupMember
- type GroupMemberConnection
- type GroupMemberEdge
- type HTTPIngressRule
- type Ingress
- type IngressBackend
- type IngressPath
- type IngressRule
- type IngressSpec
- type IngressTLS
- type Installation
- type InstallationConnection
- type InstallationEdge
- type Invite
- type InviteAttributes
- type IssuerRef
- type Job
- type JobReference
- type JobSpec
- type JobStatus
- type KubernetesData
- type KubernetesDatasource
- type LabelInput
- type LabelPair
- type License
- type LicenseFeature
- type LicenseSpec
- type LicenseStatus
- type ListAccessTokens
- type ListClusterServices
- type ListClusters
- type ListDeploymentSettings
- type ListGitRepositories
- type ListServiceDeployment
- type ListServiceDeployments
- type LoadBalancerIngressStatus
- type LoadBalancerStatus
- type LogFilter
- type LogFilterSpec
- type LogLabel
- type LogStream
- type LoginInfo
- type ManifestNetwork
- type Metadata
- type MetricResponse
- type MetricResult
- type Namespace
- type NamespaceSpec
- type NamespaceStatus
- type Node
- type NodeCondition
- type NodeMetric
- type NodePool
- type NodePoolAttributes
- type NodePoolFragment
- type NodeSpec
- type NodeStatus
- type NodeUsage
- type Notification
- type NotificationConnection
- type NotificationDelta
- type NotificationEdge
- type NotificationStatus
- type OverlayUpdate
- type PageInfo
- type PathUpdate
- type Permission
- type PingCluster
- type Plan
- type PluralContext
- type PluralManifest
- type PluralSubscription
- type Pod
- type PodCondition
- type PodConnection
- type PodDelta
- type PodEdge
- type PodSpec
- type PodStatus
- type PolicyBinding
- type PolicyBindingAttributes
- type PolicyBindingFragment
- type Port
- type PostgresInstance
- type PostgresSettings
- type Postgresql
- type PostgresqlSpec
- type PostgresqlStatus
- type PrometheusDatasource
- type RbacAttributes
- type ReadType
- type Recipe
- type RecipeConnection
- type RecipeEdge
- type RecipeItem
- type RecipeSection
- type Recommendation
- type Repository
- type RepositoryConnection
- type RepositoryContext
- type RepositoryEdge
- type ResourceSpec
- type Resources
- type Revision
- type RevisionConnection
- type RevisionEdge
- type RevisionFragment
- type Role
- type RoleAttributes
- type RoleBinding
- type RoleConnection
- type RoleEdge
- type RollbackService
- type RollingUpdate
- type RootMutationType
- type RootQueryType
- type Runbook
- type RunbookAction
- type RunbookActionInput
- type RunbookActionResponse
- type RunbookAlertStatus
- type RunbookContext
- type RunbookData
- type RunbookDatasource
- type RunbookExecution
- type RunbookExecutionConnection
- type RunbookExecutionEdge
- type RunbookSpec
- type RunbookStatus
- type RunningState
- type SMTP
- type SMTPInput
- type Secret
- type SecretKeySelector
- type Service
- type ServiceCloneAttributes
- type ServiceComponent
- type ServiceConfiguration
- type ServiceDeployment
- type ServiceDeploymentAttributes
- type ServiceDeploymentConnection
- type ServiceDeploymentEdge
- type ServiceDeploymentEdgeFragment
- type ServiceDeploymentExtended
- type ServiceDeploymentFragment
- type ServiceError
- type ServiceErrorAttributes
- type ServicePort
- type ServiceSpec
- type ServiceStatus
- type ServiceUpdateAttributes
- type Severity
- type Stack
- type StatefulSet
- type StatefulSetSpec
- type StatefulSetStatus
- type Status
- type StatusComponent
- type StatusCondition
- type Tag
- type TagAttributes
- type Taint
- type TaintAttributes
- type TerminatedState
- type Tool
- type UpdateCluster
- type UpdateClusterProvider
- type UpdateDeploymentSettings
- type UpdateRbac
- type UpdateServiceComponents
- type UpdateServiceDeployment
- type UpgradePolicy
- type UpgradePolicyAttributes
- type UpgradePolicyType
- type Upload
- type User
- type UserAttributes
- type UserConnection
- type UserEdge
- type UserFragment
- type UserRoleAttributes
- type UserRoles
- type VerticalPodAutoscaler
- type VerticalPodAutoscalerSpec
- type VerticalPodAutoscalerStatus
- type VerticalPodAutoscalerUpdatePolicy
- type WaitingState
- type Webhook
- type WebhookAttributes
- type WebhookConnection
- type WebhookEdge
- type WebhookHealth
- type WebhookType
- type WireguardPeer
- type WireguardPeerSpec
- type WireguardPeerStatus
Constants ¶
const CreateAccessTokenDocument = `` /* 140-byte string literal not displayed */
const CreateClusterDocument = `` /* 982-byte string literal not displayed */
const CreateClusterProviderDocument = `` /* 771-byte string literal not displayed */
const CreateGitRepositoryDocument = `` /* 233-byte string literal not displayed */
const CreateServiceDeploymentDocument = `` /* 634-byte string literal not displayed */
const DeleteAccessTokenDocument = `` /* 173-byte string literal not displayed */
const DeleteClusterDocument = `` /* 943-byte string literal not displayed */
const DeleteServiceDeploymentDocument = `` /* 545-byte string literal not displayed */
const GetAccessTokenDocument = `` /* 148-byte string literal not displayed */
const GetClusterDocument = `` /* 930-byte string literal not displayed */
const GetClusterProviderDocument = `` /* 712-byte string literal not displayed */
const GetServiceDeploymentDocument = `` /* 1237-byte string literal not displayed */
const ListAccessTokensDocument = `` /* 348-byte string literal not displayed */
const ListClusterServicesDocument = `` /* 510-byte string literal not displayed */
const ListClustersDocument = `` /* 1119-byte string literal not displayed */
const ListDeploymentSettingsDocument = `` /* 732-byte string literal not displayed */
const ListGitRepositoriesDocument = `` /* 402-byte string literal not displayed */
const ListServiceDeploymentDocument = `` /* 787-byte string literal not displayed */
const ListServiceDeploymentsDocument = `` /* 652-byte string literal not displayed */
const PingClusterDocument = `` /* 972-byte string literal not displayed */
const RollbackServiceDocument = `` /* 572-byte string literal not displayed */
const UpdateClusterDocument = `` /* 1007-byte string literal not displayed */
const UpdateClusterProviderDocument = `` /* 796-byte string literal not displayed */
const UpdateDeploymentSettingsDocument = `` /* 813-byte string literal not displayed */
const UpdateRbacDocument = `` /* 194-byte string literal not displayed */
const UpdateServiceComponentsDocument = `` /* 658-byte string literal not displayed */
const UpdateServiceDeploymentDocument = `` /* 609-byte string literal not displayed */
Variables ¶
var AllAuditAction = []AuditAction{ AuditActionCreate, AuditActionUpdate, AuditActionDelete, AuditActionApprove, AuditActionCancel, }
var AllAuditType = []AuditType{ AuditTypeBuild, AuditTypePod, AuditTypeConfiguration, AuditTypeUser, AuditTypeGroup, AuditTypeRole, AuditTypeGroupMember, AuditTypePolicy, AuditTypeTempToken, AuditTypeService, AuditTypeCluster, AuditTypeClusterProvider, AuditTypeGitRepository, AuditTypeDeploymentSettings, }
var AllAuthMethod = []AuthMethod{ AuthMethodBasic, AuthMethodSSH, }
var AllAutoscalingTarget = []AutoscalingTarget{ AutoscalingTargetStatefulset, AutoscalingTargetDeployment, }
var AllBuildType = []BuildType{ BuildTypeDeploy, BuildTypeBounce, BuildTypeApproval, BuildTypeInstall, BuildTypeDestroy, BuildTypeDedicated, BuildTypeConfig, }
var AllComponentState = []ComponentState{ ComponentStateRunning, ComponentStatePending, ComponentStateFailed, }
var AllDelta = []Delta{ DeltaCreate, DeltaUpdate, DeltaDelete, }
var AllGitHealth = []GitHealth{ GitHealthPullable, GitHealthFailed, }
var AllNotificationStatus = []NotificationStatus{ NotificationStatusFiring, NotificationStatusResolved, }
var AllPermission = []Permission{ PermissionRead, PermissionConfigure, PermissionDeploy, PermissionOperate, }
var AllReadType = []ReadType{ ReadTypeNotification, ReadTypeBuild, }
var AllSeverity = []Severity{ SeverityNone, SeverityLow, SeverityMedium, SeverityHigh, SeverityCritical, }
var AllStatus = []Status{ StatusQueued, StatusRunning, StatusSuccessful, StatusFailed, StatusCancelled, StatusPending, }
var AllTool = []Tool{ ToolHelm, ToolTerraform, }
var AllUpgradePolicyType = []UpgradePolicyType{ UpgradePolicyTypeDeploy, UpgradePolicyTypeApproval, UpgradePolicyTypeIgnore, }
var AllWebhookHealth = []WebhookHealth{ WebhookHealthHealthy, WebhookHealthUnhealthy, }
var AllWebhookType = []WebhookType{ WebhookTypePiazza, WebhookTypeSLACk, }
Functions ¶
Types ¶
type APIDeprecation ¶ added in v0.0.2
type APIDeprecation struct { // the kubernetes version the deprecation was posted DeprecatedIn *string `json:"deprecatedIn"` // the kubernetes version the api version will be removed and unusable in RemovedIn *string `json:"removedIn"` // the api you can replace this resource with Replacement *string `json:"replacement"` // the kubernetes version the replacement api was created in AvailableIn *string `json:"availableIn"` // whether you cannot safely upgrade to the next kubernetes version if this deprecation exists Blocking *bool `json:"blocking"` // the component of this deprecation Component *ServiceComponent `json:"component"` }
a representation of a kubernetes api deprecation
type AccessToken ¶
type AccessToken struct { ID *string `json:"id"` Token *string `json:"token"` Audits *AccessTokenAuditConnection `json:"audits"` InsertedAt *string `json:"insertedAt"` UpdatedAt *string `json:"updatedAt"` }
type AccessTokenAudit ¶
type AccessTokenAudit struct { ID *string `json:"id"` IP *string `json:"ip"` Timestamp *string `json:"timestamp"` Count *int64 `json:"count"` City *string `json:"city"` Country *string `json:"country"` Latitude *string `json:"latitude"` Longitude *string `json:"longitude"` InsertedAt *string `json:"insertedAt"` UpdatedAt *string `json:"updatedAt"` }
type AccessTokenAuditConnection ¶
type AccessTokenAuditConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []*AccessTokenAuditEdge `json:"edges"` }
type AccessTokenAuditEdge ¶
type AccessTokenAuditEdge struct { Node *AccessTokenAudit `json:"node"` Cursor *string `json:"cursor"` }
type AccessTokenConnection ¶
type AccessTokenConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []*AccessTokenEdge `json:"edges"` }
type AccessTokenEdge ¶
type AccessTokenEdge struct { Node *AccessToken `json:"node"` Cursor *string `json:"cursor"` }
type AccessTokenEdgeFragment ¶
type AccessTokenEdgeFragment struct {
Node *AccessTokenFragment "json:\"node\" graphql:\"node\""
}
type AccessTokenFragment ¶
type Account ¶
type Account struct { DelinquentAt *string `json:"delinquentAt"` GrandfatheredUntil *string `json:"grandfatheredUntil"` AvailableFeatures *AvailableFeatures `json:"availableFeatures"` Subscription *PluralSubscription `json:"subscription"` }
type Application ¶
type Application struct { Name string `json:"name"` Spec ApplicationSpec `json:"spec"` Status ApplicationStatus `json:"status"` Cost *CostAnalysis `json:"cost"` License *License `json:"license"` Configuration *Configuration `json:"configuration"` Info *string `json:"info"` }
type ApplicationDelta ¶
type ApplicationDelta struct { Delta *Delta `json:"delta"` Payload *Application `json:"payload"` }
type ApplicationDescriptor ¶
type ApplicationDescriptor struct { Type string `json:"type"` Version string `json:"version"` Description *string `json:"description"` Icons []*string `json:"icons"` Links []*ApplicationLink `json:"links"` }
type ApplicationInfoItem ¶
type ApplicationLink ¶
type ApplicationSpec ¶
type ApplicationSpec struct { Descriptor ApplicationDescriptor `json:"descriptor"` Components []*Component `json:"components"` Info []*ApplicationInfoItem `json:"info"` }
type ApplicationStatus ¶
type ApplicationStatus struct { Components []*StatusComponent `json:"components"` Conditions []*StatusCondition `json:"conditions"` ComponentsReady string `json:"componentsReady"` }
type Audit ¶
type Audit struct { ID string `json:"id"` Action AuditAction `json:"action"` Type AuditType `json:"type"` Repository *string `json:"repository"` IP *string `json:"ip"` City *string `json:"city"` Country *string `json:"country"` Latitude *string `json:"latitude"` Longitude *string `json:"longitude"` Actor *User `json:"actor"` InsertedAt *string `json:"insertedAt"` UpdatedAt *string `json:"updatedAt"` }
type AuditAction ¶
type AuditAction string
const ( AuditActionCreate AuditAction = "CREATE" AuditActionUpdate AuditAction = "UPDATE" AuditActionDelete AuditAction = "DELETE" AuditActionApprove AuditAction = "APPROVE" AuditActionCancel AuditAction = "CANCEL" )
func (AuditAction) IsValid ¶
func (e AuditAction) IsValid() bool
func (AuditAction) MarshalGQL ¶
func (e AuditAction) MarshalGQL(w io.Writer)
func (AuditAction) String ¶
func (e AuditAction) String() string
func (*AuditAction) UnmarshalGQL ¶
func (e *AuditAction) UnmarshalGQL(v interface{}) error
type AuditConnection ¶
type AuditMetric ¶
type AuditType ¶
type AuditType string
const ( AuditTypeBuild AuditType = "BUILD" AuditTypePod AuditType = "POD" AuditTypeConfiguration AuditType = "CONFIGURATION" AuditTypeUser AuditType = "USER" AuditTypeGroup AuditType = "GROUP" AuditTypeRole AuditType = "ROLE" AuditTypeGroupMember AuditType = "GROUP_MEMBER" AuditTypePolicy AuditType = "POLICY" AuditTypeTempToken AuditType = "TEMP_TOKEN" AuditTypeService AuditType = "SERVICE" AuditTypeCluster AuditType = "CLUSTER" AuditTypeClusterProvider AuditType = "CLUSTER_PROVIDER" AuditTypeGitRepository AuditType = "GIT_REPOSITORY" AuditTypeDeploymentSettings AuditType = "DEPLOYMENT_SETTINGS" )
func (AuditType) MarshalGQL ¶
func (*AuditType) UnmarshalGQL ¶
type AuthMethod ¶
type AuthMethod string
const ( AuthMethodBasic AuthMethod = "BASIC" AuthMethodSSH AuthMethod = "SSH" )
func (AuthMethod) IsValid ¶
func (e AuthMethod) IsValid() bool
func (AuthMethod) MarshalGQL ¶
func (e AuthMethod) MarshalGQL(w io.Writer)
func (AuthMethod) String ¶
func (e AuthMethod) String() string
func (*AuthMethod) UnmarshalGQL ¶
func (e *AuthMethod) UnmarshalGQL(v interface{}) error
type AutoscalingTarget ¶
type AutoscalingTarget string
const ( AutoscalingTargetStatefulset AutoscalingTarget = "STATEFULSET" AutoscalingTargetDeployment AutoscalingTarget = "DEPLOYMENT" )
func (AutoscalingTarget) IsValid ¶
func (e AutoscalingTarget) IsValid() bool
func (AutoscalingTarget) MarshalGQL ¶
func (e AutoscalingTarget) MarshalGQL(w io.Writer)
func (AutoscalingTarget) String ¶
func (e AutoscalingTarget) String() string
func (*AutoscalingTarget) UnmarshalGQL ¶
func (e *AutoscalingTarget) UnmarshalGQL(v interface{}) error
type AvailableFeatures ¶
type AwsCloud ¶
type AwsCloud struct { // custom launch template for your nodes, useful for Golden AMI setups LaunchTemplateID *string `json:"launchTemplateId"` }
aws node customizations
type AwsCloudAttributes ¶
type AwsCloudAttributes struct {
LaunchTemplateID *string `json:"launchTemplateId,omitempty"`
}
type AwsSettingsAttributes ¶
type BindingAttributes ¶
type Build ¶
type Build struct { ID string `json:"id"` Repository string `json:"repository"` Type BuildType `json:"type"` Status Status `json:"status"` Message *string `json:"message"` CompletedAt *string `json:"completedAt"` Sha *string `json:"sha"` Commands *CommandConnection `json:"commands"` Creator *User `json:"creator"` Approver *User `json:"approver"` Changelogs []*Changelog `json:"changelogs"` InsertedAt *string `json:"insertedAt"` UpdatedAt *string `json:"updatedAt"` }
type BuildAttributes ¶
type BuildConnection ¶
type BuildDelta ¶
type BuildType ¶
type BuildType string
func (BuildType) MarshalGQL ¶
func (*BuildType) UnmarshalGQL ¶
type Certificate ¶
type Certificate struct { Metadata Metadata `json:"metadata"` Status CertificateStatus `json:"status"` Spec CertificateSpec `json:"spec"` Raw string `json:"raw"` Events []*Event `json:"events"` }
type CertificateSpec ¶
type CertificateStatus ¶
type CertificateStatus struct { Conditions []*StatusCondition `json:"conditions"` NotAfter *string `json:"notAfter"` NotBefore *string `json:"notBefore"` RenewalTime *string `json:"renewalTime"` }
type Client ¶
func (*Client) CreateAccessToken ¶
func (c *Client) CreateAccessToken(ctx context.Context, httpRequestOptions ...client.HTTPRequestOption) (*CreateAccessToken, error)
func (*Client) CreateCluster ¶
func (c *Client) CreateCluster(ctx context.Context, attributes ClusterAttributes, httpRequestOptions ...client.HTTPRequestOption) (*CreateCluster, error)
func (*Client) CreateClusterProvider ¶
func (c *Client) CreateClusterProvider(ctx context.Context, attributes ClusterProviderAttributes, httpRequestOptions ...client.HTTPRequestOption) (*CreateClusterProvider, error)
func (*Client) CreateGitRepository ¶
func (c *Client) CreateGitRepository(ctx context.Context, attributes GitAttributes, httpRequestOptions ...client.HTTPRequestOption) (*CreateGitRepository, error)
func (*Client) CreateServiceDeployment ¶
func (c *Client) CreateServiceDeployment(ctx context.Context, clusterID string, attributes ServiceDeploymentAttributes, httpRequestOptions ...client.HTTPRequestOption) (*CreateServiceDeployment, error)
func (*Client) DeleteAccessToken ¶
func (c *Client) DeleteAccessToken(ctx context.Context, token string, httpRequestOptions ...client.HTTPRequestOption) (*DeleteAccessToken, error)
func (*Client) DeleteCluster ¶
func (c *Client) DeleteCluster(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*DeleteCluster, error)
func (*Client) DeleteServiceDeployment ¶
func (c *Client) DeleteServiceDeployment(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*DeleteServiceDeployment, error)
func (*Client) GetAccessToken ¶
func (c *Client) GetAccessToken(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*GetAccessToken, error)
func (*Client) GetCluster ¶
func (c *Client) GetCluster(ctx context.Context, id *string, httpRequestOptions ...client.HTTPRequestOption) (*GetCluster, error)
func (*Client) GetClusterProvider ¶
func (c *Client) GetClusterProvider(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*GetClusterProvider, error)
func (*Client) GetServiceDeployment ¶
func (c *Client) GetServiceDeployment(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*GetServiceDeployment, error)
func (*Client) ListAccessTokens ¶
func (c *Client) ListAccessTokens(ctx context.Context, cursor *string, before *string, last *int64, httpRequestOptions ...client.HTTPRequestOption) (*ListAccessTokens, error)
func (*Client) ListClusterServices ¶
func (c *Client) ListClusterServices(ctx context.Context, httpRequestOptions ...client.HTTPRequestOption) (*ListClusterServices, error)
func (*Client) ListClusters ¶
func (c *Client) ListClusters(ctx context.Context, cursor *string, before *string, last *int64, httpRequestOptions ...client.HTTPRequestOption) (*ListClusters, error)
func (*Client) ListDeploymentSettings ¶
func (c *Client) ListDeploymentSettings(ctx context.Context, httpRequestOptions ...client.HTTPRequestOption) (*ListDeploymentSettings, error)
func (*Client) ListGitRepositories ¶
func (c *Client) ListGitRepositories(ctx context.Context, cursor *string, before *string, last *int64, httpRequestOptions ...client.HTTPRequestOption) (*ListGitRepositories, error)
func (*Client) ListServiceDeployment ¶
func (*Client) ListServiceDeployments ¶ added in v0.0.5
func (c *Client) ListServiceDeployments(ctx context.Context, cursor *string, before *string, last *int64, httpRequestOptions ...client.HTTPRequestOption) (*ListServiceDeployments, error)
func (*Client) PingCluster ¶
func (c *Client) PingCluster(ctx context.Context, attributes ClusterPing, httpRequestOptions ...client.HTTPRequestOption) (*PingCluster, error)
func (*Client) RollbackService ¶
func (c *Client) RollbackService(ctx context.Context, id string, revisionID string, httpRequestOptions ...client.HTTPRequestOption) (*RollbackService, error)
func (*Client) UpdateCluster ¶
func (c *Client) UpdateCluster(ctx context.Context, id string, attributes ClusterUpdateAttributes, httpRequestOptions ...client.HTTPRequestOption) (*UpdateCluster, error)
func (*Client) UpdateClusterProvider ¶
func (c *Client) UpdateClusterProvider(ctx context.Context, id string, attributes ClusterProviderUpdateAttributes, httpRequestOptions ...client.HTTPRequestOption) (*UpdateClusterProvider, error)
func (*Client) UpdateDeploymentSettings ¶
func (c *Client) UpdateDeploymentSettings(ctx context.Context, attributes DeploymentSettingsAttributes, httpRequestOptions ...client.HTTPRequestOption) (*UpdateDeploymentSettings, error)
func (*Client) UpdateRbac ¶
func (c *Client) UpdateRbac(ctx context.Context, rbac RbacAttributes, serviceID *string, clusterID *string, providerID *string, httpRequestOptions ...client.HTTPRequestOption) (*UpdateRbac, error)
func (*Client) UpdateServiceComponents ¶
func (c *Client) UpdateServiceComponents(ctx context.Context, id string, components []*ComponentAttributes, errors []*ServiceErrorAttributes, httpRequestOptions ...client.HTTPRequestOption) (*UpdateServiceComponents, error)
func (*Client) UpdateServiceDeployment ¶
func (c *Client) UpdateServiceDeployment(ctx context.Context, id string, attributes ServiceUpdateAttributes, httpRequestOptions ...client.HTTPRequestOption) (*UpdateServiceDeployment, error)
type CloneAttributes ¶
type CloudProviderSettingsAttributes ¶
type CloudProviderSettingsAttributes struct { Aws *AwsSettingsAttributes `json:"aws,omitempty"` Gcp *GcpSettingsAttributes `json:"gcp,omitempty"` }
type CloudSettings ¶
type CloudSettings struct {
Aws *AwsCloud `json:"aws"`
}
cloud specific settings for a node pool
type CloudSettingsAttributes ¶
type CloudSettingsAttributes struct {
Aws *AwsCloudAttributes `json:"aws,omitempty"`
}
type Cluster ¶
type Cluster struct { // internal id of this cluster ID string `json:"id"` // human readable name of this cluster, will also translate to cloud k8s name Name string `json:"name"` // desired k8s version for the cluster Version string `json:"version"` // current k8s version as told to us by the deployment operator CurrentVersion *string `json:"currentVersion"` // when this cluster was scheduled for deletion DeletedAt *string `json:"deletedAt"` // last time the deploy operator pinged this cluster PingedAt *string `json:"pingedAt"` // read policy for this cluster ReadBindings []*PolicyBinding `json:"readBindings"` // write policy for this cluster WriteBindings []*PolicyBinding `json:"writeBindings"` // list of node pool specs managed by CAPI NodePools []*NodePool `json:"nodePools"` // the provider we use to create this cluster (null if BYOK) Provider *ClusterProvider `json:"provider"` // the service used to deploy the CAPI resources of this cluster Service *ServiceDeployment `json:"service"` // key/value tags to filter clusters Tags []*Tag `json:"tags"` // all api deprecations for all services in this cluster APIDeprecations []*APIDeprecation `json:"apiDeprecations"` // whether the current user can edit this cluster Editable *bool `json:"editable"` InsertedAt *string `json:"insertedAt"` UpdatedAt *string `json:"updatedAt"` }
a representation of a cluster you can deploy to
type ClusterAttributes ¶
type ClusterAttributes struct { Name string `json:"name"` ProviderID *string `json:"providerId,omitempty"` Version string `json:"version"` NodePools []*NodePoolAttributes `json:"nodePools,omitempty"` ReadBindings []*PolicyBindingAttributes `json:"readBindings,omitempty"` WriteBindings []*PolicyBindingAttributes `json:"writeBindings,omitempty"` Tags []*TagAttributes `json:"tags,omitempty"` }
type ClusterConnection ¶
type ClusterConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []*ClusterEdge `json:"edges"` }
type ClusterEdge ¶
type ClusterEdgeFragment ¶ added in v0.0.2
type ClusterEdgeFragment struct {
Node *ClusterFragment "json:\"node\" graphql:\"node\""
}
type ClusterFragment ¶
type ClusterFragment struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" Version string "json:\"version\" graphql:\"version\"" CurrentVersion *string "json:\"currentVersion\" graphql:\"currentVersion\"" Provider *ClusterProviderFragment "json:\"provider\" graphql:\"provider\"" NodePools []*NodePoolFragment "json:\"nodePools\" graphql:\"nodePools\"" }
type ClusterInfo ¶
type ClusterPing ¶
type ClusterPing struct {
CurrentVersion string `json:"currentVersion"`
}
type ClusterProvider ¶
type ClusterProvider struct { // the id of this provider ID string `json:"id"` // a human readable name for the provider, globally unique Name string `json:"name"` // the namespace the CAPI resources are deployed into Namespace string `json:"namespace"` // the name of the cloud service for this provider Cloud string `json:"cloud"` // the details of how cluster manifests will be synced from git when created with this provider Git GitRef `json:"git"` // the repository used to serve cluster manifests Repository *GitRepository `json:"repository"` // the service of the CAPI controller itself Service *ServiceDeployment `json:"service"` // whether the current user can edit this resource Editable *bool `json:"editable"` InsertedAt *string `json:"insertedAt"` UpdatedAt *string `json:"updatedAt"` }
a CAPI provider for a cluster, cloud is inferred from name if not provided manually
type ClusterProviderAttributes ¶
type ClusterProviderAttributes struct { Name string `json:"name"` Namespace *string `json:"namespace,omitempty"` Cloud *string `json:"cloud,omitempty"` CloudSettings *CloudProviderSettingsAttributes `json:"cloudSettings,omitempty"` }
type ClusterProviderConnection ¶
type ClusterProviderConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []*ClusterProviderEdge `json:"edges"` }
type ClusterProviderEdge ¶
type ClusterProviderEdge struct { Node *ClusterProvider `json:"node"` Cursor *string `json:"cursor"` }
type ClusterProviderFragment ¶
type ClusterProviderFragment struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" Namespace string "json:\"namespace\" graphql:\"namespace\"" Cloud string "json:\"cloud\" graphql:\"cloud\"" Editable *bool "json:\"editable\" graphql:\"editable\"" Repository *GitRepositoryFragment "json:\"repository\" graphql:\"repository\"" Service *ServiceDeploymentFragment "json:\"service\" graphql:\"service\"" }
type ClusterProviderUpdateAttributes ¶
type ClusterProviderUpdateAttributes struct {
CloudSettings *CloudProviderSettingsAttributes `json:"cloudSettings,omitempty"`
}
type ClusterUpdateAttributes ¶
type ClusterUpdateAttributes struct { Version string `json:"version"` NodePools []*NodePoolAttributes `json:"nodePools,omitempty"` ReadBindings []*PolicyBindingAttributes `json:"readBindings,omitempty"` WriteBindings []*PolicyBindingAttributes `json:"writeBindings,omitempty"` }
type CommandConnection ¶
type CommandConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []*CommandEdge `json:"edges"` }
type CommandDelta ¶
type CommandEdge ¶
type ComponentAttributes ¶
type ComponentState ¶
type ComponentState string
const ( ComponentStateRunning ComponentState = "RUNNING" ComponentStatePending ComponentState = "PENDING" ComponentStateFailed ComponentState = "FAILED" )
func (ComponentState) IsValid ¶
func (e ComponentState) IsValid() bool
func (ComponentState) MarshalGQL ¶
func (e ComponentState) MarshalGQL(w io.Writer)
func (ComponentState) String ¶
func (e ComponentState) String() string
func (*ComponentState) UnmarshalGQL ¶
func (e *ComponentState) UnmarshalGQL(v interface{}) error
type ConfigAttributes ¶
type Configuration ¶
type ConfigurationAction ¶
type ConfigurationAction struct {
Updates []*PathUpdate `json:"updates"`
}
type ConfigurationCondition ¶
type ConfigurationItem ¶
type ConfigurationItem struct { Name *string `json:"name"` Type *string `json:"type"` Placeholder *string `json:"placeholder"` Documentation *string `json:"documentation"` Default *string `json:"default"` Optional *bool `json:"optional"` Condition *ConfigurationCondition `json:"condition"` Validation *ConfigurationValidation `json:"validation"` }
type ConfigurationOverlay ¶
type ConfigurationOverlay struct { Metadata Metadata `json:"metadata"` Spec ConfigurationOverlaySpec `json:"spec"` }
type ConfigurationOverlaySpec ¶
type ConfigurationOverlaySpec struct { Name *string `json:"name"` Folder *string `json:"folder"` Subfolder *string `json:"subfolder"` Documentation *string `json:"documentation"` Updates []*OverlayUpdate `json:"updates"` InputType *string `json:"inputType"` InputValues []*string `json:"inputValues"` }
type ConfigurationValidation ¶
type ConsoleConfiguration ¶
type ConsoleConfiguration struct { GitCommit *string `json:"gitCommit"` IsDemoProject *bool `json:"isDemoProject"` IsSandbox *bool `json:"isSandbox"` PluralLogin *bool `json:"pluralLogin"` VpnEnabled *bool `json:"vpnEnabled"` Features *AvailableFeatures `json:"features"` Manifest *PluralManifest `json:"manifest"` GitStatus *GitStatus `json:"gitStatus"` }
type ContainerRecommendation ¶
type ContainerRecommendation struct { Name *string `json:"name"` ContainerName *string `json:"containerName"` Target *ContainerResources `json:"target"` LowerBound *ContainerResources `json:"lowerBound"` UpperBound *ContainerResources `json:"upperBound"` UncappedTarget *ContainerResources `json:"uncappedTarget"` }
type ContainerResources ¶
type ContainerState ¶
type ContainerState struct { Running *RunningState `json:"running"` Terminated *TerminatedState `json:"terminated"` Waiting *WaitingState `json:"waiting"` }
type ContainerStatus ¶
type ContainerStatus struct { RestartCount *int64 `json:"restartCount"` Ready *bool `json:"ready"` Name *string `json:"name"` Image *string `json:"image"` State *ContainerState `json:"state"` }
type ContextAttributes ¶
type CostAnalysis ¶
type CostAnalysis struct { Minutes *float64 `json:"minutes"` CPUCost *float64 `json:"cpuCost"` CPUEfficiency *float64 `json:"cpuEfficiency"` Efficiency *float64 `json:"efficiency"` GpuCost *float64 `json:"gpuCost"` NetworkCost *float64 `json:"networkCost"` PvCost *float64 `json:"pvCost"` RAMCost *float64 `json:"ramCost"` RAMEfficiency *float64 `json:"ramEfficiency"` TotalCost *float64 `json:"totalCost"` }
type CreateAccessToken ¶
type CreateAccessToken struct {
CreateAccessToken *AccessTokenFragment "json:\"createAccessToken\" graphql:\"createAccessToken\""
}
type CreateCluster ¶
type CreateCluster struct {
CreateCluster *ClusterFragment "json:\"createCluster\" graphql:\"createCluster\""
}
type CreateClusterProvider ¶
type CreateClusterProvider struct {
CreateClusterProvider *ClusterProviderFragment "json:\"createClusterProvider\" graphql:\"createClusterProvider\""
}
type CreateGitRepository ¶
type CreateGitRepository struct {
CreateGitRepository *GitRepositoryFragment "json:\"createGitRepository\" graphql:\"createGitRepository\""
}
type CreateServiceDeployment ¶
type CreateServiceDeployment struct {
CreateServiceDeployment *ServiceDeploymentFragment "json:\"createServiceDeployment\" graphql:\"createServiceDeployment\""
}
type CronStatus ¶
type CronStatus struct { Active []*JobReference `json:"active"` LastScheduleTime *string `json:"lastScheduleTime"` }
type Dashboard ¶
type Dashboard struct { ID string `json:"id"` Spec DashboardSpec `json:"spec"` }
type DashboardGraph ¶
type DashboardGraph struct { Name string `json:"name"` Queries []*DashboardMetric `json:"queries"` Format *string `json:"format"` }
type DashboardLabel ¶
type DashboardMetric ¶
type DashboardMetric struct { Legend *string `json:"legend"` Query *string `json:"query"` Results []*MetricResult `json:"results"` }
type DashboardSpec ¶
type DashboardSpec struct { Name *string `json:"name"` Description *string `json:"description"` Timeslices []*string `json:"timeslices"` Labels []*DashboardLabel `json:"labels"` Graphs []*DashboardGraph `json:"graphs"` }
type DatabaseVolume ¶
type DatabaseVolume struct {
Size *string `json:"size"`
}
type DeleteAccessToken ¶
type DeleteAccessToken struct {
DeleteAccessToken *AccessTokenFragment "json:\"deleteAccessToken\" graphql:\"deleteAccessToken\""
}
type DeleteCluster ¶
type DeleteCluster struct {
DeleteCluster *ClusterFragment "json:\"deleteCluster\" graphql:\"deleteCluster\""
}
type DeleteServiceDeployment ¶
type DeleteServiceDeployment struct {
DeleteServiceDeployment *ServiceDeploymentFragment "json:\"deleteServiceDeployment\" graphql:\"deleteServiceDeployment\""
}
type Deployment ¶
type Deployment struct { Metadata Metadata `json:"metadata"` Status DeploymentStatus `json:"status"` Spec DeploymentSpec `json:"spec"` Pods []*Pod `json:"pods"` Raw string `json:"raw"` Events []*Event `json:"events"` }
func (Deployment) IsKubernetesData ¶
func (Deployment) IsKubernetesData()
type DeploymentSettings ¶
type DeploymentSettings struct { ID string `json:"id"` Name string `json:"name"` // the repo to fetch CAPI manifests from, for both providers and clusters ArtifactRepository *GitRepository `json:"artifactRepository"` // the repo to fetch the deploy operators manifests from DeployerRepository *GitRepository `json:"deployerRepository"` // read policy across all clusters ReadBindings []*PolicyBinding `json:"readBindings"` // write policy across all clusters WriteBindings []*PolicyBinding `json:"writeBindings"` // policy for managing git repos GitBindings []*PolicyBinding `json:"gitBindings"` // policy for creation of new clusters CreateBindings []*PolicyBinding `json:"createBindings"` InsertedAt *string `json:"insertedAt"` UpdatedAt *string `json:"updatedAt"` }
global settings for CD, these specify global read/write policies and also allow for customization of the repos for CAPI resources and the deploy operator
type DeploymentSettingsAttributes ¶
type DeploymentSettingsAttributes struct { ArtifactRepositoryID *string `json:"artifactRepositoryId,omitempty"` DeployerRepositoryID *string `json:"deployerRepositoryId,omitempty"` ReadBindings []*PolicyBindingAttributes `json:"readBindings,omitempty"` WriteBindings []*PolicyBindingAttributes `json:"writeBindings,omitempty"` GitBindings []*PolicyBindingAttributes `json:"gitBindings,omitempty"` CreateBindings []*PolicyBindingAttributes `json:"createBindings,omitempty"` }
type DeploymentSettingsFragment ¶
type DeploymentSettingsFragment struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" WriteBindings []*PolicyBindingFragment "json:\"writeBindings\" graphql:\"writeBindings\"" ReadBindings []*PolicyBindingFragment "json:\"readBindings\" graphql:\"readBindings\"" CreateBindings []*PolicyBindingFragment "json:\"createBindings\" graphql:\"createBindings\"" ArtifactRepository *GitRepositoryFragment "json:\"artifactRepository\" graphql:\"artifactRepository\"" DeployerRepository *GitRepositoryFragment "json:\"deployerRepository\" graphql:\"deployerRepository\"" }
type DeploymentSpec ¶
type DeploymentSpec struct { Replicas *int64 `json:"replicas"` Strategy *DeploymentStrategy `json:"strategy"` }
type DeploymentStatus ¶
type DeploymentStrategy ¶
type DeploymentStrategy struct { Type *string `json:"type"` RollingUpdate *RollingUpdate `json:"rollingUpdate"` }
type FileContent ¶
type GcpSettingsAttributes ¶
type GcpSettingsAttributes struct {
ApplicationCredentials string `json:"applicationCredentials"`
}
type GetAccessToken ¶
type GetAccessToken struct {
AccessToken *AccessTokenFragment "json:\"accessToken\" graphql:\"accessToken\""
}
type GetCluster ¶
type GetCluster struct {
Cluster *ClusterFragment "json:\"cluster\" graphql:\"cluster\""
}
type GetClusterProvider ¶
type GetClusterProvider struct {
ClusterProvider *ClusterProviderFragment "json:\"clusterProvider\" graphql:\"clusterProvider\""
}
type GetServiceDeployment ¶
type GetServiceDeployment struct {
ServiceDeployment *ServiceDeploymentExtended "json:\"serviceDeployment\" graphql:\"serviceDeployment\""
}
type GitAttributes ¶
type GitAttributes struct { // the url of this repository URL string `json:"url"` // an ssh private key to use with this repo if an ssh url was given PrivateKey *string `json:"privateKey,omitempty"` // a passphrase to decrypt the given private key Passphrase *string `json:"passphrase,omitempty"` // the http username for authenticated http repos, defaults to apiKey for github Username *string `json:"username,omitempty"` // the http password for http authenticated repos Password *string `json:"password,omitempty"` }
type GitHealth ¶
type GitHealth string
func (GitHealth) MarshalGQL ¶
func (*GitHealth) UnmarshalGQL ¶
type GitRef ¶
type GitRef struct { // a general git ref, either a branch name or commit sha understandable by `git checkout <ref>` Ref string `json:"ref"` // the folder manifests live under Folder string `json:"folder"` }
a representation of where to pull manifests from git
type GitRefAttributes ¶
type GitRefFragment ¶
type GitRepository ¶
type GitRepository struct { // internal id of this repository ID string `json:"id"` // the git url of the repository, either https or ssh supported URL string `json:"url"` // whether its a http or ssh url AuthMethod *AuthMethod `json:"authMethod"` // whether we can currently pull this repo with the provided credentials Health *GitHealth `json:"health"` // the last successsful git pull timestamp PulledAt *string `json:"pulledAt"` // whether the current user can edit this repo Editable *bool `json:"editable"` InsertedAt *string `json:"insertedAt"` UpdatedAt *string `json:"updatedAt"` }
a git repository available for deployments
type GitRepositoryConnection ¶
type GitRepositoryConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []*GitRepositoryEdge `json:"edges"` }
type GitRepositoryEdge ¶
type GitRepositoryEdge struct { Node *GitRepository `json:"node"` Cursor *string `json:"cursor"` }
type GitRepositoryEdgeFragment ¶
type GitRepositoryEdgeFragment struct { Node *GitRepositoryFragment "json:\"node\" graphql:\"node\"" Cursor *string "json:\"cursor\" graphql:\"cursor\"" }
type GitRepositoryFragment ¶
type GitRepositoryFragment struct { ID string "json:\"id\" graphql:\"id\"" Editable *bool "json:\"editable\" graphql:\"editable\"" Health *GitHealth "json:\"health\" graphql:\"health\"" AuthMethod *AuthMethod "json:\"authMethod\" graphql:\"authMethod\"" URL string "json:\"url\" graphql:\"url\"" }
type GlobalService ¶ added in v0.0.2
type GlobalService struct { // internal id of this global service ID string `json:"id"` // a human readable name for this global service Name string `json:"name"` // a set of tags to select clusters for this global service Tags []*Tag `json:"tags"` // the service to replicate across clusters Service *ServiceDeployment `json:"service"` // whether to only apply to clusters with this provider Provider *ClusterProvider `json:"provider"` InsertedAt *string `json:"insertedAt"` UpdatedAt *string `json:"updatedAt"` }
a rules based mechanism to redeploy a service across a fleet of clusters
type GlobalServiceAttributes ¶ added in v0.0.2
type GlobalServiceAttributes struct { Name string `json:"name"` Tags []*TagAttributes `json:"tags,omitempty"` ProviderID *string `json:"providerId,omitempty"` }
type GroupAttributes ¶
type GroupConnection ¶
type GroupFragment ¶
type GroupMember ¶
type GroupMemberConnection ¶
type GroupMemberConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []*GroupMemberEdge `json:"edges"` }
type GroupMemberEdge ¶
type GroupMemberEdge struct { Node *GroupMember `json:"node"` Cursor *string `json:"cursor"` }
type HTTPIngressRule ¶
type HTTPIngressRule struct {
Paths []*IngressPath `json:"paths"`
}
type Ingress ¶
type Ingress struct { Metadata Metadata `json:"metadata"` Status ServiceStatus `json:"status"` Spec IngressSpec `json:"spec"` Certificates []*Certificate `json:"certificates"` Raw string `json:"raw"` Events []*Event `json:"events"` }
type IngressBackend ¶
type IngressPath ¶
type IngressPath struct { Backend *IngressBackend `json:"backend"` Path *string `json:"path"` }
type IngressRule ¶
type IngressRule struct { Host *string `json:"host"` HTTP *HTTPIngressRule `json:"http"` }
type IngressSpec ¶
type IngressSpec struct { Rules []*IngressRule `json:"rules"` TLS []*IngressTLS `json:"tls"` }
type IngressTLS ¶
type IngressTLS struct {
Hosts []*string `json:"hosts"`
}
type Installation ¶
type Installation struct { ID string `json:"id"` Repository *Repository `json:"repository"` }
type InstallationConnection ¶
type InstallationConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []*InstallationEdge `json:"edges"` }
type InstallationEdge ¶
type InstallationEdge struct { Node *Installation `json:"node"` Cursor *string `json:"cursor"` }
type InviteAttributes ¶
type InviteAttributes struct {
Email *string `json:"email,omitempty"`
}
type JobReference ¶
type KubernetesData ¶
type KubernetesData interface {
IsKubernetesData()
}
supported kubernetes objects fetchable in runbooks
type KubernetesDatasource ¶
type LabelInput ¶
type License ¶
type License struct { Metadata Metadata `json:"metadata"` Spec LicenseSpec `json:"spec"` Status *LicenseStatus `json:"status"` }
type LicenseFeature ¶
type LicenseSpec ¶
type LicenseSpec struct {
SecretRef SecretKeySelector `json:"secretRef"`
}
type LicenseStatus ¶
type LicenseStatus struct { Plan *string `json:"plan"` Free *bool `json:"free"` Features []*LicenseFeature `json:"features"` Limits map[string]interface{} `json:"limits"` Secrets map[string]interface{} `json:"secrets"` }
type ListAccessTokens ¶
type ListAccessTokens struct { AccessTokens *struct { Edges []*AccessTokenEdgeFragment "json:\"edges\" graphql:\"edges\"" } "json:\"accessTokens\" graphql:\"accessTokens\"" }
type ListClusterServices ¶
type ListClusterServices struct {
ClusterServices []*ServiceDeploymentFragment "json:\"clusterServices\" graphql:\"clusterServices\""
}
type ListClusters ¶
type ListClusters struct { Clusters *struct { Edges []*ClusterEdgeFragment "json:\"edges\" graphql:\"edges\"" } "json:\"clusters\" graphql:\"clusters\"" }
type ListDeploymentSettings ¶
type ListDeploymentSettings struct {
DeploymentSettings *DeploymentSettingsFragment "json:\"deploymentSettings\" graphql:\"deploymentSettings\""
}
type ListGitRepositories ¶
type ListGitRepositories struct { GitRepositories *struct { Edges []*GitRepositoryEdgeFragment "json:\"edges\" graphql:\"edges\"" } "json:\"gitRepositories\" graphql:\"gitRepositories\"" }
type ListServiceDeployment ¶
type ListServiceDeployment struct { ServiceDeployments *struct { Edges []*ServiceDeploymentEdgeFragment "json:\"edges\" graphql:\"edges\"" } "json:\"serviceDeployments\" graphql:\"serviceDeployments\"" }
type ListServiceDeployments ¶ added in v0.0.5
type ListServiceDeployments struct { ServiceDeployments *struct { Edges []*struct { Node *ServiceDeploymentFragment "json:\"node\" graphql:\"node\"" } "json:\"edges\" graphql:\"edges\"" } "json:\"serviceDeployments\" graphql:\"serviceDeployments\"" }
type LoadBalancerStatus ¶
type LoadBalancerStatus struct {
Ingress []*LoadBalancerIngressStatus `json:"ingress"`
}
type LogFilter ¶
type LogFilter struct { Metadata Metadata `json:"metadata"` Spec LogFilterSpec `json:"spec"` }
type LogFilterSpec ¶
type LogStream ¶
type LogStream struct { Stream map[string]interface{} `json:"stream"` Values []*MetricResult `json:"values"` }
type ManifestNetwork ¶
type MetricResponse ¶
type MetricResponse struct { Metric map[string]interface{} `json:"metric"` Values []*MetricResult `json:"values"` }
type MetricResult ¶
type Namespace ¶
type Namespace struct { Status NamespaceStatus `json:"status"` Spec NamespaceSpec `json:"spec"` Metadata Metadata `json:"metadata"` Raw string `json:"raw"` Events []*Event `json:"events"` }
type NamespaceSpec ¶
type NamespaceSpec struct {
Finalizers []*string `json:"finalizers"`
}
type NamespaceStatus ¶
type NamespaceStatus struct {
Phase *string `json:"phase"`
}
type NodeCondition ¶
type NodeMetric ¶
type NodePool ¶
type NodePool struct { // internal id for this node pool ID string `json:"id"` // name of this node pool (must be unique) Name string `json:"name"` // minimum number of instances in this node pool MinSize int64 `json:"minSize"` // maximum number of instances in this node pool MaxSize int64 `json:"maxSize"` // the type of node to use (usually cloud-specific) InstanceType string `json:"instanceType"` // kubernetes labels to apply to the nodes in this pool, useful for node selectors Labels map[string]interface{} `json:"labels"` // any taints you'd want to apply to a node, for eg preventing scheduling on spot instances Taints []*Taint `json:"taints"` // cloud specific settings for the node groups CloudSettings *CloudSettings `json:"cloudSettings"` InsertedAt *string `json:"insertedAt"` UpdatedAt *string `json:"updatedAt"` }
a specification for a node pool to be created in this cluster
type NodePoolAttributes ¶
type NodePoolAttributes struct { Name string `json:"name"` MinSize int64 `json:"minSize"` MaxSize int64 `json:"maxSize"` InstanceType string `json:"instanceType"` Labels map[string]interface{} `json:"labels,omitempty"` Taints []*TaintAttributes `json:"taints,omitempty"` CloudSettings *CloudSettingsAttributes `json:"cloudSettings,omitempty"` }
type NodePoolFragment ¶ added in v0.0.2
type NodeStatus ¶
type NodeStatus struct { Allocatable map[string]interface{} `json:"allocatable"` Capacity map[string]interface{} `json:"capacity"` Phase *string `json:"phase"` Conditions []*NodeCondition `json:"conditions"` }
type Notification ¶
type Notification struct { ID string `json:"id"` Title string `json:"title"` Description *string `json:"description"` Fingerprint string `json:"fingerprint"` Status *NotificationStatus `json:"status"` Labels map[string]interface{} `json:"labels"` Annotations map[string]interface{} `json:"annotations"` Repository string `json:"repository"` SeenAt *string `json:"seenAt"` Severity *Severity `json:"severity"` InsertedAt *string `json:"insertedAt"` UpdatedAt *string `json:"updatedAt"` }
type NotificationConnection ¶
type NotificationConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []*NotificationEdge `json:"edges"` }
type NotificationDelta ¶
type NotificationDelta struct { Delta *Delta `json:"delta"` Payload *Notification `json:"payload"` }
type NotificationEdge ¶
type NotificationEdge struct { Node *Notification `json:"node"` Cursor *string `json:"cursor"` }
type NotificationStatus ¶
type NotificationStatus string
const ( NotificationStatusFiring NotificationStatus = "FIRING" NotificationStatusResolved NotificationStatus = "RESOLVED" )
func (NotificationStatus) IsValid ¶
func (e NotificationStatus) IsValid() bool
func (NotificationStatus) MarshalGQL ¶
func (e NotificationStatus) MarshalGQL(w io.Writer)
func (NotificationStatus) String ¶
func (e NotificationStatus) String() string
func (*NotificationStatus) UnmarshalGQL ¶
func (e *NotificationStatus) UnmarshalGQL(v interface{}) error
type OverlayUpdate ¶
type OverlayUpdate struct {
Path []*string `json:"path"`
}
type PageInfo ¶
type PageInfo struct { // When paginating backwards, are there more items? HasPreviousPage bool `json:"hasPreviousPage"` // When paginating forwards, are there more items? HasNextPage bool `json:"hasNextPage"` // When paginating backwards, the cursor to continue. StartCursor *string `json:"startCursor"` // When paginating forwards, the cursor to continue. EndCursor *string `json:"endCursor"` }
type PathUpdate ¶
type Permission ¶
type Permission string
const ( PermissionRead Permission = "READ" PermissionConfigure Permission = "CONFIGURE" PermissionDeploy Permission = "DEPLOY" PermissionOperate Permission = "OPERATE" )
func (Permission) IsValid ¶
func (e Permission) IsValid() bool
func (Permission) MarshalGQL ¶
func (e Permission) MarshalGQL(w io.Writer)
func (Permission) String ¶
func (e Permission) String() string
func (*Permission) UnmarshalGQL ¶
func (e *Permission) UnmarshalGQL(v interface{}) error
type PingCluster ¶
type PingCluster struct {
PingCluster *ClusterFragment "json:\"pingCluster\" graphql:\"pingCluster\""
}
type PluralContext ¶
type PluralManifest ¶
type PluralManifest struct { Network *ManifestNetwork `json:"network"` BucketPrefix *string `json:"bucketPrefix"` Cluster *string `json:"cluster"` }
type PluralSubscription ¶
type PodCondition ¶
type PodConnection ¶
type PodStatus ¶
type PodStatus struct { Message *string `json:"message"` Phase *string `json:"phase"` HostIP *string `json:"hostIp"` PodIP *string `json:"podIp"` Reason *string `json:"reason"` Conditions []*PodCondition `json:"conditions"` ContainerStatuses []*ContainerStatus `json:"containerStatuses"` InitContainerStatuses []*ContainerStatus `json:"initContainerStatuses"` }
type PolicyBinding ¶
type PolicyBindingAttributes ¶
type PolicyBindingFragment ¶
type PolicyBindingFragment struct { ID *string "json:\"id\" graphql:\"id\"" Group *GroupFragment "json:\"group\" graphql:\"group\"" User *UserFragment "json:\"user\" graphql:\"user\"" }
type PostgresInstance ¶
type PostgresInstance struct {
UID string `json:"uid"`
}
type PostgresSettings ¶
type PostgresSettings struct {
Version *string `json:"version"`
}
type Postgresql ¶
type Postgresql struct { Metadata Metadata `json:"metadata"` Spec PostgresqlSpec `json:"spec"` Status *PostgresqlStatus `json:"status"` Instances []*PostgresInstance `json:"instances"` }
type PostgresqlSpec ¶
type PostgresqlSpec struct { TeamID *string `json:"teamId"` Users map[string]interface{} `json:"users"` Resources *Resources `json:"resources"` Postgresql *PostgresSettings `json:"postgresql"` NumberOfInstances *int64 `json:"numberOfInstances"` Databases map[string]interface{} `json:"databases"` Volume *DatabaseVolume `json:"volume"` Pods []*Pod `json:"pods"` }
type PostgresqlStatus ¶
type PostgresqlStatus struct {
ClusterStatus *string `json:"clusterStatus"`
}
type PrometheusDatasource ¶
type RbacAttributes ¶
type RbacAttributes struct { ReadBindings []*PolicyBindingAttributes `json:"readBindings,omitempty"` WriteBindings []*PolicyBindingAttributes `json:"writeBindings,omitempty"` }
type RecipeConnection ¶
type RecipeConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []*RecipeEdge `json:"edges"` }
type RecipeEdge ¶
type RecipeItem ¶
type RecipeItem struct { ID string `json:"id"` Configuration []*ConfigurationItem `json:"configuration"` }
type RecipeSection ¶
type RecipeSection struct { ID string `json:"id"` Repository *Repository `json:"repository"` RecipeItems []*RecipeItem `json:"recipeItems"` Configuration []*ConfigurationItem `json:"configuration"` }
type Recommendation ¶
type Recommendation struct {
ContainerRecommendations []*ContainerRecommendation `json:"containerRecommendations"`
}
type Repository ¶
type Repository struct { ID string `json:"id"` Name string `json:"name"` Description *string `json:"description"` Icon *string `json:"icon"` Docs []*FileContent `json:"docs"` Configuration *Configuration `json:"configuration"` GrafanaDNS *string `json:"grafanaDns"` }
type RepositoryConnection ¶
type RepositoryConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []*RepositoryEdge `json:"edges"` }
type RepositoryContext ¶
type RepositoryEdge ¶
type RepositoryEdge struct { Node *Repository `json:"node"` Cursor *string `json:"cursor"` }
type ResourceSpec ¶
type Resources ¶
type Resources struct { Limits *ResourceSpec `json:"limits"` Requests *ResourceSpec `json:"requests"` }
type Revision ¶
type Revision struct { // id of this revision ID string `json:"id"` // the service's semver Version string `json:"version"` // git spec of the prior revision Git GitRef `json:"git"` // the sha this service was pulled from Sha *string `json:"sha"` InsertedAt *string `json:"insertedAt"` UpdatedAt *string `json:"updatedAt"` }
a representation of a past revision of a service
type RevisionConnection ¶
type RevisionConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []*RevisionEdge `json:"edges"` }
type RevisionEdge ¶
type RevisionFragment ¶ added in v0.0.3
type Role ¶
type Role struct { ID string `json:"id"` Name string `json:"name"` Description *string `json:"description"` Repositories []*string `json:"repositories"` Permissions []*Permission `json:"permissions"` RoleBindings []*RoleBinding `json:"roleBindings"` InsertedAt *string `json:"insertedAt"` UpdatedAt *string `json:"updatedAt"` }
type RoleAttributes ¶
type RoleAttributes struct { Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` Repositories []*string `json:"repositories,omitempty"` RoleBindings []*BindingAttributes `json:"roleBindings,omitempty"` Permissions []*Permission `json:"permissions,omitempty"` }
type RoleBinding ¶
type RoleConnection ¶
type RollbackService ¶
type RollbackService struct {
RollbackService *ServiceDeploymentFragment "json:\"rollbackService\" graphql:\"rollbackService\""
}
type RollingUpdate ¶
type RollingUpdate struct { MaxSurge *int64 `json:"maxSurge"` }
type RootMutationType ¶
type RootMutationType struct { CreateBuild *Build "json:\"createBuild\" graphql:\"createBuild\"" RestartBuild *Build "json:\"restartBuild\" graphql:\"restartBuild\"" CancelBuild *Build "json:\"cancelBuild\" graphql:\"cancelBuild\"" ApproveBuild *Build "json:\"approveBuild\" graphql:\"approveBuild\"" SignIn *User "json:\"signIn\" graphql:\"signIn\"" LoginLink *User "json:\"loginLink\" graphql:\"loginLink\"" ReadNotifications *User "json:\"readNotifications\" graphql:\"readNotifications\"" Signup *User "json:\"signup\" graphql:\"signup\"" OauthCallback *User "json:\"oauthCallback\" graphql:\"oauthCallback\"" CreateInvite *Invite "json:\"createInvite\" graphql:\"createInvite\"" UpdateUser *User "json:\"updateUser\" graphql:\"updateUser\"" DeleteUser *User "json:\"deleteUser\" graphql:\"deleteUser\"" MarkRead *User "json:\"markRead\" graphql:\"markRead\"" CreateGroup *Group "json:\"createGroup\" graphql:\"createGroup\"" DeleteGroup *Group "json:\"deleteGroup\" graphql:\"deleteGroup\"" UpdateGroup *Group "json:\"updateGroup\" graphql:\"updateGroup\"" CreateGroupMember *GroupMember "json:\"createGroupMember\" graphql:\"createGroupMember\"" DeleteGroupMember *GroupMember "json:\"deleteGroupMember\" graphql:\"deleteGroupMember\"" CreateRole *Role "json:\"createRole\" graphql:\"createRole\"" UpdateRole *Role "json:\"updateRole\" graphql:\"updateRole\"" DeleteRole *Role "json:\"deleteRole\" graphql:\"deleteRole\"" CreateAccessToken *AccessToken "json:\"createAccessToken\" graphql:\"createAccessToken\"" DeleteAccessToken *AccessToken "json:\"deleteAccessToken\" graphql:\"deleteAccessToken\"" DeleteCertificate *bool "json:\"deleteCertificate\" graphql:\"deleteCertificate\"" DeletePod *Pod "json:\"deletePod\" graphql:\"deletePod\"" DeleteJob *Job "json:\"deleteJob\" graphql:\"deleteJob\"" DeleteNode *Node "json:\"deleteNode\" graphql:\"deleteNode\"" OverlayConfiguration *Build "json:\"overlayConfiguration\" graphql:\"overlayConfiguration\"" CreatePeer *WireguardPeer "json:\"createPeer\" graphql:\"createPeer\"" DeletePeer *bool "json:\"deletePeer\" graphql:\"deletePeer\"" InstallRecipe *Build "json:\"installRecipe\" graphql:\"installRecipe\"" InstallStack *Build "json:\"installStack\" graphql:\"installStack\"" UpdateSMTP *SMTP "json:\"updateSmtp\" graphql:\"updateSmtp\"" UpdateConfiguration *Configuration "json:\"updateConfiguration\" graphql:\"updateConfiguration\"" CreateUpgradePolicy *UpgradePolicy "json:\"createUpgradePolicy\" graphql:\"createUpgradePolicy\"" DeleteUpgradePolicy *UpgradePolicy "json:\"deleteUpgradePolicy\" graphql:\"deleteUpgradePolicy\"" ExecuteRunbook *RunbookActionResponse "json:\"executeRunbook\" graphql:\"executeRunbook\"" CreateWebhook *Webhook "json:\"createWebhook\" graphql:\"createWebhook\"" DeleteWebhook *Webhook "json:\"deleteWebhook\" graphql:\"deleteWebhook\"" RestorePostgres *Postgresql "json:\"restorePostgres\" graphql:\"restorePostgres\"" CreateGitRepository *GitRepository "json:\"createGitRepository\" graphql:\"createGitRepository\"" CreateCluster *Cluster "json:\"createCluster\" graphql:\"createCluster\"" UpdateCluster *Cluster "json:\"updateCluster\" graphql:\"updateCluster\"" DeleteCluster *Cluster "json:\"deleteCluster\" graphql:\"deleteCluster\"" CreateClusterProvider *ClusterProvider "json:\"createClusterProvider\" graphql:\"createClusterProvider\"" UpdateClusterProvider *ClusterProvider "json:\"updateClusterProvider\" graphql:\"updateClusterProvider\"" CreateServiceDeployment *ServiceDeployment "json:\"createServiceDeployment\" graphql:\"createServiceDeployment\"" UpdateServiceDeployment *ServiceDeployment "json:\"updateServiceDeployment\" graphql:\"updateServiceDeployment\"" DeleteServiceDeployment *ServiceDeployment "json:\"deleteServiceDeployment\" graphql:\"deleteServiceDeployment\"" RollbackService *ServiceDeployment "json:\"rollbackService\" graphql:\"rollbackService\"" CloneService *ServiceDeployment "json:\"cloneService\" graphql:\"cloneService\"" CreateGlobalService *GlobalService "json:\"createGlobalService\" graphql:\"createGlobalService\"" DeleteGlobalService *GlobalService "json:\"deleteGlobalService\" graphql:\"deleteGlobalService\"" PingCluster *Cluster "json:\"pingCluster\" graphql:\"pingCluster\"" UpdateServiceComponents *ServiceDeployment "json:\"updateServiceComponents\" graphql:\"updateServiceComponents\"" UpdateRbac *bool "json:\"updateRbac\" graphql:\"updateRbac\"" UpdateDeploymentSettings *DeploymentSettings "json:\"updateDeploymentSettings\" graphql:\"updateDeploymentSettings\"" }
type RootQueryType ¶
type RootQueryType struct { Configuration *ConsoleConfiguration "json:\"configuration\" graphql:\"configuration\"" ExternalToken *string "json:\"externalToken\" graphql:\"externalToken\"" Builds *BuildConnection "json:\"builds\" graphql:\"builds\"" Build *Build "json:\"build\" graphql:\"build\"" BuildInfo *BuildInfo "json:\"buildInfo\" graphql:\"buildInfo\"" Users *UserConnection "json:\"users\" graphql:\"users\"" LoginInfo *LoginInfo "json:\"loginInfo\" graphql:\"loginInfo\"" Me *User "json:\"me\" graphql:\"me\"" Invite *Invite "json:\"invite\" graphql:\"invite\"" Groups *GroupConnection "json:\"groups\" graphql:\"groups\"" GroupMembers *GroupMemberConnection "json:\"groupMembers\" graphql:\"groupMembers\"" Role *Role "json:\"role\" graphql:\"role\"" Roles *RoleConnection "json:\"roles\" graphql:\"roles\"" Notifications *NotificationConnection "json:\"notifications\" graphql:\"notifications\"" TemporaryToken *string "json:\"temporaryToken\" graphql:\"temporaryToken\"" AccessTokens *AccessTokenConnection "json:\"accessTokens\" graphql:\"accessTokens\"" AccessToken *AccessToken "json:\"accessToken\" graphql:\"accessToken\"" Dashboards []*Dashboard "json:\"dashboards\" graphql:\"dashboards\"" Dashboard *Dashboard "json:\"dashboard\" graphql:\"dashboard\"" Metric []*MetricResponse "json:\"metric\" graphql:\"metric\"" Logs []*LogStream "json:\"logs\" graphql:\"logs\"" ScalingRecommendation *VerticalPodAutoscaler "json:\"scalingRecommendation\" graphql:\"scalingRecommendation\"" ConfigMap *ConfigMap "json:\"configMap\" graphql:\"configMap\"" Secret *Secret "json:\"secret\" graphql:\"secret\"" ConfigMaps []*ConfigMap "json:\"configMaps\" graphql:\"configMaps\"" Secrets []*Secret "json:\"secrets\" graphql:\"secrets\"" Service *Service "json:\"service\" graphql:\"service\"" ClusterInfo *ClusterInfo "json:\"clusterInfo\" graphql:\"clusterInfo\"" Deployment *Deployment "json:\"deployment\" graphql:\"deployment\"" StatefulSet *StatefulSet "json:\"statefulSet\" graphql:\"statefulSet\"" Ingress *Ingress "json:\"ingress\" graphql:\"ingress\"" Nodes []*Node "json:\"nodes\" graphql:\"nodes\"" Node *Node "json:\"node\" graphql:\"node\"" CronJob *CronJob "json:\"cronJob\" graphql:\"cronJob\"" Job *Job "json:\"job\" graphql:\"job\"" Certificate *Certificate "json:\"certificate\" graphql:\"certificate\"" Pod *Pod "json:\"pod\" graphql:\"pod\"" Pods *PodConnection "json:\"pods\" graphql:\"pods\"" WireguardPeers []*WireguardPeer "json:\"wireguardPeers\" graphql:\"wireguardPeers\"" MyWireguardPeers []*WireguardPeer "json:\"myWireguardPeers\" graphql:\"myWireguardPeers\"" WireguardPeer *WireguardPeer "json:\"wireguardPeer\" graphql:\"wireguardPeer\"" CachedPods []*Pod "json:\"cachedPods\" graphql:\"cachedPods\"" Namespaces []*Namespace "json:\"namespaces\" graphql:\"namespaces\"" LogFilters []*LogFilter "json:\"logFilters\" graphql:\"logFilters\"" NodeMetrics []*NodeMetric "json:\"nodeMetrics\" graphql:\"nodeMetrics\"" NodeMetric *NodeMetric "json:\"nodeMetric\" graphql:\"nodeMetric\"" ConfigurationOverlays []*ConfigurationOverlay "json:\"configurationOverlays\" graphql:\"configurationOverlays\"" Audits *AuditConnection "json:\"audits\" graphql:\"audits\"" AuditMetrics []*AuditMetric "json:\"auditMetrics\" graphql:\"auditMetrics\"" Ai *string "json:\"ai\" graphql:\"ai\"" Account *Account "json:\"account\" graphql:\"account\"" Installations *InstallationConnection "json:\"installations\" graphql:\"installations\"" Applications []*Application "json:\"applications\" graphql:\"applications\"" Application *Application "json:\"application\" graphql:\"application\"" Repository *Repository "json:\"repository\" graphql:\"repository\"" Repositories *RepositoryConnection "json:\"repositories\" graphql:\"repositories\"" Recipes *RecipeConnection "json:\"recipes\" graphql:\"recipes\"" Context []*RepositoryContext "json:\"context\" graphql:\"context\"" PluralContext *PluralContext "json:\"pluralContext\" graphql:\"pluralContext\"" Recipe *Recipe "json:\"recipe\" graphql:\"recipe\"" Stack *Stack "json:\"stack\" graphql:\"stack\"" SMTP *SMTP "json:\"smtp\" graphql:\"smtp\"" UpgradePolicies []*UpgradePolicy "json:\"upgradePolicies\" graphql:\"upgradePolicies\"" Runbook *Runbook "json:\"runbook\" graphql:\"runbook\"" Runbooks []*Runbook "json:\"runbooks\" graphql:\"runbooks\"" Webhooks *WebhookConnection "json:\"webhooks\" graphql:\"webhooks\"" PostgresDatabases []*Postgresql "json:\"postgresDatabases\" graphql:\"postgresDatabases\"" PostgresDatabase *Postgresql "json:\"postgresDatabase\" graphql:\"postgresDatabase\"" GitRepositories *GitRepositoryConnection "json:\"gitRepositories\" graphql:\"gitRepositories\"" Clusters *ClusterConnection "json:\"clusters\" graphql:\"clusters\"" ClusterProviders *ClusterProviderConnection "json:\"clusterProviders\" graphql:\"clusterProviders\"" Cluster *Cluster "json:\"cluster\" graphql:\"cluster\"" ClusterProvider *ClusterProvider "json:\"clusterProvider\" graphql:\"clusterProvider\"" ServiceDeployments *ServiceDeploymentConnection "json:\"serviceDeployments\" graphql:\"serviceDeployments\"" ClusterServices []*ServiceDeployment "json:\"clusterServices\" graphql:\"clusterServices\"" ServiceDeployment *ServiceDeployment "json:\"serviceDeployment\" graphql:\"serviceDeployment\"" DeploymentSettings *DeploymentSettings "json:\"deploymentSettings\" graphql:\"deploymentSettings\"" }
type Runbook ¶
type Runbook struct { Name string `json:"name"` Spec RunbookSpec `json:"spec"` Status *RunbookStatus `json:"status"` Data []*RunbookData `json:"data"` Executions *RunbookExecutionConnection `json:"executions"` }
type RunbookAction ¶
type RunbookAction struct { Name string `json:"name"` Type string `json:"type"` Configuration *ConfigurationAction `json:"configuration"` }
type RunbookActionInput ¶
type RunbookActionResponse ¶
type RunbookActionResponse struct {
RedirectTo *string `json:"redirectTo"`
}
type RunbookAlertStatus ¶
type RunbookContext ¶
type RunbookData ¶
type RunbookData struct { Name string `json:"name"` Source *RunbookDatasource `json:"source"` Kubernetes KubernetesData `json:"kubernetes"` Prometheus []*MetricResponse `json:"prometheus"` Nodes []*Node `json:"nodes"` }
type RunbookDatasource ¶
type RunbookDatasource struct { Name string `json:"name"` Type string `json:"type"` Prometheus *PrometheusDatasource `json:"prometheus"` Kubernetes *KubernetesDatasource `json:"kubernetes"` }
type RunbookExecution ¶
type RunbookExecutionConnection ¶
type RunbookExecutionConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []*RunbookExecutionEdge `json:"edges"` }
type RunbookExecutionEdge ¶
type RunbookExecutionEdge struct { Node *RunbookExecution `json:"node"` Cursor *string `json:"cursor"` }
type RunbookSpec ¶
type RunbookSpec struct { Name string `json:"name"` Description *string `json:"description"` Display map[string]interface{} `json:"display"` Datasources []*RunbookDatasource `json:"datasources"` Actions []*RunbookAction `json:"actions"` }
type RunbookStatus ¶
type RunbookStatus struct {
Alerts []*RunbookAlertStatus `json:"alerts"`
}
type RunningState ¶
type RunningState struct {
StartedAt *string `json:"startedAt"`
}
type SecretKeySelector ¶
type Service ¶
type Service struct { Metadata Metadata `json:"metadata"` Status ServiceStatus `json:"status"` Spec ServiceSpec `json:"spec"` Pods []*Pod `json:"pods"` Raw string `json:"raw"` Events []*Event `json:"events"` }
type ServiceCloneAttributes ¶ added in v0.0.2
type ServiceCloneAttributes struct { Name string `json:"name"` Namespace *string `json:"namespace,omitempty"` Configuration []*ConfigAttributes `json:"configuration,omitempty"` }
type ServiceComponent ¶
type ServiceComponent struct { // internal id ID string `json:"id"` // kubernetes component health enum State *ComponentState `json:"state"` // whether this component has been applied to the k8s api Synced bool `json:"synced"` // api group of this resource Group *string `json:"group"` // api version of this resource Version *string `json:"version"` // api kind of this resource Kind string `json:"kind"` // kubernetes namespace of this resource Namespace *string `json:"namespace"` // kubernetes name of this resource Name string `json:"name"` // the service this component belongs to Service *ServiceDeployment `json:"service"` // any api deprecations discovered from this component APIDeprecations []*APIDeprecation `json:"apiDeprecations"` }
representation of a kubernets component deployed by a service
type ServiceConfiguration ¶
a configuration item k/v pair
type ServiceDeployment ¶
type ServiceDeployment struct { // internal id of this service ID string `json:"id"` // human readable name of this service, must be unique per cluster Name string `json:"name"` // kubernetes namespace this service will be deployed to Namespace string `json:"namespace"` // semver of this service Version string `json:"version"` // description on where in git the service's manifests should be fetched Git GitRef `json:"git"` // latest git sha we pulled from Sha *string `json:"sha"` // https url to fetch the latest tarball of kubernetes manifests Tarball *string `json:"tarball"` // the time this service was scheduled for deletion DeletedAt *string `json:"deletedAt"` // the git repo of this service Repository *GitRepository `json:"repository"` // read policy for this service ReadBindings []*PolicyBinding `json:"readBindings"` // write policy of this service WriteBindings []*PolicyBinding `json:"writeBindings"` // a list of errors generated by the deployment operator Errors []*ServiceError `json:"errors"` // the cluster this service is deployed into Cluster *Cluster `json:"cluster"` // the current revision of this service Revision *Revision `json:"revision"` // possibly secret configuration used to template the manifests of this service Configuration []*ServiceConfiguration `json:"configuration"` // the kubernetes component of a service Components []*ServiceComponent `json:"components"` // the global service this service is the source for GlobalService *GlobalService `json:"globalService"` // whether this service is controlled by a global service Owner *GlobalService `json:"owner"` // a relay connection of all revisions of this service, these are periodically pruned up to a history limit Revisions *RevisionConnection `json:"revisions"` // whether this service is editable Editable *bool `json:"editable"` InsertedAt *string `json:"insertedAt"` UpdatedAt *string `json:"updatedAt"` }
a reference to a service deployed from a git repo into a cluster
type ServiceDeploymentAttributes ¶
type ServiceDeploymentAttributes struct { Name string `json:"name"` Namespace string `json:"namespace"` Version *string `json:"version,omitempty"` RepositoryID string `json:"repositoryId"` Git GitRefAttributes `json:"git"` Configuration []*ConfigAttributes `json:"configuration,omitempty"` ReadBindings []*PolicyBindingAttributes `json:"readBindings,omitempty"` WriteBindings []*PolicyBindingAttributes `json:"writeBindings,omitempty"` }
type ServiceDeploymentConnection ¶
type ServiceDeploymentConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []*ServiceDeploymentEdge `json:"edges"` }
type ServiceDeploymentEdge ¶
type ServiceDeploymentEdge struct { Node *ServiceDeployment `json:"node"` Cursor *string `json:"cursor"` }
type ServiceDeploymentEdgeFragment ¶
type ServiceDeploymentEdgeFragment struct {
Node *ServiceDeploymentFragment "json:\"node\" graphql:\"node\""
}
type ServiceDeploymentExtended ¶ added in v0.0.2
type ServiceDeploymentExtended struct { Configuration []*struct { Name string "json:\"name\" graphql:\"name\"" Value string "json:\"value\" graphql:\"value\"" } "json:\"configuration\" graphql:\"configuration\"" Cluster *ClusterFragment "json:\"cluster\" graphql:\"cluster\"" Revision *RevisionFragment "json:\"revision\" graphql:\"revision\"" ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" Namespace string "json:\"namespace\" graphql:\"namespace\"" Version string "json:\"version\" graphql:\"version\"" Editable *bool "json:\"editable\" graphql:\"editable\"" DeletedAt *string "json:\"deletedAt\" graphql:\"deletedAt\"" Components []*struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" Group *string "json:\"group\" graphql:\"group\"" Kind string "json:\"kind\" graphql:\"kind\"" Namespace *string "json:\"namespace\" graphql:\"namespace\"" State *ComponentState "json:\"state\" graphql:\"state\"" Synced bool "json:\"synced\" graphql:\"synced\"" Version *string "json:\"version\" graphql:\"version\"" } "json:\"components\" graphql:\"components\"" Git GitRefFragment "json:\"git\" graphql:\"git\"" Repository *GitRepositoryFragment "json:\"repository\" graphql:\"repository\"" Sha *string "json:\"sha\" graphql:\"sha\"" Tarball *string "json:\"tarball\" graphql:\"tarball\"" }
type ServiceDeploymentFragment ¶
type ServiceDeploymentFragment struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" Namespace string "json:\"namespace\" graphql:\"namespace\"" Version string "json:\"version\" graphql:\"version\"" Editable *bool "json:\"editable\" graphql:\"editable\"" DeletedAt *string "json:\"deletedAt\" graphql:\"deletedAt\"" Components []*struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" Group *string "json:\"group\" graphql:\"group\"" Kind string "json:\"kind\" graphql:\"kind\"" Namespace *string "json:\"namespace\" graphql:\"namespace\"" State *ComponentState "json:\"state\" graphql:\"state\"" Synced bool "json:\"synced\" graphql:\"synced\"" Version *string "json:\"version\" graphql:\"version\"" } "json:\"components\" graphql:\"components\"" Git GitRefFragment "json:\"git\" graphql:\"git\"" Repository *GitRepositoryFragment "json:\"repository\" graphql:\"repository\"" Sha *string "json:\"sha\" graphql:\"sha\"" Tarball *string "json:\"tarball\" graphql:\"tarball\"" }
type ServiceError ¶ added in v0.0.2
an error sent from the deploy operator about sync progress
type ServiceErrorAttributes ¶ added in v0.0.2
type ServicePort ¶
type ServiceSpec ¶
type ServiceSpec struct { Type *string `json:"type"` ClusterIP *string `json:"clusterIp"` Selector map[string]interface{} `json:"selector"` Ports []*ServicePort `json:"ports"` }
type ServiceStatus ¶
type ServiceStatus struct {
LoadBalancer *LoadBalancerStatus `json:"loadBalancer"`
}
type ServiceUpdateAttributes ¶
type ServiceUpdateAttributes struct { Version *string `json:"version,omitempty"` Git GitRefAttributes `json:"git"` Configuration []*ConfigAttributes `json:"configuration,omitempty"` }
type StatefulSet ¶
type StatefulSet struct { Metadata Metadata `json:"metadata"` Status StatefulSetStatus `json:"status"` Spec StatefulSetSpec `json:"spec"` Pods []*Pod `json:"pods"` Raw string `json:"raw"` Events []*Event `json:"events"` }
func (StatefulSet) IsKubernetesData ¶
func (StatefulSet) IsKubernetesData()
type StatefulSetSpec ¶
type StatefulSetStatus ¶
type StatusComponent ¶
type StatusCondition ¶
type TagAttributes ¶ added in v0.0.2
type Taint ¶
type Taint struct { Key string `json:"key"` Value string `json:"value"` Effect string `json:"effect"` }
a kubernetes node taint
type TaintAttributes ¶
type TerminatedState ¶
type UpdateCluster ¶
type UpdateCluster struct {
UpdateCluster *ClusterFragment "json:\"updateCluster\" graphql:\"updateCluster\""
}
type UpdateClusterProvider ¶
type UpdateClusterProvider struct {
UpdateClusterProvider *ClusterProviderFragment "json:\"updateClusterProvider\" graphql:\"updateClusterProvider\""
}
type UpdateDeploymentSettings ¶
type UpdateDeploymentSettings struct {
UpdateDeploymentSettings *DeploymentSettingsFragment "json:\"updateDeploymentSettings\" graphql:\"updateDeploymentSettings\""
}
type UpdateRbac ¶
type UpdateRbac struct {
UpdateRbac *bool "json:\"updateRbac\" graphql:\"updateRbac\""
}
type UpdateServiceComponents ¶
type UpdateServiceComponents struct {
UpdateServiceComponents *ServiceDeploymentFragment "json:\"updateServiceComponents\" graphql:\"updateServiceComponents\""
}
type UpdateServiceDeployment ¶
type UpdateServiceDeployment struct {
UpdateServiceDeployment *ServiceDeploymentFragment "json:\"updateServiceDeployment\" graphql:\"updateServiceDeployment\""
}
type UpgradePolicy ¶
type UpgradePolicy struct { ID string `json:"id"` Name string `json:"name"` Description *string `json:"description"` Repositories []*string `json:"repositories"` Type UpgradePolicyType `json:"type"` Target string `json:"target"` Weight *int64 `json:"weight"` InsertedAt *string `json:"insertedAt"` UpdatedAt *string `json:"updatedAt"` }
type UpgradePolicyAttributes ¶
type UpgradePolicyType ¶
type UpgradePolicyType string
const ( UpgradePolicyTypeDeploy UpgradePolicyType = "DEPLOY" UpgradePolicyTypeApproval UpgradePolicyType = "APPROVAL" UpgradePolicyTypeIgnore UpgradePolicyType = "IGNORE" )
func (UpgradePolicyType) IsValid ¶
func (e UpgradePolicyType) IsValid() bool
func (UpgradePolicyType) MarshalGQL ¶
func (e UpgradePolicyType) MarshalGQL(w io.Writer)
func (UpgradePolicyType) String ¶
func (e UpgradePolicyType) String() string
func (*UpgradePolicyType) UnmarshalGQL ¶
func (e *UpgradePolicyType) UnmarshalGQL(v interface{}) error
type User ¶
type User struct { ID string `json:"id"` Name string `json:"name"` Email string `json:"email"` DeletedAt *string `json:"deletedAt"` Profile *string `json:"profile"` PluralID *string `json:"pluralId"` Roles *UserRoles `json:"roles"` ReadTimestamp *string `json:"readTimestamp"` BuildTimestamp *string `json:"buildTimestamp"` BoundRoles []*Role `json:"boundRoles"` Jwt *string `json:"jwt"` UnreadNotifications *int64 `json:"unreadNotifications"` BackgroundColor *string `json:"backgroundColor"` InsertedAt *string `json:"insertedAt"` UpdatedAt *string `json:"updatedAt"` }
type UserAttributes ¶
type UserAttributes struct { Name *string `json:"name,omitempty"` Email *string `json:"email,omitempty"` Password *string `json:"password,omitempty"` Roles *UserRoleAttributes `json:"roles,omitempty"` }
type UserConnection ¶
type UserFragment ¶
type UserRoleAttributes ¶
type UserRoleAttributes struct {
Admin *bool `json:"admin,omitempty"`
}
type VerticalPodAutoscaler ¶
type VerticalPodAutoscaler struct { Metadata Metadata `json:"metadata"` Spec VerticalPodAutoscalerSpec `json:"spec"` Status *VerticalPodAutoscalerStatus `json:"status"` }
type VerticalPodAutoscalerSpec ¶
type VerticalPodAutoscalerSpec struct { TargetRef CrossVersionResourceTarget `json:"targetRef"` UpdatePolicy VerticalPodAutoscalerUpdatePolicy `json:"updatePolicy"` }
type VerticalPodAutoscalerStatus ¶
type VerticalPodAutoscalerStatus struct {
Recommendation *Recommendation `json:"recommendation"`
}
type VerticalPodAutoscalerUpdatePolicy ¶
type VerticalPodAutoscalerUpdatePolicy struct {
UpdateMode *string `json:"updateMode"`
}
type WaitingState ¶
type Webhook ¶
type Webhook struct { ID string `json:"id"` URL string `json:"url"` Health WebhookHealth `json:"health"` Type WebhookType `json:"type"` InsertedAt *string `json:"insertedAt"` UpdatedAt *string `json:"updatedAt"` }
type WebhookAttributes ¶
type WebhookAttributes struct {
URL string `json:"url"`
}
type WebhookConnection ¶
type WebhookConnection struct { PageInfo PageInfo `json:"pageInfo"` Edges []*WebhookEdge `json:"edges"` }
type WebhookEdge ¶
type WebhookHealth ¶
type WebhookHealth string
const ( WebhookHealthHealthy WebhookHealth = "HEALTHY" WebhookHealthUnhealthy WebhookHealth = "UNHEALTHY" )
func (WebhookHealth) IsValid ¶
func (e WebhookHealth) IsValid() bool
func (WebhookHealth) MarshalGQL ¶
func (e WebhookHealth) MarshalGQL(w io.Writer)
func (WebhookHealth) String ¶
func (e WebhookHealth) String() string
func (*WebhookHealth) UnmarshalGQL ¶
func (e *WebhookHealth) UnmarshalGQL(v interface{}) error
type WebhookType ¶
type WebhookType string
const ( WebhookTypePiazza WebhookType = "PIAZZA" WebhookTypeSLACk WebhookType = "SLACK" )
func (WebhookType) IsValid ¶
func (e WebhookType) IsValid() bool
func (WebhookType) MarshalGQL ¶
func (e WebhookType) MarshalGQL(w io.Writer)
func (WebhookType) String ¶
func (e WebhookType) String() string
func (*WebhookType) UnmarshalGQL ¶
func (e *WebhookType) UnmarshalGQL(v interface{}) error
type WireguardPeer ¶
type WireguardPeer struct { Metadata Metadata `json:"metadata"` Status *WireguardPeerStatus `json:"status"` Spec WireguardPeerSpec `json:"spec"` Config *string `json:"config"` User *User `json:"user"` Raw string `json:"raw"` }
type WireguardPeerSpec ¶
type WireguardPeerStatus ¶
type WireguardPeerStatus struct { Ready *bool `json:"ready"` Conditions []*StatusCondition `json:"conditions"` }