Documentation
¶
Index ¶
- Constants
- type Store
- func (s *Store) CreateGadgetInstance(ctx context.Context, req *api.CreateGadgetInstanceRequest) (*api.CreateGadgetInstanceResponse, error)
- func (s *Store) GetGadgetInstance(ctx context.Context, req *api.GadgetInstanceId) (*api.GadgetInstance, error)
- func (s *Store) ListGadgetInstances(ctx context.Context, request *api.ListGadgetInstancesRequest) (*api.ListGadgetInstanceResponse, error)
- func (s *Store) RemoveGadgetInstance(ctx context.Context, id *api.GadgetInstanceId) (*api.StatusResponse, error)
- func (s *Store) ResumeStoredGadgets() error
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 (*Store) CreateGadgetInstance ¶
func (s *Store) CreateGadgetInstance(ctx context.Context, req *api.CreateGadgetInstanceRequest) (*api.CreateGadgetInstanceResponse, error)
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 ¶
Click to show internal directories.
Click to hide internal directories.