base_spec_model

package
v0.0.0-...-cbc0f95 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	Name            string
	Cmds            map[string]string
	RequiredAuth    bool
	RequiredProject bool
	Queries         []Query
	QueryModels     []QueryModel
	ViewModels      []interface{}
}

type Cmd

type Cmd struct {
	Arg         string
	ArgType     string
	ArgKind     string
	FlagMap     map[string]Flag
	TableHeader []string
	Help        string
}

type Flag

type Flag struct {
	Name      string
	FlagName  string
	ShortName string
	FlagType  string
	FlagKind  string
	CobraType string
	Required  bool
}
type Link struct {
	Target string
}

type Query

type Query struct {
	RequiredAuth    bool
	RequiredProject bool
	Ws              bool
	Kind            string
	PkgPath         string
	PkgName         string
	Name            string
	ActionName      string
	DataName        string
	CmdName         string
	CmdOutputKind   string
	CmdOutputFormat string
	Flags           []Flag
}

type QueryModel

type QueryModel struct {
	RequiredAuth    bool
	RequiredProject bool
	Ws              bool
	Kind            string
	Cmd             string
	Help            string
	ProjectRoles    []string
	Roles           []string
	Req             interface{}
	Rep             interface{}
}

type ServiceRouter

type ServiceRouter struct {
	Token     string
	QueryMap  map[string]QueryModel
	Endpoints []string
}

type Spec

type Spec struct {
	Meta     interface{}
	Name     string
	Kind     string
	Apis     []Api
	QuerySet map[string]Query
}

type Tab

type Tab struct {
	Name string
	Tabs []interface{}
}

type Table

type Table struct {
	Name          string
	Data          interface{}
	Actions       []interface{}
	SelectActions []interface{}
	ColumnLinkMap map[string]Link
}

Jump to

Keyboard shortcuts

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