requests

package
v0.2.47 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelDeployment added in v0.0.28

func CancelDeployment(deploymentID string) (
	cancelDeploymentResult bool, err error)

deprecated

func CheckDeployCapability

func CheckDeployCapability(projectName string) (hashID string, exists bool, err error)

deprecated

func Deploy

func Deploy(projectType, projectName, config, channel string, cn bool) (deployment struct {
	ID           string `json:"id"`
	TargetFQDN   string `json:"targetFQDN"`
	NetworkStage string `json:"networkStage"`
	PackerStage  string `json:"packerStage"`
	Status       string `json:"status"`
	Project      struct {
		ID string `json:"id"`
	} `json:"project"`
}, err error)

deprecated

func DeployWithCheckRunID added in v0.2.5

func DeployWithCheckRunID(projectType, projectName, config, channel string, cn bool,
	checkRunID int64) (deployment struct {
	ID           string `json:"id"`
	TargetFQDN   string `json:"targetFQDN"`
	NetworkStage string `json:"networkStage"`
	PackerStage  string `json:"packerStage"`
	Status       string `json:"status"`
	Project      struct {
		ID string `json:"id"`
	} `json:"project"`
}, err error)

deprecated

func GenerateShortUrl added in v0.2.15

func GenerateShortUrl(url string) (shortendUrl string, err error)

func GetDeploymentStatus

func GetDeploymentStatus(id string) (deployment struct {
	TargetFQDN   string `json:"targetFQDN"`
	NetworkStage string `json:"networkStage"`
	PackerStage  string `json:"packerStage"`
	Status       string `json:"status"`
	Done         bool   `json:"done"`
	ErrorLogs    string `json:"errorLogs"`
	Web3         *Web3  `json:"web3,omitempty"`
}, err error)

deprecated

func GetJsonWithPath

func GetJsonWithPath(url string, path string) (data gjson.Result, err error)

func GetLatestVersion added in v0.0.47

func GetLatestVersion(channel string) (version string, err error)

func GetPreference added in v0.1.15

func GetPreference(name string) (value string, err error)

deprecated

func GetStsToken

func GetStsToken(uploadType, projectName string, cn bool) (data struct {
	Host            string `json:"host"`
	AccessKeyID     string `json:"accessKeyID"`
	AccessKeySecret string `json:"accessKeySecret"`
	SecurityToken   string `json:"securityToken"`
}, err error)

deprecated

func GetTemplate added in v0.0.26

func GetTemplate(typeArg string) (
	buildTemplate struct {
		ContainsStatic   bool     `json:"containsStatic"`
		ContainsDynamic  bool     `json:"containsDynamic"`
		RequireCompiling bool     `json:"requireCompiling"`
		LocalCompiling   bool     `json:"localCompiling"`
		CompileCommands  []string `json:"compileCommands"`
		DistDir          string   `json:"distDir"`
	}, err error)

deprecated

func GetUser added in v0.2.32

func GetUser() (user struct {
	Name string `json:"name,omitempty"`
}, err error)

deprecated

func Graphql

func Graphql() *graphql.Client

deprecated: create a client (safe to share across requests)

func Link(projectID string, hostname string) (
	linkResult bool, err error)

deprecated

func QueryDeployments added in v0.0.34

func QueryDeployments(projectName string, count int) (
	deployments struct {
		Edges []struct {
			Node struct {
				ID string `json:"id"`
			} `json:"node"`
		} `json:"edges"`
	}, err error)

deprecated

func QueryProject added in v0.0.89

func QueryProject(projectName string) (
	projectInfo struct {
		ID   string `json:"id,omitempty"`
		Name string `json:"name,omitempty"`
	}, err error)

deprecated

func SetPreference added in v0.1.15

func SetPreference(name, value string) (ok bool, err error)

deprecated: SetPreference

func StartDevelopment added in v0.0.52

func StartDevelopment(projectID string) (
	startDevelopmentResult struct {
		RemotePort    int    `json:"remotePort,omitempty"`
		RemoteAddress string `json:"remoteAddress,omitempty"`
		Fqdn          string `json:"fqdn,omitempty"`
	}, err error)

deprecated

func StopDevelopment added in v0.0.52

func StopDevelopment(projectID string) (
	stopDevelopmentResult bool, err error)

deprecated

func Unlink(projectID string, hostname string) (
	unlinkResult bool, err error)

deprecated

func WithHeader added in v0.2.42

func WithHeader(rt http.RoundTripper) withHeader

Types

type Web3 added in v0.2.24

type Web3 struct {
	IpfsCID string `json:"ipfsCID"`
	ArTID   string `json:"arTID"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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