docker

package
v0.0.0-...-b52e348 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: Apache-2.0 Imports: 26 Imported by: 2

Documentation

Overview

** Copyright [2013-2017] [Megam Systems] ** ** 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.

Index

Constants

This section is empty.

Variables

View Source
var MileStoneUpdate = action.Action{
	Name: "update-milestone-state",
	Forward: func(ctx action.FWContext) (action.Result, error) {
		cont := ctx.Previous.(container.Container)
		args := ctx.Params[0].(runContainerActionsArgs)
		writer := args.writer
		fmt.Fprintf(writer, lb.W(lb.DEPLOY, lb.INFO, fmt.Sprintf(" update milestone state for container (%s, %s)", args.box.GetFullName(), constants.CONTAINERLAUNCHED)))
		if err := cont.SetMileStone(cont.State); err != nil {
			return nil, err
		}
		fmt.Fprintf(writer, lb.W(lb.DEPLOY, lb.INFO, fmt.Sprintf(" update milestone state for container (%s, %s)OK", args.box.GetFullName(), constants.CONTAINERLAUNCHED)))
		return cont, nil
	},
}

Functions

This section is empty.

Types

type Docker

type Docker struct {
	Enabled bool     `json:"enabled" toml:"enabled"`
	Regions []Region `json:"region" toml:"region"`
}

type ImageMetadata

type ImageMetadata struct {
	Name string
}

type Region

type Region struct {
	DockerZone     string        `json:"docker_zone" toml:"docker_zone"`
	SwarmEndPoint  string        `json:"swarm" toml:"swarm"`
	DockerGulpPort string        `json:"gulp_port" toml:"gulp_port"`
	Registry       string        `json:"registry" toml:"registry"`
	CPUPeriod      toml.Duration `json:"cpu_period" toml:"cpu_period"`
	CPUQuota       toml.Duration `json:"cpu_quota" toml:"cpu_quota"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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