native

package
v0.3.30 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectNativeLang

func DetectNativeLang(codeRepoPath string) (Metadata, NativeLang, error)

func ListNamespaces

func ListNamespaces(lekkoPath string, nativeLang NativeLang) (namespaces []string, err error)

func ListNativeConfigFiles

func ListNativeConfigFiles(lekkoPath string, nativeLang NativeLang) ([]string, error)

Types

type GoMetadata

type GoMetadata struct {
	ModulePath string
}

type Metadata

type Metadata interface {
	// contains filtered or unexported methods
}

type NativeLang

type NativeLang string
var (
	GO NativeLang = "go"
	TS NativeLang = "ts"
)

func NativeLangFromExt

func NativeLangFromExt(filename string) (NativeLang, error)

func (*NativeLang) Ext

func (l *NativeLang) Ext() string

func (*NativeLang) GetNamespace

func (l *NativeLang) GetNamespace(filename string) (string, error)

Jump to

Keyboard shortcuts

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