controller

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrImproperParam       = fmt.Errorf("improper parameters")
	ErrUnsupportedType     = fmt.Errorf("unsupported sink type")
	ErrNotFound            = fmt.Errorf("resource is not found")
	ErrUnprocessableEntity = fmt.Errorf("may not create more resources due to limit")
)

Functions

This section is empty.

Types

type SinkController

type SinkController struct {
	Client     client.Client
	MaxContent int
	Logger     logr.Logger
}

func (SinkController) Delete

func (c SinkController) Delete(namespace, name string) error

func (SinkController) DeleteContent

func (c SinkController) DeleteContent(namespace, name, ruleName string) error

func (SinkController) List

func (c SinkController) List(namespace, name, sinkType string) ([]v1.Sink, error)

func (SinkController) Put

func (c SinkController) Put(sink v1.Sink) (bool, error)

Jump to

Keyboard shortcuts

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