command

package
v0.0.0-...-c09a88c Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InputType_Value_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "DIRECTORY",
		2: "FILE",
	}
	InputType_Value_value = map[string]int32{
		"UNSPECIFIED": 0,
		"DIRECTORY":   1,
		"FILE":        2,
	}
)

Enum value maps for InputType_Value.

View Source
var (
	SymlinkBehaviorType_Value_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "RESOLVE",
		2: "PRESERVE",
	}
	SymlinkBehaviorType_Value_value = map[string]int32{
		"UNSPECIFIED": 0,
		"RESOLVE":     1,
		"PRESERVE":    2,
	}
)

Enum value maps for SymlinkBehaviorType_Value.

View Source
var (
	CommandResultStatus_Value_name = map[int32]string{
		0: "UNKNOWN",
		1: "SUCCESS",
		2: "CACHE_HIT",
		3: "NON_ZERO_EXIT",
		4: "TIMEOUT",
		5: "INTERRUPTED",
		6: "REMOTE_ERROR",
		7: "LOCAL_ERROR",
	}
	CommandResultStatus_Value_value = map[string]int32{
		"UNKNOWN":       0,
		"SUCCESS":       1,
		"CACHE_HIT":     2,
		"NON_ZERO_EXIT": 3,
		"TIMEOUT":       4,
		"INTERRUPTED":   5,
		"REMOTE_ERROR":  6,
		"LOCAL_ERROR":   7,
	}
)

Enum value maps for CommandResultStatus_Value.

View Source
var File_go_api_command_command_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Command

