resources

package
v0.0.0-...-74d59e4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Done represents a result that is complete.
	Done = Result{}
	// Requeue is a result that needs to be re-queued.
	Requeue = Result{/* contains filtered or unexported fields */}
)

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Info(string, ...interface{})
	Error(error, string, ...interface{})
}

Logger interfaces are used to provide logging to the resources package.

type Result

type Result struct {
	// contains filtered or unexported fields
}

Result encapsulates the result of the work performed by a resource update.

func (Result) Err

func (r Result) Err() error

Err returns any error associated with the result.

func (Result) Requeue

func (r Result) Requeue() bool

Requeue returns true if a requeue is needed.

type SmbPvcManager

type SmbPvcManager struct {
	// contains filtered or unexported fields
}

SmbPvcManager is used to manage SmbService resources.

func NewSmbPvcManager

func NewSmbPvcManager(client client.Client, scheme *runtime.Scheme, logger Logger) *SmbPvcManager

NewSmbPvcManager creates a SmbPvcManager.

func (*SmbPvcManager) Update

func (m *SmbPvcManager) Update(ctx context.Context, nsname types.NamespacedName) Result

Update the managed resources on CR change.

type SmbServiceManager

type SmbServiceManager struct {
	// contains filtered or unexported fields
}

SmbServiceManager is used to manage SmbService resources.

func NewSmbServiceManager

func NewSmbServiceManager(client client.Client, scheme *runtime.Scheme, logger Logger) *SmbServiceManager

NewSmbServiceManager creates a SmbServiceManager.

func (*SmbServiceManager) Update

Update should be called when a SmbService resource changes.

Jump to

Keyboard shortcuts

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