cs

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: Apache-2.0 Imports: 7 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 GetApiToken

func GetApiToken() (string, error)

func GetApiUrl

func GetApiUrl() string

func GetRoleName

func GetRoleName(role int) string

func SetAuthoriziationHeader

func SetAuthoriziationHeader(req *http.Request) error

Types

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