Documentation ¶
Overview ¶
Dummy version of the HCN API for compilation on Linux.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct{}
func (API) ListNetworks ¶
func (_ API) ListNetworks() ([]HostComputeNetwork, error)
type HostComputeNetwork ¶
type HostComputeNetwork struct { // Back pointer back to the original copy of this object. Since we get returned by // slice of structs we need some way to update the original data. Ptr *HostComputeNetwork Id string Name string Type NetworkType Policies []NetworkPolicy Err error }
func (*HostComputeNetwork) AddPolicy ¶
func (network *HostComputeNetwork) AddPolicy(request PolicyNetworkRequest) error
func (*HostComputeNetwork) RemovePolicy ¶
func (network *HostComputeNetwork) RemovePolicy(request PolicyNetworkRequest) error
type NetworkPolicy ¶
type NetworkPolicy struct { Type NetworkPolicyType Settings json.RawMessage }
NetworkPolicy is a collection of Policy settings for a Network.
type NetworkPolicyType ¶
type NetworkPolicyType string
NetworkPolicyType are the potential Policies that apply to Networks.
const (
RemoteSubnetRoute NetworkPolicyType = "RemoteSubnetRoute"
)
type NetworkType ¶
type NetworkType string
type PolicyNetworkRequest ¶
type PolicyNetworkRequest struct {
Policies []NetworkPolicy
}
Click to show internal directories.
Click to hide internal directories.