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 ImageMetadata ¶
type ImageMetadata struct {
Name string
}
type Region ¶
type Region struct { RancherZone string `json:"rancher_zone" toml:"rancher_zone"` RancherEndPoint string `json:"rancher" toml:"rancher"` Registry string `json:"registry" toml:"registry"` CPUPeriod toml.Duration `json:"cpu_period" toml:"cpu_period"` CPUQuota toml.Duration `json:"cpu_quota" toml:"cpu_quota"` AdminId string `json:"admin_id" toml:"admin_id"` AdminAccess string `json:"access_key" toml:"access_key"` AdminSecret string `json:"secret_key" toml:"secret_key"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.