Documentation ¶
Index ¶
- Variables
- type BuildInfo
- func (*BuildInfo) Descriptor() ([]byte, []int)
- func (m *BuildInfo) GetCmdServer() string
- func (m *BuildInfo) GetCreator() string
- func (m *BuildInfo) GetDirectory() string
- func (m *BuildInfo) GetHostname() string
- func (m *BuildInfo) GetTimestamp() *timestamp.Timestamp
- func (m *BuildInfo) GetToolchain() string
- func (*BuildInfo) ProtoMessage()
- func (m *BuildInfo) Reset()
- func (m *BuildInfo) String() string
- func (m *BuildInfo) XXX_DiscardUnknown()
- func (m *BuildInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BuildInfo) XXX_Merge(src proto.Message)
- func (m *BuildInfo) XXX_Size() int
- func (m *BuildInfo) XXX_Unmarshal(b []byte) error
- type CmdDescriptor
- func (*CmdDescriptor) Descriptor() ([]byte, []int)
- func (m *CmdDescriptor) GetCross() *CmdDescriptor_Cross
- func (m *CmdDescriptor) GetEmulationOpts() *CmdDescriptor_EmulationOpts
- func (m *CmdDescriptor) GetSelector() *Selector
- func (m *CmdDescriptor) GetSetup() *CmdDescriptor_Setup
- func (*CmdDescriptor) ProtoMessage()
- func (m *CmdDescriptor) Reset()
- func (m *CmdDescriptor) String() string
- func (m *CmdDescriptor) XXX_DiscardUnknown()
- func (m *CmdDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CmdDescriptor) XXX_Merge(src proto.Message)
- func (m *CmdDescriptor) XXX_Size() int
- func (m *CmdDescriptor) XXX_Unmarshal(b []byte) error
- type CmdDescriptor_Cross
- func (*CmdDescriptor_Cross) Descriptor() ([]byte, []int)
- func (m *CmdDescriptor_Cross) GetClangNeedTarget() bool
- func (*CmdDescriptor_Cross) ProtoMessage()
- func (m *CmdDescriptor_Cross) Reset()
- func (m *CmdDescriptor_Cross) String() string
- func (m *CmdDescriptor_Cross) XXX_DiscardUnknown()
- func (m *CmdDescriptor_Cross) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CmdDescriptor_Cross) XXX_Merge(src proto.Message)
- func (m *CmdDescriptor_Cross) XXX_Size() int
- func (m *CmdDescriptor_Cross) XXX_Unmarshal(b []byte) error
- type CmdDescriptor_EmulationOpts
- func (*CmdDescriptor_EmulationOpts) Descriptor() ([]byte, []int)
- func (m *CmdDescriptor_EmulationOpts) GetRespectClientIncludePaths() bool
- func (*CmdDescriptor_EmulationOpts) ProtoMessage()
- func (m *CmdDescriptor_EmulationOpts) Reset()
- func (m *CmdDescriptor_EmulationOpts) String() string
- func (m *CmdDescriptor_EmulationOpts) XXX_DiscardUnknown()
- func (m *CmdDescriptor_EmulationOpts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CmdDescriptor_EmulationOpts) XXX_Merge(src proto.Message)
- func (m *CmdDescriptor_EmulationOpts) XXX_Size() int
- func (m *CmdDescriptor_EmulationOpts) XXX_Unmarshal(b []byte) error
- type CmdDescriptor_PathType
- type CmdDescriptor_Setup
- func (*CmdDescriptor_Setup) Descriptor() ([]byte, []int)
- func (m *CmdDescriptor_Setup) GetCmdDir() string
- func (m *CmdDescriptor_Setup) GetCmdFile() *FileSpec
- func (m *CmdDescriptor_Setup) GetFiles() []*FileSpec
- func (m *CmdDescriptor_Setup) GetPathType() CmdDescriptor_PathType
- func (*CmdDescriptor_Setup) ProtoMessage()
- func (m *CmdDescriptor_Setup) Reset()
- func (m *CmdDescriptor_Setup) String() string
- func (m *CmdDescriptor_Setup) XXX_DiscardUnknown()
- func (m *CmdDescriptor_Setup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CmdDescriptor_Setup) XXX_Merge(src proto.Message)
- func (m *CmdDescriptor_Setup) XXX_Size() int
- func (m *CmdDescriptor_Setup) XXX_Unmarshal(b []byte) error
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetBuildInfo() *BuildInfo
- func (m *Config) GetCmdDescriptor() *CmdDescriptor
- func (m *Config) GetDimensions() []string
- func (m *Config) GetRemoteexecPlatform() *RemoteexecPlatform
- func (m *Config) GetTarget() *Target
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type ConfigMap
- func (*ConfigMap) Descriptor() ([]byte, []int)
- func (m *ConfigMap) GetRuntimes() []*RuntimeConfig
- func (*ConfigMap) ProtoMessage()
- func (m *ConfigMap) Reset()
- func (m *ConfigMap) String() string
- func (m *ConfigMap) XXX_DiscardUnknown()
- func (m *ConfigMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConfigMap) XXX_Merge(src proto.Message)
- func (m *ConfigMap) XXX_Size() int
- func (m *ConfigMap) XXX_Unmarshal(b []byte) error
- type ConfigResp
- func (*ConfigResp) Descriptor() ([]byte, []int)
- func (m *ConfigResp) GetConfigs() []*Config
- func (m *ConfigResp) GetVersionId() string
- func (*ConfigResp) ProtoMessage()
- func (m *ConfigResp) Reset()
- func (m *ConfigResp) String() string
- func (m *ConfigResp) XXX_DiscardUnknown()
- func (m *ConfigResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConfigResp) XXX_Merge(src proto.Message)
- func (m *ConfigResp) XXX_Size() int
- func (m *ConfigResp) XXX_Unmarshal(b []byte) error
- type FileSpec
- func (*FileSpec) Descriptor() ([]byte, []int)
- func (m *FileSpec) GetBlob() *api.FileBlob
- func (m *FileSpec) GetHash() string
- func (m *FileSpec) GetHashKey() string
- func (m *FileSpec) GetIsExecutable() bool
- func (m *FileSpec) GetPath() string
- func (m *FileSpec) GetSize() int64
- func (m *FileSpec) GetSymlink() string
- func (*FileSpec) ProtoMessage()
- func (m *FileSpec) Reset()
- func (m *FileSpec) String() string
- func (m *FileSpec) XXX_DiscardUnknown()
- func (m *FileSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FileSpec) XXX_Merge(src proto.Message)
- func (m *FileSpec) XXX_Size() int
- func (m *FileSpec) XXX_Unmarshal(b []byte) error
- type Install
- func (*Install) Descriptor() ([]byte, []int)
- func (m *Install) GetClangNeedTarget() bool
- func (m *Install) GetFiles() []string
- func (m *Install) GetForSelector() *Install_ForSelector
- func (m *Install) GetKey() string
- func (m *Install) GetPath() string
- func (m *Install) GetPrefix() string
- func (m *Install) GetPrefixStyle() Install_PrefixStyle
- func (*Install) ProtoMessage()
- func (m *Install) Reset()
- func (m *Install) String() string
- func (m *Install) XXX_DiscardUnknown()
- func (m *Install) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Install) XXX_Merge(src proto.Message)
- func (m *Install) XXX_Size() int
- func (m *Install) XXX_Unmarshal(b []byte) error
- type Install_ForSelector
- func (*Install_ForSelector) Descriptor() ([]byte, []int)
- func (m *Install_ForSelector) GetBinaryHashFrom() string
- func (m *Install_ForSelector) GetTarget() string
- func (*Install_ForSelector) ProtoMessage()
- func (m *Install_ForSelector) Reset()
- func (m *Install_ForSelector) String() string
- func (m *Install_ForSelector) XXX_DiscardUnknown()
- func (m *Install_ForSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Install_ForSelector) XXX_Merge(src proto.Message)
- func (m *Install_ForSelector) XXX_Size() int
- func (m *Install_ForSelector) XXX_Unmarshal(b []byte) error
- type Install_PrefixStyle
- type PackageOpts
- func (*PackageOpts) Descriptor() ([]byte, []int)
- func (m *PackageOpts) GetEmulationCommand() string
- func (m *PackageOpts) GetOutputFileFilters() []string
- func (*PackageOpts) ProtoMessage()
- func (m *PackageOpts) Reset()
- func (m *PackageOpts) String() string
- func (m *PackageOpts) XXX_DiscardUnknown()
- func (m *PackageOpts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PackageOpts) XXX_Merge(src proto.Message)
- func (m *PackageOpts) XXX_Size() int
- func (m *PackageOpts) XXX_Unmarshal(b []byte) error
- type Platform
- func (*Platform) Descriptor() ([]byte, []int)
- func (m *Platform) GetProperties() []*Platform_Property
- func (*Platform) ProtoMessage()
- func (m *Platform) Reset()
- func (m *Platform) String() string
- func (m *Platform) XXX_DiscardUnknown()
- func (m *Platform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Platform) XXX_Merge(src proto.Message)
- func (m *Platform) XXX_Size() int
- func (m *Platform) XXX_Unmarshal(b []byte) error
- type PlatformRuntimeConfig
- func (*PlatformRuntimeConfig) Descriptor() ([]byte, []int)
- func (m *PlatformRuntimeConfig) GetDimensions() []string
- func (m *PlatformRuntimeConfig) GetHasNsjail() bool
- func (*PlatformRuntimeConfig) ProtoMessage()
- func (m *PlatformRuntimeConfig) Reset()
- func (m *PlatformRuntimeConfig) String() string
- func (m *PlatformRuntimeConfig) XXX_DiscardUnknown()
- func (m *PlatformRuntimeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlatformRuntimeConfig) XXX_Merge(src proto.Message)
- func (m *PlatformRuntimeConfig) XXX_Size() int
- func (m *PlatformRuntimeConfig) XXX_Unmarshal(b []byte) error
- type Platform_Property
- func (*Platform_Property) Descriptor() ([]byte, []int)
- func (m *Platform_Property) GetName() string
- func (m *Platform_Property) GetValue() string
- func (*Platform_Property) ProtoMessage()
- func (m *Platform_Property) Reset()
- func (m *Platform_Property) String() string
- func (m *Platform_Property) XXX_DiscardUnknown()
- func (m *Platform_Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Platform_Property) XXX_Merge(src proto.Message)
- func (m *Platform_Property) XXX_Size() int
- func (m *Platform_Property) XXX_Unmarshal(b []byte) error
- type RemoteexecPlatform
- func (*RemoteexecPlatform) Descriptor() ([]byte, []int)
- func (m *RemoteexecPlatform) GetHasNsjail() bool
- func (m *RemoteexecPlatform) GetProperties() []*RemoteexecPlatform_Property
- func (m *RemoteexecPlatform) GetRbeInstanceBasename() string
- func (*RemoteexecPlatform) ProtoMessage()
- func (m *RemoteexecPlatform) Reset()
- func (m *RemoteexecPlatform) String() string
- func (m *RemoteexecPlatform) XXX_DiscardUnknown()
- func (m *RemoteexecPlatform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RemoteexecPlatform) XXX_Merge(src proto.Message)
- func (m *RemoteexecPlatform) XXX_Size() int
- func (m *RemoteexecPlatform) XXX_Unmarshal(b []byte) error
- type RemoteexecPlatform_Property
- func (*RemoteexecPlatform_Property) Descriptor() ([]byte, []int)
- func (m *RemoteexecPlatform_Property) GetName() string
- func (m *RemoteexecPlatform_Property) GetValue() string
- func (*RemoteexecPlatform_Property) ProtoMessage()
- func (m *RemoteexecPlatform_Property) Reset()
- func (m *RemoteexecPlatform_Property) String() string
- func (m *RemoteexecPlatform_Property) XXX_DiscardUnknown()
- func (m *RemoteexecPlatform_Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RemoteexecPlatform_Property) XXX_Merge(src proto.Message)
- func (m *RemoteexecPlatform_Property) XXX_Size() int
- func (m *RemoteexecPlatform_Property) XXX_Unmarshal(b []byte) error
- type RuntimeConfig
- func (*RuntimeConfig) Descriptor() ([]byte, []int)
- func (m *RuntimeConfig) GetAllowedPrebuilts() []string
- func (m *RuntimeConfig) GetDisallowedCommands() []*Selector
- func (m *RuntimeConfig) GetDisallowedPrebuilts() []string
- func (m *RuntimeConfig) GetName() string
- func (m *RuntimeConfig) GetPlatform() *Platform
- func (m *RuntimeConfig) GetPlatformRuntimeConfig() *PlatformRuntimeConfig
- func (m *RuntimeConfig) GetServiceAddr() string
- func (*RuntimeConfig) ProtoMessage()
- func (m *RuntimeConfig) Reset()
- func (m *RuntimeConfig) String() string
- func (m *RuntimeConfig) XXX_DiscardUnknown()
- func (m *RuntimeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RuntimeConfig) XXX_Merge(src proto.Message)
- func (m *RuntimeConfig) XXX_Size() int
- func (m *RuntimeConfig) XXX_Unmarshal(b []byte) error
- type Selector
- func (*Selector) Descriptor() ([]byte, []int)
- func (m *Selector) GetBinaryHash() string
- func (m *Selector) GetName() string
- func (m *Selector) GetTarget() string
- func (m *Selector) GetVersion() string
- func (*Selector) ProtoMessage()
- func (m *Selector) Reset()
- func (m *Selector) String() string
- func (m *Selector) XXX_DiscardUnknown()
- func (m *Selector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Selector) XXX_Merge(src proto.Message)
- func (m *Selector) XXX_Size() int
- func (m *Selector) XXX_Unmarshal(b []byte) error
- type Setup
- func (*Setup) Descriptor() ([]byte, []int)
- func (m *Setup) GetInstalls() []*Install
- func (*Setup) ProtoMessage()
- func (m *Setup) Reset()
- func (m *Setup) String() string
- func (m *Setup) XXX_DiscardUnknown()
- func (m *Setup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Setup) XXX_Merge(src proto.Message)
- func (m *Setup) XXX_Size() int
- func (m *Setup) XXX_Unmarshal(b []byte) error
- type Target
- func (*Target) Descriptor() ([]byte, []int)
- func (m *Target) GetAddr() string
- func (*Target) ProtoMessage()
- func (m *Target) Reset()
- func (m *Target) String() string
- func (m *Target) XXX_DiscardUnknown()
- func (m *Target) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Target) XXX_Merge(src proto.Message)
- func (m *Target) XXX_Size() int
- func (m *Target) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var CmdDescriptor_PathType_name = map[int32]string{
0: "UNKNOWN_PATH_TYPE",
1: "POSIX",
2: "WINDOWS",
}
var CmdDescriptor_PathType_value = map[string]int32{
"UNKNOWN_PATH_TYPE": 0,
"POSIX": 1,
"WINDOWS": 2,
}
var Install_PrefixStyle_name = map[int32]string{
0: "ASIS",
1: "REGEXP",
2: "REGEXP_MAY_SKIP_BINARY_HASH_MISSING",
}
var Install_PrefixStyle_value = map[string]int32{
"ASIS": 0,
"REGEXP": 1,
"REGEXP_MAY_SKIP_BINARY_HASH_MISSING": 2,
}
Functions ¶
This section is empty.
Types ¶
type BuildInfo ¶
type BuildInfo struct { // who build this toolchain. Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` // hostname where the toolchain was built. Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"` // current working directory of toolchain build. Directory string `protobuf:"bytes,4,opt,name=directory,proto3" json:"directory,omitempty"` // when this toolchain was built. Timestamp *timestamp.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // full image name of cmd_server container. CmdServer string `protobuf:"bytes,7,opt,name=cmd_server,json=cmdServer,proto3" json:"cmd_server,omitempty"` // full qualified toolchain name (separated by space) Toolchain string `protobuf:"bytes,8,opt,name=toolchain,proto3" json:"toolchain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
BuildInfo is image build info.
func (*BuildInfo) Descriptor ¶
func (*BuildInfo) GetCmdServer ¶
func (*BuildInfo) GetCreator ¶
func (*BuildInfo) GetDirectory ¶
func (*BuildInfo) GetHostname ¶
func (*BuildInfo) GetTimestamp ¶
func (*BuildInfo) GetToolchain ¶
func (*BuildInfo) ProtoMessage ¶
func (*BuildInfo) ProtoMessage()
func (*BuildInfo) XXX_DiscardUnknown ¶
func (m *BuildInfo) XXX_DiscardUnknown()
func (*BuildInfo) XXX_Marshal ¶
func (*BuildInfo) XXX_Unmarshal ¶
type CmdDescriptor ¶
type CmdDescriptor struct { Selector *Selector `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"` Setup *CmdDescriptor_Setup `protobuf:"bytes,2,opt,name=setup,proto3" json:"setup,omitempty"` Cross *CmdDescriptor_Cross `protobuf:"bytes,3,opt,name=cross,proto3" json:"cross,omitempty"` EmulationOpts *CmdDescriptor_EmulationOpts `protobuf:"bytes,6,opt,name=emulation_opts,json=emulationOpts,proto3" json:"emulation_opts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CmdDescriptor is a command descriptor. NEXT ID TO USE: 7
func (*CmdDescriptor) Descriptor ¶
func (*CmdDescriptor) Descriptor() ([]byte, []int)
func (*CmdDescriptor) GetCross ¶
func (m *CmdDescriptor) GetCross() *CmdDescriptor_Cross
func (*CmdDescriptor) GetEmulationOpts ¶
func (m *CmdDescriptor) GetEmulationOpts() *CmdDescriptor_EmulationOpts
func (*CmdDescriptor) GetSelector ¶
func (m *CmdDescriptor) GetSelector() *Selector
func (*CmdDescriptor) GetSetup ¶
func (m *CmdDescriptor) GetSetup() *CmdDescriptor_Setup
func (*CmdDescriptor) ProtoMessage ¶
func (*CmdDescriptor) ProtoMessage()
func (*CmdDescriptor) Reset ¶
func (m *CmdDescriptor) Reset()
func (*CmdDescriptor) String ¶
func (m *CmdDescriptor) String() string
func (*CmdDescriptor) XXX_DiscardUnknown ¶
func (m *CmdDescriptor) XXX_DiscardUnknown()
func (*CmdDescriptor) XXX_Marshal ¶
func (m *CmdDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CmdDescriptor) XXX_Merge ¶
func (m *CmdDescriptor) XXX_Merge(src proto.Message)
func (*CmdDescriptor) XXX_Size ¶
func (m *CmdDescriptor) XXX_Size() int
func (*CmdDescriptor) XXX_Unmarshal ¶
func (m *CmdDescriptor) XXX_Unmarshal(b []byte) error
type CmdDescriptor_Cross ¶
type CmdDescriptor_Cross struct { // If clang_need_target is true, exec_service adds -target <arch> // in args if args does not have -target option. // note: it is clang/clang++ specific. ClangNeedTarget bool `protobuf:"varint,1,opt,name=clang_need_target,json=clangNeedTarget,proto3" json:"clang_need_target,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
cross options (when user's platform and cmd_server's platform differs)
func (*CmdDescriptor_Cross) Descriptor ¶
func (*CmdDescriptor_Cross) Descriptor() ([]byte, []int)
func (*CmdDescriptor_Cross) GetClangNeedTarget ¶
func (m *CmdDescriptor_Cross) GetClangNeedTarget() bool
func (*CmdDescriptor_Cross) ProtoMessage ¶
func (*CmdDescriptor_Cross) ProtoMessage()
func (*CmdDescriptor_Cross) Reset ¶
func (m *CmdDescriptor_Cross) Reset()
func (*CmdDescriptor_Cross) String ¶
func (m *CmdDescriptor_Cross) String() string
func (*CmdDescriptor_Cross) XXX_DiscardUnknown ¶
func (m *CmdDescriptor_Cross) XXX_DiscardUnknown()
func (*CmdDescriptor_Cross) XXX_Marshal ¶
func (m *CmdDescriptor_Cross) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CmdDescriptor_Cross) XXX_Merge ¶
func (m *CmdDescriptor_Cross) XXX_Merge(src proto.Message)
func (*CmdDescriptor_Cross) XXX_Size ¶
func (m *CmdDescriptor_Cross) XXX_Size() int
func (*CmdDescriptor_Cross) XXX_Unmarshal ¶
func (m *CmdDescriptor_Cross) XXX_Unmarshal(b []byte) error
type CmdDescriptor_EmulationOpts ¶
type CmdDescriptor_EmulationOpts struct { // respect_client_include_paths is true if we need to append // include directories sent from goma client to command line. // For example, when we choose a binary is not relocatable, we need to // specify -isystem, -imsvc (or equivalent) RespectClientIncludePaths bool `` /* 141-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
EmulationOpts is used when goma backend cannot fully emulate client environment.
func (*CmdDescriptor_EmulationOpts) Descriptor ¶
func (*CmdDescriptor_EmulationOpts) Descriptor() ([]byte, []int)
func (*CmdDescriptor_EmulationOpts) GetRespectClientIncludePaths ¶
func (m *CmdDescriptor_EmulationOpts) GetRespectClientIncludePaths() bool
func (*CmdDescriptor_EmulationOpts) ProtoMessage ¶
func (*CmdDescriptor_EmulationOpts) ProtoMessage()
func (*CmdDescriptor_EmulationOpts) Reset ¶
func (m *CmdDescriptor_EmulationOpts) Reset()
func (*CmdDescriptor_EmulationOpts) String ¶
func (m *CmdDescriptor_EmulationOpts) String() string
func (*CmdDescriptor_EmulationOpts) XXX_DiscardUnknown ¶
func (m *CmdDescriptor_EmulationOpts) XXX_DiscardUnknown()
func (*CmdDescriptor_EmulationOpts) XXX_Marshal ¶
func (m *CmdDescriptor_EmulationOpts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CmdDescriptor_EmulationOpts) XXX_Merge ¶
func (m *CmdDescriptor_EmulationOpts) XXX_Merge(src proto.Message)
func (*CmdDescriptor_EmulationOpts) XXX_Size ¶
func (m *CmdDescriptor_EmulationOpts) XXX_Size() int
func (*CmdDescriptor_EmulationOpts) XXX_Unmarshal ¶
func (m *CmdDescriptor_EmulationOpts) XXX_Unmarshal(b []byte) error
type CmdDescriptor_PathType ¶
type CmdDescriptor_PathType int32
const ( CmdDescriptor_UNKNOWN_PATH_TYPE CmdDescriptor_PathType = 0 CmdDescriptor_POSIX CmdDescriptor_PathType = 1 CmdDescriptor_WINDOWS CmdDescriptor_PathType = 2 )
func (CmdDescriptor_PathType) EnumDescriptor ¶
func (CmdDescriptor_PathType) EnumDescriptor() ([]byte, []int)
func (CmdDescriptor_PathType) String ¶
func (x CmdDescriptor_PathType) String() string
type CmdDescriptor_Setup ¶
type CmdDescriptor_Setup struct { // If cmd_file.Path is abs path, then this command binary is installed // in image at the path, and no need to setup. when run command, use // this path instead of local_compiler_path. files would be empty. // // If cmd_file.Path is relative path from cmd_dir, then this command // binary is installed at local_compiler_path as cmd run setup. files // would be also installed. CmdFile *FileSpec `protobuf:"bytes,1,opt,name=cmd_file,json=cmdFile,proto3" json:"cmd_file,omitempty"` CmdDir string `protobuf:"bytes,2,opt,name=cmd_dir,json=cmdDir,proto3" json:"cmd_dir,omitempty"` Files []*FileSpec `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"` PathType CmdDescriptor_PathType `protobuf:"varint,4,opt,name=path_type,json=pathType,proto3,enum=command.CmdDescriptor_PathType" json:"path_type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
command binaries to run. it includes driver program (e.g. gcc), and subprograms (e.g. cc1, cc1plus, as, objcopy etc). note: shared objects in standard dirs (/lib, /usr/lib, etc) will be included in image, so no need to install in each run. shared objects specified by RPATH (i.e. $ORIGIN/../lib, e.g. libstdc++.so.6 in chromium-clang) should be specified in files below.
path is represented in path type.
func (*CmdDescriptor_Setup) Descriptor ¶
func (*CmdDescriptor_Setup) Descriptor() ([]byte, []int)
func (*CmdDescriptor_Setup) GetCmdDir ¶
func (m *CmdDescriptor_Setup) GetCmdDir() string
func (*CmdDescriptor_Setup) GetCmdFile ¶
func (m *CmdDescriptor_Setup) GetCmdFile() *FileSpec
func (*CmdDescriptor_Setup) GetFiles ¶
func (m *CmdDescriptor_Setup) GetFiles() []*FileSpec
func (*CmdDescriptor_Setup) GetPathType ¶
func (m *CmdDescriptor_Setup) GetPathType() CmdDescriptor_PathType
func (*CmdDescriptor_Setup) ProtoMessage ¶
func (*CmdDescriptor_Setup) ProtoMessage()
func (*CmdDescriptor_Setup) Reset ¶
func (m *CmdDescriptor_Setup) Reset()
func (*CmdDescriptor_Setup) String ¶
func (m *CmdDescriptor_Setup) String() string
func (*CmdDescriptor_Setup) XXX_DiscardUnknown ¶
func (m *CmdDescriptor_Setup) XXX_DiscardUnknown()
func (*CmdDescriptor_Setup) XXX_Marshal ¶
func (m *CmdDescriptor_Setup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CmdDescriptor_Setup) XXX_Merge ¶
func (m *CmdDescriptor_Setup) XXX_Merge(src proto.Message)
func (*CmdDescriptor_Setup) XXX_Size ¶
func (m *CmdDescriptor_Setup) XXX_Size() int
func (*CmdDescriptor_Setup) XXX_Unmarshal ¶
func (m *CmdDescriptor_Setup) XXX_Unmarshal(b []byte) error
type Config ¶
type Config struct { Target *Target `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` BuildInfo *BuildInfo `protobuf:"bytes,3,opt,name=build_info,json=buildInfo,proto3" json:"build_info,omitempty"` CmdDescriptor *CmdDescriptor `protobuf:"bytes,4,opt,name=cmd_descriptor,json=cmdDescriptor,proto3" json:"cmd_descriptor,omitempty"` RemoteexecPlatform *RemoteexecPlatform `protobuf:"bytes,5,opt,name=remoteexec_platform,json=remoteexecPlatform,proto3" json:"remoteexec_platform,omitempty"` // If this config is configured for arbitrary toolchain support, // set dimensions of the config. Otherwise, this should be nil. Dimensions []string `protobuf:"bytes,6,rep,name=dimensions,proto3" json:"dimensions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Config is a command config; mapping from selector.
func (*Config) Descriptor ¶
func (*Config) GetBuildInfo ¶
func (*Config) GetCmdDescriptor ¶
func (m *Config) GetCmdDescriptor() *CmdDescriptor
func (*Config) GetDimensions ¶
func (*Config) GetRemoteexecPlatform ¶
func (m *Config) GetRemoteexecPlatform() *RemoteexecPlatform
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
type ConfigMap ¶
type ConfigMap struct { Runtimes []*RuntimeConfig `protobuf:"bytes,1,rep,name=runtimes,proto3" json:"runtimes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ConfigMap is a config map; data source of Config. admin creates/updates the file in <bucket>/<config>.config and ConfigMapBucket will read the info.
func (*ConfigMap) Descriptor ¶
func (*ConfigMap) GetRuntimes ¶
func (m *ConfigMap) GetRuntimes() []*RuntimeConfig
func (*ConfigMap) ProtoMessage ¶
func (*ConfigMap) ProtoMessage()
func (*ConfigMap) XXX_DiscardUnknown ¶
func (m *ConfigMap) XXX_DiscardUnknown()
func (*ConfigMap) XXX_Marshal ¶
func (*ConfigMap) XXX_Unmarshal ¶
type ConfigResp ¶
type ConfigResp struct { VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"` Configs []*Config `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
TODO: remove ConfigResp.
func (*ConfigResp) Descriptor ¶
func (*ConfigResp) Descriptor() ([]byte, []int)
func (*ConfigResp) GetConfigs ¶
func (m *ConfigResp) GetConfigs() []*Config
func (*ConfigResp) GetVersionId ¶
func (m *ConfigResp) GetVersionId() string
func (*ConfigResp) ProtoMessage ¶
func (*ConfigResp) ProtoMessage()
func (*ConfigResp) Reset ¶
func (m *ConfigResp) Reset()
func (*ConfigResp) String ¶
func (m *ConfigResp) String() string
func (*ConfigResp) XXX_DiscardUnknown ¶
func (m *ConfigResp) XXX_DiscardUnknown()
func (*ConfigResp) XXX_Marshal ¶
func (m *ConfigResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfigResp) XXX_Merge ¶
func (m *ConfigResp) XXX_Merge(src proto.Message)
func (*ConfigResp) XXX_Size ¶
func (m *ConfigResp) XXX_Size() int
func (*ConfigResp) XXX_Unmarshal ¶
func (m *ConfigResp) XXX_Unmarshal(b []byte) error
type FileSpec ¶
type FileSpec struct { // path in client file system. // may be relative. // for cmd descriptor, it is relative to command binary directory. // (e.g. /usr/bin for /usr/bin/gcc). // for CmdReq, it is relative to working directory specified in cmd.Dir. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` Hash string `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` IsExecutable bool `protobuf:"varint,4,opt,name=is_executable,json=isExecutable,proto3" json:"is_executable,omitempty"` Symlink string `protobuf:"bytes,5,opt,name=symlink,proto3" json:"symlink,omitempty"` // used for goma api. HashKey string `protobuf:"bytes,6,opt,name=hash_key,json=hashKey,proto3" json:"hash_key,omitempty"` Blob *api.FileBlob `protobuf:"bytes,7,opt,name=blob,proto3" json:"blob,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FileSpec is a file metadata. content is identified by hash. NEXT_ID_TO_USE: 9
func (*FileSpec) Descriptor ¶
func (*FileSpec) GetHashKey ¶
func (*FileSpec) GetIsExecutable ¶
func (*FileSpec) GetSymlink ¶
func (*FileSpec) ProtoMessage ¶
func (*FileSpec) ProtoMessage()
func (*FileSpec) XXX_DiscardUnknown ¶
func (m *FileSpec) XXX_DiscardUnknown()
func (*FileSpec) XXX_Marshal ¶
func (*FileSpec) XXX_Unmarshal ¶
type Install ¶
type Install struct { // command key (e.g. "gcc", "clang++") // note that this value will be Selector name in command.proto. // in other words, this value must be the same with matching CommandSpec name // in api/goma_data.proto if the install is a compiler. // i.e. equivalent CompilerFlags::GetCompilerName. // // followings are known compiler keys (as of Jun 2017): // gcc, g++, clang, clang++, cl.exe, clang-cl, javac, ps3ppusnc.exe // // for subprogram etc, it should be basename // e.g. "libFindBadConstructs.so". Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // prefix dir (or toolchain root). Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"` // prefix_style represents how prefix need to be handled. PrefixStyle Install_PrefixStyle `` /* 128-byte string literal not displayed */ // path in prefix dir. // actual binary should be found in "prefix/path". Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // glob for additional files (i.e. wrapper scripts, libs etc). // glob syntax is filepath.Match's. // relative to prefix dir. // if it ends with '/', all files under this dir will be added. Files []string `protobuf:"bytes,4,rep,name=files,proto3" json:"files,omitempty"` ForSelector *Install_ForSelector `protobuf:"bytes,5,opt,name=for_selector,json=forSelector,proto3" json:"for_selector,omitempty"` // clang_need_target is true if --target option is always needed // to run command. // https://clang.llvm.org/docs/CrossCompilation.html#target-triple // this can be also true if exec_server want to use client's raw target. // e.g. set --target x86_64-apple-darwin-10.8.0 sent by client. // note: this is clang/clang++ only. ClangNeedTarget bool `protobuf:"varint,6,opt,name=clang_need_target,json=clangNeedTarget,proto3" json:"clang_need_target,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Install describes which command to be installed. path is represented as server path (posix style), and converted to client path in CmdDescriptor.Setup.
NEXT ID TO USE: 8
func (*Install) Descriptor ¶
func (*Install) GetClangNeedTarget ¶
func (*Install) GetForSelector ¶
func (m *Install) GetForSelector() *Install_ForSelector
func (*Install) GetPrefixStyle ¶
func (m *Install) GetPrefixStyle() Install_PrefixStyle
func (*Install) ProtoMessage ¶
func (*Install) ProtoMessage()
func (*Install) XXX_DiscardUnknown ¶
func (m *Install) XXX_DiscardUnknown()
func (*Install) XXX_Marshal ¶
func (*Install) XXX_Unmarshal ¶
type Install_ForSelector ¶
type Install_ForSelector struct { // target of this cross compile. // this is used for dispatching a compiler as a build target. // note that target must be normalized. // e.g. x86_64-darwin Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` // binary_hash_from represents a filename to calculate hash when selector is // made. // e.g. darwin/third_party/llvm-build/Release+Asserts/bin/clang // // if prefix_style above is either of REGEXP or // REGEXP_MAY_SKIP_BINARY_HASH_MISSING, you can use regexp grouping variable // here. // e.g. if prefix_style is REGEXP, prefix is linux/clang-([0-9]+) and // found clang-12345, binary_hash_from darwin/clang-$1/bin/clang is // automatically converted to darwin/clang-12345/bin/clang when this // field is used. // if prefix_style is REGEXP_MAY_SKIP_BINARY_HASH_MISSING and // darwin/clang-12345/bin/clang does not exist, setup_cmd just skip // to proceed setup of the command without error. BinaryHashFrom string `protobuf:"bytes,2,opt,name=binary_hash_from,json=binaryHashFrom,proto3" json:"binary_hash_from,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ForSelector is used for setting selector for cross compile. selector's name and version is set by compiler specified by prefix and path above. note that setup_cmd in cmd_server is responsible for setting version and equivalent hash, and setting cross option in CmdDescriptor. for compilers, the result of --version option must be the same between ForSelector and Install. for subprograms, the behavior must be the same between ForSelector and Install. ForSelector and Install are expected to be made from the same source code.
func (*Install_ForSelector) Descriptor ¶
func (*Install_ForSelector) Descriptor() ([]byte, []int)
func (*Install_ForSelector) GetBinaryHashFrom ¶
func (m *Install_ForSelector) GetBinaryHashFrom() string
func (*Install_ForSelector) GetTarget ¶
func (m *Install_ForSelector) GetTarget() string
func (*Install_ForSelector) ProtoMessage ¶
func (*Install_ForSelector) ProtoMessage()
func (*Install_ForSelector) Reset ¶
func (m *Install_ForSelector) Reset()
func (*Install_ForSelector) String ¶
func (m *Install_ForSelector) String() string
func (*Install_ForSelector) XXX_DiscardUnknown ¶
func (m *Install_ForSelector) XXX_DiscardUnknown()
func (*Install_ForSelector) XXX_Marshal ¶
func (m *Install_ForSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Install_ForSelector) XXX_Merge ¶
func (m *Install_ForSelector) XXX_Merge(src proto.Message)
func (*Install_ForSelector) XXX_Size ¶
func (m *Install_ForSelector) XXX_Size() int
func (*Install_ForSelector) XXX_Unmarshal ¶
func (m *Install_ForSelector) XXX_Unmarshal(b []byte) error
type Install_PrefixStyle ¶
type Install_PrefixStyle int32
PrefixStyle represents a style of prefix. if it is ASIS, prefix parameter is read as-is. if it is REGEXP, prefix parameter is read as a regular expression. the install is automatically extended to all matching directories. e.g. if there is directory named clang-r123 and clang-r234, and clang-r[0-9]+ is set in prefix, install for both clang-r123 and clang-r234 are made. in this case, you can use grouping i.e. parentheses, and you can use the variables in binary_hash_from field in ForSelector. if it is REGEXP_MAY_OMIT_BINARY_HASH_MISSING, then apply REGEXP rule but skip if a file specified with binary_hash_from is missing.
const ( Install_ASIS Install_PrefixStyle = 0 Install_REGEXP Install_PrefixStyle = 1 Install_REGEXP_MAY_SKIP_BINARY_HASH_MISSING Install_PrefixStyle = 2 )
func (Install_PrefixStyle) EnumDescriptor ¶
func (Install_PrefixStyle) EnumDescriptor() ([]byte, []int)
func (Install_PrefixStyle) String ¶
func (x Install_PrefixStyle) String() string
type PackageOpts ¶
type PackageOpts struct { // emulation_command specifies which emulation layer is necessary for this package. // If empty, it means no emulation layer is necessary. EmulationCommand string `protobuf:"bytes,7,opt,name=emulation_command,json=emulationCommand,proto3" json:"emulation_command,omitempty"` // output_file_filters is a set of regexp to filter output files. OutputFileFilters []string `protobuf:"bytes,5,rep,name=output_file_filters,json=outputFileFilters,proto3" json:"output_file_filters,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PackageOpts is a package option. NEXT_ID_TO_USE: 8
func (*PackageOpts) Descriptor ¶
func (*PackageOpts) Descriptor() ([]byte, []int)
func (*PackageOpts) GetEmulationCommand ¶
func (m *PackageOpts) GetEmulationCommand() string
func (*PackageOpts) GetOutputFileFilters ¶
func (m *PackageOpts) GetOutputFileFilters() []string
func (*PackageOpts) ProtoMessage ¶
func (*PackageOpts) ProtoMessage()
func (*PackageOpts) Reset ¶
func (m *PackageOpts) Reset()
func (*PackageOpts) String ¶
func (m *PackageOpts) String() string
func (*PackageOpts) XXX_DiscardUnknown ¶
func (m *PackageOpts) XXX_DiscardUnknown()
func (*PackageOpts) XXX_Marshal ¶
func (m *PackageOpts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PackageOpts) XXX_Merge ¶
func (m *PackageOpts) XXX_Merge(src proto.Message)
func (*PackageOpts) XXX_Size ¶
func (m *PackageOpts) XXX_Size() int
func (*PackageOpts) XXX_Unmarshal ¶
func (m *PackageOpts) XXX_Unmarshal(b []byte) error
type Platform ¶
type Platform struct { Properties []*Platform_Property `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Platform is a set of requirements, such as haredware, operting system for RBE backend. matched with build.bazel.remote.execution.v2.Platform.
func (*Platform) Descriptor ¶
func (*Platform) GetProperties ¶
func (m *Platform) GetProperties() []*Platform_Property
func (*Platform) ProtoMessage ¶
func (*Platform) ProtoMessage()
func (*Platform) XXX_DiscardUnknown ¶
func (m *Platform) XXX_DiscardUnknown()
func (*Platform) XXX_Marshal ¶
func (*Platform) XXX_Unmarshal ¶
type PlatformRuntimeConfig ¶
type PlatformRuntimeConfig struct { Dimensions []string `protobuf:"bytes,1,rep,name=dimensions,proto3" json:"dimensions,omitempty"` // Set true if nsjail is available in the platform image. HasNsjail bool `protobuf:"varint,2,opt,name=has_nsjail,json=hasNsjail,proto3" json:"has_nsjail,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PlatformRuntimeConfig is a config to use the runtime. NEXT ID TO USE: 3
func (*PlatformRuntimeConfig) Descriptor ¶
func (*PlatformRuntimeConfig) Descriptor() ([]byte, []int)
func (*PlatformRuntimeConfig) GetDimensions ¶
func (m *PlatformRuntimeConfig) GetDimensions() []string
func (*PlatformRuntimeConfig) GetHasNsjail ¶ added in v0.0.4
func (m *PlatformRuntimeConfig) GetHasNsjail() bool
func (*PlatformRuntimeConfig) ProtoMessage ¶
func (*PlatformRuntimeConfig) ProtoMessage()
func (*PlatformRuntimeConfig) Reset ¶
func (m *PlatformRuntimeConfig) Reset()
func (*PlatformRuntimeConfig) String ¶
func (m *PlatformRuntimeConfig) String() string
func (*PlatformRuntimeConfig) XXX_DiscardUnknown ¶
func (m *PlatformRuntimeConfig) XXX_DiscardUnknown()
func (*PlatformRuntimeConfig) XXX_Marshal ¶
func (m *PlatformRuntimeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlatformRuntimeConfig) XXX_Merge ¶
func (m *PlatformRuntimeConfig) XXX_Merge(src proto.Message)
func (*PlatformRuntimeConfig) XXX_Size ¶
func (m *PlatformRuntimeConfig) XXX_Size() int
func (*PlatformRuntimeConfig) XXX_Unmarshal ¶
func (m *PlatformRuntimeConfig) XXX_Unmarshal(b []byte) error
type Platform_Property ¶
type Platform_Property 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Platform_Property) Descriptor ¶
func (*Platform_Property) Descriptor() ([]byte, []int)
func (*Platform_Property) GetName ¶
func (m *Platform_Property) GetName() string
func (*Platform_Property) GetValue ¶
func (m *Platform_Property) GetValue() string
func (*Platform_Property) ProtoMessage ¶
func (*Platform_Property) ProtoMessage()
func (*Platform_Property) Reset ¶
func (m *Platform_Property) Reset()
func (*Platform_Property) String ¶
func (m *Platform_Property) String() string
func (*Platform_Property) XXX_DiscardUnknown ¶
func (m *Platform_Property) XXX_DiscardUnknown()
func (*Platform_Property) XXX_Marshal ¶
func (m *Platform_Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Platform_Property) XXX_Merge ¶
func (m *Platform_Property) XXX_Merge(src proto.Message)
func (*Platform_Property) XXX_Size ¶
func (m *Platform_Property) XXX_Size() int
func (*Platform_Property) XXX_Unmarshal ¶
func (m *Platform_Property) XXX_Unmarshal(b []byte) error
type RemoteexecPlatform ¶
type RemoteexecPlatform struct { Properties []*RemoteexecPlatform_Property `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"` // Basename of RBE instance to use. e.g. "default_instance" or "windows". RbeInstanceBasename string `protobuf:"bytes,2,opt,name=rbe_instance_basename,json=rbeInstanceBasename,proto3" json:"rbe_instance_basename,omitempty"` // Set true if nsjail is available in the platform image. // TODO: deprecated. always requires najail on linux platform. HasNsjail bool `protobuf:"varint,3,opt,name=has_nsjail,json=hasNsjail,proto3" json:"has_nsjail,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RemoteexecPlatform is a set of requirements, such as hardware, operating system, for an remoteexec API.
func (*RemoteexecPlatform) Descriptor ¶
func (*RemoteexecPlatform) Descriptor() ([]byte, []int)
func (*RemoteexecPlatform) GetHasNsjail ¶ added in v0.0.4
func (m *RemoteexecPlatform) GetHasNsjail() bool
func (*RemoteexecPlatform) GetProperties ¶
func (m *RemoteexecPlatform) GetProperties() []*RemoteexecPlatform_Property
func (*RemoteexecPlatform) GetRbeInstanceBasename ¶
func (m *RemoteexecPlatform) GetRbeInstanceBasename() string
func (*RemoteexecPlatform) ProtoMessage ¶
func (*RemoteexecPlatform) ProtoMessage()
func (*RemoteexecPlatform) Reset ¶
func (m *RemoteexecPlatform) Reset()
func (*RemoteexecPlatform) String ¶
func (m *RemoteexecPlatform) String() string
func (*RemoteexecPlatform) XXX_DiscardUnknown ¶
func (m *RemoteexecPlatform) XXX_DiscardUnknown()
func (*RemoteexecPlatform) XXX_Marshal ¶
func (m *RemoteexecPlatform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RemoteexecPlatform) XXX_Merge ¶
func (m *RemoteexecPlatform) XXX_Merge(src proto.Message)
func (*RemoteexecPlatform) XXX_Size ¶
func (m *RemoteexecPlatform) XXX_Size() int
func (*RemoteexecPlatform) XXX_Unmarshal ¶
func (m *RemoteexecPlatform) XXX_Unmarshal(b []byte) error
type RemoteexecPlatform_Property ¶
type RemoteexecPlatform_Property struct { // The property name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The property value. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RemoteexecPlatform_Property) Descriptor ¶
func (*RemoteexecPlatform_Property) Descriptor() ([]byte, []int)
func (*RemoteexecPlatform_Property) GetName ¶
func (m *RemoteexecPlatform_Property) GetName() string
func (*RemoteexecPlatform_Property) GetValue ¶
func (m *RemoteexecPlatform_Property) GetValue() string
func (*RemoteexecPlatform_Property) ProtoMessage ¶
func (*RemoteexecPlatform_Property) ProtoMessage()
func (*RemoteexecPlatform_Property) Reset ¶
func (m *RemoteexecPlatform_Property) Reset()
func (*RemoteexecPlatform_Property) String ¶
func (m *RemoteexecPlatform_Property) String() string
func (*RemoteexecPlatform_Property) XXX_DiscardUnknown ¶
func (m *RemoteexecPlatform_Property) XXX_DiscardUnknown()
func (*RemoteexecPlatform_Property) XXX_Marshal ¶
func (m *RemoteexecPlatform_Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RemoteexecPlatform_Property) XXX_Merge ¶
func (m *RemoteexecPlatform_Property) XXX_Merge(src proto.Message)
func (*RemoteexecPlatform_Property) XXX_Size ¶
func (m *RemoteexecPlatform_Property) XXX_Size() int
func (*RemoteexecPlatform_Property) XXX_Unmarshal ¶
func (m *RemoteexecPlatform_Property) XXX_Unmarshal(b []byte) error
type RuntimeConfig ¶
type RuntimeConfig struct { // name of runtime. // // if this runtime config found in a bucket, // the following files will be detected in this name directory in the bucket: // seq // <prebuilt-item>/descriptors/<descriptorHash> Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // service address for the runtime. i.e. RBE address. ServiceAddr string `protobuf:"bytes,2,opt,name=service_addr,json=serviceAddr,proto3" json:"service_addr,omitempty"` // If not nil, this runtime config will be also configured // for arbitrary toolchain support. // This is selector to use this runtime. i.e. if client request contains // the dimentions, this runtime config will be selected. PlatformRuntimeConfig *PlatformRuntimeConfig `` /* 126-byte string literal not displayed */ // Platform is a set of requirements, such as hardware, operating system // for RBE backend. Platform *Platform `protobuf:"bytes,8,opt,name=platform,proto3" json:"platform,omitempty"` // prebuilts prefix to allow. // if allowed_prebuilts specified, only prebuilts that are matched // by allowed_prebuilts is allowed. other prebuilts are disallowed. // if no allowed_prebuilts specified, any prebuilts are allowed // if it is not disallowed by disallowed_prebuilts. AllowedPrebuilts []string `protobuf:"bytes,3,rep,name=allowed_prebuilts,json=allowedPrebuilts,proto3" json:"allowed_prebuilts,omitempty"` // prebuilts prefix to disallow. // if no disallowed_prebuilts specified, only allowed_prebuilts is used. // if both are not specified, all prebuilts are allowed. DisallowedPrebuilts []string `protobuf:"bytes,4,rep,name=disallowed_prebuilts,json=disallowedPrebuilts,proto3" json:"disallowed_prebuilts,omitempty"` // commands that is disallowed in the runtime. // selector field is used for exact match, if it is specified. // selector field that is not specified in disallowed_commands will // match any selector. DisallowedCommands []*Selector `protobuf:"bytes,5,rep,name=disallowed_commands,json=disallowedCommands,proto3" json:"disallowed_commands,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RuntimeConfig is config for runtime. NEXT ID TO USE: 9
func (*RuntimeConfig) Descriptor ¶
func (*RuntimeConfig) Descriptor() ([]byte, []int)
func (*RuntimeConfig) GetAllowedPrebuilts ¶
func (m *RuntimeConfig) GetAllowedPrebuilts() []string
func (*RuntimeConfig) GetDisallowedCommands ¶
func (m *RuntimeConfig) GetDisallowedCommands() []*Selector
func (*RuntimeConfig) GetDisallowedPrebuilts ¶
func (m *RuntimeConfig) GetDisallowedPrebuilts() []string
func (*RuntimeConfig) GetName ¶
func (m *RuntimeConfig) GetName() string
func (*RuntimeConfig) GetPlatform ¶
func (m *RuntimeConfig) GetPlatform() *Platform
func (*RuntimeConfig) GetPlatformRuntimeConfig ¶
func (m *RuntimeConfig) GetPlatformRuntimeConfig() *PlatformRuntimeConfig
func (*RuntimeConfig) GetServiceAddr ¶
func (m *RuntimeConfig) GetServiceAddr() string
func (*RuntimeConfig) ProtoMessage ¶
func (*RuntimeConfig) ProtoMessage()
func (*RuntimeConfig) Reset ¶
func (m *RuntimeConfig) Reset()
func (*RuntimeConfig) String ¶
func (m *RuntimeConfig) String() string
func (*RuntimeConfig) XXX_DiscardUnknown ¶
func (m *RuntimeConfig) XXX_DiscardUnknown()
func (*RuntimeConfig) XXX_Marshal ¶
func (m *RuntimeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RuntimeConfig) XXX_Merge ¶
func (m *RuntimeConfig) XXX_Merge(src proto.Message)
func (*RuntimeConfig) XXX_Size ¶
func (m *RuntimeConfig) XXX_Size() int
func (*RuntimeConfig) XXX_Unmarshal ¶
func (m *RuntimeConfig) XXX_Unmarshal(b []byte) error
type Selector ¶
type Selector struct { // command name. // name is command base name without version number and architecture. // i.e. it should be equivalent CompilerFlags::GetCompilerName. // e.g. "gcc", "g++", "clang", "libFindBadConstructs.so", // "libFindBadConstructs.dylib". Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // version. e.g. "4.4.3[Ubuntu 4.4.3-4ubuntu5]" Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // compiler's target machine. e.g. gcc -dumpmachine. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // binary hash of the command (sha256, hexencoded) BinaryHash string `protobuf:"bytes,4,opt,name=binary_hash,json=binaryHash,proto3" json:"binary_hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Selector is a command selector. it is used to select a compiler or a subprogram/plugin to run on cmd_server by matching it with CommandSpec or SubprogramSpec in a request from goma client. a subprogram/plugin use name and binary_hash for matching. basename of path in SubprogramSpec should match with name in Selector. TODO: consider also using target.
func (*Selector) Descriptor ¶
func (*Selector) GetBinaryHash ¶
func (*Selector) GetVersion ¶
func (*Selector) ProtoMessage ¶
func (*Selector) ProtoMessage()
func (*Selector) XXX_DiscardUnknown ¶
func (m *Selector) XXX_DiscardUnknown()
func (*Selector) XXX_Marshal ¶
func (*Selector) XXX_Unmarshal ¶
type Setup ¶
type Setup struct { Installs []*Install `protobuf:"bytes,1,rep,name=installs,proto3" json:"installs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Setup) Descriptor ¶
func (*Setup) GetInstalls ¶
func (*Setup) ProtoMessage ¶
func (*Setup) ProtoMessage()
func (*Setup) XXX_DiscardUnknown ¶
func (m *Setup) XXX_DiscardUnknown()
func (*Setup) XXX_Marshal ¶
func (*Setup) XXX_Unmarshal ¶
type Target ¶
type Target struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Target is a target address.
func (*Target) Descriptor ¶
func (*Target) ProtoMessage ¶
func (*Target) ProtoMessage()
func (*Target) XXX_DiscardUnknown ¶
func (m *Target) XXX_DiscardUnknown()