api

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeLocker

type NodeLocker interface {
	FetchLocks(context.Context) ([]nodelocker.NodeLock, error)         //perm:write
	Lock(context.Context, string, string) (nodelocker.NodeLock, error) //perm:write
}

This needs to be lifted to something under pkg/export-service/* so that it can be imported here, but defined closer to the export serice.

type NodeLockerStruct

type NodeLockerStruct struct {
	Internal struct {
		FetchLocks func(p0 context.Context) ([]nodelocker.NodeLock, error)                     `perm:"write"`
		Lock       func(p0 context.Context, p1 string, p2 string) (nodelocker.NodeLock, error) `perm:"write"`
	}
}

func (*NodeLockerStruct) FetchLocks

func (s *NodeLockerStruct) FetchLocks(p0 context.Context) ([]nodelocker.NodeLock, error)

func (*NodeLockerStruct) Lock

type Operator

type Operator interface {
	NodeLocker

	Version(context.Context) (string, error)           //perm:read
	LogList(context.Context) ([]string, error)         //perm:write
	LogSetLevel(context.Context, string, string) error //perm:write
}

type OperatorStruct

type OperatorStruct struct {
	NodeLockerStruct

	Internal struct {
		Version     func(p0 context.Context) (string, error)             `perm:"read"`
		LogList     func(p0 context.Context) ([]string, error)           `perm:"write"`
		LogSetLevel func(p0 context.Context, p1 string, p2 string) error `perm:"write"`
	}
}

func (*OperatorStruct) LogList

func (s *OperatorStruct) LogList(p0 context.Context) ([]string, error)

func (*OperatorStruct) LogSetLevel

func (s *OperatorStruct) LogSetLevel(p0 context.Context, p1 string, p2 string) error

func (*OperatorStruct) Version

func (s *OperatorStruct) Version(p0 context.Context) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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