v1

package
v0.0.0-...-df73735 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action func(serviceMonitor *monitoring.ServiceMonitor) error

type Filter

type Filter func(serviceMonitor *monitoring.ServiceMonitor) bool

type Inspector

type Inspector interface {
	gvk.GVK

	GetSimple(name string) (*monitoring.ServiceMonitor, bool)
	Iterate(action Action, filters ...Filter) error
	Read() ReadInterface
}

type Interface

type Interface interface {
	anonymous.Impl

	ModInterface
	ReadInterface
}

Interface has methods to work with ServiceMonitor resources.

type ModInterface

type ModInterface interface {
	Create(ctx context.Context, servicemonitor *monitoring.ServiceMonitor, opts meta.CreateOptions) (*monitoring.ServiceMonitor, error)
	Update(ctx context.Context, servicemonitor *monitoring.ServiceMonitor, opts meta.UpdateOptions) (*monitoring.ServiceMonitor, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts meta.PatchOptions, subresources ...string) (result *monitoring.ServiceMonitor, err error)
	Delete(ctx context.Context, name string, opts meta.DeleteOptions) error
}

ModInterface has methods to work with ServiceMonitor resources only for creation

type ReadInterface

type ReadInterface interface {
	Get(ctx context.Context, name string, opts meta.GetOptions) (*monitoring.ServiceMonitor, error)
}

ReadInterface has methods to work with ServiceMonitor resources with ReadOnly mode.

Jump to

Keyboard shortcuts

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