metadata

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct {
	Repository string   `json:"repository,omitempty"`
	Commit     string   `json:"commit,omitempty"`
	Branch     string   `json:"branch,omitempty"`
	Status     []string `json:"status,omitempty"`
	Tag        string   `json:"annotated_tag,omitempty"`
}

func (*Git) AsPatch

func (git *Git) AsPatch() (*jsonpatch.Patch, error)

func (*Git) IsValid

func (git *Git) IsValid() bool

type GitProvider

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

func NewGitProvider

func NewGitProvider() *GitProvider

func (*GitProvider) Get

func (provider *GitProvider) Get(path string) (Metadata, error)

type Metadata

type Metadata interface {
	AsPatch() (*jsonpatch.Patch, error)
	IsValid() bool
}

type Provider

type Provider interface {
	Get(path string) (Metadata, error)
}

Jump to

Keyboard shortcuts

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