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 ¶
Click to show internal directories.
Click to hide internal directories.