configpb

package
v0.0.0-...-f21694e Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_go_chromium_org_luci_resultdb_proto_config_config_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_resultdb_proto_config_project_config_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_resultdb_proto_config_scheme_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BqArtifactExportConfig

type BqArtifactExportConfig struct {

	// Whether the export to BigQuery is enabled.
	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// The percent of artifacts that should be exported to BigQuery.
	// This allows us to roll out the change incrementally.
	// This value must be an integer between [0, 100].
	ExportPercent int64 `protobuf:"varint,2,opt,name=export_percent,json=exportPercent,proto3" json:"export_percent,omitempty"`
	// contains filtered or unexported fields
}

BqArtifactExportConfig contains the configuration to export artifact content to BigQuery.

func (*BqArtifactExportConfig) Descriptor deprecated

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

Deprecated: Use BqArtifactExportConfig.ProtoReflect.Descriptor instead.

func (*BqArtifactExportConfig) GetEnabled

func (x *BqArtifactExportConfig) GetEnabled() bool

func (*BqArtifactExportConfig) GetExportPercent

func (x *BqArtifactExportConfig) GetExportPercent() int64

func (*BqArtifactExportConfig) ProtoMessage

func (*BqArtifactExportConfig) ProtoMessage()

func (*BqArtifactExportConfig) ProtoReflect

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

func (*BqArtifactExportConfig) Reset

func (x *BqArtifactExportConfig) Reset()

func (*BqArtifactExportConfig) String

func (x *BqArtifactExportConfig) String() string

type Config

type Config struct {

	// Control the export of artifact from BatchCreateArtifact.
	// Going to be deprecate soon.
	BqArtifactExportConfig *BqArtifactExportConfig `` /* 131-byte string literal not displayed */
	// Control the export of artifact in the artifactexporter service.
	BqArtifactExporterServiceConfig *BqArtifactExportConfig `` /* 160-byte string literal not displayed */
	// Test schemes supported by the deployment.
	Schemes []*Scheme `protobuf:"bytes,3,rep,name=schemes,proto3" json:"schemes,omitempty"`
	// contains filtered or unexported fields
}

Config is the service-wide configuration data for Luci ResultDB.

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetBqArtifactExportConfig

func (x *Config) GetBqArtifactExportConfig() *BqArtifactExportConfig

func (*Config) GetBqArtifactExporterServiceConfig

func (x *Config) GetBqArtifactExporterServiceConfig() *BqArtifactExportConfig

func (*Config) GetSchemes

func (x *Config) GetSchemes() []*Scheme

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type GcsAllowList

