Documentation ¶
Index ¶
- func AllowsInboundWorkload(ctx context.Context, teamSlug slug.Slug, environmentName, workloadName string, ...) bool
- func AllowsOutboundWorkload(ctx context.Context, teamSlug slug.Slug, environmentName, workloadName string, ...) bool
- type ExternalNetworkPolicyHost
- type ExternalNetworkPolicyIpv4
- type ExternalNetworkPolicyTarget
- type InboundNetworkPolicy
- type NetworkPolicy
- type NetworkPolicyRule
- type OutboundNetworkPolicy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowsInboundWorkload ¶
Types ¶
type ExternalNetworkPolicyHost ¶
func (ExternalNetworkPolicyHost) IsExternalNetworkPolicyTarget ¶
func (ExternalNetworkPolicyHost) IsExternalNetworkPolicyTarget()
type ExternalNetworkPolicyIpv4 ¶
func (ExternalNetworkPolicyIpv4) IsExternalNetworkPolicyTarget ¶
func (ExternalNetworkPolicyIpv4) IsExternalNetworkPolicyTarget()
type ExternalNetworkPolicyTarget ¶
type ExternalNetworkPolicyTarget interface {
IsExternalNetworkPolicyTarget()
}
type InboundNetworkPolicy ¶
type InboundNetworkPolicy struct {
Rules []*NetworkPolicyRule `json:"rules"`
}
type NetworkPolicy ¶
type NetworkPolicy struct { Inbound *InboundNetworkPolicy `json:"inbound"` Outbound *OutboundNetworkPolicy `json:"outbound"` }
func ListForWorkload ¶
func ListForWorkload(ctx context.Context, teamSlug slug.Slug, environmentName string, workloadName string, policy *nais_io_v1.AccessPolicy) *NetworkPolicy
type NetworkPolicyRule ¶
type OutboundNetworkPolicy ¶
type OutboundNetworkPolicy struct { Rules []*NetworkPolicyRule `json:"rules"` External []ExternalNetworkPolicyTarget `json:"external"` }
Click to show internal directories.
Click to hide internal directories.