none

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package none provides a nonexistent repository.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type None

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

None represents a nonexistent repository.

func New

func New(opts ...Option) *None

New creates a new repository.

func (*None) DeriveVersion

func (n *None) DeriveVersion() error

DeriveVersion derives the repository version. Note that this is always nil for a nonexistent repository.

func (*None) Kind

func (n *None) Kind() vcs.Kind

Kind returns the repository Kind.

func (*None) Version

func (n *None) Version() interface{}

Version returns the repository version as type string. Note that this is always the configured default version.

type Option

type Option func(*Options)

Option is a repository option.

func WithDefaultVersion

func WithDefaultVersion(defaultVersion string) Option

WithDefaultVersion sets the default version.

func WithPath

func WithPath(path string) Option

WithPath sets the repository path.

type Options

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

Options stores repository options.

Jump to

Keyboard shortcuts

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