dockercontroller

package
v0.0.0-...-ed2735e Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

******************************************************************************

  • Copyright 2017 Samsung Electronics All Rights Reserved. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License. * ******************************************************************************

Package dockercontroller provide functionlity of docker commands.

Index

Constants

View Source
const (
	CID           string = "cid"
	PORTS         string = "ports"
	STATUS        string = "status"
	EXITCODE      string = "exitcode"
	CNAME         string = "cname"
	CPU           string = "cpu"
	MEM           string = "mem"
	MEMUSAGE      string = "memusage"
	MEMLIMIT      string = "memlimit"
	BLOCKINPUT    string = "blockinput"
	BLOCKOUTPUT   string = "blockoutput"
	NETWORKINPUT  string = "networkinput"
	NETWORKOUTPUT string = "networkoutput"
	PIDS          string = "pids"
	CONTAINER     string = "container"
	IMAGE         string = "image"
	PULLED        string = "pulled"
	CREATED       string = "created"
	STARTED       string = "started"
)

Variables

View Source
var Executor dockerExecutorImpl

Functions

This section is empty.

Types

type Command

type Command interface {
	Create(id, path string) error
	Up(id, path string, forceRecreate bool, services ...string) error
	Down(id, path string) error
	DownWithRemoveImages(id, path string) error
	Start(id, path string) error
	Stop(id, path string) error
	Pause(id, path string) error
	Unpause(id, path string) error
	Pull(id, path string, services ...string) error
	Ps(id, path string, args ...string) ([]map[string]string, error)
	GetAppStats(id, path string) ([]map[string]interface{}, error)
	GetContainerConfigByName(containerName string) (map[string]interface{}, error)
	GetImageDigestByName(imageName string) (string, error)
	GetImageIDByRepoDigest(imageName string) (string, error)
	ImagePull(image string) error
	ImageTag(imageID string, repoTags string) error
	Events(id, path string, evt chan Event, services ...string) error
	UpWithEvent(id, path, eventID string, evt chan Event, services ...string) error
	Info() (map[string]interface{}, error)
}

type ContainerEvent

type ContainerEvent struct {
	CID       string
	Timestamp string
}

type Event

type Event struct {
	ID          string
	Type        string
	AppID       string
	ServiceName string
	Status      string
	ContainerEvent
}

Directories

Path Synopsis
Package mock_dockercontroller is a generated GoMock package.
Package mock_dockercontroller is a generated GoMock package.

Jump to

Keyboard shortcuts

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