cs

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: Apache-2.0 Imports: 20 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 FileSystem added in v0.9.0

type FileSystem struct {
	storage.Storer
	billy.Filesystem
}

func NewMemFileSystem added in v0.9.0

func NewMemFileSystem() *FileSystem

func NewOSFileSystem added in v0.9.0

func NewOSFileSystem(root string) *FileSystem

func (*FileSystem) CreateDirectory added in v0.9.0

func (f *FileSystem) CreateDirectory(dirname string) error

func (*FileSystem) CreateFile added in v0.9.0

func (f *FileSystem) CreateFile(filename string) (billy.File, error)

func (*FileSystem) DirExists added in v0.9.0

func (f *FileSystem) DirExists(dirname string) bool

func (*FileSystem) FileExists added in v0.9.0

func (f *FileSystem) FileExists(filename string) bool

func (*FileSystem) WriteFile added in v0.9.0

func (f *FileSystem) WriteFile(path string, filename string, data []byte, force bool) error

WriteFile creates a file at the specified path and writes data to it. If the directory does not exist, it will be created. If the file in the directory already exists, it returns an 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