runtimefs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAppOrigin

func CheckAppOrigin() (string, error)

func CheckKubeNS

func CheckKubeNS(ns string) error

func ClearUsrTarget

func ClearUsrTarget() error

func CloseFilePointerForUsrBuildLogAndMarkDone

func CloseFilePointerForUsrBuildLogAndMarkDone(fp *os.File) error

func CreateAdmOrigin

func CreateAdmOrigin() error

func CreateDelQOSSource

func CreateDelQOSSource(resourcenm string, resource_key string) (string, error)

func CreateHPASource

func CreateHPASource(resourcenm string, resource_key string) (string, error)

func CreateIngressSource

func CreateIngressSource(ns string, host string, svc string) (string, error)

func CreateNodePortSource

func CreateNodePortSource(ns string, svc string) (string, error)

func CreateQOSSource

func CreateQOSSource(resourcenm string, resource_key string) (string, error)

func CreateUsrDelOperationSource

func CreateUsrDelOperationSource(resourcenm string) (string, error)

func CreateUsrTargetOperationSource

func CreateUsrTargetOperationSource(LIBIF_BIN_KOMPOSE string, regaddr string) (string, error)

func GetRecordInfo

func GetRecordInfo(records []RecordInfo, ns string) (bool, string, string)

func GetRegInfo

func GetRegInfo(regs []RegInfo, addr string) (bool, string, string)

func GetRepoInfo

func GetRepoInfo(repos []RepoInfo, addr string) (bool, string, string)

func GetUsrBuildLog

func GetUsrBuildLog() ([]byte, error)

func GetUsrTargetDockerComposeYamlBuild

func GetUsrTargetDockerComposeYamlBuild() (string, error)

func GetUsrTargetPushList

func GetUsrTargetPushList(regaddr string) ([][]string, error)

func InitUsrTarget

func InitUsrTarget(repoaddr string) error

func OpenFilePointerForUsrBuildLog

func OpenFilePointerForUsrBuildLog() (*os.File, error)

func SetAdminOriginNewNS

func SetAdminOriginNewNS(ns string, repo_url_in string, reg_url_in string) error

func UnloadAdmOrigin

func UnloadAdmOrigin(ao AppOrigin) error

Types

type AppOrigin

type AppOrigin struct {
	RECORDS []RecordInfo `json:"RECORDS,omitempty"`
	REPOS   []RepoInfo   `json:"REPOS,omitempty"`
	REGS    []RegInfo    `json:"REGS,omitempty"`
}

func LoadAdmOrigin

func LoadAdmOrigin() (AppOrigin, error)

type RecordInfo

type RecordInfo struct {
	NS        string `json:"NS,omitempty"`
	REPO_ADDR string `json:"REPO_ADDR,omitempty"`
	REG_ADDR  string `json:"REG_ADDR,omitempty"`
}

func SetRecordInfo

func SetRecordInfo(records []RecordInfo, ns string, repo_addr string, reg_addr string) []RecordInfo

type RegInfo

type RegInfo struct {
	REG_ADDR string `json:"REG_ADDR,omitempty"`
	REG_ID   string `json:"REG_ID,omitempty"`
	REG_PW   string `json:"REG_PW,omitempty"`
}

func SetRegInfo

func SetRegInfo(regs []RegInfo, addr string, id string, pw string) []RegInfo

type RepoInfo

type RepoInfo struct {
	REPO_ADDR string `json:"REPO_ADDR,omitempty"`
	REPO_ID   string `json:"REPO_ID,omitempty"`
	REPO_PW   string `json:"REPO_PW,omitempty"`
}

func SetRepoInfo

func SetRepoInfo(repos []RepoInfo, addr string, id string, pw string) []RepoInfo

Jump to

Keyboard shortcuts

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