kingpinv2

package
v0.0.0-...-a4ad967 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional string placeholder = 6000;
	E_Placeholder = &file_openconfig_golang_kingpinv2_v1_extensions_proto_extTypes[0]
	// optional string envvar = 6001;
	E_Envvar = &file_openconfig_golang_kingpinv2_v1_extensions_proto_extTypes[1]
	// By default field represents a flag.
	//
	// optional bool argument = 6002;
	E_Argument = &file_openconfig_golang_kingpinv2_v1_extensions_proto_extTypes[2]
)

Extension fields to descriptor.FieldOptions.

View Source
var (
	// By default message represents just complex configuration type. If command_name is specified
	// such message becomes a kingpin.v2 command.
	// Name has to be unique within single openconfig.Configuration type.
	//
	// optional openconfig.golang.kingpinv2.v1.Command command = 6002;
	E_Command = &file_openconfig_golang_kingpinv2_v1_extensions_proto_extTypes[3]
)

Extension fields to descriptor.MessageOptions.

View Source
var File_openconfig_golang_kingpinv2_v1_extensions_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Command

type Command struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Command) Descriptor deprecated

func (*Command) Descriptor() ([]byte, []int)

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetName

func (x *Command) GetName() string

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) ProtoReflect

func (x *Command) ProtoReflect() protoreflect.Message

func (*Command) Reset

func (x *Command) Reset()

func (*Command) String

func (x *Command) String() string

type Content

type Content struct {
	Content *any.Any `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // any proto.Message
	// contains filtered or unexported fields
}

Content is byte steam created from PathOrContent flag, a custom extension built on top of kingpin.v2 flags type.

func (*Content) Descriptor deprecated

func (*Content) Descriptor() ([]byte, []int)

Deprecated: Use Content.ProtoReflect.Descriptor instead.

func (*Content) GetContent

func (x *Content) GetContent() *any.Any

func (*Content) ProtoMessage

func (*Content) ProtoMessage()

func (*Content) ProtoReflect

func (x *Content) ProtoReflect() protoreflect.Message

func (*Content) Reset

func (x *Content) Reset()

func (*Content) String

func (x *Content) String() string

type ExistingFile

type ExistingFile struct {
	File *any.Any `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // *os.File
	// contains filtered or unexported fields
}

ExistingFile represents https://pkg.go.dev/gopkg.in/alecthomas/kingpin.v2#ArgClause.ExistingFile. repeated ExistingFile represents https://pkg.go.dev/gopkg.in/alecthomas/kingpin.v2#ArgClause.ExistingFiles.

func (*ExistingFile) Descriptor deprecated

func (*ExistingFile) Descriptor() ([]byte, []int)

Deprecated: Use ExistingFile.ProtoReflect.Descriptor instead.

func (*ExistingFile) GetFile

func (x *ExistingFile) GetFile() *any.Any

func (*ExistingFile) ProtoMessage

func (*ExistingFile) ProtoMessage()

func (*ExistingFile) ProtoReflect

func (x *ExistingFile) ProtoReflect() protoreflect.Message

func (*ExistingFile) Reset

func (x *ExistingFile) Reset()

func (*ExistingFile) String

func (x *ExistingFile) String() string

type IP

type IP struct {
	Ip *any.Any `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` // *net.IP
	// contains filtered or unexported fields
}

IP represents https://pkg.go.dev/gopkg.in/alecthomas/kingpin.v2#ArgClause.IP. repeated IP represents https://pkg.go.dev/gopkg.in/alecthomas/kingpin.v2#ArgClause.IPList.

func (*IP) Descriptor deprecated

func (*IP) Descriptor() ([]byte, []int)

Deprecated: Use IP.ProtoReflect.Descriptor instead.

func (*IP) GetIp

func (x *IP) GetIp() *any.Any

func (*IP) ProtoMessage

func (*IP) ProtoMessage()

func (*IP) ProtoReflect

func (x *IP) ProtoReflect() protoreflect.Message

func (*IP) Reset

func (x *IP) Reset()

func (*IP) String

func (x *IP) String() string

type Regexp

type Regexp struct {
	Regexp *any.Any `protobuf:"bytes,1,opt,name=regexp,proto3" json:"regexp,omitempty"` // **regexp.Regexp
	// contains filtered or unexported fields
}

Regexp represents https://pkg.go.dev/gopkg.in/alecthomas/kingpin.v2#ArgClause.Regexp. repeated Regexp represents https://pkg.go.dev/gopkg.in/alecthomas/kingpin.v2#ArgClause.RegexpList.

func (*Regexp) Descriptor deprecated

func (*Regexp) Descriptor() ([]byte, []int)

Deprecated: Use Regexp.ProtoReflect.Descriptor instead.

func (*Regexp) GetRegexp

func (x *Regexp) GetRegexp() *any.Any

func (*Regexp) ProtoMessage

func (*Regexp) ProtoMessage()

func (*Regexp) ProtoReflect

func (x *Regexp) ProtoReflect() protoreflect.Message

func (*Regexp) Reset

func (x *Regexp) Reset()

func (*Regexp) String

func (x *Regexp) String() string

Jump to

Keyboard shortcuts

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