stateimpl

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitConfigDataSink

type GitConfigDataSink struct {
	GitConfigWriter gitconfig.Writer
}

GitConfigDataSink write data directly to gitconfig

func NewGitConfigDataSink

func NewGitConfigDataSink(gitConfigWriter gitconfig.Writer) GitConfigDataSink

NewGitConfigDataSink construct new DataSink

func (GitConfigDataSink) PersistDisabled

func (ds GitConfigDataSink) PersistDisabled(scope activationscope.Scope) error

PersistDisabled persist the current state as disabled

func (GitConfigDataSink) PersistEnabled

func (ds GitConfigDataSink) PersistEnabled(scope activationscope.Scope, coauthors []string) error

PersistEnabled persist the current state as enabled

type GitConfigDataSource

type GitConfigDataSource struct {
	GitConfigReader gitconfig.Reader
}

GitConfigDataSource the data source for the state reader

func NewGitConfigDataSource

func NewGitConfigDataSource(gitConfigReader gitconfig.Reader) GitConfigDataSource

NewGitConfigDataSource construct a new GitConfigDataSource

func (GitConfigDataSource) Query

func (ds GitConfigDataSource) Query(activationScope activationscope.Scope) (state.State, error)

Query read the current state from gitconfig

Jump to

Keyboard shortcuts

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