cs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Types

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