buf

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddArg

func AddArg(arg string) func(*bufArgs)

AddArg adds a simple argument.

func AddPaths

func AddPaths(paths []string) func(*bufArgs)

func Run

func Run(args ...Arg) error

Run runs the protoc CLI

Types

type Arg

type Arg func(*bufArgs)

Arg represents a protoc CLI argument

type Tag added in v0.4.5

type Tag struct {
	Name        string `json:"name"`
	Commit      string `json:"commit"`
	CreatedTime string `json:"create_time"`
}

func GetLatestTag added in v0.4.5

func GetLatestTag(repository string) (Tag, error)

Gets the latest commit based on create_date

func GetTags added in v0.4.5

func GetTags(repository string) ([]Tag, error)

Gets all the tags from a buf repository

Jump to

Keyboard shortcuts

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