apigen

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

README

apigen

Tool for copying API Go types from Kubebuilder projects

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(c Config) (err error)

Types

type Config

type Config struct {
	LocalRepo      string
	Org            string
	Repo           string
	Tag            string
	TargetDir      string
	APIVersion     string
	AdditionalDirs []string
	ExcludeGlobs   []string

	DebugMode bool
}

func (*Config) ShouldCopyAPIVersion

func (c *Config) ShouldCopyAPIVersion(apiVersion string) bool

func (*Config) UseLocalRepo

func (c *Config) UseLocalRepo() bool

type Lockfile

type Lockfile struct {
	Generated []string `json:"generated"`
}

type StringSet

type StringSet struct {
	// contains filtered or unexported fields
}

func NewStringSet

func NewStringSet() *StringSet

func (*StringSet) Add

func (s *StringSet) Add(str string)

func (*StringSet) Contains

func (s *StringSet) Contains(str string) bool

func (*StringSet) Remove

func (s *StringSet) Remove(str string)

func (*StringSet) Size

func (s *StringSet) Size() int

func (*StringSet) TakeOne

func (s *StringSet) TakeOne() (string, bool)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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