dirmdpb

package
v0.0.0-...-9febfc8 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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OS_name = map[int32]string{
		0: "OS_UNSPECIFIED",
		1: "LINUX",
		2: "WINDOWS",
		3: "MAC",
		4: "ANDROID",
		5: "IOS",
		6: "CHROME_OS",
		7: "FUCHSIA",
		8: "LACROS",
	}
	OS_value = map[string]int32{
		"OS_UNSPECIFIED": 0,
		"LINUX":          1,
		"WINDOWS":        2,
		"MAC":            3,
		"ANDROID":        4,
		"IOS":            5,
		"CHROME_OS":      6,
		"FUCHSIA":        7,
		"LACROS":         8,
	}
)

Enum value maps for OS.

View Source
var (
	Trinary_name = map[int32]string{
		0: "TRINARY_UNSPECIFIED",
		1: "YES",
		2: "NO",
	}
	Trinary_value = map[string]int32{
		"TRINARY_UNSPECIFIED": 0,
		"YES":                 1,
		"NO":                  2,
	}
)

Enum value maps for Trinary.

View Source
var (
	MappingForm_name = map[int32]string{
		0: "ORIGINAL",
		1: "COMPUTED",
		4: "SPARSE",
		2: "FULL",
		3: "REDUCED",
	}
	MappingForm_value = map[string]int32{
		"ORIGINAL": 0,
		"COMPUTED": 1,
		"SPARSE":   4,
		"FULL":     2,
		"REDUCED":  3,
	}
)

Enum value maps for MappingForm.

View Source
var File_go_chromium_org_infra_tools_dirmd_proto_bq_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_infra_tools_dirmd_proto_component_def_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_infra_tools_dirmd_proto_dir_metadata_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_infra_tools_dirmd_proto_mapping_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Buganizer

type Buganizer struct {

	// The component id. For example, 690873.
	ComponentId int64 `protobuf:"varint,1,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"`
	// contains filtered or unexported fields
}

Buganizer specific metadata.

func (*Buganizer) Descriptor deprecated

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

Deprecated: Use Buganizer.ProtoReflect.Descriptor instead.

func (*Buganizer) GetComponentId

func (x *Buganizer) GetComponentId() int64

func (*Buganizer) ProtoMessage

func (*Buganizer) ProtoMessage()

func (*Buganizer) ProtoReflect

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

func (*Buganizer) Reset

func (x *Buganizer) Reset()

func (*Buganizer) String

func (x *Buganizer) String() string

type ComponentMapping