type Command struct {
	Identifiers            *Identifiers      `protobuf:"bytes,1,opt,name=identifiers,proto3" json:"identifiers,omitempty"`
	ExecRoot               string            `protobuf:"bytes,2,opt,name=exec_root,json=execRoot,proto3" json:"exec_root,omitempty"`
	Input                  *InputSpec        `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"`
	Output                 *OutputSpec       `protobuf:"bytes,4,opt,name=output,proto3" json:"output,omitempty"`
	Args                   []string          `protobuf:"bytes,5,rep,name=args,proto3" json:"args,omitempty"`
	ExecutionTimeout       int32             `protobuf:"varint,6,opt,name=execution_timeout,json=executionTimeout,proto3" json:"execution_timeout,omitempty"`
	WorkingDirectory       string            `protobuf:"bytes,7,opt,name=working_directory,json=workingDirectory,proto3" json:"working_directory,omitempty"`
	Platform               map[string]string `` /* 157-byte string literal not displayed */
	RemoteWorkingDirectory string            `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Command) Descriptor deprecated

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

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetArgs

func (x *Command) GetArgs() []string

func (*Command) GetExecRoot

func (x *Command) GetExecRoot() string

func (*Command) GetExecutionTimeout

func (x *Command) GetExecutionTimeout() int32

func (*Command) GetIdentifiers

func (x *Command) GetIdentifiers() *Identifiers

func (*Command) GetInput

func (x *Command) GetInput() *InputSpec

func (*Command) GetOutput

func (x *Command) GetOutput() *OutputSpec

func (*Command) GetPlatform

func (x *Command) GetPlatform() map[string]string

func (*Command) GetRemoteWorkingDirectory

func (x *Command) GetRemoteWorkingDirectory() string

func (*Command) GetWorkingDirectory

func (x *Command) GetWorkingDirectory() string

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) ProtoReflect

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

func (*Command) Reset

func (x *Command) Reset()

func (*Command) String

func (x *Command) String() string

type CommandResult

type CommandResult struct {
	Status   CommandResultStatus_Value `protobuf:"varint,1,opt,name=status,proto3,enum=cmd.CommandResultStatus_Value" json:"status,omitempty"`
	ExitCode int32                     `protobuf:"varint,2,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	Msg      string                    `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*CommandResult) Descriptor deprecated

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

Deprecated: Use CommandResult.ProtoReflect.Descriptor instead.

func (*CommandResult) GetExitCode

func (x *CommandResult) GetExitCode() int32

func (*CommandResult) GetMsg

func (x *CommandResult) GetMsg() string

func (*CommandResult) GetStatus

func (*CommandResult) ProtoMessage

func (*CommandResult) ProtoMessage()

func (*CommandResult) ProtoReflect

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

func (*CommandResult) Reset

func (x *CommandResult) Reset()

func (*CommandResult) String

func (x *CommandResult) String() string

type CommandResultStatus

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

func (*CommandResultStatus) Descriptor deprecated

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

Deprecated: Use CommandResultStatus.ProtoReflect.Descriptor instead.

func (*CommandResultStatus) ProtoMessage

func (*CommandResultStatus) ProtoMessage()

func (*CommandResultStatus) ProtoReflect

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

func (*CommandResultStatus) Reset

func (x *CommandResultStatus) Reset()

func (*CommandResultStatus) String

func (x *CommandResultStatus) String() string

type CommandResultStatus_Value

type CommandResultStatus_Value int32
const (
	CommandResultStatus_UNKNOWN       CommandResultStatus_Value = 0
	CommandResultStatus_SUCCESS       CommandResultStatus_Value = 1
	CommandResultStatus_CACHE_HIT     CommandResultStatus_Value = 2
	CommandResultStatus_NON_ZERO_EXIT CommandResultStatus_Value = 3
	CommandResultStatus_TIMEOUT       CommandResultStatus_Value = 4
	CommandResultStatus_INTERRUPTED   CommandResultStatus_Value = 5
	CommandResultStatus_REMOTE_ERROR  CommandResultStatus_Value = 6
	CommandResultStatus_LOCAL_ERROR   CommandResultStatus_Value = 7
)

func (CommandResultStatus_Value) Descriptor

func (CommandResultStatus_Value) Enum

func (CommandResultStatus_Value) EnumDescriptor deprecated

func (CommandResultStatus_Value) EnumDescriptor() ([]byte, []int)

Deprecated: Use CommandResultStatus_Value.Descriptor instead.

func (CommandResultStatus_Value) Number

func (CommandResultStatus_Value) String

func (x CommandResultStatus_Value) String() string

func (CommandResultStatus_Value) Type

type ExcludeInput

type ExcludeInput struct {
	Regex string          `protobuf:"bytes,1,opt,name=regex,proto3" json:"regex,omitempty"`
	Type  InputType_Value `protobuf:"varint,2,opt,name=type,proto3,enum=cmd.InputType_Value" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*ExcludeInput) Descriptor deprecated

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

Deprecated: Use ExcludeInput.ProtoReflect.Descriptor instead.

func (*ExcludeInput) GetRegex

func (x *ExcludeInput) GetRegex() string

func (*ExcludeInput) GetType

func (x *ExcludeInput) GetType() InputType_Value

func (*ExcludeInput) ProtoMessage

func (*ExcludeInput) ProtoMessage()

func (*ExcludeInput) ProtoReflect

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

func (*ExcludeInput) Reset

func (x *ExcludeInput) Reset()

func (*ExcludeInput) String

func (x *ExcludeInput) String() string

type Identifiers

type Identifiers struct {
	CommandId               string `protobuf:"bytes,1,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"`
	InvocationId            string `protobuf:"bytes,2,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"`
	CorrelatedInvocationsId string `` /* 132-byte string literal not displayed */
	ToolName                string `protobuf:"bytes,4,opt,name=tool_name,json=toolName,proto3" json:"tool_name,omitempty"`
	ToolVersion             string `protobuf:"bytes,5,opt,name=tool_version,json=toolVersion,proto3" json:"tool_version,omitempty"`
	ExecutionId             string `protobuf:"bytes,6,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Identifiers) Descriptor deprecated

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

Deprecated: Use Identifiers.ProtoReflect.Descriptor instead.

func (*Identifiers) GetCommandId

func (x *Identifiers) GetCommandId() string

func (*Identifiers) GetCorrelatedInvocationsId

func (x *Identifiers) GetCorrelatedInvocationsId() string

func (*Identifiers) GetExecutionId

func (x *Identifiers) GetExecutionId() string

func (*Identifiers) GetInvocationId

func (x *Identifiers) GetInvocationId() string

func (*Identifiers) GetToolName

func (x *Identifiers) GetToolName() string

func (*Identifiers) GetToolVersion

func (x *Identifiers) GetToolVersion() string

func (*Identifiers) ProtoMessage

func (*Identifiers) ProtoMessage()

func (*Identifiers) ProtoReflect

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

func (*Identifiers) Reset

func (x *Identifiers) Reset()

func (*Identifiers) String

func (x *Identifiers) String() string

type InputSpec

type InputSpec struct {
	Inputs               []string                   `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"`
	VirtualInputs        []*VirtualInput            `protobuf:"bytes,5,rep,name=virtual_inputs,json=virtualInputs,proto3" json:"virtual_inputs,omitempty"`
	ExcludeInputs        []*ExcludeInput            `protobuf:"bytes,3,rep,name=exclude_inputs,json=excludeInputs,proto3" json:"exclude_inputs,omitempty"`
	EnvironmentVariables map[string]string          `` /* 209-byte string literal not displayed */
	SymlinkBehavior      SymlinkBehaviorType_Value  `` /* 142-byte string literal not displayed */
	InputNodeProperties  map[string]*NodeProperties `` /* 208-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*InputSpec) Descriptor deprecated

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

Deprecated: Use InputSpec.ProtoReflect.Descriptor instead.

func (*InputSpec) GetEnvironmentVariables

func (x *InputSpec) GetEnvironmentVariables() map[string]string

func (*InputSpec) GetExcludeInputs

func (x *InputSpec) GetExcludeInputs() []*ExcludeInput

func (*InputSpec) GetInputNodeProperties

func (x *InputSpec) GetInputNodeProperties() map[string]*NodeProperties

func (*InputSpec) GetInputs

func (x *InputSpec) GetInputs() []string

func (*InputSpec) GetSymlinkBehavior

func (x *InputSpec) GetSymlinkBehavior() SymlinkBehaviorType_Value

func (*InputSpec) GetVirtualInputs

func (x *InputSpec) GetVirtualInputs() []*VirtualInput

func (*InputSpec) ProtoMessage

func (*InputSpec) ProtoMessage()

func (*InputSpec) ProtoReflect

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

func (*InputSpec) Reset

func (x *InputSpec) Reset()

func (*InputSpec) String

func (x *InputSpec) String() string

type InputType

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

func (*InputType) Descriptor deprecated

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

Deprecated: Use InputType.ProtoReflect.Descriptor instead.

func (*InputType) ProtoMessage

func (*InputType) ProtoMessage()

func (*InputType) ProtoReflect

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

func (*InputType) Reset

func (x *InputType) Reset()

func (*InputType) String

func (x *InputType) String() string

type InputType_Value

type InputType_Value int32
const (
	InputType_UNSPECIFIED InputType_Value = 0
	InputType_DIRECTORY   InputType_Value = 1
	InputType_FILE        InputType_Value = 2
)

func (InputType_Value) Descriptor

func (InputType_Value) Enum

func (x InputType_Value) Enum() *InputType_Value

func (InputType_Value) EnumDescriptor deprecated

func (InputType_Value) EnumDescriptor() ([]byte, []int)

Deprecated: Use InputType_Value.Descriptor instead.

func (InputType_Value) Number

func (InputType_Value) String

func (x InputType_Value) String() string

func (InputType_Value) Type

type NodeProperties

type NodeProperties struct {
	Properties []*NodeProperty         `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"`
	Mtime      *timestamppb.Timestamp  `protobuf:"bytes,2,opt,name=mtime,proto3" json:"mtime,omitempty"`
	UnixMode   *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=unix_mode,json=unixMode,proto3" json:"unix_mode,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeProperties) Descriptor deprecated

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

Deprecated: Use NodeProperties.ProtoReflect.Descriptor instead.

func (*NodeProperties) GetMtime

func (x *NodeProperties) GetMtime() *timestamppb.Timestamp

func (*NodeProperties) GetProperties

func (x *NodeProperties) GetProperties() []*NodeProperty

func (*NodeProperties) GetUnixMode

func (x *NodeProperties) GetUnixMode() *wrapperspb.UInt32Value

func (*NodeProperties) ProtoMessage

func (*NodeProperties) ProtoMessage()

func (*NodeProperties) ProtoReflect

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

func (*NodeProperties) Reset

func (x *NodeProperties) Reset()

func (*NodeProperties) String

func (x *NodeProperties) String() string

type NodeProperty

type NodeProperty struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeProperty) Descriptor deprecated

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

Deprecated: Use NodeProperty.ProtoReflect.Descriptor instead.

func (*NodeProperty) GetName

func (x *NodeProperty) GetName() string

func (*NodeProperty) GetValue

func (x *NodeProperty) GetValue() string

func (*NodeProperty) ProtoMessage

func (*NodeProperty) ProtoMessage()

func (*NodeProperty) ProtoReflect

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

func (*NodeProperty) Reset

func (x *NodeProperty) Reset()

func (*NodeProperty) String

func (x *NodeProperty) String() string

type OutputSpec

type OutputSpec struct {
	OutputFiles       []string `protobuf:"bytes,1,rep,name=output_files,json=outputFiles,proto3" json:"output_files,omitempty"`
	OutputDirectories []string `protobuf:"bytes,2,rep,name=output_directories,json=outputDirectories,proto3" json:"output_directories,omitempty"`
	// contains filtered or unexported fields
}

func (*OutputSpec) Descriptor deprecated

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

Deprecated: Use OutputSpec.ProtoReflect.Descriptor instead.

func (*OutputSpec) GetOutputDirectories

func (x *OutputSpec) GetOutputDirectories() []string

func (*OutputSpec) GetOutputFiles

func (x *OutputSpec) GetOutputFiles() []string

func (*OutputSpec) ProtoMessage

func (*OutputSpec) ProtoMessage()

func (*OutputSpec) ProtoReflect

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

func (*OutputSpec) Reset

func (x *OutputSpec) Reset()

func (*OutputSpec) String

func (x *OutputSpec) String() string

type SymlinkBehaviorType

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

func (*SymlinkBehaviorType) Descriptor deprecated

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

Deprecated: Use SymlinkBehaviorType.ProtoReflect.Descriptor instead.

func (*SymlinkBehaviorType) ProtoMessage

func (*SymlinkBehaviorType) ProtoMessage()

func (*SymlinkBehaviorType) ProtoReflect

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

func (*SymlinkBehaviorType) Reset

func (x *SymlinkBehaviorType) Reset()

func (*SymlinkBehaviorType) String

func (x *SymlinkBehaviorType) String() string

type SymlinkBehaviorType_Value

type SymlinkBehaviorType_Value int32
const (
	SymlinkBehaviorType_UNSPECIFIED SymlinkBehaviorType_Value = 0
	SymlinkBehaviorType_RESOLVE     SymlinkBehaviorType_Value = 1
	SymlinkBehaviorType_PRESERVE    SymlinkBehaviorType_Value = 2
)

func (SymlinkBehaviorType_Value) Descriptor

func (SymlinkBehaviorType_Value) Enum

func (SymlinkBehaviorType_Value) EnumDescriptor deprecated

func (SymlinkBehaviorType_Value) EnumDescriptor() ([]byte, []int)

Deprecated: Use SymlinkBehaviorType_Value.Descriptor instead.

func (SymlinkBehaviorType_Value) Number

func (SymlinkBehaviorType_Value) String

func (x SymlinkBehaviorType_Value) String() string

func (SymlinkBehaviorType_Value) Type

type TimeInterval

type TimeInterval struct {
	From *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*TimeInterval) Descriptor deprecated

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

Deprecated: Use TimeInterval.ProtoReflect.Descriptor instead.

func (*TimeInterval) GetFrom

func (x *TimeInterval) GetFrom() *timestamppb.Timestamp

func (*TimeInterval) GetTo

func (x *TimeInterval) GetTo() *timestamppb.Timestamp

func (*TimeInterval) ProtoMessage

func (*TimeInterval) ProtoMessage()

func (*TimeInterval) ProtoReflect

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

func (*TimeInterval) Reset

func (x *TimeInterval) Reset()

func (*TimeInterval) String

func (x *TimeInterval) String() string

type VirtualInput

type VirtualInput struct {
	Path             string                 `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Contents         []byte                 `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"`
	IsExecutable     bool                   `protobuf:"varint,3,opt,name=is_executable,json=isExecutable,proto3" json:"is_executable,omitempty"`
	IsEmptyDirectory bool                   `protobuf:"varint,4,opt,name=is_empty_directory,json=isEmptyDirectory,proto3" json:"is_empty_directory,omitempty"`
	Digest           string                 `protobuf:"bytes,5,opt,name=digest,proto3" json:"digest,omitempty"`
	Mtime            *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=mtime,proto3" json:"mtime,omitempty"`
	Filemode         uint32                 `protobuf:"varint,7,opt,name=filemode,proto3" json:"filemode,omitempty"`
	// contains filtered or unexported fields
}

func (*VirtualInput) Descriptor deprecated

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

Deprecated: Use VirtualInput.ProtoReflect.Descriptor instead.

func (*VirtualInput) GetContents

func (x *VirtualInput) GetContents() []byte

func (*VirtualInput) GetDigest

func (x *VirtualInput) GetDigest() string

func (*VirtualInput) GetFilemode

func (x *VirtualInput) GetFilemode() uint32

func (*VirtualInput) GetIsEmptyDirectory

func (x *VirtualInput) GetIsEmptyDirectory() bool

func (*VirtualInput) GetIsExecutable

func (x *VirtualInput) GetIsExecutable() bool

func (*VirtualInput) GetMtime

func (x *VirtualInput) GetMtime() *timestamppb.Timestamp

func (*VirtualInput) GetPath

func (x *VirtualInput) GetPath() string

func (*VirtualInput) ProtoMessage

func (*VirtualInput) ProtoMessage()

func (*VirtualInput) ProtoReflect

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

func (*VirtualInput) Reset

func (x *VirtualInput) Reset()

func (*VirtualInput) String

func (x *VirtualInput) String() string

Jump to

Keyboard shortcuts

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