skv2_anyvendor

package
v0.38.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// offer sane defaults for proto vendoring
	DefaultMatchPatterns = []string{anyvendor.ProtoMatchPattern}

	// matches ext.proto for solo hash gen
	ExtProtoMatcher = &anyvendor.GoModImport{
		Package: "github.com/solo-io/protoc-gen-ext",
		Patterns: []string{
			"extproto/*.proto",
			"external/google/protobuf/*.proto",
		},
	}

	// default match options which should be used when creating a solo-kit project
	DefaultExternalMatchOptions = map[string][]string{
		ExtProtoMatcher.Package: ExtProtoMatcher.Patterns,
	}
)

Functions

This section is empty.

Types

type Imports

type Imports struct {
	// files which should be gathered from the local repo
	Local []string
	// files which should be gathered from other go.mod repos
	External map[string][]string
}

this type represents a solo-kit abstraction of the anyvendor API for vendoring non-go files.

func CreateDefaultMatchOptions

func CreateDefaultMatchOptions(local []string) *Imports

func (*Imports) ToAnyvendorConfig

func (i *Imports) ToAnyvendorConfig() *anyvendor.Config

Jump to

Keyboard shortcuts

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