sv_content

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorUnexpectedFormat = errors.New("unexpected format")
)

Functions

This section is empty.

Types

type Content

type Content interface {
	Get(path string, opts ...ContentOpt) (c mo_content.Contents, err error)
	Put(path, message, content string, opts ...ContentOpt) (cts mo_content.Content, commit mo_commit.Commit, err error)
}

func New

func New(ctx gh_context.Context, owner, repo string) Content

type ContentOpt

type ContentOpt func(o contentOpts) contentOpts

func Branch

func Branch(branch string) ContentOpt

func Ref

func Ref(ref string) ContentOpt

func Sha

func Sha(sha string) ContentOpt

type ParamRef

type ParamRef struct {
	Ref string `json:"ref" url:"ref"`
}

Jump to

Keyboard shortcuts

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