tele

package
v0.0.0-...-3bfe646 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Operator is Ops Center client
	Operator *opsclient.Client
	// Apps is Ops Center apps service client
	Apps app.Applications
	// Silent provides methods for printing
	localenv.Silent
}

Config is tele resource controller configuration

type Resources

type Resources struct {
	// Config is the controller configuration
	Config
}

Resources is controller for resources managed by "tele resource" subcommands

func New

func New(config Config) *Resources

New creates a new tele resource controller

func (*Resources) Create

func (r *Resources) Create(ctx context.Context, req resources.CreateRequest) error

Create creates the provided resource

func (*Resources) GetCollection

func (r *Resources) GetCollection(req resources.ListRequest) (resources.Collection, error)

GetCollection retrieves a collection of specified resources

func (*Resources) Remove

func (r *Resources) Remove(ctx context.Context, req resources.RemoveRequest) error

Remove removes the specified resource

Jump to

Keyboard shortcuts

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