networkpolicy

package
v0.0.0-...-8a48855 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL