sidelinepb

package
v0.0.0-...-b2bb2c0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Upstream_CompareMode_name = map[int32]string{
		0: "Unknown",
		1: "KernelTag",
	}
	Upstream_CompareMode_value = map[string]int32{
		"Unknown":   0,
		"KernelTag": 1,
	}
)

Enum value maps for Upstream_CompareMode.

View Source
var File_configuration_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ApplyPatch

type ApplyPatch struct {

	// Types that are assignable to Patch:
	//	*ApplyPatch_AutoPatch
	//	*ApplyPatch_Custom
	Patch isApplyPatch_Patch `protobuf_oneof:"patch"`
	// contains filtered or unexported fields
}

func (*ApplyPatch) Descriptor deprecated

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

Deprecated: Use ApplyPatch.ProtoReflect.Descriptor instead.

func (*ApplyPatch) GetAutoPatch

func (x *ApplyPatch) GetAutoPatch() *AutoPatch

func (*ApplyPatch) GetCustom

func (x *ApplyPatch) GetCustom() *pb.SpecChange

func (*ApplyPatch) GetPatch

func (m *ApplyPatch) GetPatch() isApplyPatch_Patch

func (*ApplyPatch) ProtoMessage

func (*ApplyPatch) ProtoMessage()

func (*ApplyPatch) ProtoReflect

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

func (*ApplyPatch) Reset

func (x *ApplyPatch) Reset()

func (*ApplyPatch) String

func (x *ApplyPatch) String() string

type ApplyPatch_AutoPatch

type ApplyPatch_AutoPatch struct {
	// Automatically applied patch (may be problematic with complex specs)
	// Ex. kernel should mostly use custom
	AutoPatch *AutoPatch `protobuf:"bytes,1,opt,name=auto_patch,json=autoPatch,proto3,oneof"`
}

type ApplyPatch_Custom

type ApplyPatch_Custom struct {
	// Custom spec change command for this patch (excluding add patch)
	Custom *pb.SpecChange `protobuf:"bytes,2,opt,name=custom,proto3,oneof"`
}

type AutoPatch

type AutoPatch struct {

	// Whether to add the patch to prep or not
	// Packages that are not auto-patched will need to set this and n_path
	AddToPrep bool `protobuf:"varint,1,opt,name=add_to_prep,json=addToPrep,proto3" json:"add_to_prep,omitempty"`
	// Patch strip depth
	NPath int32 `protobuf:"varint,2,opt,name=n_path,json=nPath,proto3" json:"n_path,omitempty"`
	// contains filtered or unexported fields
}

func (*AutoPatch) Descriptor deprecated

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

Deprecated: Use AutoPatch.ProtoReflect.Descriptor instead.

func (*AutoPatch) GetAddToPrep

func (x *AutoPatch) GetAddToPrep() bool

func (*AutoPatch) GetNPath

func (x *AutoPatch) GetNPath() int32

func (*AutoPatch) ProtoMessage

func (*AutoPatch) ProtoMessage()

func (*AutoPatch) ProtoReflect

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

func (*AutoPatch) Reset

func (x *AutoPatch) Reset()

func (*AutoPatch) String

func (x *AutoPatch) String() string

type Changes

type Changes struct {

	// Paths listed here are recursively copied into Source0
	// and overridden (always choosing upstream)
	RecursivePath []string      `protobuf:"bytes,1,rep,name=recursive_path,json=recursivePath,proto3" json:"recursive_path,omitempty"`
	FileChange    []*FileChange `protobuf:"bytes,2,rep,name=file_change,json=fileChange,proto3" json:"file_change,omitempty"`
	// contains filtered or unexported fields
}

func (*Changes) Descriptor deprecated

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

Deprecated: Use Changes.ProtoReflect.Descriptor instead.

func (*Changes) GetFileChange

func (x *Changes) GetFileChange() []*FileChange

func (*Changes) GetRecursivePath

func (x *Changes) GetRecursivePath() []string

func (*Changes) ProtoMessage

func (*Changes) ProtoMessage()

func (*Changes) ProtoReflect

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

func (*Changes) Reset

func (x *Changes) Reset()

func (*Changes) String

func (x *Changes) String() string

type Configuration

