tools

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 16 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 {
	*category.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) PackageName added in v1.8.0

func (c *Command) PackageName() string

func (*Command) ServiceFuncClientTypeName added in v1.8.0

func (c *Command) ServiceFuncClientTypeName() 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) ChildResourceServiceSourceFileName added in v1.8.0

func (r *Resource) ChildResourceServiceSourceFileName(child *Resource) string

func (*Resource) PackageDirName added in v1.0.0

func (r *Resource) PackageDirName() string

func (*Resource) PackageName added in v1.8.0

func (r *Resource) PackageName() string

func (*Resource) Parent added in v1.8.0

func (r *Resource) Parent() *Resource

func (*Resource) ServiceMeta added in v1.0.0

func (r *Resource) ServiceMeta() *ServiceMeta

func (*Resource) ServiceRepositoryName added in v1.8.0

func (r *Resource) ServiceRepositoryName() string

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