state

package
v0.0.0-...-9994f1b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_infra_tools_git_state_state_proto protoreflect.FileDescriptor

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"`
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use State.ProtoReflect.Descriptor instead.

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 (x *State) GetGitPath() string

func (*State) GetRetrying

func (x *State) GetRetrying() bool

func (*State) GetSelfPath

func (x *State) GetSelfPath() string

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) ProtoReflect

func (x *State) ProtoReflect() protoreflect.Message

func (*State) Reset

func (x *State) Reset()

func (*State) String

func (x *State) String() string

func (*State) ToENV

func (st *State) ToENV() string

ToENV constructs the exported environment variable form of the wrapper.

Jump to

Keyboard shortcuts

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