type Configuration struct {

	// Preset for source package
	// Currently only supports "rocky8" or "manual"
	// "rocky8" sets "base_url" to "https://dl.rockylinux.org/pub/rocky/8"
	// "manual" sets nothing
	Preset string `protobuf:"bytes,1,opt,name=preset,proto3" json:"preset,omitempty"`
	// Source package name
	// SRPM to be fetched from the source repository
	// Format: {repo}//{name}
	// Example: BaseOS//kernel
	Package string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"`
	// Upstream information
	// Where the upstream of this package is located
	// Only git is supported for now
	Upstream *Upstream `protobuf:"bytes,3,opt,name=upstream,proto3" json:"upstream,omitempty"`
	// Changes we want to pull from upstream
	Changes []*Changes `protobuf:"bytes,4,rep,name=changes,proto3" json:"changes,omitempty"`
	// Manual override for preset
	// Only used if preset is "manual"
	PresetOverride *PresetOverride `protobuf:"bytes,5,opt,name=preset_override,json=presetOverride,proto3" json:"preset_override,omitempty"`
	// How to apply the patch to the spec
	ApplyPatch *ApplyPatch `protobuf:"bytes,6,opt,name=apply_patch,json=applyPatch,proto3" json:"apply_patch,omitempty"`
	// Contact information
	ContactEmail string `protobuf:"bytes,7,opt,name=contact_email,json=contactEmail,proto3" json:"contact_email,omitempty"`
	ContactName  string `protobuf:"bytes,8,opt,name=contact_name,json=contactName,proto3" json:"contact_name,omitempty"`
	// contains filtered or unexported fields
}

func (*Configuration) Descriptor deprecated

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

Deprecated: Use Configuration.ProtoReflect.Descriptor instead.

func (*Configuration) GetApplyPatch

func (x *Configuration) GetApplyPatch() *ApplyPatch

func (*Configuration) GetChanges

func (x *Configuration) GetChanges() []*Changes

func (*Configuration) GetContactEmail

func (x *Configuration) GetContactEmail() string

func (*Configuration) GetContactName

func (x *Configuration) GetContactName() string

func (*Configuration) GetPackage

func (x *Configuration) GetPackage() string

func (*Configuration) GetPreset

func (x *Configuration) GetPreset() string

func (*Configuration) GetPresetOverride

func (x *Configuration) GetPresetOverride() *PresetOverride

func (*Configuration) GetUpstream

func (x *Configuration) GetUpstream() *Upstream

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) ProtoReflect

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

func (*Configuration) Reset

func (x *Configuration) Reset()

func (*Configuration) String

func (x *Configuration) String() string

type FileChange

type FileChange struct {

	// Path to file
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// Search and replace operations on file
	SearchReplace []*SearchReplace `protobuf:"bytes,2,rep,name=search_replace,json=searchReplace,proto3" json:"search_replace,omitempty"`
	// contains filtered or unexported fields
}

func (*FileChange) Descriptor deprecated

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

Deprecated: Use FileChange.ProtoReflect.Descriptor instead.

func (*FileChange) GetPath

func (x *FileChange) GetPath() string

func (*FileChange) GetSearchReplace

func (x *FileChange) GetSearchReplace() []*SearchReplace

func (*FileChange) ProtoMessage

func (*FileChange) ProtoMessage()

func (*FileChange) ProtoReflect

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

func (*FileChange) Reset

func (x *FileChange) Reset()

func (*FileChange) String

func (x *FileChange) String() string

type PresetOverride

type PresetOverride struct {

	// Types that are assignable to Override:
	//	*PresetOverride_BaseUrl
	//	*PresetOverride_FullUrl
	Override isPresetOverride_Override `protobuf_oneof:"override"`
	// contains filtered or unexported fields
}

func (*PresetOverride) Descriptor deprecated

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

Deprecated: Use PresetOverride.ProtoReflect.Descriptor instead.

func (*PresetOverride) GetBaseUrl

func (x *PresetOverride) GetBaseUrl() string

func (*PresetOverride) GetFullUrl

func (x *PresetOverride) GetFullUrl() string

func (*PresetOverride) GetOverride

func (m *PresetOverride) GetOverride() isPresetOverride_Override

func (*PresetOverride) ProtoMessage

func (*PresetOverride) ProtoMessage()

func (*PresetOverride) ProtoReflect

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

func (*PresetOverride) Reset

func (x *PresetOverride) Reset()

func (*PresetOverride) String

func (x *PresetOverride) String() string

type PresetOverride_BaseUrl

type PresetOverride_BaseUrl struct {
	BaseUrl string `protobuf:"bytes,1,opt,name=base_url,json=baseUrl,proto3,oneof"`
}

type PresetOverride_FullUrl

type PresetOverride_FullUrl struct {
	FullUrl string `protobuf:"bytes,2,opt,name=full_url,json=fullUrl,proto3,oneof"`
}

type SearchReplace

