Documentation
¶
Index ¶
- func IsBuildInProgress(status DeploymentStatus) bool
- func IsDeployInProgress(status DeploymentStatus) bool
- func IsJobInProgress(state JobRunState) bool
- type BlueprintConnection
- type BlueprintConnectionNodesBlueprint
- func (v *BlueprintConnectionNodesBlueprint) GetDescription() string
- func (v *BlueprintConnectionNodesBlueprint) GetDisplayName() string
- func (v *BlueprintConnectionNodesBlueprint) GetId() uuid.UUID
- func (v *BlueprintConnectionNodesBlueprint) GetProjectCount() int
- func (v *BlueprintConnectionNodesBlueprint) GetRichInputSchema() string
- func (v *BlueprintConnectionNodesBlueprint) GetSlug() string
- func (v *BlueprintConnectionNodesBlueprint) GetTags() []string
- func (v *BlueprintConnectionNodesBlueprint) GetType() BlueprintType
- func (v *BlueprintConnectionNodesBlueprint) MarshalJSON() ([]byte, error)
- func (v *BlueprintConnectionNodesBlueprint) UnmarshalJSON(b []byte) error
- type BlueprintSummary
- func (v *BlueprintSummary) GetDescription() string
- func (v *BlueprintSummary) GetDisplayName() string
- func (v *BlueprintSummary) GetId() uuid.UUID
- func (v *BlueprintSummary) GetProjectCount() int
- func (v *BlueprintSummary) GetRichInputSchema() string
- func (v *BlueprintSummary) GetSlug() string
- func (v *BlueprintSummary) GetTags() []string
- func (v *BlueprintSummary) GetType() BlueprintType
- type BlueprintType
- type Client
- func (c *Client) BuildProject(ctx context.Context, projectID uuid.UUID, branch string, noCache bool) (*Deployment, error)
- func (c *Client) DeleteBlueprint(ctx context.Context, id uuid.UUID) error
- func (c *Client) DeleteRepo(ctx context.Context, repoID uuid.UUID) error
- func (c *Client) DeployProjectBranch(ctx context.Context, projectID uuid.UUID, branch string, noCache bool) (*Deployment, error)
- func (c *Client) GetBlueprint(ctx context.Context, id uuid.UUID) (*BlueprintSummary, error)
- func (c *Client) GetBuildLogs(ctx context.Context, deployID uuid.UUID) (out []LogEntry, err error)
- func (c *Client) GetCloudAWS(ctx context.Context, cloudID uuid.UUID) (*GetCloudAWSResponse, error)
- func (c *Client) GetCloudDigitalOcean(ctx context.Context, cloudID uuid.UUID) (*GetCloudDigitalOceanResponse, error)
- func (c *Client) GetCloudGCP(ctx context.Context, cloudID uuid.UUID) (*GetCloudGCPResponse, error)
- func (c *Client) GetCloudLinode(ctx context.Context, cloudID uuid.UUID) (*GetCloudLinodeResponse, error)
- func (c *Client) GetClusterKubeconfig(ctx context.Context, clusterID uuid.UUID) (*GetClusterKubeconfigResponse, error)
- func (c *Client) GetCurrentUser(ctx context.Context) (*User, error)
- func (c *Client) GetDeployment(ctx context.Context, deploymentID uuid.UUID) (*Deployment, error)
- func (c *Client) GetDeploymentLogs(ctx context.Context, deployID uuid.UUID) (out []LogEntry, err error)
- func (c *Client) GetDeploymentStatus(ctx context.Context, deploymentID uuid.UUID) (*DeploymentReplicaStatus, error)
- func (c *Client) GetEnvVars(ctx context.Context, repoID uuid.UUID) (map[string]string, error)
- func (c *Client) GetJob(ctx context.Context, projectID uuid.UUID, jobID uuid.UUID) (*Job, error)
- func (c *Client) GetJobLogs(ctx context.Context, repoID uuid.UUID, jobID uuid.UUID) ([]LogEntry, error)
- func (c *Client) GetLatestDeployment(ctx context.Context, project string, branch string) (*Deployment, error)
- func (c *Client) GetProductionBranch(ctx context.Context, projectID uuid.UUID) (string, error)
- func (c *Client) GetProductionDeployment(ctx context.Context, project string) (*Deployment, error)
- func (c *Client) GetProjectByPath(ctx context.Context, project string) (*Project, error)
- func (c *Client) GetProjectPath(ctx context.Context, id uuid.UUID) (string, error)
- func (c *Client) GetRepo(ctx context.Context, path string) (*Repo, error)
- func (c *Client) GetRuntimeLogs(ctx context.Context, deployID uuid.UUID) (out []LogEntry, err error)
- func (c *Client) ListBlueprints(ctx context.Context, pageInput PageInput) (*BlueprintConnection, error)
- func (c *Client) RunJob(ctx context.Context, projectID uuid.UUID, command string, build bool) (*Job, error)
- func (c *Client) SetEnvVars(ctx context.Context, repoID uuid.UUID, vars map[string]string) error
- func (c *Client) ToProjectPath(input string) (string, error)
- func (c *Client) UpdateBranch(ctx context.Context, projectID uuid.UUID, image string, branchName string, ...) error
- func (c *Client) UpdateClusterKubeconfig(ctx context.Context, clusterId uuid.UUID, kubeconfig []byte) (*Cluster, error)
- func (c *Client) UpdateProject(ctx context.Context, projectID uuid.UUID, image string) error
- type Cluster
- type Deployment
- type DeploymentReplicaStatus
- type DeploymentStatus
- type EnvVarInput
- type GetCloudAWSCurrentUser
- type GetCloudAWSCurrentUserAwsAccountAWSAccount
- type GetCloudAWSResponse
- type GetCloudDigitalOceanCurrentUser
- type GetCloudDigitalOceanCurrentUserDoAccountDOAccount
- type GetCloudDigitalOceanResponse
- type GetCloudGCPCurrentUser
- type GetCloudGCPCurrentUserGcpAccountGCPAccount
- type GetCloudGCPResponse
- type GetCloudLinodeCurrentUser
- type GetCloudLinodeCurrentUserLinodeAccount
- type GetCloudLinodeResponse
- type GetClusterKubeconfigResponse
- type Job
- type JobRunState
- type LogEntry
- type PageInfo
- type PageInput
- type Project
- type Repo
- type User
- type UserAgentTransport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBuildInProgress ¶ added in v0.6.0
func IsBuildInProgress(status DeploymentStatus) bool
func IsDeployInProgress ¶ added in v0.6.0
func IsDeployInProgress(status DeploymentStatus) bool
func IsJobInProgress ¶ added in v0.6.0
func IsJobInProgress(state JobRunState) bool
Types ¶
type BlueprintConnection ¶ added in v0.8.0
type BlueprintConnection struct {
TotalCount int `json:"totalCount"`
PageInfo PageInfo `json:"pageInfo"`
Nodes []BlueprintConnectionNodesBlueprint `json:"nodes"`
}
BlueprintConnection includes the requested fields of the GraphQL type BlueprintConnection.
func (*BlueprintConnection) GetNodes ¶ added in v0.8.0
func (v *BlueprintConnection) GetNodes() []BlueprintConnectionNodesBlueprint
GetNodes returns BlueprintConnection.Nodes, and is useful for accessing the field via an interface.
func (*BlueprintConnection) GetPageInfo ¶ added in v0.8.0
func (v *BlueprintConnection) GetPageInfo() PageInfo
GetPageInfo returns BlueprintConnection.PageInfo, and is useful for accessing the field via an interface.
func (*BlueprintConnection) GetTotalCount ¶ added in v0.8.0
func (v *BlueprintConnection) GetTotalCount() int
GetTotalCount returns BlueprintConnection.TotalCount, and is useful for accessing the field via an interface.
type BlueprintConnectionNodesBlueprint ¶ added in v0.8.0
type BlueprintConnectionNodesBlueprint struct {
BlueprintSummary `json:"-"`
}
BlueprintConnectionNodesBlueprint includes the requested fields of the GraphQL type Blueprint.
func (*BlueprintConnectionNodesBlueprint) GetDescription ¶ added in v0.8.0
func (v *BlueprintConnectionNodesBlueprint) GetDescription() string
GetDescription returns BlueprintConnectionNodesBlueprint.Description, and is useful for accessing the field via an interface.
func (*BlueprintConnectionNodesBlueprint) GetDisplayName ¶ added in v0.8.0
func (v *BlueprintConnectionNodesBlueprint) GetDisplayName() string
GetDisplayName returns BlueprintConnectionNodesBlueprint.DisplayName, and is useful for accessing the field via an interface.
func (*BlueprintConnectionNodesBlueprint) GetId ¶ added in v0.8.0
func (v *BlueprintConnectionNodesBlueprint) GetId() uuid.UUID
GetId returns BlueprintConnectionNodesBlueprint.Id, and is useful for accessing the field via an interface.
func (*BlueprintConnectionNodesBlueprint) GetProjectCount ¶ added in v0.8.0
func (v *BlueprintConnectionNodesBlueprint) GetProjectCount() int
GetProjectCount returns BlueprintConnectionNodesBlueprint.ProjectCount, and is useful for accessing the field via an interface.
func (*BlueprintConnectionNodesBlueprint) GetRichInputSchema ¶ added in v0.8.0
func (v *BlueprintConnectionNodesBlueprint) GetRichInputSchema() string
GetRichInputSchema returns BlueprintConnectionNodesBlueprint.RichInputSchema, and is useful for accessing the field via an interface.
func (*BlueprintConnectionNodesBlueprint) GetSlug ¶ added in v0.8.0
func (v *BlueprintConnectionNodesBlueprint) GetSlug() string
GetSlug returns BlueprintConnectionNodesBlueprint.Slug, and is useful for accessing the field via an interface.
func (*BlueprintConnectionNodesBlueprint) GetTags ¶ added in v0.8.0
func (v *BlueprintConnectionNodesBlueprint) GetTags() []string
GetTags returns BlueprintConnectionNodesBlueprint.Tags, and is useful for accessing the field via an interface.
func (*BlueprintConnectionNodesBlueprint) GetType ¶ added in v0.8.0
func (v *BlueprintConnectionNodesBlueprint) GetType() BlueprintType
GetType returns BlueprintConnectionNodesBlueprint.Type, and is useful for accessing the field via an interface.
func (*BlueprintConnectionNodesBlueprint) MarshalJSON ¶ added in v0.8.0
func (v *BlueprintConnectionNodesBlueprint) MarshalJSON() ([]byte, error)
func (*BlueprintConnectionNodesBlueprint) UnmarshalJSON ¶ added in v0.8.0
func (v *BlueprintConnectionNodesBlueprint) UnmarshalJSON(b []byte) error
type BlueprintSummary ¶ added in v0.8.0
type BlueprintSummary struct {
Id uuid.UUID `json:"id"`
Slug string `json:"slug"`
DisplayName string `json:"displayName"`
Description string `json:"description"`
Type BlueprintType `json:"type"`
ProjectCount int `json:"projectCount"`
RichInputSchema string `json:"richInputSchema"`
Tags []string `json:"tags"`
}
BlueprintSummary includes the GraphQL fields of Blueprint requested by the fragment BlueprintSummary.
func (*BlueprintSummary) GetDescription ¶ added in v0.8.0
func (v *BlueprintSummary) GetDescription() string
GetDescription returns BlueprintSummary.Description, and is useful for accessing the field via an interface.
func (*BlueprintSummary) GetDisplayName ¶ added in v0.8.0
func (v *BlueprintSummary) GetDisplayName() string
GetDisplayName returns BlueprintSummary.DisplayName, and is useful for accessing the field via an interface.
func (*BlueprintSummary) GetId ¶ added in v0.8.0
func (v *BlueprintSummary) GetId() uuid.UUID
GetId returns BlueprintSummary.Id, and is useful for accessing the field via an interface.
func (*BlueprintSummary) GetProjectCount ¶ added in v0.8.0
func (v *BlueprintSummary) GetProjectCount() int
GetProjectCount returns BlueprintSummary.ProjectCount, and is useful for accessing the field via an interface.
func (*BlueprintSummary) GetRichInputSchema ¶ added in v0.8.0
func (v *BlueprintSummary) GetRichInputSchema() string
GetRichInputSchema returns BlueprintSummary.RichInputSchema, and is useful for accessing the field via an interface.
func (*BlueprintSummary) GetSlug ¶ added in v0.8.0
func (v *BlueprintSummary) GetSlug() string
GetSlug returns BlueprintSummary.Slug, and is useful for accessing the field via an interface.
func (*BlueprintSummary) GetTags ¶ added in v0.8.0
func (v *BlueprintSummary) GetTags() []string
GetTags returns BlueprintSummary.Tags, and is useful for accessing the field via an interface.
func (*BlueprintSummary) GetType ¶ added in v0.8.0
func (v *BlueprintSummary) GetType() BlueprintType
GetType returns BlueprintSummary.Type, and is useful for accessing the field via an interface.
type BlueprintType ¶ added in v0.8.0
type BlueprintType string
const ( BlueprintTypeTerraform BlueprintType = "TERRAFORM" BlueprintTypeKubernetesManifest BlueprintType = "KUBERNETES_MANIFEST" BlueprintTypeHelm BlueprintType = "HELM" BlueprintTypeZeetKubernetes BlueprintType = "ZEET_KUBERNETES" BlueprintTypeZeetAwsLambda BlueprintType = "ZEET_AWS_LAMBDA" BlueprintTypeZeetGcpCloudRun BlueprintType = "ZEET_GCP_CLOUD_RUN" )
type Client ¶ added in v0.1.0
type Client struct {
// contains filtered or unexported fields
}
func (*Client) BuildProject ¶ added in v0.1.0
func (*Client) DeleteBlueprint ¶ added in v0.8.0
func (*Client) DeleteRepo ¶ added in v0.6.1
func (*Client) DeployProjectBranch ¶ added in v0.1.0
func (*Client) GetBlueprint ¶ added in v0.8.0
func (*Client) GetBuildLogs ¶ added in v0.1.0
func (*Client) GetCloudAWS ¶ added in v0.7.0
func (*Client) GetCloudDigitalOcean ¶ added in v0.7.0
func (*Client) GetCloudGCP ¶ added in v0.7.0
func (*Client) GetCloudLinode ¶ added in v0.7.0
func (*Client) GetClusterKubeconfig ¶ added in v0.7.0
func (*Client) GetCurrentUser ¶ added in v0.1.0
func (*Client) GetDeployment ¶ added in v0.1.0
func (*Client) GetDeploymentLogs ¶ added in v0.1.0
func (*Client) GetDeploymentStatus ¶ added in v0.5.2
func (*Client) GetEnvVars ¶ added in v0.2.0
func (*Client) GetJobLogs ¶ added in v0.5.2
func (*Client) GetLatestDeployment ¶ added in v0.5.2
func (*Client) GetProductionBranch ¶ added in v0.1.0
func (*Client) GetProductionDeployment ¶ added in v0.1.2
func (*Client) GetProjectByPath ¶ added in v0.1.0
func (*Client) GetProjectPath ¶ added in v0.5.2
func (*Client) GetRuntimeLogs ¶ added in v0.2.0
func (*Client) ListBlueprints ¶ added in v0.8.0
func (*Client) SetEnvVars ¶ added in v0.2.0
func (*Client) ToProjectPath ¶ added in v0.6.0
ToProjectPath returns the path for a given project UUID or path
func (*Client) UpdateBranch ¶ added in v0.5.2
func (*Client) UpdateClusterKubeconfig ¶ added in v0.6.0
type Deployment ¶ added in v0.1.0
type DeploymentReplicaStatus ¶ added in v0.1.2
type DeploymentReplicaStatus struct {
Replicas int
ReadyReplicas int
RunningReplicas int
State string
ErrorMessage string
}
TODO this should be named DeploymentStatus, but that's already used
type DeploymentStatus ¶ added in v0.1.0
type DeploymentStatus string
const ( DeploymentStatusBuildPending DeploymentStatus = "BUILD_PENDING" DeploymentStatusBuildInProgress DeploymentStatus = "BUILD_IN_PROGRESS" DeploymentStatusBuildFailed DeploymentStatus = "BUILD_FAILED" DeploymentStatusBuildSucceeded DeploymentStatus = "BUILD_SUCCEEDED" DeploymentStatusDeployPending DeploymentStatus = "DEPLOY_PENDING" DeploymentStatusDeployInProgress DeploymentStatus = "DEPLOY_IN_PROGRESS" DeploymentStatusReleaseInProgress DeploymentStatus = "RELEASE_IN_PROGRESS" DeploymentStatusDeployFailed DeploymentStatus = "DEPLOY_FAILED" DeploymentStatusDeploySucceeded DeploymentStatus = "DEPLOY_SUCCEEDED" DeploymentStatusBuildAborted DeploymentStatus = "BUILD_ABORTED" DeploymentStatusDeployStopped DeploymentStatus = "DEPLOY_STOPPED" DeploymentStatusDeployHealhty DeploymentStatus = "DEPLOY_HEALHTY" DeploymentStatusDeployCrashing DeploymentStatus = "DEPLOY_CRASHING" )
type EnvVarInput ¶ added in v0.2.0
type EnvVarInput struct {
Name string `json:"name"`
Value string `json:"value"`
Sealed bool `json:"sealed"`
}
func (*EnvVarInput) GetName ¶ added in v0.2.0
func (v *EnvVarInput) GetName() string
GetName returns EnvVarInput.Name, and is useful for accessing the field via an interface.
func (*EnvVarInput) GetSealed ¶ added in v0.6.1
func (v *EnvVarInput) GetSealed() bool
GetSealed returns EnvVarInput.Sealed, and is useful for accessing the field via an interface.
func (*EnvVarInput) GetValue ¶ added in v0.2.0
func (v *EnvVarInput) GetValue() string
GetValue returns EnvVarInput.Value, and is useful for accessing the field via an interface.
type GetCloudAWSCurrentUser ¶ added in v0.7.0
type GetCloudAWSCurrentUser struct {
AwsAccount GetCloudAWSCurrentUserAwsAccountAWSAccount `json:"awsAccount"`
}
GetCloudAWSCurrentUser includes the requested fields of the GraphQL type User.
func (*GetCloudAWSCurrentUser) GetAwsAccount ¶ added in v0.7.0
func (v *GetCloudAWSCurrentUser) GetAwsAccount() GetCloudAWSCurrentUserAwsAccountAWSAccount
GetAwsAccount returns GetCloudAWSCurrentUser.AwsAccount, and is useful for accessing the field via an interface.
type GetCloudAWSCurrentUserAwsAccountAWSAccount ¶ added in v0.7.0
type GetCloudAWSCurrentUserAwsAccountAWSAccount struct {
Id uuid.UUID `json:"id"`
RoleARN string `json:"roleARN"`
ExternalID string `json:"externalID"`
}
GetCloudAWSCurrentUserAwsAccountAWSAccount includes the requested fields of the GraphQL type AWSAccount.
func (*GetCloudAWSCurrentUserAwsAccountAWSAccount) GetExternalID ¶ added in v0.7.0
func (v *GetCloudAWSCurrentUserAwsAccountAWSAccount) GetExternalID() string
GetExternalID returns GetCloudAWSCurrentUserAwsAccountAWSAccount.ExternalID, and is useful for accessing the field via an interface.
func (*GetCloudAWSCurrentUserAwsAccountAWSAccount) GetId ¶ added in v0.7.0
func (v *GetCloudAWSCurrentUserAwsAccountAWSAccount) GetId() uuid.UUID
GetId returns GetCloudAWSCurrentUserAwsAccountAWSAccount.Id, and is useful for accessing the field via an interface.
func (*GetCloudAWSCurrentUserAwsAccountAWSAccount) GetRoleARN ¶ added in v0.7.0
func (v *GetCloudAWSCurrentUserAwsAccountAWSAccount) GetRoleARN() string
GetRoleARN returns GetCloudAWSCurrentUserAwsAccountAWSAccount.RoleARN, and is useful for accessing the field via an interface.
type GetCloudAWSResponse ¶ added in v0.7.0
type GetCloudAWSResponse struct {
CurrentUser GetCloudAWSCurrentUser `json:"currentUser"`
}
GetCloudAWSResponse is returned by GetCloudAWS on success.
func GetCloudAWS ¶ added in v0.7.0
func (*GetCloudAWSResponse) GetCurrentUser ¶ added in v0.7.0
func (v *GetCloudAWSResponse) GetCurrentUser() GetCloudAWSCurrentUser
GetCurrentUser returns GetCloudAWSResponse.CurrentUser, and is useful for accessing the field via an interface.
type GetCloudDigitalOceanCurrentUser ¶ added in v0.7.0
type GetCloudDigitalOceanCurrentUser struct {
DoAccount GetCloudDigitalOceanCurrentUserDoAccountDOAccount `json:"doAccount"`
}
GetCloudDigitalOceanCurrentUser includes the requested fields of the GraphQL type User.
func (*GetCloudDigitalOceanCurrentUser) GetDoAccount ¶ added in v0.7.0
func (v *GetCloudDigitalOceanCurrentUser) GetDoAccount() GetCloudDigitalOceanCurrentUserDoAccountDOAccount
GetDoAccount returns GetCloudDigitalOceanCurrentUser.DoAccount, and is useful for accessing the field via an interface.
type GetCloudDigitalOceanCurrentUserDoAccountDOAccount ¶ added in v0.7.0
type GetCloudDigitalOceanCurrentUserDoAccountDOAccount struct {
Id uuid.UUID `json:"id"`
AccessToken string `json:"accessToken"`
}
GetCloudDigitalOceanCurrentUserDoAccountDOAccount includes the requested fields of the GraphQL type DOAccount.
func (*GetCloudDigitalOceanCurrentUserDoAccountDOAccount) GetAccessToken ¶ added in v0.7.0
func (v *GetCloudDigitalOceanCurrentUserDoAccountDOAccount) GetAccessToken() string
GetAccessToken returns GetCloudDigitalOceanCurrentUserDoAccountDOAccount.AccessToken, and is useful for accessing the field via an interface.
func (*GetCloudDigitalOceanCurrentUserDoAccountDOAccount) GetId ¶ added in v0.7.0
func (v *GetCloudDigitalOceanCurrentUserDoAccountDOAccount) GetId() uuid.UUID
GetId returns GetCloudDigitalOceanCurrentUserDoAccountDOAccount.Id, and is useful for accessing the field via an interface.
type GetCloudDigitalOceanResponse ¶ added in v0.7.0
type GetCloudDigitalOceanResponse struct {
CurrentUser GetCloudDigitalOceanCurrentUser `json:"currentUser"`
}
GetCloudDigitalOceanResponse is returned by GetCloudDigitalOcean on success.
func GetCloudDigitalOcean ¶ added in v0.7.0
func (*GetCloudDigitalOceanResponse) GetCurrentUser ¶ added in v0.7.0
func (v *GetCloudDigitalOceanResponse) GetCurrentUser() GetCloudDigitalOceanCurrentUser
GetCurrentUser returns GetCloudDigitalOceanResponse.CurrentUser, and is useful for accessing the field via an interface.
type GetCloudGCPCurrentUser ¶ added in v0.7.0
type GetCloudGCPCurrentUser struct {
GcpAccount GetCloudGCPCurrentUserGcpAccountGCPAccount `json:"gcpAccount"`
}
GetCloudGCPCurrentUser includes the requested fields of the GraphQL type User.
func (*GetCloudGCPCurrentUser) GetGcpAccount ¶ added in v0.7.0
func (v *GetCloudGCPCurrentUser) GetGcpAccount() GetCloudGCPCurrentUserGcpAccountGCPAccount
GetGcpAccount returns GetCloudGCPCurrentUser.GcpAccount, and is useful for accessing the field via an interface.
type GetCloudGCPCurrentUserGcpAccountGCPAccount ¶ added in v0.7.0
type GetCloudGCPCurrentUserGcpAccountGCPAccount struct {
Id uuid.UUID `json:"id"`
ProjectID string `json:"projectID"`
Credentials string `json:"credentials"`
}
GetCloudGCPCurrentUserGcpAccountGCPAccount includes the requested fields of the GraphQL type GCPAccount.
func (*GetCloudGCPCurrentUserGcpAccountGCPAccount) GetCredentials ¶ added in v0.7.0
func (v *GetCloudGCPCurrentUserGcpAccountGCPAccount) GetCredentials() string
GetCredentials returns GetCloudGCPCurrentUserGcpAccountGCPAccount.Credentials, and is useful for accessing the field via an interface.
func (*GetCloudGCPCurrentUserGcpAccountGCPAccount) GetId ¶ added in v0.7.0
func (v *GetCloudGCPCurrentUserGcpAccountGCPAccount) GetId() uuid.UUID
GetId returns GetCloudGCPCurrentUserGcpAccountGCPAccount.Id, and is useful for accessing the field via an interface.
func (*GetCloudGCPCurrentUserGcpAccountGCPAccount) GetProjectID ¶ added in v0.7.6
func (v *GetCloudGCPCurrentUserGcpAccountGCPAccount) GetProjectID() string
GetProjectID returns GetCloudGCPCurrentUserGcpAccountGCPAccount.ProjectID, and is useful for accessing the field via an interface.
type GetCloudGCPResponse ¶ added in v0.7.0
type GetCloudGCPResponse struct {
CurrentUser GetCloudGCPCurrentUser `json:"currentUser"`
}
GetCloudGCPResponse is returned by GetCloudGCP on success.
func GetCloudGCP ¶ added in v0.7.0
func (*GetCloudGCPResponse) GetCurrentUser ¶ added in v0.7.0
func (v *GetCloudGCPResponse) GetCurrentUser() GetCloudGCPCurrentUser
GetCurrentUser returns GetCloudGCPResponse.CurrentUser, and is useful for accessing the field via an interface.
type GetCloudLinodeCurrentUser ¶ added in v0.7.0
type GetCloudLinodeCurrentUser struct {
LinodeAccount GetCloudLinodeCurrentUserLinodeAccount `json:"linodeAccount"`
}
GetCloudLinodeCurrentUser includes the requested fields of the GraphQL type User.
func (*GetCloudLinodeCurrentUser) GetLinodeAccount ¶ added in v0.7.0
func (v *GetCloudLinodeCurrentUser) GetLinodeAccount() GetCloudLinodeCurrentUserLinodeAccount
GetLinodeAccount returns GetCloudLinodeCurrentUser.LinodeAccount, and is useful for accessing the field via an interface.
type GetCloudLinodeCurrentUserLinodeAccount ¶ added in v0.7.0
type GetCloudLinodeCurrentUserLinodeAccount struct {
Id uuid.UUID `json:"id"`
AccessToken string `json:"accessToken"`
}
GetCloudLinodeCurrentUserLinodeAccount includes the requested fields of the GraphQL type LinodeAccount.
func (*GetCloudLinodeCurrentUserLinodeAccount) GetAccessToken ¶ added in v0.7.0
func (v *GetCloudLinodeCurrentUserLinodeAccount) GetAccessToken() string
GetAccessToken returns GetCloudLinodeCurrentUserLinodeAccount.AccessToken, and is useful for accessing the field via an interface.
func (*GetCloudLinodeCurrentUserLinodeAccount) GetId ¶ added in v0.7.0
func (v *GetCloudLinodeCurrentUserLinodeAccount) GetId() uuid.UUID
GetId returns GetCloudLinodeCurrentUserLinodeAccount.Id, and is useful for accessing the field via an interface.
type GetCloudLinodeResponse ¶ added in v0.7.0
type GetCloudLinodeResponse struct {
CurrentUser GetCloudLinodeCurrentUser `json:"currentUser"`
}
GetCloudLinodeResponse is returned by GetCloudLinode on success.
func GetCloudLinode ¶ added in v0.7.0
func (*GetCloudLinodeResponse) GetCurrentUser ¶ added in v0.7.0
func (v *GetCloudLinodeResponse) GetCurrentUser() GetCloudLinodeCurrentUser
GetCurrentUser returns GetCloudLinodeResponse.CurrentUser, and is useful for accessing the field via an interface.
type GetClusterKubeconfigResponse ¶ added in v0.7.0
type Job ¶ added in v0.5.2
type Job struct {
ID uuid.UUID `copier:"Id"`
State JobRunState
}
type JobRunState ¶ added in v0.5.2
type JobRunState string
const ( JobRunStateJobRunStarting JobRunState = "JOB_RUN_STARTING" JobRunStateJobRunRunning JobRunState = "JOB_RUN_RUNNING" JobRunStateJobRunFailed JobRunState = "JOB_RUN_FAILED" JobRunStateJobRunSucceeded JobRunState = "JOB_RUN_SUCCEEDED" JobRunStateJobRunPendingApproval JobRunState = "JOB_RUN_PENDING_APPROVAL" )
type PageInfo ¶ added in v0.8.0
type PageInfo struct {
StartCursor string `json:"startCursor"`
EndCursor string `json:"endCursor"`
HasNextPage bool `json:"hasNextPage"`
HasPreviousPage bool `json:"hasPreviousPage"`
}
PageInfo includes the requested fields of the GraphQL type PageInfo.
func (*PageInfo) GetEndCursor ¶ added in v0.8.0
GetEndCursor returns PageInfo.EndCursor, and is useful for accessing the field via an interface.
func (*PageInfo) GetHasNextPage ¶ added in v0.8.0
GetHasNextPage returns PageInfo.HasNextPage, and is useful for accessing the field via an interface.
func (*PageInfo) GetHasPreviousPage ¶ added in v0.8.0
GetHasPreviousPage returns PageInfo.HasPreviousPage, and is useful for accessing the field via an interface.
func (*PageInfo) GetStartCursor ¶ added in v0.8.0
GetStartCursor returns PageInfo.StartCursor, and is useful for accessing the field via an interface.
type PageInput ¶ added in v0.8.0
type PageInput struct {
First int `json:"first"`
Last int `json:"last"`
After string `json:"after"`
Before string `json:"before"`
Filter string `json:"filter"`
Sort string `json:"sort"`
}
func (*PageInput) GetAfter ¶ added in v0.8.0
GetAfter returns PageInput.After, and is useful for accessing the field via an interface.
func (*PageInput) GetBefore ¶ added in v0.8.0
GetBefore returns PageInput.Before, and is useful for accessing the field via an interface.
func (*PageInput) GetFilter ¶ added in v0.8.0
GetFilter returns PageInput.Filter, and is useful for accessing the field via an interface.
func (*PageInput) GetFirst ¶ added in v0.8.0
GetFirst returns PageInput.First, and is useful for accessing the field via an interface.
type UserAgentTransport ¶ added in v0.1.2
type UserAgentTransport struct {
// contains filtered or unexported fields
}
UserAgentTransport implements a http.RoundTripper which adds a User-Agent header to requests
func NewUserAgentTransport ¶ added in v0.1.2
func NewUserAgentTransport(ua string, rt http.RoundTripper) *UserAgentTransport