Documentation ¶
Index ¶
- Constants
- func AddressGroupKeyFunc(obj interface{}) (string, error)
- func AppliedToGroupKeyFunc(obj interface{}) (string, error)
- func NetworkPolicyKeyFunc(obj interface{}) (string, error)
- func NewAddressGroupStore() storage.Interface
- func NewAppliedToGroupStore() storage.Interface
- func NewNetworkPolicyStore() storage.Interface
- func ToAddressGroupMsg(in *types.AddressGroup, out *networking.AddressGroup, includeBody bool)
- func ToAppliedToGroupMsg(in *types.AppliedToGroup, out *networking.AppliedToGroup, includeBody bool, ...)
- func ToNetworkPolicyMsg(in *types.NetworkPolicy, out *networking.NetworkPolicy, includeBody bool)
Constants ¶
const ( AppliedToGroupIndex = "appliedToGroup" AddressGroupIndex = "addressGroup" )
Variables ¶
This section is empty.
Functions ¶
func AddressGroupKeyFunc ¶
AddressGroupKeyFunc knows how to get the key of an AddressGroup.
func AppliedToGroupKeyFunc ¶
AppliedToGroupKeyFunc knows how to get the key of an AppliedToGroup.
func NetworkPolicyKeyFunc ¶
NetworkPolicyKeyFunc knows how to get the key of a NetworkPolicy.
func NewAddressGroupStore ¶
NewAddressGroupStore creates a store of AddressGroup.
func NewAppliedToGroupStore ¶
NewAppliedToGroupStore creates a store of AppliedToGroup.
func NewNetworkPolicyStore ¶
NewNetworkPolicyStore creates a store of NetworkPolicy.
func ToAddressGroupMsg ¶
func ToAddressGroupMsg(in *types.AddressGroup, out *networking.AddressGroup, includeBody bool)
ToAddressGroupMsg converts the stored AddressGroup to its message form. If includeBody is true, IPAddresses will be copied.
func ToAppliedToGroupMsg ¶
func ToAppliedToGroupMsg(in *types.AppliedToGroup, out *networking.AppliedToGroup, includeBody bool, nodeName *string)
ToAppliedToGroupMsg converts the stored AppliedToGroup to its message form. If includeBody is true, Pods will be copied. If nodeName is provided, only Pods that hosted by the Node will be copied.
func ToNetworkPolicyMsg ¶
func ToNetworkPolicyMsg(in *types.NetworkPolicy, out *networking.NetworkPolicy, includeBody bool)
ToNetworkPolicyMsg converts the stored NetworkPolicy to its message form. If includeBody is true, Rules and AppliedToGroups will be copied.
Types ¶
This section is empty.