type SearchReplace struct {
	Find    string `protobuf:"bytes,1,opt,name=find,proto3" json:"find,omitempty"`
	Replace string `protobuf:"bytes,2,opt,name=replace,proto3" json:"replace,omitempty"`
	N       int32  `protobuf:"varint,3,opt,name=n,proto3" json:"n,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchReplace) Descriptor deprecated

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

Deprecated: Use SearchReplace.ProtoReflect.Descriptor instead.

func (*SearchReplace) GetFind

func (x *SearchReplace) GetFind() string

func (*SearchReplace) GetN

func (x *SearchReplace) GetN() int32

func (*SearchReplace) GetReplace

func (x *SearchReplace) GetReplace() string

func (*SearchReplace) ProtoMessage

func (*SearchReplace) ProtoMessage()

func (*SearchReplace) ProtoReflect

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

func (*SearchReplace) Reset

func (x *SearchReplace) Reset()

func (*SearchReplace) String

func (x *SearchReplace) String() string

type Upstream

type Upstream struct {

	// Target forge
	//
	// Types that are assignable to Forge:
	//	*Upstream_Git
	Forge isUpstream_Forge `protobuf_oneof:"forge"`
	// Depth we need to clone
	// For tags or branches targeting latest, only 1 is needed for example
	Depth int32 `protobuf:"varint,2,opt,name=depth,proto3" json:"depth,omitempty"`
	// Target revision
	//
	// Types that are assignable to Target:
	//	*Upstream_Tag
	//	*Upstream_Branch
	Target isUpstream_Target `protobuf_oneof:"target"`
	// Compare revision (optional)
	//
	// Types that are assignable to Compare:
	//	*Upstream_CompareWithTag
	Compare isUpstream_Compare `protobuf_oneof:"compare"`
	// Whether the compare repo should be laid out in disk
	// Currently always true whether specified or not because
	// of how `git log` operation is implemented
	CompareShouldUseOsfs bool                 `` /* 126-byte string literal not displayed */
	CompareMode          Upstream_CompareMode `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Upstream) Descriptor deprecated

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

Deprecated: Use Upstream.ProtoReflect.Descriptor instead.

func (*Upstream) GetBranch

func (x *Upstream) GetBranch() string

func (*Upstream) GetCompare

func (m *Upstream) GetCompare() isUpstream_Compare

func (*Upstream) GetCompareMode

func (x *Upstream) GetCompareMode() Upstream_CompareMode

func (*Upstream) GetCompareShouldUseOsfs

func (x *Upstream) GetCompareShouldUseOsfs() bool

func (*Upstream) GetCompareWithTag

func (x *Upstream) GetCompareWithTag() *wrapperspb.StringValue

func (*Upstream) GetDepth

func (x *Upstream) GetDepth() int32

func (*Upstream) GetForge

func (m *Upstream) GetForge() isUpstream_Forge

func (*Upstream) GetGit

func (x *Upstream) GetGit() string

func (*Upstream) GetTag

func (x *Upstream) GetTag() string

func (*Upstream) GetTarget

func (m *Upstream) GetTarget() isUpstream_Target

func (*Upstream) ProtoMessage

func (*Upstream) ProtoMessage()

func (*Upstream) ProtoReflect

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

func (*Upstream) Reset

func (x *Upstream) Reset()

func (*Upstream) String

func (x *Upstream) String() string

type Upstream_Branch

type Upstream_Branch struct {
	Branch string `protobuf:"bytes,7,opt,name=branch,proto3,oneof"`
}

type Upstream_CompareMode

type Upstream_CompareMode int32
const (
	Upstream_Unknown Upstream_CompareMode = 0
	// Reduce refspecs we fetch for the kernel
	// TM = Target major version, CV = Compare version
	// Uses following refspecs:
	//   * refs/tags/vTM.*
	//   * refs/tags/vCV
	Upstream_KernelTag Upstream_CompareMode = 1
)

func (Upstream_CompareMode) Descriptor

func (Upstream_CompareMode) Enum

func (Upstream_CompareMode) EnumDescriptor deprecated

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

Deprecated: Use Upstream_CompareMode.Descriptor instead.

func (Upstream_CompareMode) Number

func (Upstream_CompareMode) String

func (x Upstream_CompareMode) String() string

func (Upstream_CompareMode) Type

type Upstream_CompareWithTag

type Upstream_CompareWithTag struct {
	CompareWithTag *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=compare_with_tag,json=compareWithTag,proto3,oneof"`
}

type Upstream_Git

type Upstream_Git struct {
	// A git remote
	Git string `protobuf:"bytes,1,opt,name=git,proto3,oneof"`
}

type Upstream_Tag

type Upstream_Tag struct {
	// Caller wants a tag
	Tag string `protobuf:"bytes,3,opt,name=tag,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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