proto

package
v0.0.0-...-9b59340 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_rollers_cfg_proto protoreflect.FileDescriptor

Functions

func ProtoToMap

func ProtoToMap(m proto.Message) (map[string]any, error)

ProtoToMap converts a proto message to a Go map.

Types

type CIPDEnsureFile

type CIPDEnsureFile struct {

	// Path to the CIPD ensure file.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// CIPD ref to track. Default is "latest".
	Ref string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	// contains filtered or unexported fields
}

A CIPD ensure file containing packages to roll.

func (*CIPDEnsureFile) Descriptor deprecated

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

Deprecated: Use CIPDEnsureFile.ProtoReflect.Descriptor instead.

func (*CIPDEnsureFile) GetPath

func (x *CIPDEnsureFile) GetPath() string

func (*CIPDEnsureFile) GetRef

func (x *CIPDEnsureFile) GetRef() string

func (*CIPDEnsureFile) ProtoMessage

func (*CIPDEnsureFile) ProtoMessage()

func (*CIPDEnsureFile) ProtoReflect

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

func (*CIPDEnsureFile) Reset

func (x *CIPDEnsureFile) Reset()

func (*CIPDEnsureFile) Resolve

func (c *CIPDEnsureFile) Resolve(ctx context.Context, params ResolveParams) (map[string]any, error)

func (*CIPDEnsureFile) String

func (x *CIPDEnsureFile) String() string

func (*CIPDEnsureFile) Validate

func (c *CIPDEnsureFile) Validate(ctx context.Context, repoRoot string) error

type Config

