git

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultName = "git"
)

Variables

This section is empty.

Functions

func NewDefault

func NewDefault(name string) dukkha.Renderer

Types

type Driver added in v0.4.3

type Driver struct {
	rs.BaseField `yaml:"-"`

	cache.Config `yaml:",inline"`

	SSHConfig ssh.Spec `yaml:",inline"`
	// contains filtered or unexported fields
}

Driver is the git renderer implementation

func (*Driver) Init added in v0.4.3

func (*Driver) RenderYaml added in v0.4.3

func (d *Driver) RenderYaml(
	rc dukkha.RenderingContext, rawData interface{}, attributes []dukkha.RendererAttribute,
) ([]byte, error)

type FetchSpec

type FetchSpec struct {
	rs.BaseField `yaml:"-"`

	// Repo you want to fetch from
	Repo string `yaml:"repo"`

	// Ref is the git object reference, usually branch/tag name, defaults to `HEAD`
	Ref string `yaml:"ref"`

	// Path of the target file
	Path string `yaml:"path"`
}

type SideBandReader

type SideBandReader struct {
	// contains filtered or unexported fields
}

func (*SideBandReader) Read

func (sbr *SideBandReader) Read(p []byte) (int, error)

Jump to

Keyboard shortcuts

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