type GcsAllowList struct {

	// The users allowed to reference the specified buckets.
	// Each user is a LUCI Auth identity string, e.g. user:username@email.com
	// For all available identity kinds see luci/auth/identity/identity.go
	Users []string `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// GCS buckets the user is allowed to reference.
	Buckets []string `protobuf:"bytes,2,rep,name=buckets,proto3" json:"buckets,omitempty"`
	// contains filtered or unexported fields
}

Capture the per user GCS bucket allow list.

func (*GcsAllowList) Descriptor deprecated

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

Deprecated: Use GcsAllowList.ProtoReflect.Descriptor instead.

func (*GcsAllowList) GetBuckets

func (x *GcsAllowList) GetBuckets() []string

func (*GcsAllowList) GetUsers

func (x *GcsAllowList) GetUsers() []string

func (*GcsAllowList) ProtoMessage

func (*GcsAllowList) ProtoMessage()

func (*GcsAllowList) ProtoReflect

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

func (*GcsAllowList) Reset

func (x *GcsAllowList) Reset()

func (*GcsAllowList) String

func (x *GcsAllowList) String() string

type ProjectConfig

type ProjectConfig struct {

	// Per user allow list to control GCS buckets that can be referenced as
	// artifacts in ResultDB invocations.
	// Since ResultDB returns GCS artifacts through signed urls, the allow list
	// is needed to prevent potential exploit where user could gain access to
	// artifacts in GCS buckets they don't have access to by feigning the
	// uploaded artifact GCS path.
	GcsAllowList []*GcsAllowList `protobuf:"bytes,1,rep,name=gcs_allow_list,json=gcsAllowList,proto3" json:"gcs_allow_list,omitempty"`
	// contains filtered or unexported fields
}

ProjectConfig is the project-specific configuration data for Luci ResultDB.

func (*ProjectConfig) Descriptor deprecated

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

Deprecated: Use ProjectConfig.ProtoReflect.Descriptor instead.

func (*ProjectConfig) GetGcsAllowList

func (x *ProjectConfig) GetGcsAllowList() []*GcsAllowList

func (*ProjectConfig) ProtoMessage

func (*ProjectConfig) ProtoMessage()

func (*ProjectConfig) ProtoReflect

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

func (*ProjectConfig) Reset

func (x *ProjectConfig) Reset()

func (*ProjectConfig) String

func (x *ProjectConfig) String() string

type Scheme

type Scheme struct {

	// The identifier for the scheme, e.g. 'junit'.
	//
	// Limited to ^[a-z][a-z0-9]{0,19}$.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// A human readable name for the scheme, describing the test type.
	// For example, "JUnit" or "Web Tests".
	//
	// Please pay attention to capitalisation (should be similar to examples above)
	// and avoid any punctuation.
	HumanReadableName string `protobuf:"bytes,2,opt,name=human_readable_name,json=humanReadableName,proto3" json:"human_readable_name,omitempty"`
	// The coarse level in the test hierarchy. Optional.
	//
	// If it is set, this level is enabled and a value for this hierarchy level must be set
	// for all test results using this scheme.
	// If it is not set, a value for this hierarchy level must NOT be set for test results
	// using this scheme.
	//
	// Enabling or disabling a hierarchy level after it has been created is not permitted unless
	// no data has been uploaded for the scheme.
	//
	// If only one of coarse and fine hierarchy should be enabled, enable the fine hierarchy
	// only.
	Coarse *Scheme_Level `protobuf:"bytes,3,opt,name=coarse,proto3" json:"coarse,omitempty"`
	// The fine level in the test hierarchy. Optional.
	//
	// If it is set, this level is enabled and a value for this hierarchy level must be set
	// for all test results using this scheme.
	// If it is not set, a value for this hierarchy level must NOT be set for test results
	// using this scheme.
	//
	// Enabling or disabling a hierarchy level on a scheme after it is already being used
	// will result in existing uploads breaking and break presentation of already uploaded
	// data. Please use extreme caution if doing this; generally, it is better to define
	// a new scheme instead.
	Fine *Scheme_Level `protobuf:"bytes,4,opt,name=fine,proto3" json:"fine,omitempty"`
	// The finest level in the test hierarchy (e.g. test method, test case). Required.
	Case *Scheme_Level `protobuf:"bytes,5,opt,name=case,proto3" json:"case,omitempty"`
	// contains filtered or unexported fields
}

A scheme represents a kind of test type. For example, a JUnit tests or Google Tests. Schemes control how tests with that type are presented on the UI.

Tests are associated with a type at the module level, via the module type field.

Schemes are ResultDB deployment-level configuration.

Next id: 5.

func (*Scheme) Descriptor deprecated

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

Deprecated: Use Scheme.ProtoReflect.Descriptor instead.

func (*Scheme) GetCase

func (x *Scheme) GetCase() *Scheme_Level

func (*Scheme) GetCoarse

func (x *Scheme) GetCoarse() *Scheme_Level

func (*Scheme) GetFine

func (x *Scheme) GetFine() *Scheme_Level

func (*Scheme) GetHumanReadableName

func (x *Scheme) GetHumanReadableName() string

func (*Scheme) GetId

func (x *Scheme) GetId() string

func (*Scheme) ProtoMessage

func (*Scheme) ProtoMessage()

func (*Scheme) ProtoReflect

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

func (*Scheme) Reset

func (x *Scheme) Reset()

func (*Scheme) String

func (x *Scheme) String() string

type Scheme_Level

type Scheme_Level struct {

	// The human readable name for the hierarchy level, as it should appear on the UI.
	// For example, "Package", "Class" or "Method".
	//
	// Please pay attention to capitalisation (should be similar to examples above)
	// and avoid any punctuation.
	//
	// Required.
	HumanReadableName string `protobuf:"bytes,1,opt,name=human_readable_name,json=humanReadableName,proto3" json:"human_readable_name,omitempty"`
	// The regexp that defines valid values for this field. The value here will be
	// wrapped in ^...$. Validation will apply to all newly uploaded test results.
	// Use RE2 syntax.
	//
	// If blank, all values are taken to be valid.
	//
	// Please take care changing this value, as uploads may start to fail.
	ValidationRegexp string `protobuf:"bytes,2,opt,name=validation_regexp,json=validationRegexp,proto3" json:"validation_regexp,omitempty"`
	// contains filtered or unexported fields
}

Configuration for a level of test hierarchy.

func (*Scheme_Level) Descriptor deprecated

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

Deprecated: Use Scheme_Level.ProtoReflect.Descriptor instead.

func (*Scheme_Level) GetHumanReadableName

func (x *Scheme_Level) GetHumanReadableName() string

func (*Scheme_Level) GetValidationRegexp

func (x *Scheme_Level) GetValidationRegexp() string

func (*Scheme_Level) ProtoMessage

func (*Scheme_Level) ProtoMessage()

func (*Scheme_Level) ProtoReflect

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

func (*Scheme_Level) Reset

func (x *Scheme_Level) Reset()

func (*Scheme_Level) String

func (x *Scheme_Level) String() string

Jump to

Keyboard shortcuts

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