schema

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2014 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package fleet provides access to the Fleet API.

See http://github.com/coreos/fleet

Usage example:

import "code.google.com/p/google-api-go-client/fleet/v1-alpha"
...
fleetService, err := fleet.New(oauthHttpClient)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeletableUnit

type DeletableUnit struct {
	FileContents string `json:"fileContents,omitempty"`

	Name string `json:"name,omitempty"`
}

type DesiredUnitState

type DesiredUnitState struct {
	DesiredState string `json:"desiredState,omitempty"`

	FileContents string `json:"fileContents,omitempty"`

	Name string `json:"name,omitempty"`
}

type Machine

type Machine struct {
	Id string `json:"id,omitempty"`

	Metadata map[string]string `json:"metadata,omitempty"`

	PrimaryIP string `json:"primaryIP,omitempty"`
}

type MachinePage

type MachinePage struct {
	Machines []*Machine `json:"machines,omitempty"`

	NextPageToken string `json:"nextPageToken,omitempty"`
}

type MachinesListCall

type MachinesListCall struct {
	// contains filtered or unexported fields
}

func (*MachinesListCall) Do

func (c *MachinesListCall) Do() (*MachinePage, error)

func (*MachinesListCall) NextPageToken

func (c *MachinesListCall) NextPageToken(nextPageToken string) *MachinesListCall

NextPageToken sets the optional parameter "nextPageToken":

type MachinesService

type MachinesService struct {
	// contains filtered or unexported fields
}

func NewMachinesService

func NewMachinesService(s *Service) *MachinesService

func (*MachinesService) List

func (r *MachinesService) List() *MachinesListCall

List: Retrieve a page of Machine objects.

type Service

type Service struct {
	BasePath string // API endpoint base URL

	Machines *MachinesService

	Units *UnitsService
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

type SystemdState

type SystemdState struct {
	ActiveState string `json:"activeState,omitempty"`

	LoadState string `json:"loadState,omitempty"`

	MachineID string `json:"machineID,omitempty"`

	SubState string `json:"subState,omitempty"`
}

type Unit

type Unit struct {
	CurrentState string `json:"currentState,omitempty"`

	DesiredState string `json:"desiredState,omitempty"`

	FileContents string `json:"fileContents,omitempty"`

	FileHash string `json:"fileHash,omitempty"`

	Name string `json:"name,omitempty"`

	Systemd *SystemdState `json:"systemd,omitempty"`

	TargetMachineID string `json:"targetMachineID,omitempty"`
}

type UnitPage

type UnitPage struct {
	NextPageToken string `json:"nextPageToken,omitempty"`

	Units []*Unit `json:"units,omitempty"`
}

type UnitsDeleteCall

type UnitsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*UnitsDeleteCall) Do

func (c *UnitsDeleteCall) Do() error

type UnitsGetCall

type UnitsGetCall struct {
	// contains filtered or unexported fields
}

func (*UnitsGetCall) Do

func (c *UnitsGetCall) Do() (*Unit, error)

type UnitsListCall

type UnitsListCall struct {
	// contains filtered or unexported fields
}

func (*UnitsListCall) Do

func (c *UnitsListCall) Do() (*UnitPage, error)

func (*UnitsListCall) NextPageToken

func (c *UnitsListCall) NextPageToken(nextPageToken string) *UnitsListCall

NextPageToken sets the optional parameter "nextPageToken":

type UnitsService

type UnitsService struct {
	// contains filtered or unexported fields
}

func NewUnitsService

func NewUnitsService(s *Service) *UnitsService

func (*UnitsService) Delete

func (r *UnitsService) Delete(name string, deletableunit *DeletableUnit) *UnitsDeleteCall

Delete: Delete the referenced Unit objects.

func (*UnitsService) Get

func (r *UnitsService) Get(name string) *UnitsGetCall

Get: Retrieve a single Unit object.

func (*UnitsService) List

func (r *UnitsService) List() *UnitsListCall

List: Retrieve a page of Unit objects.

func (*UnitsService) Set

func (r *UnitsService) Set(name string, desiredunitstate *DesiredUnitState) *UnitsSetCall

Set: Set the desired state of a Unit.

type UnitsSetCall

type UnitsSetCall struct {
	// contains filtered or unexported fields
}

func (*UnitsSetCall) Do

func (c *UnitsSetCall) Do() error

Jump to

Keyboard shortcuts

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