type Config struct {
	Rollers []*Roller `protobuf:"bytes,1,rep,name=rollers,proto3" json:"rollers,omitempty"`
	// Path to the manifest that defines the checkout to use when rolling Jiri
	// projects/packages, since some Jiri roller operations require access to the
	// whole Jiri checkout and not just the repository containing the manifests.
	DefaultCheckoutJiriManifest string `` /* 146-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetDefaultCheckoutJiriManifest

func (x *Config) GetDefaultCheckoutJiriManifest() string

func (*Config) GetRollers

func (x *Config) GetRollers() []*Roller

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 GitSubmodule

type GitSubmodule struct {

	// Path to the submodule.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

A Git submodule to roll.

func (*GitSubmodule) Descriptor deprecated

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

Deprecated: Use GitSubmodule.ProtoReflect.Descriptor instead.

func (*GitSubmodule) GetPath

func (x *GitSubmodule) GetPath() string

func (*GitSubmodule) ProtoMessage

func (*GitSubmodule) ProtoMessage()

func (*GitSubmodule) ProtoReflect

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

func (*GitSubmodule) Reset

func (x *GitSubmodule) Reset()

func (*GitSubmodule) Resolve

func (s *GitSubmodule) Resolve(ctx context.Context, params ResolveParams) (map[string]any, error)

func (*GitSubmodule) String

func (x *GitSubmodule) String() string

func (*GitSubmodule) Validate

func (s *GitSubmodule) Validate(ctx context.Context, repoRoot string) error

type JiriPackages

type JiriPackages struct {

	// Jiri manifests containing packages to roll.
	Manifests []*JiriPackages_Manifest `protobuf:"bytes,1,rep,name=manifests,proto3" json:"manifests,omitempty"`
	// CIPD ref to track. Default is "latest".
	Ref string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	// contains filtered or unexported fields
}

CIPD packages pinned in a Jiri manifest to roll.

func (*JiriPackages) Descriptor deprecated

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

Deprecated: Use JiriPackages.ProtoReflect.Descriptor instead.

func (*JiriPackages) GetManifests

func (x *JiriPackages) GetManifests() []*JiriPackages_Manifest

func (*JiriPackages) GetRef

func (x *JiriPackages) GetRef() string

func (*JiriPackages) ProtoMessage

func (*JiriPackages) ProtoMessage()

func (*JiriPackages) ProtoReflect

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

func (*JiriPackages) Reset

func (x *JiriPackages) Reset()

func (*JiriPackages) Resolve

func (p *JiriPackages) Resolve(ctx context.Context, params ResolveParams) (map[string]any, error)

func (*JiriPackages) String

func (x *JiriPackages) String() string

func (*JiriPackages) Validate

func (p *JiriPackages) Validate(ctx context.Context, repoRoot string) error

type JiriPackages_Manifest

type JiriPackages_Manifest struct {
	Path     string   `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Packages []string `protobuf:"bytes,2,rep,name=packages,proto3" json:"packages,omitempty"`
	// contains filtered or unexported fields
}

func (*JiriPackages_Manifest) Descriptor deprecated

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

Deprecated: Use JiriPackages_Manifest.ProtoReflect.Descriptor instead.

func (*JiriPackages_Manifest) GetPackages

func (x *JiriPackages_Manifest) GetPackages() []string

func (*JiriPackages_Manifest) GetPath

func (x *JiriPackages_Manifest) GetPath() string

func (*JiriPackages_Manifest) ProtoMessage

func (*JiriPackages_Manifest) ProtoMessage()

func (*JiriPackages_Manifest) ProtoReflect

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

func (*JiriPackages_Manifest) Reset

func (x *JiriPackages_Manifest) Reset()

func (*JiriPackages_Manifest) String

func (x *JiriPackages_Manifest) String() string

type JiriProject

type JiriProject struct {

	// Path to the XML Jiri manifest in which the project is pinned.
	Manifest string `protobuf:"bytes,1,opt,name=manifest,proto3" json:"manifest,omitempty"`
	// Name of the Jiri project to roll.
	Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

A Jiri project (git repository pinned in a manifest) to roll.

func (*JiriProject) Descriptor deprecated

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

Deprecated: Use JiriProject.ProtoReflect.Descriptor instead.

func (*JiriProject) GetManifest

func (x *JiriProject) GetManifest() string

func (*JiriProject) GetProject

func (x *JiriProject) GetProject() string

func (*JiriProject) ProtoMessage

func (*JiriProject) ProtoMessage()

func (*JiriProject) ProtoReflect

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

func (*JiriProject) Reset

func (x *JiriProject) Reset()

func (*JiriProject) Resolve

func (p *JiriProject) Resolve(ctx context.Context, params ResolveParams) (map[string]any, error)

func (*JiriProject) String

func (x *JiriProject) String() string

func (*JiriProject) Validate

func (p *JiriProject) Validate(ctx context.Context, repoRoot string) error

type ResolveParams

type ResolveParams struct {
	RepoRoot                    string
	DefaultCheckoutJiriManifest string
}

ResolveParams represents additional parameters that get passed into each roller type's `Resolve` function.

type Roller

type Roller struct {

	// Entity that should be rolled.
	//
	// Types that are assignable to ToRoll:
	//
	//	*Roller_Submodule
	//	*Roller_CipdEnsureFile
	//	*Roller_JiriProject
	//	*Roller_JiriPackages
	ToRoll isRoller_ToRoll `protobuf_oneof:"to_roll"`
	// Cron schedule or time interval at which to trigger the roller. All times
	// are UTC.
	//
	// If left unset, the roller will only be triggerable manually.
	//
	// For supported syntax see:
	// https://chromium.googlesource.com/infra/luci/luci-go/+/refs/heads/main/lucicfg/doc/README.md#schedules-doc
	Schedule string `protobuf:"bytes,5,opt,name=schedule,proto3" json:"schedule,omitempty"`
	// Email of the owner of the roller.
	OwnerEmail string `protobuf:"bytes,6,opt,name=owner_email,json=ownerEmail,proto3" json:"owner_email,omitempty"`
	// Emails to alert when the roller fails.
	NotifyEmails []string `protobuf:"bytes,7,rep,name=notify_emails,json=notifyEmails,proto3" json:"notify_emails,omitempty"`
	// Whether the roller should bypass presubmit checks.
	ForceSubmit bool `protobuf:"varint,8,opt,name=force_submit,json=forceSubmit,proto3" json:"force_submit,omitempty"`
	// contains filtered or unexported fields
}

func (*Roller) Descriptor deprecated

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

Deprecated: Use Roller.ProtoReflect.Descriptor instead.

func (*Roller) GetCipdEnsureFile

func (x *Roller) GetCipdEnsureFile() *CIPDEnsureFile

func (*Roller) GetForceSubmit

func (x *Roller) GetForceSubmit() bool

func (*Roller) GetJiriPackages

func (x *Roller) GetJiriPackages() *JiriPackages

func (*Roller) GetJiriProject

func (x *Roller) GetJiriProject() *JiriProject

func (*Roller) GetNotifyEmails

func (x *Roller) GetNotifyEmails() []string

func (*Roller) GetOwnerEmail

func (x *Roller) GetOwnerEmail() string

func (*Roller) GetSchedule

func (x *Roller) GetSchedule() string

func (*Roller) GetSubmodule

func (x *Roller) GetSubmodule() *GitSubmodule

func (*Roller) GetToRoll

func (m *Roller) GetToRoll() isRoller_ToRoll

func (*Roller) ProtoMessage

func (*Roller) ProtoMessage()

func (*Roller) ProtoReflect

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

func (*Roller) Reset

func (x *Roller) Reset()

func (*Roller) String

func (x *Roller) String() string

type Roller_CipdEnsureFile

type Roller_CipdEnsureFile struct {
	CipdEnsureFile *CIPDEnsureFile `protobuf:"bytes,2,opt,name=cipd_ensure_file,json=cipdEnsureFile,proto3,oneof"`
}

type Roller_JiriPackages

type Roller_JiriPackages struct {
	JiriPackages *JiriPackages `protobuf:"bytes,4,opt,name=jiri_packages,json=jiriPackages,proto3,oneof"`
}

type Roller_JiriProject

type Roller_JiriProject struct {
	JiriProject *JiriProject `protobuf:"bytes,3,opt,name=jiri_project,json=jiriProject,proto3,oneof"`
}

type Roller_Submodule

type Roller_Submodule struct {
	Submodule *GitSubmodule `protobuf:"bytes,1,opt,name=submodule,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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