model

package
v0.0.0-...-097a723 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSchema

func NewSchema() *client.Schemas

Types

type Common

type Common struct {
	Name        string    `json:"name"`
	Description string    `json:"description"`
	State       string    `json:"state"`
	UUID        string    `json:"uuid"`
	Created     time.Time `json:"created"`
	Removed     time.Time `json:"removed"`

	Transitioning        string `json:"transitioning"`
	TransitioningMessage string `json:"transitioningMessage"`
}

type ContainerTemplate

type ContainerTemplate struct {
}

type ID

type ID string

type PublicEndpoint

type PublicEndpoint struct {
}

type Service

type Service struct {
	client.Resource
	Common

	ContainerIds       []ID                `json:"containerIds"`
	ContainerSelector  string              `json:"containerSelector"`
	ContainerTemplates []ContainerTemplate `json:"containerTemplates"`
	CreateIndex        string              `json:"createIndex"`
	Fqdn               string              `json:"fqdn"`
	HealthState        string              `json:"healthState"`
	HostnameOverride   string              `json:"hostnameOverride"`
	LinkSelector       string              `json:"linkSelector"`
	LinkedServiceIds   []ID                `json:"linkedServiceIds"`
	Metadata           string              `json:"metadata"`
	PublicEndpoints    []PublicEndpoint    `json:"publicEndpoints"`
	PullImage          string              `json:"pullImage"`
	RequestedIPAddress string              `json:"requestedIpAddress"`
	RetainIPAddress    bool                `json:"retainIpAddress"`
	Scale              int                 `json:"scale"`
	ServiceIPAddress   string              `json:"serviceIpAddress"`
	StackID            ID                  `json:"stackId"`
	StartOnce          bool                `json:"startOnce"`
}

type ServiceList

type ServiceList struct {
	client.Collection
	Data []Service `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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