Documentation ¶
Index ¶
- Variables
- func Extract(v interface{}) (cueast.Expr, error)
- func ExtractWithType(v interface{}) (cueast.Expr, error)
- func NewBytes(data []byte) *cueast.BasicLit
- func NewTripleBytes(data []byte) *cueast.BasicLit
- func Register(extractor Extractor)
- func SafeIdentifierFromImportPath(s string) string
- type Extractor
- type Extractors
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ExtractWithType ¶
func NewTripleBytes ¶
Types ¶
type Extractor ¶
type Extractor interface { // Name // Extractor name // used in mod.cue @import("") Name() string // Detect check dir should use extractor. // if matched, return deps <repo>:<version> too. Detect(ctx context.Context, src string) (bool, map[string]string) // Extract convert dir to cue codes Extract(ctx context.Context, src string) ([]*cueast.File, error) }
type Extractors ¶
func (Extractors) ExtractToDir ¶
func (Extractors) Register ¶
func (extractors Extractors) Register(extractor Extractor)
Click to show internal directories.
Click to hide internal directories.