hcn

package
v0.0.0-...-240c89f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

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
}

type RemoteSubnetRoutePolicySetting

type RemoteSubnetRoutePolicySetting struct {
	DestinationPrefix           string
	IsolationId                 uint16
	ProviderAddress             string
	DistributedRouterMacAddress string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL