tools

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 15 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategorizedParameterFields added in v1.0.0

type CategorizedParameterFields struct {
	*core.Category
	Fields []Field
}

type Command added in v1.0.0

type Command struct {
	*core.Command
	Resource *Resource
}

func NewCommand added in v1.0.0

func NewCommand(r *Resource, c *core.Command) *Command

func (*Command) CLICommandGeneratedSourceFile added in v1.0.0

func (c *Command) CLICommandGeneratedSourceFile() string

func (*Command) CLICommandParameterTypeName added in v1.0.0

func (c *Command) CLICommandParameterTypeName() string

func (*Command) CLIFlagCleanupEmptyStatement added in v1.0.0

func (c *Command) CLIFlagCleanupEmptyStatement(parameterVariableName, flagSetVariableName string) string

func (*Command) CLIFlagDefinitionStatements added in v1.0.0

func (c *Command) CLIFlagDefinitionStatements(parameterVariableName, flagSetVariableName string) string

func (*Command) CLIFlagInitializePointerStatement added in v1.0.0

func (c *Command) CLIFlagInitializePointerStatement(parameterVariableName, flagSetVariableName string) string

func (*Command) CLIName added in v1.0.0

func (c *Command) CLIName() string

func (*Command) CLIVariableFuncName added in v1.0.0

func (c *Command) CLIVariableFuncName() string

func (*Command) CategorizedParameterFields added in v1.0.0

func (c *Command) CategorizedParameterFields() []*CategorizedParameterFields

func (*Command) Fields added in v1.0.0

func (c *Command) Fields() []Field

func (*Command) HasAliases added in v1.0.0

func (c *Command) HasAliases() bool

func (*Command) InputParameterTypeName added in v1.0.0

func (c *Command) InputParameterTypeName() string

func (*Command) InputParameterVariable added in v1.0.0

func (c *Command) InputParameterVariable() string

func (*Command) PackageDirName added in v1.0.0

func (c *Command) PackageDirName() string

func (*Command) ServiceFuncName added in v1.0.0

func (c *Command) ServiceFuncName() string

func (*Command) ServiceFuncReturnValueType added in v1.0.0

func (c *Command) ServiceFuncReturnValueType() *ServiceFuncMeta

func (*Command) ServiceRequestTypeName added in v1.0.0

func (c *Command) ServiceRequestTypeName() string

type Field added in v1.0.0

type Field struct {
	clitag.StructField
	Required bool
}

func (Field) LongDescription added in v1.0.0

func (f Field) LongDescription() string

LongDescription DescriptionにAliasesとOptionsを連結して返す

type GenerateContext

type GenerateContext struct {
	Resources []*Resource
}

func NewGenerateContext

func NewGenerateContext() *GenerateContext

func (*GenerateContext) Copyright added in v1.0.0

func (c *GenerateContext) Copyright() string

func (*GenerateContext) Gopath

func (c *GenerateContext) Gopath() string

type Resource added in v1.0.0

type Resource struct {
	*core.Resource
	Commands []*Command
}

func NewResource added in v1.0.0

func NewResource(r *core.Resource) *Resource

func NewResources added in v1.0.0

func NewResources(resources []*core.Resource) []*Resource

func (*Resource) CLIName added in v1.0.0

func (r *Resource) CLIName() string

func (*Resource) CLIVariableFuncName added in v1.0.0

func (r *Resource) CLIVariableFuncName() string

func (*Resource) PackageDirName added in v1.0.0

func (r *Resource) PackageDirName() string

func (*Resource) ServiceMeta added in v1.0.0

func (r *Resource) ServiceMeta() *ServiceMeta

func (*Resource) ServiceSourceFileName added in v1.0.0

func (r *Resource) ServiceSourceFileName() string

type ServiceFuncMeta added in v1.0.0

type ServiceFuncMeta struct {
	HasRequestValue    bool
	HasReturnValue     bool
	IsReturnValueSlice bool
}

type ServiceMeta added in v1.0.0

type ServiceMeta struct {
	HasFindMethod bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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