v1

package
v0.0.0-...-67f6199 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterObject

func FilterObject(at *api.ArangoTask, filters ...Filter) bool

Types

type Action

type Action func(at *api.ArangoTask) error

type Filter

type Filter func(at *api.ArangoTask) bool

type Inspector

type Inspector interface {
	gvk.GVK

	ListSimple() []*api.ArangoTask
	GetSimple(name string) (*api.ArangoTask, bool)
	Filter(filters ...Filter) []*api.ArangoTask
	Iterate(action Action, filters ...Filter) error
	Read() ReadInterface
}

type Interface

type Interface interface {
	ModInterface
	ReadInterface
}

Interface has methods to work with ArangoTask resources.

type ModInterface

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

ModInterface has methods to work with ArangoTask resources only for creation

type ReadInterface

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

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

Jump to

Keyboard shortcuts

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