graphql

package
v0.1.33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client = NewClient()

Functions

func NewClient

func NewClient() *graphql.Client

Types

type Error

type Error interface {
	error
	Network() bool // Is the error a network error?
	Server() bool  // Is the server error?
}

type GraphqlError

type GraphqlError struct {
	Message   string `json:"message"`
	Locations []struct {
		Line   int `json:"line"`
		Column int `json:"column"`
	} `json:"locations"`
	Extensions struct {
		Code string `json:"code"`
	} `json:"extensions"`
}

type MutationCancelDeployment

type MutationCancelDeployment struct {
	CancelDeployment bool `graphql:"cancel(deploymentID:$deploymentID)""`
}

type MutationDeploy

type MutationDeploy struct {
	Deploy struct {
		ID           string
		TargetFQDN   string
		NetworkStage string
		PackerStage  string
		Status       string
		Project      struct {
			ID string
		}
	} `graphql:"deploy(input:{type:$type, projectName:$name, config:$config, channel:$channel, cn:$cn})"`
}
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"`
		RemoteAddress string `graphql:"remoteAddress"`
		Fqdn          string `graphql:"fqdn"`
	} `graphql:"startDevelopment(projectID:$projectID)"`
}

type MutationStopDevelopment

type MutationStopDevelopment struct {
	StopDevelopment bool `graphql:"stopDevelopment(projectID:$projectID)""`
}
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 QueryCheckDeployCapability

type QueryCheckDeployCapability struct {
	CheckDeployCapability struct {
		HashID string `graphql:"hashID"`
		Exists bool   `graphql:"exists"`
	} `graphql:"checkDeployCapability(projectName:$projectName)"`
}

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)"`
}

type QueryProject

type QueryProject struct {
	Project struct {
		ID   string `graphql:"id"`
		Name string `graphql:"name"`
	} `graphql:"project(name:$projectName)"`
}

type QueryStsToken

type QueryStsToken struct {
	StsToken struct {
		Host            string `graphql:"host"`
		AccessKeyID     string `graphql:"accessKeyID"`
		AccessKeySecret string `graphql:"accessKeySecret"`
		SecurityToken   string `graphql:"securityToken"`
	} `graphql:"stsToken(type:$tokenType,projectName:$projectName,cn:$cn)"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL