groups

package
v1.1.17-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TagKeyClusterGroup = "ownedBy"
	TagValClusterGroup = "caph"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Client group.GroupClient
	Scope  *scope.ClusterScope
}

Service provides operations on groups

func NewService

func NewService(scope *scope.ClusterScope) *Service

NewService creates a new group service.

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, spec interface{}) error

Delete deletes a group if group is created by caph

func (*Service) Get

func (s *Service) Get(ctx context.Context, spec interface{}) (interface{}, error)

Get provides information about a group.

func (*Service) Reconcile

func (s *Service) Reconcile(ctx context.Context, spec interface{}) error

Reconcile gets/creates/updates a group.

type Spec

type Spec struct {
	Name     string
	Location string
}

Spec specification for group

Jump to

Keyboard shortcuts

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