resultpb

package
v0.0.0-...-a70aae3 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 4 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

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 */
	// 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) 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

Jump to

Keyboard shortcuts

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