k8sconfigmapstore

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GadgetInstance = "gadget-instance"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	api.UnimplementedGadgetInstanceManagerServer
	// contains filtered or unexported fields
}

func New

func New(mgr *instancemanager.Manager) (*Store, error)

func (*Store) CreateGadgetInstance

CreateGadgetInstance installs the gadget as a new config map to the cluster

func (*Store) GetGadgetInstance

func (s *Store) GetGadgetInstance(ctx context.Context, req *api.GadgetInstanceId) (*api.GadgetInstance, error)

GetGadgetInstance returns the configuration of the given gadget instance

func (*Store) ListGadgetInstances

func (s *Store) ListGadgetInstances(ctx context.Context, request *api.ListGadgetInstancesRequest) (*api.ListGadgetInstanceResponse, error)

ListGadgetInstances lists all installed gadget instances stored as config maps in the cluster

func (*Store) RemoveGadgetInstance

func (s *Store) RemoveGadgetInstance(ctx context.Context, id *api.GadgetInstanceId) (*api.StatusResponse, error)

RemoveGadgetInstance removes the corresponding config map of the given gadget instance from the cluster

func (*Store) ResumeStoredGadgets

func (s *Store) ResumeStoredGadgets() error

Jump to

Keyboard shortcuts

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