ping

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RancherAgentImage = "io.rancher.host.agent_image"
)

Variables

This section is empty.

Functions

func DoPingAction

func DoPingAction(event *revents.Event, resp *Response, dockerClient *client.Client, collectors []hostInfo.Collector) error

Types

type Options

type Options struct {
	Instances bool `json:"instances,omitempty" yaml:"instances,omitempty"`
}

type Resource

type Resource struct {
	Type                           string                 `json:"type,omitempty" yaml:"type,omitempty"`
	Kind                           string                 `json:"kind,omitempty" yaml:"kind,omitempty"`
	HostName                       string                 `json:"hostname,omitempty" yaml:"hostname,omitempty"`
	CreateLabels                   map[string]string      `json:"createLabels,omitempty" yaml:"createLabels,omitempty"`
	Labels                         map[string]string      `json:"labels,omitempty" yaml:"labels,omitempty"`
	UUID                           string                 `json:"uuid,omitempty" yaml:"uuid,omitempty"`
	PhysicalHostUUID               string                 `json:"physicalHostUuid,omitempty" yaml:"physicalHostUuid,omitempty"`
	Info                           map[string]interface{} `json:"info,omitempty" yaml:"info,omitempty"`
	HostUUID                       string                 `json:"hostUuid,omitempty" yaml:"hostUuid,omitempty"`
	Name                           string                 `json:"name,omitempty" yaml:"name,omitempty"`
	Addresss                       string                 `json:"addresss,omitempty" yaml:"addresss,omitempty"`
	APIProxy                       string                 `json:"apiProxy,omitempty" yaml:"apiProxy,omitempty"`
	State                          string                 `json:"state,omitempty" yaml:"state,omitempty"`
	Image                          string                 `json:"image,omitempty" yaml:"image,omitempty"`
	Created                        int64                  `json:"created,omitempty" yaml:"created,omitempty"`
	Memory                         uint64                 `json:"memory,omitempty" yaml:"memory,omitempty"`
	MilliCPU                       uint64                 `json:"milliCpu,omitempty" yaml:"milli_cpu,omitempty"`
	LocalStorageMb                 uint64                 `json:"localStorageMb,omitempty" yaml:"local_storage_mb,omitempty" hash:"-"`
	ExternalID                     string                 `json:"externalId,omitempty" yaml:"externalId,omitempty"`
	MachineServiceRegistrationUUID string                 `json:"machineServiceRegistrationUuid,omitempty" yaml:"machineServiceRegistrationUuid,omitempty"`
}

type Response

type Response struct {
	Resources []Resource `json:"resources,omitempty" yaml:"resources,omitempty"`
	Options   Options    `json:"options,omitempty" yaml:"options,omitempty"`
	HashKey   string     `json:"hashKey,omitempty" yaml:"hashKey,omitempty"`
}

Jump to

Keyboard shortcuts

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