controller

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Config *config.Config
	Client api.ClientIFace
}

Controller handler for CLI commands

func New

func New(cfg *config.Config, kv api.ClientIFace) (cc *Controller)

New creates a `Controller`

func (*Controller) CommitFeatures

func (cc *Controller) CommitFeatures(ft *models.Feature, deleted bool) int

func (*Controller) Delete

func (cc *Controller) Delete(ctx climax.Context) int

func (*Controller) Import

func (cc *Controller) Import(ctx climax.Context) int

func (*Controller) Info

func (cc *Controller) Info(ctx climax.Context) int

func (*Controller) Init

func (cc *Controller) Init(ctx climax.Context) int

func (*Controller) List

func (cc *Controller) List(ctx climax.Context) int

func (*Controller) ParseContext

func (cc *Controller) ParseContext(ctx climax.Context) (*models.Feature, error)

func (*Controller) Serve

func (cc *Controller) Serve(ctx climax.Context) int

func (*Controller) Set

func (cc *Controller) Set(ctx climax.Context) int

func (*Controller) Watch

func (cc *Controller) Watch(ctx climax.Context) int

Jump to

Keyboard shortcuts

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