options

package
v0.0.0-...-51ec4da Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RepoRoot

func RepoRoot() (string, error)

Types

type GenerateOptions

type GenerateOptions struct {
	ProtoSourcePath string
	ServiceName     string
	APIVersion      string
	ConfigFilePath  string
}

func (*GenerateOptions) BindPersistentFlags

func (o *GenerateOptions) BindPersistentFlags(cmd *cobra.Command)

func (*GenerateOptions) InitDefaults

func (o *GenerateOptions) InitDefaults() error

type Resource

type Resource struct {
	Kind              string
	ProtoName         string
	SkipScaffoldFiles bool
}

func (*Resource) ProtoMessageFullName

func (r *Resource) ProtoMessageFullName(protoPackage string) string

ProtoMessageFullName returns the fully-qualified proto resource name, adding the package if it is not already fully qualified. e.g. Foo => google.cloud.v1.Foo

func (*Resource) ProtoMessageName

func (r *Resource) ProtoMessageName() string

ProtoMessageName returns just the last component of the the proto name, even if it is fully qualified. e.g. google.cloud.v1.Foo => Foo

func (*Resource) Set

func (r *Resource) Set(s string) error

func (*Resource) String

func (r *Resource) String() string

func (*Resource) Type

func (r *Resource) Type() string

type ResourceList

type ResourceList []Resource

func (*ResourceList) Set

func (r *ResourceList) Set(s string) error

func (*ResourceList) String

func (r *ResourceList) String() string

func (*ResourceList) Type

func (r *ResourceList) Type() string

Jump to

Keyboard shortcuts

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