Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkPolicy ¶
type NetworkPolicy struct { api.ObjectMeta `json:"objectMeta"` api.TypeMeta `json:"typeMeta"` }
NetworkPolicy contains an information about single network policy in the list.
type NetworkPolicyDetail ¶
type NetworkPolicyDetail struct { NetworkPolicy `json:",inline"` PodSelector metaV1.LabelSelector `json:"podSelector"` Ingress []v1.NetworkPolicyIngressRule `json:"ingress,omitempty"` Egress []v1.NetworkPolicyEgressRule `json:"egress,omitempty"` PolicyTypes []v1.PolicyType `json:"policyTypes,omitempty"` Errors []error `json:"errors"` }
NetworkPolicyDetail contains detailed information about a network policy.
func GetNetworkPolicyDetail ¶
func GetNetworkPolicyDetail(client client.Interface, namespace, name string) (*NetworkPolicyDetail, error)
GetNetworkPolicyDetail returns detailed information about a network policy.
type NetworkPolicyList ¶
type NetworkPolicyList struct { api.ListMeta `json:"listMeta"` Items []NetworkPolicy `json:"items"` Errors []error `json:"errors"` }
NetworkPolicyList contains a list of network policies.
func GetNetworkPolicyList ¶
func GetNetworkPolicyList(client client.Interface, namespace *common.NamespaceQuery, dsQuery *dataselect.DataSelectQuery) (*NetworkPolicyList, error)
GetNetworkPolicyList lists network policies from given namespace using given data select query.
type ServiceAccountCell ¶
type ServiceAccountCell v1.NetworkPolicy
func (ServiceAccountCell) GetProperty ¶
func (self ServiceAccountCell) GetProperty(name dataselect.PropertyName) dataselect.ComparableValue
Click to show internal directories.
Click to hide internal directories.