Documentation ¶
Index ¶
- func AddContainer(state string, container types.Container, containers []model.PingResource, ...) []model.PingResource
- func AddLabel(config *container.Config, key string, value string)
- func AddLinkEnv(name string, link model.Link, result map[string]string, inIP string)
- func AddToEnv(config *container.Config, result map[string]string, args ...string)
- func AgentIDFilter(id string, container types.Container) bool
- func CheckOutput(strs []string)
- func ConvertPortToString(port int) string
- func CopyLinkEnv(name string, link model.Link, result map[string]string)
- func DownloadFile(url string, dest string, reporthook interface{}, checksum string) (string, error)
- func FindFirst(containers []types.Container, f func(types.Container) bool) (types.Container, bool)
- func FindIPAndMac(instance model.Instance) (string, string, string)
- func Get(url string) (map[string]interface{}, error)
- func GetAgentImage(client *engineCli.Client) (map[string]string, error)
- func GetContainer(client *engineCli.Client, instance model.Instance, byAgent bool) (types.Container, error)
- func GetExitCode(err error) int
- func GetFieldsIfExist(m map[string]interface{}, fields ...string) (interface{}, bool)
- func GetInstanceAndHost(event *revents.Event) (model.Instance, model.Host, error)
- func GetKernelVersion() (string, error)
- func GetProgress(request *revents.Event, cli *client.RancherClient) *progress.Progress
- func GetResponseData(event *revents.Event, client *client.Client) (map[string]interface{}, error)
- func GetUUID(container types.Container) string
- func HasKey(m interface{}, key string) bool
- func HasLabel(instance model.Instance) bool
- func HasService(instance model.Instance, kind string) bool
- func IDFilter(id string, container types.Container) bool
- func InterfaceToArray(v interface{}) []interface{}
- func InterfaceToBool(v interface{}) bool
- func InterfaceToFloat(v interface{}) float64
- func InterfaceToMap(v interface{}) map[string]interface{}
- func InterfaceToString(v interface{}) string
- func IsContainerNotFoundError(e error) bool
- func IsImageNoOp(imageData model.ImageData) bool
- func IsNoOp(data model.ProcessData) bool
- func IsNonrancherContainer(instance model.Instance) bool
- func IsPathExist(path string) bool
- func NameFilter(name string, container types.Container) bool
- func ParseRepoTag(name string) model.RepoTag
- func ReadBuffer(reader io.ReadCloser) string
- func RemoveContainer(client *engineCli.Client, containerID string) error
- func SafeSplit(s string) []string
- func SearchInList(slice []string, target string) bool
- func SemverTrunk(version string, vals int) string
- func TempFile(destination string) string
- func TempFileInWorkDir(destination string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddContainer ¶
func AddLinkEnv ¶
func CheckOutput ¶
func CheckOutput(strs []string)
func ConvertPortToString ¶
func DownloadFile ¶
func GetContainer ¶
func GetExitCode ¶
func GetFieldsIfExist ¶
func GetInstanceAndHost ¶
func GetKernelVersion ¶
func GetProgress ¶
func GetResponseData ¶
func InterfaceToArray ¶
func InterfaceToArray(v interface{}) []interface{}
func InterfaceToBool ¶
func InterfaceToBool(v interface{}) bool
func InterfaceToFloat ¶
func InterfaceToFloat(v interface{}) float64
func InterfaceToMap ¶
func InterfaceToMap(v interface{}) map[string]interface{}
func InterfaceToString ¶
func InterfaceToString(v interface{}) string
func IsImageNoOp ¶
func IsNoOp ¶
func IsNoOp(data model.ProcessData) bool
func IsNonrancherContainer ¶
func IsPathExist ¶
func ParseRepoTag ¶
func ReadBuffer ¶
func ReadBuffer(reader io.ReadCloser) string
func SearchInList ¶
func SemverTrunk ¶
func TempFileInWorkDir ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.