models

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrVersionNotFound = errors.New("version not found")
	ErrFileNotFound    = errors.New("file not found")
)

Functions

This section is empty.

Types

type Module

type Module struct {
	Name    string
	Version string
}

Module contain dependency name and its version

func NewModule

func NewModule(dependency string) Module

NewModule create Module struct from raw dependency string: remote@version

type ModuleConfig

type ModuleConfig struct {
	// Directories contains dirs with proto files (buf.work.yaml)
	Directories []string
}

ModuleConfig contains module config such as dirs from buf.work.yaml

type Revision

type Revision struct {
	CommitHash string // commit's hash
	Version    string // tag or HEAD if version was omitted
}

Jump to

Keyboard shortcuts

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