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 ¶
- type DeletableUnit
- type DeletableUnitCollection
- type DesiredUnitState
- type DesiredUnitStateCollection
- type Machine
- type MachinePage
- type MachinesListCall
- type MachinesService
- type Service
- type SystemdState
- type Unit
- type UnitPage
- type UnitsDeleteCall
- type UnitsGetCall
- type UnitsListCall
- type UnitsService
- type UnitsSetCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeletableUnit ¶
type DeletableUnit struct {
Name string `json:"name,omitempty"`
}
type DeletableUnitCollection ¶
type DeletableUnitCollection struct {
Units []*DeletableUnit `json:"units,omitempty"`
}
type DesiredUnitState ¶
type DesiredUnitStateCollection ¶
type DesiredUnitStateCollection struct {
Units []*DesiredUnitState `json:"units,omitempty"`
}
type MachinePage ¶
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 }
type SystemdState ¶
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 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(deletableunitcollection *DeletableUnitCollection) *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(desiredunitstatecollection *DesiredUnitStateCollection) *UnitsSetCall
Set: Persist the state of the provided DesiredUnit objects.
type UnitsSetCall ¶
type UnitsSetCall struct {
// contains filtered or unexported fields
}
func (*UnitsSetCall) Do ¶
func (c *UnitsSetCall) Do() error
Click to show internal directories.
Click to hide internal directories.