Documentation ¶
Index ¶
- Variables
- type FileReplicationRule
- func (*FileReplicationRule) Descriptor() ([]byte, []int)deprecated
- func (x *FileReplicationRule) GetDestinationFields() *fieldmaskpb.FieldMask
- func (x *FileReplicationRule) GetDestinationPath() string
- func (x *FileReplicationRule) GetFileType() FileType
- func (x *FileReplicationRule) GetReplicationType() ReplicationType
- func (x *FileReplicationRule) GetSourcePath() string
- func (x *FileReplicationRule) GetStringReplacementRules() []*StringReplacementRule
- func (*FileReplicationRule) ProtoMessage()
- func (x *FileReplicationRule) ProtoReflect() protoreflect.Message
- func (x *FileReplicationRule) Reset()
- func (x *FileReplicationRule) String() string
- type FileType
- type ReplicationConfig
- func (*ReplicationConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ReplicationConfig) GetFileReplicationRules() []*FileReplicationRule
- func (*ReplicationConfig) ProtoMessage()
- func (x *ReplicationConfig) ProtoReflect() protoreflect.Message
- func (x *ReplicationConfig) Reset()
- func (x *ReplicationConfig) String() string
- type ReplicationType
- func (ReplicationType) Descriptor() protoreflect.EnumDescriptor
- func (x ReplicationType) Enum() *ReplicationType
- func (ReplicationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ReplicationType) Number() protoreflect.EnumNumber
- func (x ReplicationType) String() string
- func (ReplicationType) Type() protoreflect.EnumType
- type StringReplacementRule
- func (*StringReplacementRule) Descriptor() ([]byte, []int)deprecated
- func (x *StringReplacementRule) GetAfter() string
- func (x *StringReplacementRule) GetBefore() string
- func (*StringReplacementRule) ProtoMessage()
- func (x *StringReplacementRule) ProtoReflect() protoreflect.Message
- func (x *StringReplacementRule) Reset()
- func (x *StringReplacementRule) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FileType_name = map[int32]string{ 0: "FILE_TYPE_UNSPECIFIED", 1: "FILE_TYPE_JSON", 2: "FILE_TYPE_JSONPB", 3: "FILE_TYPE_OTHER", } FileType_value = map[string]int32{ "FILE_TYPE_UNSPECIFIED": 0, "FILE_TYPE_JSON": 1, "FILE_TYPE_JSONPB": 2, "FILE_TYPE_OTHER": 3, } )
Enum value maps for FileType.
View Source
var ( ReplicationType_name = map[int32]string{ 0: "REPLICATION_TYPE_UNSPECIFIED", 1: "REPLICATION_TYPE_COPY", 2: "REPLICATION_TYPE_FILTER", } ReplicationType_value = map[string]int32{ "REPLICATION_TYPE_UNSPECIFIED": 0, "REPLICATION_TYPE_COPY": 1, "REPLICATION_TYPE_FILTER": 2, } )
Enum value maps for ReplicationType.
View Source
var File_config_replication_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type FileReplicationRule ¶
type FileReplicationRule struct { // Path to the original file. Should be relative to the source root, // e.g. // "src/private-overlays/overlay-coral-private/chromeos-base/chromeos-config-bsp-coral-private/files/build_config.json" SourcePath string `protobuf:"bytes,1,opt,name=source_path,json=sourcePath,proto3" json:"source_path,omitempty"` // Path to output the file. Should be relative to the source root, // e.g. // "src/overlays/overlay-coral/chromeos-base/chromeos-config-bsp-coral/files/build_config.json" DestinationPath string `protobuf:"bytes,2,opt,name=destination_path,json=destinationPath,proto3" json:"destination_path,omitempty"` // The type of file being replicated. FileType FileType `protobuf:"varint,3,opt,name=file_type,json=fileType,proto3,enum=config.FileType" json:"file_type,omitempty"` // The type of replication being done. ReplicationType ReplicationType `` /* 135-byte string literal not displayed */ // Fields to replicate to destination config payloads. Only relevant for // REPLICATION_TYPE_FILTER. If set on other replication types a // reader of this rule may choose to ignore this field or throw an error. // // # Behavior Specific to ChromeOS Config Payloads // // The mask applies to each device config in the config payload, NOT to the // top-level payload; i.e. to copy the "audio" field to the destination, // the mask should be "audio", not "chromeos.configs.audio". This is // analogous to standard FieldMask behavior on a REST list operation, where // the mask applies to each individual message. Sub-fields are still // fully-qualified, as per standard FieldMasks, e.g. // "bluetooth.config.build-path" DestinationFields *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=destination_fields,json=destinationFields,proto3" json:"destination_fields,omitempty"` // String replacements to be done on the destination file. Replacements are // done in the order they appear in this list. // // Note that replacements are done after filtering. For example, say a // replacement rule changes the name of a field, "field1" -> "field2"; if // destination_fields specifies "field2", the renamed fields will not be // copied. StringReplacementRules []*StringReplacementRule `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
Describes how a single file should be replicated.
func (*FileReplicationRule) Descriptor
deprecated
func (*FileReplicationRule) Descriptor() ([]byte, []int)
Deprecated: Use FileReplicationRule.ProtoReflect.Descriptor instead.
func (*FileReplicationRule) GetDestinationFields ¶
func (x *FileReplicationRule) GetDestinationFields() *fieldmaskpb.FieldMask
func (*FileReplicationRule) GetDestinationPath ¶
func (x *FileReplicationRule) GetDestinationPath() string
func (*FileReplicationRule) GetFileType ¶
func (x *FileReplicationRule) GetFileType() FileType
func (*FileReplicationRule) GetReplicationType ¶
func (x *FileReplicationRule) GetReplicationType() ReplicationType
func (*FileReplicationRule) GetSourcePath ¶
func (x *FileReplicationRule) GetSourcePath() string
func (*FileReplicationRule) GetStringReplacementRules ¶
func (x *FileReplicationRule) GetStringReplacementRules() []*StringReplacementRule
func (*FileReplicationRule) ProtoMessage ¶
func (*FileReplicationRule) ProtoMessage()
func (*FileReplicationRule) ProtoReflect ¶
func (x *FileReplicationRule) ProtoReflect() protoreflect.Message
func (*FileReplicationRule) Reset ¶
func (x *FileReplicationRule) Reset()
func (*FileReplicationRule) String ¶
func (x *FileReplicationRule) String() string
type FileType ¶
type FileType int32
Describes different file types that can be replicated.
const ( FileType_FILE_TYPE_UNSPECIFIED FileType = 0 // A JSON file. For protos encoded as JSON, FILE_TYPE_JSONPB should be used. FileType_FILE_TYPE_JSON FileType = 1 // A proto encoded as a JSON file. FileType_FILE_TYPE_JSONPB FileType = 2 // A file not described by the other types. FileType_FILE_TYPE_OTHER FileType = 3 )
func (FileType) Descriptor ¶
func (FileType) Descriptor() protoreflect.EnumDescriptor
func (FileType) EnumDescriptor
deprecated
func (FileType) Number ¶
func (x FileType) Number() protoreflect.EnumNumber
func (FileType) Type ¶
func (FileType) Type() protoreflect.EnumType
type ReplicationConfig ¶
type ReplicationConfig struct { // Files to be replicated. FileReplicationRules []*FileReplicationRule `protobuf:"bytes,1,rep,name=file_replication_rules,json=fileReplicationRules,proto3" json:"file_replication_rules,omitempty"` // contains filtered or unexported fields }
Describes how files should be replicated, e.g. from private to public.
func (*ReplicationConfig) Descriptor
deprecated
func (*ReplicationConfig) Descriptor() ([]byte, []int)
Deprecated: Use ReplicationConfig.ProtoReflect.Descriptor instead.
func (*ReplicationConfig) GetFileReplicationRules ¶
func (x *ReplicationConfig) GetFileReplicationRules() []*FileReplicationRule
func (*ReplicationConfig) ProtoMessage ¶
func (*ReplicationConfig) ProtoMessage()
func (*ReplicationConfig) ProtoReflect ¶
func (x *ReplicationConfig) ProtoReflect() protoreflect.Message
func (*ReplicationConfig) Reset ¶
func (x *ReplicationConfig) Reset()
func (*ReplicationConfig) String ¶
func (x *ReplicationConfig) String() string
type ReplicationType ¶
type ReplicationType int32
const ( ReplicationType_REPLICATION_TYPE_UNSPECIFIED ReplicationType = 0 // Copy the entire file. ReplicationType_REPLICATION_TYPE_COPY ReplicationType = 1 // Copy part of the file. When this type is used, a filtering mechanism must // be specified, e.g. a FieldMask. Not valid for some FileTypes, e.g. // FILE_TYPE_OTHER. ReplicationType_REPLICATION_TYPE_FILTER ReplicationType = 2 )
func (ReplicationType) Descriptor ¶
func (ReplicationType) Descriptor() protoreflect.EnumDescriptor
func (ReplicationType) Enum ¶
func (x ReplicationType) Enum() *ReplicationType
func (ReplicationType) EnumDescriptor
deprecated
func (ReplicationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReplicationType.Descriptor instead.
func (ReplicationType) Number ¶
func (x ReplicationType) Number() protoreflect.EnumNumber
func (ReplicationType) String ¶
func (x ReplicationType) String() string
func (ReplicationType) Type ¶
func (ReplicationType) Type() protoreflect.EnumType
type StringReplacementRule ¶
type StringReplacementRule struct { // The text before the transformation. Before string `protobuf:"bytes,1,opt,name=before,proto3" json:"before,omitempty"` // The text after the transformation. After string `protobuf:"bytes,2,opt,name=after,proto3" json:"after,omitempty"` // contains filtered or unexported fields }
Describes how to replace a text with another text.
func (*StringReplacementRule) Descriptor
deprecated
func (*StringReplacementRule) Descriptor() ([]byte, []int)
Deprecated: Use StringReplacementRule.ProtoReflect.Descriptor instead.
func (*StringReplacementRule) GetAfter ¶
func (x *StringReplacementRule) GetAfter() string
func (*StringReplacementRule) GetBefore ¶
func (x *StringReplacementRule) GetBefore() string
func (*StringReplacementRule) ProtoMessage ¶
func (*StringReplacementRule) ProtoMessage()
func (*StringReplacementRule) ProtoReflect ¶
func (x *StringReplacementRule) ProtoReflect() protoreflect.Message
func (*StringReplacementRule) Reset ¶
func (x *StringReplacementRule) Reset()
func (*StringReplacementRule) String ¶
func (x *StringReplacementRule) String() string
Click to show internal directories.
Click to hide internal directories.