package vagrant_cloud
import "k8s.io/kubernetes/pkg/cloudprovider/vagrant"
Package vagrant_cloud is an implementation of Interface, TCPLoadBalancer and Instances for developer managed Vagrant cluster.
Index ¶
- type SaltLoginResponse
- type SaltMinion
- type SaltMinions
- type SaltMinionsResponse
- type SaltToken
- type VagrantCloud
- func (aws *VagrantCloud) Clusters() (cloudprovider.Clusters, bool)
- func (v *VagrantCloud) GetNodeResources(name string) (*api.NodeResources, error)
- func (v *VagrantCloud) IPAddress(instance string) (net.IP, error)
- func (v *VagrantCloud) Instances() (cloudprovider.Instances, bool)
- func (v *VagrantCloud) List(filter string) ([]string, error)
- func (v *VagrantCloud) TCPLoadBalancer() (cloudprovider.TCPLoadBalancer, bool)
- func (v *VagrantCloud) Zones() (cloudprovider.Zones, bool)
Types ¶
type SaltLoginResponse ¶
type SaltLoginResponse struct { Data []SaltToken `json:"return"` }
SaltLoginResponse is the response object for a /login operation against Salt REST API.
type SaltMinion ¶
type SaltMinion struct { Roles []string `json:"roles"` IP string `json:"node_ip"` Host string `json:"host"` }
SaltMinion is a machine managed by the Salt service.
type SaltMinions ¶
type SaltMinions map[string]SaltMinion
SaltMinions is a map of minion name to machine information.
type SaltMinionsResponse ¶
type SaltMinionsResponse struct { Minions []SaltMinions `json:"return"` }
SaltMinionsResponse is the response object for a /minions operation against Salt REST API
type SaltToken ¶
type SaltToken struct { Token string `json:"token"` User string `json:"user"` EAuth string `json:"eauth"` }
SaltToken is an authorization token required by Salt REST API.
type VagrantCloud ¶
type VagrantCloud struct {
// contains filtered or unexported fields
}
VagrantCloud is an implementation of Interface, TCPLoadBalancer and Instances for developer managed Vagrant cluster.
func (*VagrantCloud) Clusters ¶
func (aws *VagrantCloud) Clusters() (cloudprovider.Clusters, bool)
func (*VagrantCloud) GetNodeResources ¶
func (v *VagrantCloud) GetNodeResources(name string) (*api.NodeResources, error)
func (*VagrantCloud) IPAddress ¶
func (v *VagrantCloud) IPAddress(instance string) (net.IP, error)
IPAddress returns the address of a particular machine instance.
func (*VagrantCloud) Instances ¶
func (v *VagrantCloud) Instances() (cloudprovider.Instances, bool)
Instances returns an implementation of Instances for Vagrant cloud.
func (*VagrantCloud) List ¶
func (v *VagrantCloud) List(filter string) ([]string, error)
List enumerates the set of minions instances known by the cloud provider.
func (*VagrantCloud) TCPLoadBalancer ¶
func (v *VagrantCloud) TCPLoadBalancer() (cloudprovider.TCPLoadBalancer, bool)
TCPLoadBalancer returns an implementation of TCPLoadBalancer for Vagrant cloud.
func (*VagrantCloud) Zones ¶
func (v *VagrantCloud) Zones() (cloudprovider.Zones, bool)
Zones returns an implementation of Zones for Vagrant cloud.
Source Files ¶
doc.go vagrant.go
- Version
- v0.5.3
- Published
- Nov 24, 2014
- Platform
- js/wasm
- Imports
- 11 packages
- Last checked
- 35 seconds ago –
Tools for package owners.