Documentation ¶
Index ¶
- Constants
- func Encode(w io.Writer, objects ...runtime.Object) error
- type Client
- type Mock
- type ResourceFilter
- type ResourceFilterOption
- type Retry
- func (r *Retry) CreateSecret(ctx context.Context, clients Client, secret *v1.Secret) error
- func (r *Retry) CreateService(ctx context.Context, clients Client, service *v1.Service) error
- func (r *Retry) CreateStatefulSet(ctx context.Context, clients Client, set *appsv1.StatefulSet) error
- func (r *Retry) DeleteSecret(ctx context.Context, clients Client, secret *v1.Secret) error
- func (r *Retry) DeleteService(ctx context.Context, clients Client, service *v1.Service) error
- func (r *Retry) DeleteStatefulSet(ctx context.Context, clients Client, set *appsv1.StatefulSet) error
- func (r *Retry) UpdateService(ctx context.Context, clients Client, service *v1.Service) error
- func (r *Retry) UpdateStatefulSet(ctx context.Context, clients Client, set *appsv1.StatefulSet) error
- func (r *Retry) UpdateVinceStatus(ctx context.Context, clients Client, set *v1alpha1.Vince) error
- type SiteAPI
Constants ¶
View Source
const ResyncPeriod = 5 * time.Minute
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface { Kube() kubernetes.Interface Vince() versioned.Interface Site() SiteAPI }
type Mock ¶
type Mock struct {
// contains filtered or unexported fields
}
func (*Mock) Kube ¶
func (m *Mock) Kube() kubernetes.Interface
type ResourceFilter ¶
type ResourceFilter struct {
// contains filtered or unexported fields
}
ResourceFilter holds resource filtering rules.
func NewResourceFilter ¶
func NewResourceFilter(opts ...ResourceFilterOption) *ResourceFilter
NewResourceFilter creates a new ResourceFilter, configured with the given options.
func (*ResourceFilter) IsIgnored ¶
func (f *ResourceFilter) IsIgnored(obj interface{}) bool
IsIgnored returns true if the resource should be ignored.
type ResourceFilterOption ¶
type ResourceFilterOption func(filter *ResourceFilter)
ResourceFilterOption adds a filtering rule to the given ResourceFilter.
func IgnoreNamespaces ¶
func IgnoreNamespaces(namespaces ...string) ResourceFilterOption
IgnoreNamespaces adds the given namespaces to the list of namespaces to ignore.
func WatchNamespaces ¶
func WatchNamespaces(namespaces ...string) ResourceFilterOption
WatchNamespaces add the given namespaces to the list of namespaces to watch.
type Retry ¶
type Retry struct {
// contains filtered or unexported fields
}
func (*Retry) CreateSecret ¶
func (*Retry) CreateService ¶
func (*Retry) CreateStatefulSet ¶
func (*Retry) DeleteSecret ¶
func (*Retry) DeleteService ¶
func (*Retry) DeleteStatefulSet ¶
func (*Retry) UpdateService ¶
func (*Retry) UpdateStatefulSet ¶
Click to show internal directories.
Click to hide internal directories.