type ComponentMapping struct {

	// Monorail component path. E.g. "Applications>repo".
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// ID for the corresponding component in Buganizer.
	BuganizerId int64 `protobuf:"varint,2,opt,name=buganizer_id,json=buganizerId,proto3" json:"buganizer_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ComponentMapping) Descriptor deprecated

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

Deprecated: Use ComponentMapping.ProtoReflect.Descriptor instead.

func (*ComponentMapping) GetBuganizerId

func (x *ComponentMapping) GetBuganizerId() int64

func (*ComponentMapping) GetPath

func (x *ComponentMapping) GetPath() string

func (*ComponentMapping) ProtoMessage

func (*ComponentMapping) ProtoMessage()

func (*ComponentMapping) ProtoReflect

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

func (*ComponentMapping) Reset

func (x *ComponentMapping) Reset()

func (*ComponentMapping) String

func (x *ComponentMapping) String() string

type ComponentsConfig

type ComponentsConfig struct {
	ComponentDef []*ComponentMapping `protobuf:"bytes,1,rep,name=component_def,json=componentDef,proto3" json:"component_def,omitempty"`
	// contains filtered or unexported fields
}

TODO(crbug.com/1505875) - Remove this once migration is complete. Note that these definitions are separate from the ones in dir_metadata.proto as these are for compatibility to the mapping definitions migration.

func (*ComponentsConfig) Descriptor deprecated

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

Deprecated: Use ComponentsConfig.ProtoReflect.Descriptor instead.

func (*ComponentsConfig) GetComponentDef

func (x *ComponentsConfig) GetComponentDef() []*ComponentMapping

func (*ComponentsConfig) ProtoMessage

func (*ComponentsConfig) ProtoMessage()

func (*ComponentsConfig) ProtoReflect

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

func (*ComponentsConfig) Reset

func (x *ComponentsConfig) Reset()

func (*ComponentsConfig) String

func (x *ComponentsConfig) String() string

type DirBQRow

type DirBQRow struct {

	// Information about the repository the directory was read from.
	Source *Source `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// Directory name, relative to the root.
	// Examples:
	//   - If the root repo is "~/chromium/src" and it contains subrepo
	//     "~/chromium/src/v8", then dir "foo/bar" will correspond to root repo,
	//     while "v8/baz" will correspond to sub repo "v8".
	//
	// Note that files and dirs are mutually exclusive. See file definition below.
	Dir string `protobuf:"bytes,2,opt,name=dir,proto3" json:"dir,omitempty"`
	// Monorail metadata. Its component field should always map to the same
	// team_email field (see below) for every directory that it is listed in.
	Monorail *Monorail `protobuf:"bytes,3,opt,name=monorail,proto3" json:"monorail,omitempty"`
	// The team responsible for the directory. Only a single email is allowed.
	// For example, “team-email@chromium.org”.
	TeamEmail string `protobuf:"bytes,4,opt,name=team_email,json=teamEmail,proto3" json:"team_email,omitempty"`
	// The code in this directory is specific to this OS.
	Os OS `protobuf:"varint,5,opt,name=os,proto3,enum=chrome.dir_metadata.OS" json:"os,omitempty"`
	// Private buganizer metadata.
	Buganizer *Buganizer `protobuf:"bytes,6,opt,name=buganizer,proto3" json:"buganizer,omitempty"`
	// Public buganizer metadata.
	BuganizerPublic *Buganizer `protobuf:"bytes,7,opt,name=buganizer_public,json=buganizerPublic,proto3" json:"buganizer_public,omitempty"`
	// Team specific metadata.
	TeamSpecificMetadata *TeamSpecific `protobuf:"bytes,8,opt,name=team_specific_metadata,json=teamSpecificMetadata,proto3" json:"team_specific_metadata,omitempty"`
	// Partition_time is used to partition the table.
	// It is the time dirmd starts the BigQuery export process.
	PartitionTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=partition_time,json=partitionTime,proto3" json:"partition_time,omitempty"`
	// File path, relative to the root.
	// Directory metadata can be overridden with path information. The same rules
	// apply as dir, except should end with a file name. Note that dirs and files
	// are mutually exclusive.
	File string `protobuf:"bytes,10,opt,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

DirBQRow describes a row in BigQuery table for dir metadata.

func (*DirBQRow) Descriptor deprecated

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

Deprecated: Use DirBQRow.ProtoReflect.Descriptor instead.

func (*DirBQRow) GetBuganizer

func (x *DirBQRow) GetBuganizer() *Buganizer

func (*DirBQRow) GetBuganizerPublic

func (x *DirBQRow) GetBuganizerPublic() *Buganizer

func (*DirBQRow) GetDir

func (x *DirBQRow) GetDir() string

func (*DirBQRow) GetFile

func (x *DirBQRow) GetFile() string

func (*DirBQRow) GetMonorail

func (x *DirBQRow) GetMonorail() *Monorail

func (*DirBQRow) GetOs

func (x *DirBQRow) GetOs() OS

func (*DirBQRow) GetPartitionTime

func (x *DirBQRow) GetPartitionTime() *timestamppb.Timestamp

func (*DirBQRow) GetSource

func (x *DirBQRow) GetSource() *Source

func (*DirBQRow) GetTeamEmail

func (x *DirBQRow) GetTeamEmail() string

func (*DirBQRow) GetTeamSpecificMetadata

func (x *DirBQRow) GetTeamSpecificMetadata() *TeamSpecific

func (*DirBQRow) ProtoMessage

func (*DirBQRow) ProtoMessage()

func (*DirBQRow) ProtoReflect

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

func (*DirBQRow) Reset

func (x *DirBQRow) Reset()

func (*DirBQRow) String

func (x *DirBQRow) String() string

type Mapping

type Mapping struct {

	// Dirs maps from a directory to its metadata.
	//
	// The key is directory name, relative to the root.
	// The key must use forward slash as directory separator.
	// The key must be clean: https://pkg.go.dev/path?tab=doc#Clean
	// Special key "." represents the root directory.
	//
	// The root must be known from the context where Mapping is used and is not
	// part of the this message.
	Dirs map[string]*Metadata `` /* 135-byte string literal not displayed */
	// Files maps file paths to its metadata.
	//
	// The key is a path to the file, relatives to the root.
	// The same rules for the key should apply here as defined by dirs, except
	// that the key should point to a file.
	//
	// Unlike dirs, files will not have a guaranteed entry in FULL mapping form
	// since it is required to have a DIR_METADATA file to define file overrides,
	// and the file overrides are processed once the DIR_METADATA file is read in.
	Files map[string]*Metadata `` /* 137-byte string literal not displayed */
	// Repos contains information about the repositories that Mapping.dirs were
	// read from. Repos can be used to tell which repository a given directory
	// came from. Also it contains loaded mixins, referred to by Mapping.mixins.
	//
	// The map key is slash-separated path relative to the root repo.
	// Examples:
	//   - If there is only one repo, then the only key is ".".
	//   - If the root repo is "~/chromium/src" and it contains subrepo
	//     "~/chromium/src/v8", then Mapping.repos will have keys "." and "v8".
	//     In this case Mapping.dirs key "foo/bar" will correspond to Repo key ".",
	//     while "v8/baz" will correspond to Repo key "v8".
	Repos map[string]*Repo `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

Maps from a directory to its metadata.

func (*Mapping) Descriptor deprecated

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

Deprecated: Use Mapping.ProtoReflect.Descriptor instead.

func (*Mapping) GetDirs

func (x *Mapping) GetDirs() map[string]*Metadata

func (*Mapping) GetFiles

func (x *Mapping) GetFiles() map[string]*Metadata

func (*Mapping) GetRepos

func (x *Mapping) GetRepos() map[string]*Repo

func (*Mapping) ProtoMessage

func (*Mapping) ProtoMessage()

func (*Mapping) ProtoReflect

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

func (*Mapping) Reset

func (x *Mapping) Reset()

func (*Mapping) String

func (x *Mapping) String() string

type MappingForm

type MappingForm int32

A known form of the Mapping.

const (
	// The mapping represents the metadata files as is.
	// The metadata messages in Mapping.Dirs does not include inherited or
	// mixed-in metadata.
	MappingForm_ORIGINAL MappingForm = 0
	// Like ORIGINAL, but each Mapping.Dirs entry includes inherited and mixed-in
	//
	//	metadata.
	//
	// To avoid accidental double importing, Metadata.mixins field is cleared
	// in the COMPUTED form.
	MappingForm_COMPUTED MappingForm = 1
	// Like COMPUTED, but the mapping contains metadata only for the explicitly
	// specified directories. For example, if metadata was requested for
	// directories "foo/bar" and "foo/baz", then the mapping will contain only
	// them, and not include "foo" or "foo/bar/qux".
	//
	// Typically reading a sparse mapping is much faster.
	MappingForm_SPARSE MappingForm = 4
	// Like COMPUTED, but a Mapping.Dirs entry exists even if the directory does
	// not define its own, directory-specific metadata.
	// This is the most verbose/redundant form.
	MappingForm_FULL MappingForm = 2
	// Like ORIGINAL, but all the redundant metadata is removed.
	// For example, it is redundant to specify the same value for the same
	// metadata attribute in both "a" and "a/b".
	// It is also redundant to have a Mapping.Dirs entry with empty metadata.
	// This is the most compact form without a dataloss.
	MappingForm_REDUCED MappingForm = 3
)

func (MappingForm) Descriptor

func (MappingForm) Enum

func (x MappingForm) Enum() *MappingForm

func (MappingForm) EnumDescriptor deprecated

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

Deprecated: Use MappingForm.Descriptor instead.

func (MappingForm) Number

func (x MappingForm) Number() protoreflect.EnumNumber

func (MappingForm) String

func (x MappingForm) String() string

func (MappingForm) Type

type Metadata

type Metadata struct {

	// Paths to Metadata files to import into this file.
	//
	// A mixin is imported AS IS, without inheritance from its ancestors.
	// To prevent confusion, a mixin's base name may not be DIR_METADATA.
	// Instead, the file name must entail its scope, e.g. the software component
	// that it is describing.
	//
	// Mixins can be useful to reduce duplication of metadata across the repo.
	// For example in Java, implementation and tests of the same feature live in
	// different directories. Common metadata can be placed in a mixin, and then
	// imported by DIR_METADATA files in both directories.
	//
	// A path must be source-absolute, e.g. "//components/autofill/COMMON_METADATA"
	// Here the root is the root of the repository which contains the current
	// file.
	//
	// Precedence:
	//   - Mixins override values in the parent directory.
	//   - The order of mixins is significant: if the same attribute is defined in
	//     two mixins, then the later one wins.
	//   - Values defined in the importee override values in the mixins.
	//
	// Importing mixins in mixins is not supported.
	// Only DIR_METADATA files are allowed to use this field.
	Mixins []string `protobuf:"bytes,10,rep,name=mixins,proto3" json:"mixins,omitempty"`
	// Monorail metadata. Its component field should always map to the same
	// team_email field (see below) for every directory that it is listed in.
	Monorail *Monorail `protobuf:"bytes,1,opt,name=monorail,proto3" json:"monorail,omitempty"`
	// The team responsible for the directory. Only a single email is allowed.
	// For example, “team-email@chromium.org”.
	TeamEmail string `protobuf:"bytes,2,opt,name=team_email,json=teamEmail,proto3" json:"team_email,omitempty"`
	// The code in this directory is specific to this OS.
	Os OS `protobuf:"varint,3,opt,name=os,proto3,enum=chrome.dir_metadata.OS" json:"os,omitempty"`
	// WPT-specific metadata.
	Wpt *WPT `protobuf:"bytes,4,opt,name=wpt,proto3" json:"wpt,omitempty"`
	// Private buganizer metadata.
	Buganizer *Buganizer `protobuf:"bytes,5,opt,name=buganizer,proto3" json:"buganizer,omitempty"`
	// ResultDB tags.
	Resultdb *ResultDB `protobuf:"bytes,6,opt,name=resultdb,proto3" json:"resultdb,omitempty"`
	// Public buganizer metadata.
	BuganizerPublic *Buganizer `protobuf:"bytes,7,opt,name=buganizer_public,json=buganizerPublic,proto3" json:"buganizer_public,omitempty"`
	// ChromeOS specific metadata.
	Chromeos *chromeos.ChromeOS `protobuf:"bytes,9,opt,name=chromeos,proto3" json:"chromeos,omitempty"`
	// Metadata Overrides
	//
	// Used for files that require different Metadata from the one specified in
	// the same dir or inherited from levels above. Override metadata should only
	// apply to files within the directory specified, and cannot be inherited,
	// meaning that it only applies to the files directly specified in the
	// directory. For example, overrides in a/*.txt will not apply to files in
	// a/b/*.txt. Values for Metadata specified in these ovrrides should follow
	// the same rules. Mixins defined under overrides are not supported.
	Overrides []*MetadataOverride `protobuf:"bytes,11,rep,name=overrides,proto3" json:"overrides,omitempty"`
	// contains filtered or unexported fields
}

Metadata information for a directory.

Individual fields/subfields are inherited by subdirectories. For example, if a/DIR_METADATA specifies `monorail.project="chromium"` and a/b/DIR_METADATA file exists and does not specify `monorail.project`, then `a/b`'s Monorail project is "chromium". Note: this semantics can be extended to opt-out individual fields from inheritance.

func (*Metadata) Descriptor deprecated

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

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetBuganizer

func (x *Metadata) GetBuganizer() *Buganizer

func (*Metadata) GetBuganizerPublic

func (x *Metadata) GetBuganizerPublic() *Buganizer

func (*Metadata) GetChromeos

func (x *Metadata) GetChromeos() *chromeos.ChromeOS

func (*Metadata) GetMixins

func (x *Metadata) GetMixins() []string

func (*Metadata) GetMonorail

func (x *Metadata) GetMonorail() *Monorail

func (*Metadata) GetOs

func (x *Metadata) GetOs() OS

func (*Metadata) GetOverrides

func (x *Metadata) GetOverrides() []*MetadataOverride

func (*Metadata) GetResultdb

func (x *Metadata) GetResultdb() *ResultDB

func (*Metadata) GetTeamEmail

func (x *Metadata) GetTeamEmail() string

func (*Metadata) GetWpt

func (x *Metadata) GetWpt() *WPT

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

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

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

type MetadataOverride

type MetadataOverride struct {

	// a list of regex strings defining file_patterns.
	//
	// all file_patterns listed here are relative to the location of the
	// DIR_METADATA file. file patterns listed here are directly passed to git
	// ls-files to find all files associated with that pattern. for example, if
	// DIR_METADATA is specified at a/b/DIR_METADATA, and file_pattern is
	// \*.proto, `git ls-files --full-name a/b/\*.proto` will be run to identify
	// files.
	FilePatterns []string `protobuf:"bytes,1,rep,name=file_patterns,json=filePatterns,proto3" json:"file_patterns,omitempty"`
	// Note that mixin imports are not supported for override definitions.
	Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

Metadata override definition

func (*MetadataOverride) Descriptor deprecated

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

Deprecated: Use MetadataOverride.ProtoReflect.Descriptor instead.

func (*MetadataOverride) GetFilePatterns

func (x *MetadataOverride) GetFilePatterns() []string

func (*MetadataOverride) GetMetadata

func (x *MetadataOverride) GetMetadata() *Metadata

func (*MetadataOverride) ProtoMessage

func (*MetadataOverride) ProtoMessage()

func (*MetadataOverride) ProtoReflect

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

func (*MetadataOverride) Reset

func (x *MetadataOverride) Reset()

func (*MetadataOverride) String

func (x *MetadataOverride) String() string

type Monorail

type Monorail struct {

	// The Monorail project. For example, “chromium”.
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// The Monorail component. For example, “UI>Browser>Zoom”.
	// Only a single component is allowed.
	Component string `protobuf:"bytes,2,opt,name=component,proto3" json:"component,omitempty"`
	// contains filtered or unexported fields
}

Monorail specific metadata.

func (*Monorail) Descriptor deprecated

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

Deprecated: Use Monorail.ProtoReflect.Descriptor instead.

func (*Monorail) GetComponent

func (x *Monorail) GetComponent() string

func (*Monorail) GetProject

func (x *Monorail) GetProject() string

func (*Monorail) ProtoMessage

func (*Monorail) ProtoMessage()

func (*Monorail) ProtoReflect

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

func (*Monorail) Reset

func (x *Monorail) Reset()

func (*Monorail) String

func (x *Monorail) String() string

type OS

type OS int32

Supported OS to tag a directory.

const (
	OS_OS_UNSPECIFIED OS = 0
	OS_LINUX          OS = 1
	OS_WINDOWS        OS = 2
	OS_MAC            OS = 3
	OS_ANDROID        OS = 4
	OS_IOS            OS = 5
	OS_CHROME_OS      OS = 6
	OS_FUCHSIA        OS = 7
	OS_LACROS         OS = 8
)

func (OS) Descriptor

func (OS) Descriptor() protoreflect.EnumDescriptor

func (OS) Enum

func (x OS) Enum() *OS

func (OS) EnumDescriptor deprecated

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

Deprecated: Use OS.Descriptor instead.

func (OS) Number

func (x OS) Number() protoreflect.EnumNumber

func (OS) String

func (x OS) String() string

func (OS) Type

func (OS) Type() protoreflect.EnumType

type Repo

type Repo struct {

	// Mixins are metadata files referred to by Metadata.mixins in Mapping.dirs.
	// The map keys are Metadata.mixins elements, see that field comment.
	// A valid Mapping contains a Repo.mixins entry for each
	// Metadata.mixins entry in Mapping.dirs, for directories that reside in
	// this repo.
	Mixins map[string]*Metadata `` /* 139-byte string literal not displayed */
	// contains filtered or unexported fields
}

Information about the repository that metadata was read from.

func (*Repo) Descriptor deprecated

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

Deprecated: Use Repo.ProtoReflect.Descriptor instead.

func (*Repo) GetMixins

func (x *Repo) GetMixins() map[string]*Metadata

func (*Repo) ProtoMessage

func (*Repo) ProtoMessage()

func (*Repo) ProtoReflect

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

func (*Repo) Reset

func (x *Repo) Reset()

func (*Repo) String

func (x *Repo) String() string

type ResultDB

type ResultDB struct {

	// A list of tags to be attached to results of tests defined in a directory.
	// Each tag must be formatted as "key:value", and keys can be repeated.
	Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

ResultDB contains a list of tags to be attached to results of tests defined in a directory.

func (*ResultDB) Descriptor deprecated

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

Deprecated: Use ResultDB.ProtoReflect.Descriptor instead.

func (*ResultDB) GetTags

func (x *ResultDB) GetTags() []string

func (*ResultDB) ProtoMessage

func (*ResultDB) ProtoMessage()

func (*ResultDB) ProtoReflect

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

func (*ResultDB) Reset

func (x *ResultDB) Reset()

func (*ResultDB) String

func (x *ResultDB) String() string

type Source

type Source struct {

	// Git hostname, e.g. "chromium.googlesource.com".
	GitHost string `protobuf:"bytes,1,opt,name=git_host,json=gitHost,proto3" json:"git_host,omitempty"`
	// Root repository name on the host, e.g. "chromium/src".
	RootRepo string `protobuf:"bytes,2,opt,name=root_repo,json=rootRepo,proto3" json:"root_repo,omitempty"`
	// Sub repository name on the host, e.g. "v8".
	SubRepo string `protobuf:"bytes,3,opt,name=sub_repo,json=subRepo,proto3" json:"sub_repo,omitempty"`
	// Commit ref, e.g. "refs/heads/main".
	Ref string `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"`
	// Commit HEX SHA1.
	Revision string `protobuf:"bytes,5,opt,name=revision,proto3" json:"revision,omitempty"`
	// contains filtered or unexported fields
}

Information about where the directory was read from.

func (*Source) Descriptor deprecated

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

Deprecated: Use Source.ProtoReflect.Descriptor instead.

func (*Source) GetGitHost

func (x *Source) GetGitHost() string

func (*Source) GetRef

func (x *Source) GetRef() string

func (*Source) GetRevision

func (x *Source) GetRevision() string

func (*Source) GetRootRepo

func (x *Source) GetRootRepo() string

func (*Source) GetSubRepo

func (x *Source) GetSubRepo() string

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) ProtoReflect

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

func (*Source) Reset

func (x *Source) Reset()

func (*Source) String

func (x *Source) String() string

type TeamSpecific

type TeamSpecific struct {

	// WPT-specific metadata.
	Wpt *WPT `protobuf:"bytes,1,opt,name=wpt,proto3" json:"wpt,omitempty"`
	// ChromeOS-specific metadata.
	Chromeos *chromeos.ChromeOS `protobuf:"bytes,2,opt,name=chromeos,proto3" json:"chromeos,omitempty"`
	// contains filtered or unexported fields
}

Team specific metadata.

func (*TeamSpecific) Descriptor deprecated

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

Deprecated: Use TeamSpecific.ProtoReflect.Descriptor instead.

func (*TeamSpecific) GetChromeos

func (x *TeamSpecific) GetChromeos() *chromeos.ChromeOS

func (*TeamSpecific) GetWpt

func (x *TeamSpecific) GetWpt() *WPT

func (*TeamSpecific) ProtoMessage

func (*TeamSpecific) ProtoMessage()

func (*TeamSpecific) ProtoReflect

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

func (*TeamSpecific) Reset

func (x *TeamSpecific) Reset()

func (*TeamSpecific) String

func (x *TeamSpecific) String() string

type Trinary

type Trinary int32

Trinary is a tri-state boolean.

It is convenient for conceptually-boolean fields that need inheritance. Plain bool does not work well because proto3 does not distinguish between false and absence of the value. Unlike bool, the default value of Trinary is TRINARY_UNSPECIFIED which is different from NO.

Unfortunately the JSON representation are strings "YES" and "NO", as opposed to more natural true and false. The alternative to Trinary is BoolValue https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/wrappers.proto#L101 which has JSON representation as `true` and `false`, but then the text-proto representation is verbose: `wpt { notify { value: true }}`. Given that we will have more DIR_METADATA files than code that interprets the files, we make a choice in favor of clean DIR_METADATA files.

const (
	Trinary_TRINARY_UNSPECIFIED Trinary = 0
	Trinary_YES                 Trinary = 1
	Trinary_NO                  Trinary = 2
)

func (Trinary) Descriptor

func (Trinary) Descriptor() protoreflect.EnumDescriptor

func (Trinary) Enum

func (x Trinary) Enum() *Trinary

func (Trinary) EnumDescriptor deprecated

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

Deprecated: Use Trinary.Descriptor instead.

func (Trinary) Number

func (x Trinary) Number() protoreflect.EnumNumber

func (Trinary) String

func (x Trinary) String() string

func (Trinary) Type

func (Trinary) Type() protoreflect.EnumType

type WPT

type WPT struct {

	// Whether wpt-importer should notify the team about new failures.
	Notify Trinary `protobuf:"varint,1,opt,name=notify,proto3,enum=chrome.dir_metadata.Trinary" json:"notify,omitempty"`
	// contains filtered or unexported fields
}

WPT is WebPlatformTest-specific metadata.

func (*WPT) Descriptor deprecated

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

Deprecated: Use WPT.ProtoReflect.Descriptor instead.

func (*WPT) GetNotify

func (x *WPT) GetNotify() Trinary

func (*WPT) ProtoMessage

func (*WPT) ProtoMessage()

func (*WPT) ProtoReflect

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

func (*WPT) Reset

func (x *WPT) Reset()

func (*WPT) String

func (x *WPT) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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