Documentation
¶
Overview ¶
Package appliance provisions operator-owned named network topologies.
Index ¶
- Constants
- func ApprovalDigest(planDigest, operation string) string
- func AuthorizeProduction(ctx context.Context, m Manifest) error
- func Execute(ctx context.Context, m Manifest, dir, action string) (any, error)
- func WithBootstrap(ctx context.Context, b Bootstrap) context.Context
- type Bootstrap
- type Endpoint
- type Link
- type Manifest
- type Observation
- type Operation
- type Packet
- type Plan
- type Route
- type Status
Constants ¶
View Source
const MaxManifestBytes = 64 << 10
Variables ¶
This section is empty.
Functions ¶
func ApprovalDigest ¶
Types ¶
type Bootstrap ¶
type Bootstrap struct {
Scope firewallauth.Scope
ReviewedDigest string
Approvals *firewallauth.Approvals
Receipt string
}
type Manifest ¶
type Manifest struct {
TargetID string `json:"targetID,omitempty" yaml:"targetID,omitempty"`
Version string `json:"version" yaml:"version"`
Mode string `json:"mode" yaml:"mode"`
Nonce string `json:"nonce" yaml:"nonce"`
Namespaces []string `json:"namespaces" yaml:"namespaces"`
Links []Link `json:"links" yaml:"links"`
Routes []Route `json:"routes" yaml:"routes"`
Forward []string `json:"forward" yaml:"forward"`
Packet Packet `json:"packet" yaml:"packet"`
}
func (Manifest) NetworkConfig ¶
func (m Manifest) NetworkConfig() networkfirewall.Config
type Observation ¶
type Observation struct {
Namespace string `json:"namespace"`
Exists bool `json:"exists"`
Owned bool `json:"owned"`
Error string `json:"error,omitempty"`
Links json.RawMessage `json:"links"`
Addresses json.RawMessage `json:"addresses"`
IPv4Routes json.RawMessage `json:"ipv4Routes"`
IPv6Routes json.RawMessage `json:"ipv6Routes"`
Ruleset json.RawMessage `json:"ruleset"`
}
type Packet ¶
type Packet struct {
Namespace string `json:"namespace" yaml:"namespace"`
Interface string `json:"interface" yaml:"interface"`
ProtectedCIDRs []string `json:"protectedCIDRs" yaml:"protectedCIDRs"`
ManagementDestinations []string `json:"managementDestinations" yaml:"managementDestinations"`
Queue uint16 `json:"queue" yaml:"queue"`
}
Click to show internal directories.
Click to hide internal directories.