cs

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgToEnvVarMap added in v0.3.0

func ArgToEnvVarMap(input []string) (map[string]string, error)

func BuildDate added in v0.2.0

func BuildDate() string

func Commit added in v0.2.0

func Commit() string

func Get

func Get(path string) (body []byte, err error)

func GetRoleName

func GetRoleName(role int) string

func SetAuthoriziationHeader

func SetAuthoriziationHeader(req *http.Request) error

func ValidateUrl added in v0.4.0

func ValidateUrl(urlIn string) (string, error)

Validates a URL is a http/https URL

func Version added in v0.2.0

func Version() string

Types

type Browser added in v0.3.0

type Browser struct{}

func NewBrowser added in v0.3.0

func NewBrowser() *Browser

func (*Browser) OpenIde added in v0.3.0

func (b *Browser) OpenIde(path string) error

type Build added in v0.2.0

type Build struct{}

type Environment added in v0.1.0

type Environment struct {
}

func NewEnv added in v0.1.0

func NewEnv() *Environment

func (*Environment) GetApiToken added in v0.1.0

func (e *Environment) GetApiToken() (string, error)

func (*Environment) GetApiUrl added in v0.1.0

func (e *Environment) GetApiUrl() string

func (*Environment) GetTeamId added in v0.1.0

func (e *Environment) GetTeamId() (int, error)

func (*Environment) GetWorkspaceId added in v0.1.0

func (e *Environment) GetWorkspaceId() (int, error)

func (*Environment) ReadNumericEnv added in v0.1.0

func (e *Environment) ReadNumericEnv(env string) (int, error)

type ReplicaStatus

type ReplicaStatus struct {
	State   string `json:"state"`
	Steps   []Step `json:"steps"`
	Replica string `json:"replica"`
	Server  string `json:"server"`
}

func GetPipelineStatus

func GetPipelineStatus(ws int, stage string) (res []ReplicaStatus, err error)

type Step

type Step struct {
	State string
}

Jump to

Keyboard shortcuts

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