CubeNetworkPolicy class final

The spec.network: section: ordered allow/deny rule lists.

Constructors

CubeNetworkPolicy({List<CubeNetworkRule> allow = const [], List<CubeNetworkRule> deny = const []})
Creates a policy; allow empty means "no network at all".
const
CubeNetworkPolicy.fromYaml(Object? node)
Parses the spec.network: section. null (section absent) yields the safe default: deny all network access.
factory

Properties

allow → List<CubeNetworkRule>
Allow rules; an empty list denies all network access.
final
allowsAnyNetwork → bool
Whether any network destination is allowed at all.
no setter
deny → List<CubeNetworkRule>
Deny rules; they win over allow.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
permits(String host, int port) → bool
Whether host:port may be reached: not denied and allowed by some rule. An empty allow always returns false.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited