state

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	// SelfPath is the absolute path to the current process.
	SelfPath string `protobuf:"bytes,1,opt,name=self_path,json=selfPath,proto3" json:"self_path,omitempty"`
	// GitPath is the absolute path of the Git executable that was identified.
	GitPath string `protobuf:"bytes,2,opt,name=git_path,json=gitPath,proto3" json:"git_path,omitempty"`
	// Retrying, if true, means that we are running in the context of a previous
	// wrapper that is, itself, applying retry criteria.
	Retrying             bool     `protobuf:"varint,3,opt,name=retrying,proto3" json:"retrying,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

State is the persistent wrapper state. It is exported by a Git wrapper process as encoded JSON using the "gitWrapperENV" environment variable.

func (*State) Descriptor

func (*State) Descriptor() ([]byte, []int)

func (*State) FromENV

func (st *State) FromENV(v string) error

FromENV loads the contents of ws from an encoded environment variable.

func (*State) GetGitPath

func (m *State) GetGitPath() string

func (*State) GetRetrying

func (m *State) GetRetrying() bool

func (*State) GetSelfPath

func (m *State) GetSelfPath() string

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) Reset

func (m *State) Reset()

func (*State) String

func (m *State) String() string

func (*State) ToENV

func (st *State) ToENV() string

ToENV constructs the exported environment variable form of the wrapper.

func (*State) XXX_DiscardUnknown

func (m *State) XXX_DiscardUnknown()

func (*State) XXX_Marshal

func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*State) XXX_Merge

func (m *State) XXX_Merge(src proto.Message)

func (*State) XXX_Size

func (m *State) XXX_Size() int

func (*State) XXX_Unmarshal

func (m *State) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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