Documentation ¶
Index ¶
- Constants
- type Guest
- type GuestList
- type GuestResource
- func (r *GuestResource) ChangeState(id, state string) error
- func (r *GuestResource) Create(item Guest) error
- func (r *GuestResource) Delete(id string) error
- func (r *GuestResource) Edit(id string, item Guest) error
- func (r *GuestResource) Get(id string) (*Guest, error)
- func (r *GuestResource) ListAll() (*GuestList, error)
- type HealthConfig
- type HealthConfigList
- type HealthResource
- type TrafficProfileConfig
- type TrafficProfileConfigList
- type TrafficProfileResource
- func (r *TrafficProfileResource) Create(item TrafficProfileConfig) error
- func (r *TrafficProfileResource) Delete(id string) error
- func (r *TrafficProfileResource) Edit(id string, item TrafficProfileConfig) error
- func (r *TrafficProfileResource) Get(id string) (*TrafficProfileConfig, error)
- func (r *TrafficProfileResource) ListAll() (*TrafficProfileConfigList, error)
- type VCMP
- type VirtualDiskConfig
- type VirtualDiskConfigList
- type VirtualDiskResource
- func (r *VirtualDiskResource) Create(item VirtualDiskConfig) error
- func (r *VirtualDiskResource) Delete(id string) error
- func (r *VirtualDiskResource) Edit(id string, item VirtualDiskConfig) error
- func (r *VirtualDiskResource) Get(id string) (*VirtualDiskConfig, error)
- func (r *VirtualDiskResource) ListAll() (*VirtualDiskConfigList, error)
- type VirtualDiskTemplateConfig
- type VirtualDiskTemplateConfigList
- type VirtualDiskTemplateResource
- func (r *VirtualDiskTemplateResource) Create(item VirtualDiskTemplateConfig) error
- func (r *VirtualDiskTemplateResource) Delete(id string) error
- func (r *VirtualDiskTemplateResource) Edit(id string, item VirtualDiskTemplateConfig) error
- func (r *VirtualDiskTemplateResource) Get(id string) (*VirtualDiskTemplateConfig, error)
- func (r *VirtualDiskTemplateResource) ListAll() (*VirtualDiskTemplateConfigList, error)
Constants ¶
const BasePath = "mgmt/tm/vcmp"
BasePath is the base path of the VCMP API.
const GuestEndpoint = "/guest"
GuestEndpoint represents the REST resource for managing Guest.
const HealthEndpoint = "/health"
HealthEndpoint represents the REST resource for managing Health.
const TrafficProfileEndpoint = "/traffic-profile"
TrafficProfileEndpoint represents the REST resource for managing TrafficProfile.
const VirtualDiskEndpoint = "/virtual-disk"
VirtualDiskEndpoint represents the REST resource for managing VirtualDisk.
const VirtualDiskTemplateEndpoint = "/virtual-disk-template"
VirtualDiskTemplateEndpoint represents the REST resource for managing VirtualDiskTemplate.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Guest ¶ added in v0.1.0
type Guest struct { Name string `json:"name,omitempty"` AllowedSlots []int `json:"allowedSlots,omitempty"` AssignedSlots []int `json:"assignedSlots,omitempty"` AppService string `json:"appService,omitempty"` CoresPerSlot int `json:"coresPerSlot,omitempty"` Hostname string `json:"hostname,omitempty"` InitialHotfix string `json:"initialHotfix,omitempty"` InitialImage string `json:"initialImage,omitempty"` ManagementGW string `json:"managementGw,omitempty"` ManagementIP string `json:"managementIp,omitempty"` ManagementNetwork string `json:"managementNetwork,omitempty"` MinSlots int `json:"minSlots,omitempty"` PreferredSlots []int `json:"preferredSlots,omitempty"` Slots int `json:"slots,omitempty"` SSLMode string `json:"sslMode,omitempty"` State string `json:"state,omitempty"` SymUnitKey string `json:"symUnitKey,omitempty"` TrafficProfile string `json:"trafficProfile,omitempty"` VirtualDisk string `json:"virtualDisk,omitempty"` VLAN []string `json:"vlans,omitempty"` VLANRef []struct { Link string `json:"link,omitempty"` } `json:"vlansReference,omitempty"` }
Guest holds the configuration of a single Guest.
type GuestList ¶ added in v0.1.0
type GuestList struct { Items []Guest `json:"items,omitempty"` Kind string `json:"kind,omitempty"` SelfLink string `json:"selflink,omitempty"` }
GuestList holds a list of Guests.
type GuestResource ¶ added in v0.1.0
type GuestResource struct {
// contains filtered or unexported fields
}
GuestResource provides an API to manage Guest configurations.
func (*GuestResource) ChangeState ¶ added in v0.1.0
func (r *GuestResource) ChangeState(id, state string) error
ChangeState changes the state of a Guest.
func (*GuestResource) Create ¶ added in v0.1.0
func (r *GuestResource) Create(item Guest) error
Create a new Guest configuration.
func (*GuestResource) Delete ¶ added in v0.1.0
func (r *GuestResource) Delete(id string) error
Delete a single Guest configuration identified by id.
func (*GuestResource) Edit ¶ added in v0.1.0
func (r *GuestResource) Edit(id string, item Guest) error
Edit a Guest configuration identified by id.
func (*GuestResource) Get ¶ added in v0.1.0
func (r *GuestResource) Get(id string) (*Guest, error)
Get a single Guest configuration identified by id.
func (*GuestResource) ListAll ¶ added in v0.1.0
func (r *GuestResource) ListAll() (*GuestList, error)
ListAll lists all the Guest configurations.
type HealthConfig ¶ added in v0.1.0
type HealthConfig struct { }
HealthConfig holds the configuration of a single Health.
type HealthConfigList ¶ added in v0.1.0
type HealthConfigList struct { Items []HealthConfig `json:"items"` Kind string `json:"kind"` SelfLink string `json:"selflink"` }
HealthConfigList holds a list of Health configuration.
type HealthResource ¶ added in v0.1.0
type HealthResource struct {
// contains filtered or unexported fields
}
HealthResource provides an API to manage Health configurations.
func (*HealthResource) Create ¶ added in v0.1.0
func (r *HealthResource) Create(item HealthConfig) error
Create a new Health configuration.
func (*HealthResource) Delete ¶ added in v0.1.0
func (r *HealthResource) Delete(id string) error
Delete a single Health configuration identified by id.
func (*HealthResource) Edit ¶ added in v0.1.0
func (r *HealthResource) Edit(id string, item HealthConfig) error
Edit a Health configuration identified by id.
func (*HealthResource) Get ¶ added in v0.1.0
func (r *HealthResource) Get(id string) (*HealthConfig, error)
Get a single Health configuration identified by id.
func (*HealthResource) ListAll ¶ added in v0.1.0
func (r *HealthResource) ListAll() (*HealthConfigList, error)
ListAll lists all the Health configurations.
type TrafficProfileConfig ¶ added in v0.1.0
type TrafficProfileConfig struct { Name string `json:"name,omitempty"` AppService string `json:"appService,omitempty"` ColorPolicer string `json:"colorPolicer,omitempty"` }
TrafficProfileConfig holds the configuration of a single TrafficProfile.
type TrafficProfileConfigList ¶ added in v0.1.0
type TrafficProfileConfigList struct { Items []TrafficProfileConfig `json:"items,omitempty"` Kind string `json:"kind,omitempty"` SelfLink string `json:"selflink,omitempty"` }
TrafficProfileConfigList holds a list of TrafficProfile configuration.
type TrafficProfileResource ¶ added in v0.1.0
type TrafficProfileResource struct {
// contains filtered or unexported fields
}
TrafficProfileResource provides an API to manage TrafficProfile configurations.
func (*TrafficProfileResource) Create ¶ added in v0.1.0
func (r *TrafficProfileResource) Create(item TrafficProfileConfig) error
Create a new TrafficProfile configuration.
func (*TrafficProfileResource) Delete ¶ added in v0.1.0
func (r *TrafficProfileResource) Delete(id string) error
Delete a single TrafficProfile configuration identified by id.
func (*TrafficProfileResource) Edit ¶ added in v0.1.0
func (r *TrafficProfileResource) Edit(id string, item TrafficProfileConfig) error
Edit a TrafficProfile configuration identified by id.
func (*TrafficProfileResource) Get ¶ added in v0.1.0
func (r *TrafficProfileResource) Get(id string) (*TrafficProfileConfig, error)
Get a single TrafficProfile configuration identified by id.
func (*TrafficProfileResource) ListAll ¶ added in v0.1.0
func (r *TrafficProfileResource) ListAll() (*TrafficProfileConfigList, error)
ListAll lists all the TrafficProfile configurations.
type VCMP ¶
type VCMP struct {
// contains filtered or unexported fields
}
VCMP implements a REST client for the F5 BigIP VCMP API.
func (VCMP) Guest ¶ added in v0.1.0
func (vcmp VCMP) Guest() *GuestResource
Guest returns a configured GuestResource.
func (VCMP) Health ¶ added in v0.1.0
func (vcmp VCMP) Health() *HealthResource
Health returns a configured HealthResource.
func (VCMP) TrafficProfile ¶ added in v0.1.0
func (vcmp VCMP) TrafficProfile() *TrafficProfileResource
TrafficProfile returns a configured TrafficProfileResource.
func (VCMP) VirtualDisk ¶ added in v0.1.0
func (vcmp VCMP) VirtualDisk() *VirtualDiskResource
VirtualDisk returns a configured VirtualDiskResource.
func (VCMP) VirtualDiskTemplate ¶ added in v0.1.0
func (vcmp VCMP) VirtualDiskTemplate() *VirtualDiskTemplateResource
VirtualDiskTemplate returns a configured VirtualDiskTemplateResource.
type VirtualDiskConfig ¶ added in v0.1.0
type VirtualDiskConfig struct { Name string `json:"name,omitempty"` Kind string `json:"kind,omitempty"` FullPath string `json:"fullPath,omitempty"` Generation int `json:"generation,omitempty"` SelfLink string `json:"selfLink,omitempty"` OperatingSystem string `json:"operatingSystem,omitempty"` }
VirtualDiskConfig holds the configuration of a single VirtualDisk.
type VirtualDiskConfigList ¶ added in v0.1.0
type VirtualDiskConfigList struct { Items []VirtualDiskConfig `json:"items,omitempty"` Kind string `json:"kind,omitempty"` SelfLink string `json:"selflink,omitempty"` }
VirtualDiskConfigList holds a list of VirtualDisk configuration.
type VirtualDiskResource ¶ added in v0.1.0
type VirtualDiskResource struct {
// contains filtered or unexported fields
}
VirtualDiskResource provides an API to manage VirtualDisk configurations.
func (*VirtualDiskResource) Create ¶ added in v0.1.0
func (r *VirtualDiskResource) Create(item VirtualDiskConfig) error
Create a new VirtualDisk configuration.
func (*VirtualDiskResource) Delete ¶ added in v0.1.0
func (r *VirtualDiskResource) Delete(id string) error
Delete a single VirtualDisk configuration identified by id.
func (*VirtualDiskResource) Edit ¶ added in v0.1.0
func (r *VirtualDiskResource) Edit(id string, item VirtualDiskConfig) error
Edit a VirtualDisk configuration identified by id.
func (*VirtualDiskResource) Get ¶ added in v0.1.0
func (r *VirtualDiskResource) Get(id string) (*VirtualDiskConfig, error)
Get a single VirtualDisk configuration identified by id.
func (*VirtualDiskResource) ListAll ¶ added in v0.1.0
func (r *VirtualDiskResource) ListAll() (*VirtualDiskConfigList, error)
ListAll lists all the VirtualDisk configurations.
type VirtualDiskTemplateConfig ¶ added in v0.1.0
type VirtualDiskTemplateConfig struct { ISOVersion string `json:"isoVersion,omitempty"` OperatingSystem string `json:"operatingSystem,omitempty"` }
VirtualDiskTemplateConfig holds the configuration of a single VirtualDiskTemplate.
type VirtualDiskTemplateConfigList ¶ added in v0.1.0
type VirtualDiskTemplateConfigList struct { Items []VirtualDiskTemplateConfig `json:"items,omitempty"` Kind string `json:"kind,omitempty"` SelfLink string `json:"selflink,omitempty"` }
VirtualDiskTemplateConfigList holds a list of VirtualDiskTemplate configuration.
type VirtualDiskTemplateResource ¶ added in v0.1.0
type VirtualDiskTemplateResource struct {
// contains filtered or unexported fields
}
VirtualDiskTemplateResource provides an API to manage VirtualDiskTemplate configurations.
func (*VirtualDiskTemplateResource) Create ¶ added in v0.1.0
func (r *VirtualDiskTemplateResource) Create(item VirtualDiskTemplateConfig) error
Create a new VirtualDiskTemplate configuration.
func (*VirtualDiskTemplateResource) Delete ¶ added in v0.1.0
func (r *VirtualDiskTemplateResource) Delete(id string) error
Delete a single VirtualDiskTemplate configuration identified by id.
func (*VirtualDiskTemplateResource) Edit ¶ added in v0.1.0
func (r *VirtualDiskTemplateResource) Edit(id string, item VirtualDiskTemplateConfig) error
Edit a VirtualDiskTemplate configuration identified by id.
func (*VirtualDiskTemplateResource) Get ¶ added in v0.1.0
func (r *VirtualDiskTemplateResource) Get(id string) (*VirtualDiskTemplateConfig, error)
Get a single VirtualDiskTemplate configuration identified by id.
func (*VirtualDiskTemplateResource) ListAll ¶ added in v0.1.0
func (r *VirtualDiskTemplateResource) ListAll() (*VirtualDiskTemplateConfigList, error)
ListAll lists all the VirtualDiskTemplate configurations.