group

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MPL-2.0 Imports: 10 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 interface {
	GetKnowledgeBaseUUID() string
}

type Create

type Create struct {
	Cmd *cobra.Command
	// contains filtered or unexported fields
}

func NewCreate

func NewCreate(lg Logger, cfg Config, uc KnowledgeBases) *Create

func (*Create) Init

func (cr *Create) Init()

type Edit

type Edit struct {
	Cmd *cobra.Command
	// contains filtered or unexported fields
}

func NewEdit

func NewEdit(lg Logger, cfg Config, uc KnowledgeBases) *Edit

func (*Edit) Init

func (e *Edit) Init()

type KnowledgeBases

type KnowledgeBases interface {
	RemoveGroup(knowledgeBaseUUID, uuid string) error
	CreateGroup(knowledgeBaseUUID string, ent entKb.Group) (string, error)
	GetAllGroups(knowledgeBaseUUID string) (map[string]entKb.Group, error)
	GetGroup(knowledgeBaseUUID, uuid string) (entKb.Group, error)
	UpdateGroup(knowledgeBaseUUID string, ent entKb.Group) error
	GetAllParameters(knowledgeBaseUUID string) (map[string]entKb.Parameter, error)
	GetAllRules(knowledgeBaseUUID string) (map[string]entKb.Rule, error)
}

type Logger

type Logger interface {
	Zap() *zap.Logger
}

type Remove

type Remove struct {
	Cmd *cobra.Command
	// contains filtered or unexported fields
}

func NewRemove

func NewRemove(lg Logger, cfg Config, uc KnowledgeBases) *Remove

func (*Remove) Init

func (r *Remove) Init()

type Root

type Root struct {
	Cmd *cobra.Command
	// contains filtered or unexported fields
}

func NewRoot

func NewRoot(lg Logger, cfg Config, uc KnowledgeBases) *Root

func (*Root) Init

func (r *Root) Init()

type Show

type Show struct {
	Cmd *cobra.Command
	// contains filtered or unexported fields
}

func NewShow

func NewShow(lg Logger, cfg Config, uc KnowledgeBases) *Show

func (*Show) Init

func (sh *Show) Init()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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