godoc for ResourceSelector
Signed-off-by: Steve Kriss <steve@heptio.com>pull/229/head
parent
3100e856a0
commit
94ac3b3529
|
@ -45,9 +45,27 @@ type ResourceIdentifier struct {
|
|||
// included/excluded resources, and a label-selector that can be used
|
||||
// to match a set of items from a cluster.
|
||||
type ResourceSelector struct {
|
||||
// IncludedNamespaces is a slice of namespace names to match. All
|
||||
// namespaces in this slice, except those in ExcludedNamespaces,
|
||||
// will be matched. A nil/empty slice matches all namespaces.
|
||||
IncludedNamespaces []string
|
||||
// ExcludedNamespaces is a slice of namespace names to exclude.
|
||||
// All namespaces in IncludedNamespaces, *except* those in
|
||||
// this slice, will be matched.
|
||||
ExcludedNamespaces []string
|
||||
IncludedResources []string
|
||||
ExcludedResources []string
|
||||
LabelSelector string
|
||||
// IncludedResources is a slice of resources to match. Resources
|
||||
// may be specified as full names (e.g. "services") or abbreviations
|
||||
// (e.g. "svc"). All resources in this slice, except those in
|
||||
// ExcludedResources, will be matched. A nil/empty slice matches
|
||||
// all resources.
|
||||
IncludedResources []string
|
||||
// ExcludedResources is a slice of resources to exclude.
|
||||
// Resources may be specified as full names (e.g. "services") or
|
||||
// abbreviations (e.g. "svc"). All resources in IncludedResources,
|
||||
// *except* those in this slice, will be matched.
|
||||
ExcludedResources []string
|
||||
// LabelSelector is a string representation of a selector to apply
|
||||
// when matching resources. See "k8s.io/apimachinery/pkg/labels".Parse()
|
||||
// for details on syntax.
|
||||
LabelSelector string
|
||||
}
|
||||
|
|
|
@ -35,9 +35,27 @@ type ItemAction interface {
|
|||
// included/excluded resources, and a label-selector that can be used
|
||||
// to match a set of items from a cluster.
|
||||
type ResourceSelector struct {
|
||||
// IncludedNamespaces is a slice of namespace names to match. All
|
||||
// namespaces in this slice, except those in ExcludedNamespaces,
|
||||
// will be matched. A nil/empty slice matches all namespaces.
|
||||
IncludedNamespaces []string
|
||||
// ExcludedNamespaces is a slice of namespace names to exclude.
|
||||
// All namespaces in IncludedNamespaces, *except* those in
|
||||
// this slice, will be matched.
|
||||
ExcludedNamespaces []string
|
||||
IncludedResources []string
|
||||
ExcludedResources []string
|
||||
LabelSelector string
|
||||
// IncludedResources is a slice of resources to match. Resources
|
||||
// may be specified as full names (e.g. "services") or abbreviations
|
||||
// (e.g. "svc"). All resources in this slice, except those in
|
||||
// ExcludedResources, will be matched. A nil/empty slice matches
|
||||
// all resources.
|
||||
IncludedResources []string
|
||||
// ExcludedResources is a slice of resources to exclude.
|
||||
// Resources may be specified as full names (e.g. "services") or
|
||||
// abbreviations (e.g. "svc"). All resources in IncludedResources,
|
||||
// *except* those in this slice, will be matched.
|
||||
ExcludedResources []string
|
||||
// LabelSelector is a string representation of a selector to apply
|
||||
// when matching resources. See "k8s.io/apimachinery/pkg/labels".Parse()
|
||||
// for details on syntax.
|
||||
LabelSelector string
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue