Skip to content

Commit

Permalink
Add support for container hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
dantjones committed Aug 23, 2016
1 parent cdecebd commit 7d3d499
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,14 @@ func (vm *VirtualMachine) SetName(client SkytapClient, name string) (*VirtualMac
return vm.ChangeAttribute(client, &NameQuery{name})
}

type ContainerHostQuery struct {
ContainerHost bool `url:"container_host"`
}

func (vm *VirtualMachine) SetContainerHost(client SkytapClient) (*VirtualMachine, error) {
return vm.ChangeAttribute(client, &ContainerHostQuery{true})
}

func (c *VmCredential) Username() (string, error) {
parts := strings.Split(c.Text, "/")
if len(parts) != 2 {
Expand Down

0 comments on commit 7d3d499

Please sign in to comment.