operation

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operator

type Operator interface {
	Reader
	Writer
}

func NewOperationOperator

func NewOperationOperator(operationStorage rest.StandardStorage) Operator

type Reader

type Reader interface {
	ListOperations(ctx context.Context, query *query.Query) (*v1.OperationList, error)
	WatchOperations(ctx context.Context, query *query.Query) (watch.Interface, error)
	GetOperation(ctx context.Context, name string) (*v1.Operation, error)
	ReaderEx
}

type ReaderEx

type ReaderEx interface {
	GetOperationEx(ctx context.Context, name string, resourceVersion string) (*v1.Operation, error)
	ListOperationsEx(ctx context.Context, query *query.Query) (*models.PageableResponse, error)
}

type Writer

type Writer interface {
	DeleteOperation(ctx context.Context, name string) error
	CreateOperation(ctx context.Context, operation *v1.Operation) (*v1.Operation, error)
	UpdateOperation(ctx context.Context, operation *v1.Operation) (*v1.Operation, error)
	UpdateOperationStatus(ctx context.Context, name string, status *v1.OperationStatus) (*v1.Operation, error)
	DeleteOperationCollection(ctx context.Context, query *query.Query) error
}

Directories

Path Synopsis
Package mock_operation is a generated GoMock package.
Package mock_operation is a generated GoMock package.

Jump to

Keyboard shortcuts

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