Documentation
¶
Index ¶
- Variables
- func NewClient() *graphql.Client
- func WithHeader(rt http.RoundTripper) withHeader
- type Error
- type GraphqlError
- type MutationCancelDeployment
- type MutationDeploy
- type MutationDeployWithCheckRunID
- type MutationLink
- type MutationSetPreference
- type MutationStartDevelopment
- type MutationStopDevelopment
- type MutationUnlink
- type QueryAllPreference
- type QueryBuildTemplate
- type QueryCheckDeployCapability
- type QueryDeployment
- type QueryDeployments
- type QueryPreference
- type QueryProject
- type QueryStsToken
- type QueryUser
Constants ¶
This section is empty.
Variables ¶
View Source
var Client = NewClient()
Functions ¶
func WithHeader ¶ added in v0.1.34
func WithHeader(rt http.RoundTripper) withHeader
Types ¶
type GraphqlError ¶
type MutationCancelDeployment ¶
type MutationCancelDeployment struct {
CancelDeployment bool `graphql:"cancel(deploymentID:$deploymentID)""`
}
type MutationDeploy ¶
type MutationDeploy struct {
Deploy struct {
ID string `graphql:"id" json:"id"`
TargetFQDN string `graphql:"targetFQDN" json:"targetFQDN"`
NetworkStage string `graphql:"networkStage" json:"networkStage"`
PackerStage string `graphql:"packerStage" json:"packerStage"`
Status string `graphql:"status" json:"status"`
Project struct {
ID string `graphql:"id" json:"id"`
} `graphql:"project" json:"project"`
} `graphql:"deploy(input:{type:$type, projectName:$name, config:$config, channel:$channel, cn:$cn})"`
}
type MutationDeployWithCheckRunID ¶ added in v0.2.32
type MutationDeployWithCheckRunID struct {
Deploy struct {
ID string `graphql:"id" json:"id"`
TargetFQDN string `graphql:"targetFQDN" json:"targetFQDN"`
NetworkStage string `graphql:"networkStage" json:"networkStage"`
PackerStage string `graphql:"packerStage" json:"packerStage"`
Status string `graphql:"status" json:"status"`
Project struct {
ID string `graphql:"id" json:"id"`
} `graphql:"project" json:"project"`
} `graphql:"deploy(input:{type:$type, projectName:$name, config:$config, channel:$channel, cn:$cn, checkRunID:$checkRunID})"`
}
func DeployWithCheckRunID ¶ added in v0.2.32
func DeployWithCheckRunID(projectType, projectName, config, channel string, cn bool, checkRunID int64) (m MutationDeployWithCheckRunID, err error)
type MutationLink ¶
type MutationLink struct {
Link bool `graphql:"link(projectID:$projectID,hostname:$hostname)"`
}
type MutationSetPreference ¶
type MutationSetPreference struct {
SetPreference bool `graphql:"setPreference(name: $name, value: $value)"`
}
func SetPreference ¶
func SetPreference(name, value string) (m MutationSetPreference, err error)
type MutationStartDevelopment ¶
type MutationStartDevelopment struct {
StartDevelopment struct {
RemotePort int `graphql:"remotePort" json:"remotePort,omitempty"`
RemoteAddress string `graphql:"remoteAddress" json:"remoteAddress,omitempty"`
Fqdn string `graphql:"fqdn" json:"fqdn,omitempty"`
} `graphql:"startDevelopment(projectID:$projectID)"`
}
func StartDevelopment ¶ added in v0.2.32
func StartDevelopment(projectID string) (m MutationStartDevelopment, err error)
type MutationStopDevelopment ¶
type MutationStopDevelopment struct {
StopDevelopment bool `graphql:"stopDevelopment(projectID:$projectID)"`
}
func StopDevelopment ¶ added in v0.2.32
func StopDevelopment(projectID string) (m MutationStopDevelopment, err error)
type MutationUnlink ¶
type MutationUnlink struct {
Unlink bool `graphql:"unlink(projectID:$projectID,hostname:$hostname)"`
}
type QueryAllPreference ¶
type QueryAllPreference struct {
AllPreference struct {
Channel string `graphql:"channel"`
}
}
func GetAllPreference ¶
func GetAllPreference() (q QueryAllPreference, err error)
type QueryBuildTemplate ¶
type QueryBuildTemplate struct {
BuildTemplate struct {
ContainsStatic bool `graphql:"containsStatic"`
ContainsDynamic bool `graphql:"containsDynamic"`
RequireCompiling bool `graphql:"requireCompiling"`
LocalCompiling bool `graphql:"localCompiling"`
CompileCommands []string `graphql:"compileCommands"`
DistDir string `graphql:"distDir"`
} `graphql:"buildTemplate(type:$type)"`
}
type QueryDeployment ¶
type QueryDeployment struct {
Deployment struct {
TargetFQDN string `graphql:"targetFQDN"`
NetworkStage string `graphql:"networkStage"`
PackerStage string `graphql:"packerStage"`
Status string `graphql:"status"`
Done bool `graphql:"done"`
ErrorLogs string `graphql:"errorLogs"`
} `graphql:"deployment(id:$id)"`
}
type QueryDeployments ¶
type QueryDeployments struct {
Deployments struct {
Edges []struct {
Node struct {
ID string `graphql:"id"`
} `graphql:"node"`
} `graphql:"edges"`
} `graphql:"deployments(first:$first,projectName:$projectName,orderBy:{direction:DESC,field:UPDATED_AT})"`
}
type QueryPreference ¶
type QueryPreference struct {
Preference string `graphql:"preference(name: $name)"`
}
func GetPreference ¶ added in v0.2.32
func GetPreference(name string) (q QueryPreference, err error)
type QueryProject ¶
type QueryStsToken ¶
Click to show internal directories.
Click to hide internal directories.