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 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 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 GetProgress(request *revents.Event, cli *client.RancherClient) *progress.Progress
- func GetUUID(container types.Container) string
- func HasKey(m interface{}, key string) bool
- func HasLabel(instance model.Instance) bool
- func IDFilter(id string, container types.Container) bool
- func ImageStoragePoolMapReply() (map[string]interface{}, error)
- func InstanceHostMapReply(event *revents.Event, client *client.Client, cache *cache.Cache) (map[string]interface{}, error)
- func InstancePullReply(event *revents.Event, client *client.Client) (map[string]interface{}, error)
- func InterfaceToArray(v interface{}) []interface{}
- func InterfaceToBool(v interface{}) bool
- func InterfaceToMap(v interface{}) map[string]interface{}
- func InterfaceToString(v interface{}) string
- func IsContainerNotFoundError(e error) bool
- func IsImageNoOp(image model.Image) bool
- func IsNoOp(data model.ProcessData) bool
- func IsNonrancherContainer(instance model.Instance) bool
- func IsNoopEvent(event *revents.Event) bool
- func NameFilter(name string, container types.Container) bool
- func ParseRepoTag(name string) string
- func ReadBuffer(reader io.ReadCloser) string
- func RemoveContainer(client *engineCli.Client, containerID string) error
- func SearchInList(slice []string, target string) bool
- func SemverTrunk(version string, vals int) string
- func TempFile(destination string) string
- func TempFileInWorkDir(destination string) string
- func VolumeStoragePoolMapReply() (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddContainer ¶
func AddContainer(state string, container types.Container, containers []model.PingResource, dockerClient *engineCli.Client) []model.PingResource
func AddLinkEnv ¶
func ConvertPortToString ¶
func DownloadFile ¶
func GetContainer ¶
func GetExitCode ¶
func GetFieldsIfExist ¶
func GetInstanceAndHost ¶
func GetProgress ¶
func ImageStoragePoolMapReply ¶ added in v0.2.2
func InstanceHostMapReply ¶ added in v0.2.2
func InstancePullReply ¶ added in v0.2.2
func InterfaceToArray ¶
func InterfaceToArray(v interface{}) []interface{}
func InterfaceToBool ¶
func InterfaceToBool(v interface{}) bool
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 IsNoopEvent ¶ added in v0.2.4
func ParseRepoTag ¶
func ReadBuffer ¶
func ReadBuffer(reader io.ReadCloser) string
func SearchInList ¶
func SemverTrunk ¶
func TempFileInWorkDir ¶
func VolumeStoragePoolMapReply ¶ added in v0.2.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.