Documentation
¶
Index ¶
- Variables
- type Add
- func (*Add) Descriptor() ([]byte, []int)deprecated
- func (x *Add) GetFile() string
- func (x *Add) GetLookaside() string
- func (x *Add) GetName() string
- func (m *Add) GetSource() isAdd_Source
- func (*Add) ProtoMessage()
- func (x *Add) ProtoReflect() protoreflect.Message
- func (x *Add) Reset()
- func (x *Add) String() string
- type Add_File
- type Add_Lookaside
- type Cfg
- func (*Cfg) Descriptor() ([]byte, []int)deprecated
- func (x *Cfg) GetAdd() []*Add
- func (x *Cfg) GetDelete() []*Delete
- func (x *Cfg) GetLookaside() []*Lookaside
- func (x *Cfg) GetPatch() []*Patch
- func (x *Cfg) GetReplace() []*Replace
- func (x *Cfg) GetSpecChange() *SpecChange
- func (*Cfg) ProtoMessage()
- func (x *Cfg) ProtoReflect() protoreflect.Message
- func (x *Cfg) Reset()
- func (x *Cfg) String() string
- type Delete
- type Lookaside
- func (*Lookaside) Descriptor() ([]byte, []int)deprecated
- func (x *Lookaside) GetArchiveName() string
- func (x *Lookaside) GetFile() []string
- func (x *Lookaside) GetFromPatchTree() bool
- func (x *Lookaside) GetTar() bool
- func (*Lookaside) ProtoMessage()
- func (x *Lookaside) ProtoReflect() protoreflect.Message
- func (x *Lookaside) Reset()
- func (x *Lookaside) String() string
- type Patch
- type Replace
- func (*Replace) Descriptor() ([]byte, []int)deprecated
- func (x *Replace) GetFile() string
- func (m *Replace) GetReplacing() isReplace_Replacing
- func (x *Replace) GetWithFile() string
- func (x *Replace) GetWithInline() string
- func (x *Replace) GetWithLookaside() string
- func (*Replace) ProtoMessage()
- func (x *Replace) ProtoReflect() protoreflect.Message
- func (x *Replace) Reset()
- func (x *Replace) String() string
- type Replace_WithFile
- type Replace_WithInline
- type Replace_WithLookaside
- type SpecChange
- func (*SpecChange) Descriptor() ([]byte, []int)deprecated
- func (x *SpecChange) GetAppend() []*SpecChange_AppendOperation
- func (x *SpecChange) GetChangelog() []*SpecChange_ChangelogOperation
- func (x *SpecChange) GetFile() []*SpecChange_FileOperation
- func (x *SpecChange) GetNewField() []*SpecChange_NewFieldOperation
- func (x *SpecChange) GetSearchAndReplace() []*SpecChange_SearchAndReplaceOperation
- func (*SpecChange) ProtoMessage()
- func (x *SpecChange) ProtoReflect() protoreflect.Message
- func (x *SpecChange) Reset()
- func (x *SpecChange) String() string
- type SpecChange_AppendOperation
- func (*SpecChange_AppendOperation) Descriptor() ([]byte, []int)deprecated
- func (x *SpecChange_AppendOperation) GetField() string
- func (x *SpecChange_AppendOperation) GetValue() string
- func (*SpecChange_AppendOperation) ProtoMessage()
- func (x *SpecChange_AppendOperation) ProtoReflect() protoreflect.Message
- func (x *SpecChange_AppendOperation) Reset()
- func (x *SpecChange_AppendOperation) String() string
- type SpecChange_ChangelogOperation
- func (*SpecChange_ChangelogOperation) Descriptor() ([]byte, []int)deprecated
- func (x *SpecChange_ChangelogOperation) GetAuthorEmail() string
- func (x *SpecChange_ChangelogOperation) GetAuthorName() string
- func (x *SpecChange_ChangelogOperation) GetMessage() []string
- func (*SpecChange_ChangelogOperation) ProtoMessage()
- func (x *SpecChange_ChangelogOperation) ProtoReflect() protoreflect.Message
- func (x *SpecChange_ChangelogOperation) Reset()
- func (x *SpecChange_ChangelogOperation) String() string
- type SpecChange_FileOperation
- func (*SpecChange_FileOperation) Descriptor() ([]byte, []int)deprecated
- func (x *SpecChange_FileOperation) GetAdd() bool
- func (x *SpecChange_FileOperation) GetAddToPrep() bool
- func (x *SpecChange_FileOperation) GetDelete() bool
- func (m *SpecChange_FileOperation) GetMode() isSpecChange_FileOperation_Mode
- func (x *SpecChange_FileOperation) GetNPath() int32
- func (x *SpecChange_FileOperation) GetName() string
- func (x *SpecChange_FileOperation) GetType() SpecChange_FileOperation_Type
- func (*SpecChange_FileOperation) ProtoMessage()
- func (x *SpecChange_FileOperation) ProtoReflect() protoreflect.Message
- func (x *SpecChange_FileOperation) Reset()
- func (x *SpecChange_FileOperation) String() string
- type SpecChange_FileOperation_Add
- type SpecChange_FileOperation_Delete
- type SpecChange_FileOperation_Type
- func (SpecChange_FileOperation_Type) Descriptor() protoreflect.EnumDescriptor
- func (x SpecChange_FileOperation_Type) Enum() *SpecChange_FileOperation_Type
- func (SpecChange_FileOperation_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x SpecChange_FileOperation_Type) Number() protoreflect.EnumNumber
- func (x SpecChange_FileOperation_Type) String() string
- func (SpecChange_FileOperation_Type) Type() protoreflect.EnumType
- type SpecChange_NewFieldOperation
- func (*SpecChange_NewFieldOperation) Descriptor() ([]byte, []int)deprecated
- func (x *SpecChange_NewFieldOperation) GetKey() string
- func (x *SpecChange_NewFieldOperation) GetValue() string
- func (*SpecChange_NewFieldOperation) ProtoMessage()
- func (x *SpecChange_NewFieldOperation) ProtoReflect() protoreflect.Message
- func (x *SpecChange_NewFieldOperation) Reset()
- func (x *SpecChange_NewFieldOperation) String() string
- type SpecChange_SearchAndReplaceOperation
- func (*SpecChange_SearchAndReplaceOperation) Descriptor() ([]byte, []int)deprecated
- func (x *SpecChange_SearchAndReplaceOperation) GetAny() bool
- func (x *SpecChange_SearchAndReplaceOperation) GetEndsWith() bool
- func (x *SpecChange_SearchAndReplaceOperation) GetField() string
- func (x *SpecChange_SearchAndReplaceOperation) GetFind() string
- func (m *SpecChange_SearchAndReplaceOperation) GetIdentifier() isSpecChange_SearchAndReplaceOperation_Identifier
- func (x *SpecChange_SearchAndReplaceOperation) GetN() int32
- func (x *SpecChange_SearchAndReplaceOperation) GetReplace() string
- func (x *SpecChange_SearchAndReplaceOperation) GetStartsWith() bool
- func (*SpecChange_SearchAndReplaceOperation) ProtoMessage()
- func (x *SpecChange_SearchAndReplaceOperation) ProtoReflect() protoreflect.Message
- func (x *SpecChange_SearchAndReplaceOperation) Reset()
- func (x *SpecChange_SearchAndReplaceOperation) String() string
- type SpecChange_SearchAndReplaceOperation_Any
- type SpecChange_SearchAndReplaceOperation_EndsWith
- type SpecChange_SearchAndReplaceOperation_Field
- type SpecChange_SearchAndReplaceOperation_StartsWith
Constants ¶
This section is empty.
Variables ¶
var ( SpecChange_FileOperation_Type_name = map[int32]string{ 0: "Unknown", 1: "Source", 2: "Patch", } SpecChange_FileOperation_Type_value = map[string]int32{ "Unknown": 0, "Source": 1, "Patch": 2, } )
Enum value maps for SpecChange_FileOperation_Type.
var File_cfg_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Add ¶
type Add struct {
// Required - file to add
//
// Types that are assignable to Source:
// *Add_File
// *Add_Lookaside
Source isAdd_Source `protobuf_oneof:"source"`
// Overrides file name if specified
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Add directive adds a file from the patch repository to the rpm repository. The file is added in the `SOURCES` directory Won't add to spec automatically. Use the `SpecChange` directive for that
func (*Add) Descriptor
deprecated
func (*Add) GetLookaside ¶
func (*Add) ProtoMessage ¶
func (*Add) ProtoMessage()
func (*Add) ProtoReflect ¶
func (x *Add) ProtoReflect() protoreflect.Message
type Add_File ¶
type Add_File struct {
File string `protobuf:"bytes,1,opt,name=file,proto3,oneof"`
}
type Add_Lookaside ¶
type Add_Lookaside struct {
Lookaside string `protobuf:"bytes,2,opt,name=lookaside,proto3,oneof"`
}
type Cfg ¶
type Cfg struct {
Replace []*Replace `protobuf:"bytes,1,rep,name=replace,proto3" json:"replace,omitempty"`
Delete []*Delete `protobuf:"bytes,2,rep,name=delete,proto3" json:"delete,omitempty"`
Add []*Add `protobuf:"bytes,3,rep,name=add,proto3" json:"add,omitempty"`
Lookaside []*Lookaside `protobuf:"bytes,4,rep,name=lookaside,proto3" json:"lookaside,omitempty"`
SpecChange *SpecChange `protobuf:"bytes,5,opt,name=spec_change,json=specChange,proto3" json:"spec_change,omitempty"`
Patch []*Patch `protobuf:"bytes,6,rep,name=patch,proto3" json:"patch,omitempty"`
// contains filtered or unexported fields
}
func (*Cfg) Descriptor
deprecated
func (*Cfg) GetLookaside ¶
func (*Cfg) GetReplace ¶
func (*Cfg) GetSpecChange ¶
func (x *Cfg) GetSpecChange() *SpecChange
func (*Cfg) ProtoMessage ¶
func (*Cfg) ProtoMessage()
func (*Cfg) ProtoReflect ¶
func (x *Cfg) ProtoReflect() protoreflect.Message
type Delete ¶
type Delete struct {
// Required
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// contains filtered or unexported fields
}
Delete directive deletes literal files from the rpm repository. Won't delete from spec automatically. Use the `SpecChange` directive for that
func (*Delete) Descriptor
deprecated
func (*Delete) ProtoMessage ¶
func (*Delete) ProtoMessage()
func (*Delete) ProtoReflect ¶
func (x *Delete) ProtoReflect() protoreflect.Message
type Lookaside ¶
type Lookaside struct {
// Required - List of files that should be stored in blob storage
File []string `protobuf:"bytes,1,rep,name=file,proto3" json:"file,omitempty"`
// Whether files should be put into a tarball and gzipped
Tar bool `protobuf:"varint,2,opt,name=tar,proto3" json:"tar,omitempty"`
// Name of tar file, only used and required if tar is true
ArchiveName string `protobuf:"bytes,3,opt,name=archive_name,json=archiveName,proto3" json:"archive_name,omitempty"`
// Whether if files should be retrieved from patch tree
FromPatchTree bool `protobuf:"varint,4,opt,name=from_patch_tree,json=fromPatchTree,proto3" json:"from_patch_tree,omitempty"`
// contains filtered or unexported fields
}
Lookaside directive puts patched files in blob storage. If tar is true, the files will be put into a tarball and gzipped
func (*Lookaside) Descriptor
deprecated
func (*Lookaside) GetArchiveName ¶
func (*Lookaside) GetFromPatchTree ¶
func (*Lookaside) ProtoMessage ¶
func (*Lookaside) ProtoMessage()
func (*Lookaside) ProtoReflect ¶
func (x *Lookaside) ProtoReflect() protoreflect.Message
type Patch ¶
type Patch struct {
// Path to patch file from repo root
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// Srpmproc adds `SOURCES/` to files in a diff
// without a prefix if strict is false.
// If strict is true, then that is disabled.
Strict bool `protobuf:"varint,2,opt,name=strict,proto3" json:"strict,omitempty"`
// contains filtered or unexported fields
}
func (*Patch) Descriptor
deprecated
func (*Patch) ProtoMessage ¶
func (*Patch) ProtoMessage()
func (*Patch) ProtoReflect ¶
func (x *Patch) ProtoReflect() protoreflect.Message
type Replace ¶
type Replace struct {
// Required - Replaced file
File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// Types that are assignable to Replacing:
// *Replace_WithFile
// *Replace_WithInline
// *Replace_WithLookaside
Replacing isReplace_Replacing `protobuf_oneof:"replacing"`
// contains filtered or unexported fields
}
Replace directive replaces a file from the rpm repository with a file from the patch repository. Replacing content can either be inline or in the same patch-tree.
func (*Replace) Descriptor
deprecated
func (*Replace) GetReplacing ¶
func (m *Replace) GetReplacing() isReplace_Replacing
func (*Replace) GetWithFile ¶
func (*Replace) GetWithInline ¶
func (*Replace) GetWithLookaside ¶
func (*Replace) ProtoMessage ¶
func (*Replace) ProtoMessage()
func (*Replace) ProtoReflect ¶
func (x *Replace) ProtoReflect() protoreflect.Message
type Replace_WithFile ¶
type Replace_WithFile struct {
// Replace with in-tree file
WithFile string `protobuf:"bytes,2,opt,name=with_file,json=withFile,proto3,oneof"`
}
type Replace_WithInline ¶
type Replace_WithInline struct {
// Replace with inline content
WithInline string `protobuf:"bytes,3,opt,name=with_inline,json=withInline,proto3,oneof"`
}
type Replace_WithLookaside ¶
type Replace_WithLookaside struct {
// Replace with lookaside cache object
WithLookaside string `protobuf:"bytes,4,opt,name=with_lookaside,json=withLookaside,proto3,oneof"`
}
type SpecChange ¶
type SpecChange struct {
File []*SpecChange_FileOperation `protobuf:"bytes,1,rep,name=file,proto3" json:"file,omitempty"`
Changelog []*SpecChange_ChangelogOperation `protobuf:"bytes,2,rep,name=changelog,proto3" json:"changelog,omitempty"`
SearchAndReplace []*SpecChange_SearchAndReplaceOperation `protobuf:"bytes,3,rep,name=search_and_replace,json=searchAndReplace,proto3" json:"search_and_replace,omitempty"`
Append []*SpecChange_AppendOperation `protobuf:"bytes,4,rep,name=append,proto3" json:"append,omitempty"`
NewField []*SpecChange_NewFieldOperation `protobuf:"bytes,5,rep,name=new_field,json=newField,proto3" json:"new_field,omitempty"`
// contains filtered or unexported fields
}
SpecChange directive makes it possible to execute certain plans against the package spec
func (*SpecChange) Descriptor
deprecated
func (*SpecChange) Descriptor() ([]byte, []int)
Deprecated: Use SpecChange.ProtoReflect.Descriptor instead.
func (*SpecChange) GetAppend ¶
func (x *SpecChange) GetAppend() []*SpecChange_AppendOperation
func (*SpecChange) GetChangelog ¶
func (x *SpecChange) GetChangelog() []*SpecChange_ChangelogOperation
func (*SpecChange) GetFile ¶
func (x *SpecChange) GetFile() []*SpecChange_FileOperation
func (*SpecChange) GetNewField ¶
func (x *SpecChange) GetNewField() []*SpecChange_NewFieldOperation
func (*SpecChange) GetSearchAndReplace ¶
func (x *SpecChange) GetSearchAndReplace() []*SpecChange_SearchAndReplaceOperation
func (*SpecChange) ProtoMessage ¶
func (*SpecChange) ProtoMessage()
func (*SpecChange) ProtoReflect ¶
func (x *SpecChange) ProtoReflect() protoreflect.Message
func (*SpecChange) Reset ¶
func (x *SpecChange) Reset()
func (*SpecChange) String ¶
func (x *SpecChange) String() string
type SpecChange_AppendOperation ¶
type SpecChange_AppendOperation struct {
Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
AppendOperation appends a value to specified field or section
func (*SpecChange_AppendOperation) Descriptor
deprecated
func (*SpecChange_AppendOperation) Descriptor() ([]byte, []int)
Deprecated: Use SpecChange_AppendOperation.ProtoReflect.Descriptor instead.
func (*SpecChange_AppendOperation) GetField ¶
func (x *SpecChange_AppendOperation) GetField() string
func (*SpecChange_AppendOperation) GetValue ¶
func (x *SpecChange_AppendOperation) GetValue() string
func (*SpecChange_AppendOperation) ProtoMessage ¶
func (*SpecChange_AppendOperation) ProtoMessage()
func (*SpecChange_AppendOperation) ProtoReflect ¶
func (x *SpecChange_AppendOperation) ProtoReflect() protoreflect.Message
func (*SpecChange_AppendOperation) Reset ¶
func (x *SpecChange_AppendOperation) Reset()
func (*SpecChange_AppendOperation) String ¶
func (x *SpecChange_AppendOperation) String() string
type SpecChange_ChangelogOperation ¶
type SpecChange_ChangelogOperation struct {
AuthorName string `protobuf:"bytes,1,opt,name=author_name,json=authorName,proto3" json:"author_name,omitempty"`
AuthorEmail string `protobuf:"bytes,2,opt,name=author_email,json=authorEmail,proto3" json:"author_email,omitempty"`
Message []string `protobuf:"bytes,3,rep,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
ChangelogOperation adds a new changelog entry
func (*SpecChange_ChangelogOperation) Descriptor
deprecated
func (*SpecChange_ChangelogOperation) Descriptor() ([]byte, []int)
Deprecated: Use SpecChange_ChangelogOperation.ProtoReflect.Descriptor instead.
func (*SpecChange_ChangelogOperation) GetAuthorEmail ¶
func (x *SpecChange_ChangelogOperation) GetAuthorEmail() string
func (*SpecChange_ChangelogOperation) GetAuthorName ¶
func (x *SpecChange_ChangelogOperation) GetAuthorName() string
func (*SpecChange_ChangelogOperation) GetMessage ¶
func (x *SpecChange_ChangelogOperation) GetMessage() []string
func (*SpecChange_ChangelogOperation) ProtoMessage ¶
func (*SpecChange_ChangelogOperation) ProtoMessage()
func (*SpecChange_ChangelogOperation) ProtoReflect ¶
func (x *SpecChange_ChangelogOperation) ProtoReflect() protoreflect.Message
func (*SpecChange_ChangelogOperation) Reset ¶
func (x *SpecChange_ChangelogOperation) Reset()
func (*SpecChange_ChangelogOperation) String ¶
func (x *SpecChange_ChangelogOperation) String() string
type SpecChange_FileOperation ¶
type SpecChange_FileOperation struct {
// File name
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// File type
Type SpecChange_FileOperation_Type `protobuf:"varint,2,opt,name=type,proto3,enum=srpmproc.SpecChange_FileOperation_Type" json:"type,omitempty"`
// Types that are assignable to Mode:
// *SpecChange_FileOperation_Add
// *SpecChange_FileOperation_Delete
Mode isSpecChange_FileOperation_Mode `protobuf_oneof:"mode"`
// Only works for patch type
AddToPrep bool `protobuf:"varint,5,opt,name=add_to_prep,json=addToPrep,proto3" json:"add_to_prep,omitempty"`
NPath int32 `protobuf:"varint,6,opt,name=n_path,json=nPath,proto3" json:"n_path,omitempty"`
// contains filtered or unexported fields
}
The FileOperation plan allows patchers to add or delete a file from the spec.
func (*SpecChange_FileOperation) Descriptor
deprecated
func (*SpecChange_FileOperation) Descriptor() ([]byte, []int)
Deprecated: Use SpecChange_FileOperation.ProtoReflect.Descriptor instead.
func (*SpecChange_FileOperation) GetAdd ¶
func (x *SpecChange_FileOperation) GetAdd() bool
func (*SpecChange_FileOperation) GetAddToPrep ¶
func (x *SpecChange_FileOperation) GetAddToPrep() bool
func (*SpecChange_FileOperation) GetDelete ¶
func (x *SpecChange_FileOperation) GetDelete() bool
func (*SpecChange_FileOperation) GetMode ¶
func (m *SpecChange_FileOperation) GetMode() isSpecChange_FileOperation_Mode
func (*SpecChange_FileOperation) GetNPath ¶
func (x *SpecChange_FileOperation) GetNPath() int32
func (*SpecChange_FileOperation) GetName ¶
func (x *SpecChange_FileOperation) GetName() string
func (*SpecChange_FileOperation) GetType ¶
func (x *SpecChange_FileOperation) GetType() SpecChange_FileOperation_Type
func (*SpecChange_FileOperation) ProtoMessage ¶
func (*SpecChange_FileOperation) ProtoMessage()
func (*SpecChange_FileOperation) ProtoReflect ¶
func (x *SpecChange_FileOperation) ProtoReflect() protoreflect.Message
func (*SpecChange_FileOperation) Reset ¶
func (x *SpecChange_FileOperation) Reset()
func (*SpecChange_FileOperation) String ¶
func (x *SpecChange_FileOperation) String() string
type SpecChange_FileOperation_Add ¶
type SpecChange_FileOperation_Add struct {
// Add won't add the file to the tree.
// Use the `Add` directive for that
Add bool `protobuf:"varint,3,opt,name=add,proto3,oneof"`
}
type SpecChange_FileOperation_Delete ¶
type SpecChange_FileOperation_Delete struct {
// Delete won't delete the file from the tree.
// Use the `Delete` directive for that
Delete bool `protobuf:"varint,4,opt,name=delete,proto3,oneof"`
}
type SpecChange_FileOperation_Type ¶
type SpecChange_FileOperation_Type int32
const ( SpecChange_FileOperation_Unknown SpecChange_FileOperation_Type = 0 SpecChange_FileOperation_Source SpecChange_FileOperation_Type = 1 SpecChange_FileOperation_Patch SpecChange_FileOperation_Type = 2 )
func (SpecChange_FileOperation_Type) Descriptor ¶
func (SpecChange_FileOperation_Type) Descriptor() protoreflect.EnumDescriptor
func (SpecChange_FileOperation_Type) Enum ¶
func (x SpecChange_FileOperation_Type) Enum() *SpecChange_FileOperation_Type
func (SpecChange_FileOperation_Type) EnumDescriptor
deprecated
func (SpecChange_FileOperation_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use SpecChange_FileOperation_Type.Descriptor instead.
func (SpecChange_FileOperation_Type) Number ¶
func (x SpecChange_FileOperation_Type) Number() protoreflect.EnumNumber
func (SpecChange_FileOperation_Type) String ¶
func (x SpecChange_FileOperation_Type) String() string
func (SpecChange_FileOperation_Type) Type ¶
func (SpecChange_FileOperation_Type) Type() protoreflect.EnumType
type SpecChange_NewFieldOperation ¶
type SpecChange_NewFieldOperation struct {
// Key cannot be Source or Patch
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
NewFieldOperation adds a new kv to the spec The field will be grouped if other fields of same name exists
func (*SpecChange_NewFieldOperation) Descriptor
deprecated
func (*SpecChange_NewFieldOperation) Descriptor() ([]byte, []int)
Deprecated: Use SpecChange_NewFieldOperation.ProtoReflect.Descriptor instead.
func (*SpecChange_NewFieldOperation) GetKey ¶
func (x *SpecChange_NewFieldOperation) GetKey() string
func (*SpecChange_NewFieldOperation) GetValue ¶
func (x *SpecChange_NewFieldOperation) GetValue() string
func (*SpecChange_NewFieldOperation) ProtoMessage ¶
func (*SpecChange_NewFieldOperation) ProtoMessage()
func (*SpecChange_NewFieldOperation) ProtoReflect ¶
func (x *SpecChange_NewFieldOperation) ProtoReflect() protoreflect.Message
func (*SpecChange_NewFieldOperation) Reset ¶
func (x *SpecChange_NewFieldOperation) Reset()
func (*SpecChange_NewFieldOperation) String ¶
func (x *SpecChange_NewFieldOperation) String() string
type SpecChange_SearchAndReplaceOperation ¶
type SpecChange_SearchAndReplaceOperation struct {
// Types that are assignable to Identifier:
// *SpecChange_SearchAndReplaceOperation_Field
// *SpecChange_SearchAndReplaceOperation_Any
// *SpecChange_SearchAndReplaceOperation_StartsWith
// *SpecChange_SearchAndReplaceOperation_EndsWith
Identifier isSpecChange_SearchAndReplaceOperation_Identifier `protobuf_oneof:"identifier"`
Find string `protobuf:"bytes,5,opt,name=find,proto3" json:"find,omitempty"`
Replace string `protobuf:"bytes,6,opt,name=replace,proto3" json:"replace,omitempty"`
// How many occurences to replace.
// Set to -1 for all
N int32 `protobuf:"zigzag32,7,opt,name=n,proto3" json:"n,omitempty"`
// contains filtered or unexported fields
}
SearchAndReplaceOperation replaces substring with value in a specified field
func (*SpecChange_SearchAndReplaceOperation) Descriptor
deprecated
func (*SpecChange_SearchAndReplaceOperation) Descriptor() ([]byte, []int)
Deprecated: Use SpecChange_SearchAndReplaceOperation.ProtoReflect.Descriptor instead.
func (*SpecChange_SearchAndReplaceOperation) GetAny ¶
func (x *SpecChange_SearchAndReplaceOperation) GetAny() bool
func (*SpecChange_SearchAndReplaceOperation) GetEndsWith ¶
func (x *SpecChange_SearchAndReplaceOperation) GetEndsWith() bool
func (*SpecChange_SearchAndReplaceOperation) GetField ¶
func (x *SpecChange_SearchAndReplaceOperation) GetField() string
func (*SpecChange_SearchAndReplaceOperation) GetFind ¶
func (x *SpecChange_SearchAndReplaceOperation) GetFind() string
func (*SpecChange_SearchAndReplaceOperation) GetIdentifier ¶
func (m *SpecChange_SearchAndReplaceOperation) GetIdentifier() isSpecChange_SearchAndReplaceOperation_Identifier
func (*SpecChange_SearchAndReplaceOperation) GetN ¶
func (x *SpecChange_SearchAndReplaceOperation) GetN() int32
func (*SpecChange_SearchAndReplaceOperation) GetReplace ¶
func (x *SpecChange_SearchAndReplaceOperation) GetReplace() string
func (*SpecChange_SearchAndReplaceOperation) GetStartsWith ¶
func (x *SpecChange_SearchAndReplaceOperation) GetStartsWith() bool
func (*SpecChange_SearchAndReplaceOperation) ProtoMessage ¶
func (*SpecChange_SearchAndReplaceOperation) ProtoMessage()
func (*SpecChange_SearchAndReplaceOperation) ProtoReflect ¶
func (x *SpecChange_SearchAndReplaceOperation) ProtoReflect() protoreflect.Message
func (*SpecChange_SearchAndReplaceOperation) Reset ¶
func (x *SpecChange_SearchAndReplaceOperation) Reset()
func (*SpecChange_SearchAndReplaceOperation) String ¶
func (x *SpecChange_SearchAndReplaceOperation) String() string
type SpecChange_SearchAndReplaceOperation_Any ¶
type SpecChange_SearchAndReplaceOperation_Any struct {
// replace occurrences in any line
Any bool `protobuf:"varint,2,opt,name=any,proto3,oneof"`
}
type SpecChange_SearchAndReplaceOperation_EndsWith ¶
type SpecChange_SearchAndReplaceOperation_EndsWith struct {
// replace occurrences that ends with find
EndsWith bool `protobuf:"varint,4,opt,name=ends_with,json=endsWith,proto3,oneof"`
}
type SpecChange_SearchAndReplaceOperation_Field ¶
type SpecChange_SearchAndReplaceOperation_Field struct {
// replace occurrences in field value
Field string `protobuf:"bytes,1,opt,name=field,proto3,oneof"`
}
type SpecChange_SearchAndReplaceOperation_StartsWith ¶
type SpecChange_SearchAndReplaceOperation_StartsWith struct {
// replace occurrences that starts with find
StartsWith bool `protobuf:"varint,3,opt,name=starts_with,json=startsWith,proto3,oneof"`
}