proto: go.chromium.org/chromiumos/infra/proto/go/config Index | Files

package config

import "go.chromium.org/chromiumos/infra/proto/go/config"

Index

Package Files

replication_config.pb.go

Variables

var FileType_name = map[int32]string{
    0:  "FILE_TYPE_UNSPECIFIED",
    1:  "FILE_TYPE_JSON",
    2:  "FILE_TYPE_JSONPB",
    3:  "FILE_TYPE_OTHER",
}
var FileType_value = map[string]int32{
    "FILE_TYPE_UNSPECIFIED": 0,
    "FILE_TYPE_JSON":        1,
    "FILE_TYPE_JSONPB":      2,
    "FILE_TYPE_OTHER":       3,
}
var ReplicationType_name = map[int32]string{
    0:  "REPLICATION_TYPE_UNSPECIFIED",
    1:  "REPLICATION_TYPE_COPY",
    2:  "REPLICATION_TYPE_FILTER",
}
var ReplicationType_value = map[string]int32{
    "REPLICATION_TYPE_UNSPECIFIED": 0,
    "REPLICATION_TYPE_COPY":        1,
    "REPLICATION_TYPE_FILTER":      2,
}

type FileReplicationRule Uses

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 `protobuf:"varint,4,opt,name=replication_type,json=replicationType,proto3,enum=config.ReplicationType" json:"replication_type,omitempty"`
    // 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 *field_mask.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 `protobuf:"bytes,6,rep,name=string_replacement_rules,json=stringReplacementRules,proto3" json:"string_replacement_rules,omitempty"`
    XXX_NoUnkeyedLiteral   struct{}                 `json:"-"`
    XXX_unrecognized       []byte                   `json:"-"`
    XXX_sizecache          int32                    `json:"-"`
}

Describes how a single file should be replicated.

func (*FileReplicationRule) Descriptor Uses

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

func (*FileReplicationRule) GetDestinationFields Uses

func (m *FileReplicationRule) GetDestinationFields() *field_mask.FieldMask

func (*FileReplicationRule) GetDestinationPath Uses

func (m *FileReplicationRule) GetDestinationPath() string

func (*FileReplicationRule) GetFileType Uses

func (m *FileReplicationRule) GetFileType() FileType

func (*FileReplicationRule) GetReplicationType Uses

func (m *FileReplicationRule) GetReplicationType() ReplicationType

func (*FileReplicationRule) GetSourcePath Uses

func (m *FileReplicationRule) GetSourcePath() string

func (*FileReplicationRule) GetStringReplacementRules Uses

func (m *FileReplicationRule) GetStringReplacementRules() []*StringReplacementRule

func (*FileReplicationRule) ProtoMessage Uses

func (*FileReplicationRule) ProtoMessage()

func (*FileReplicationRule) Reset Uses

func (m *FileReplicationRule) Reset()

func (*FileReplicationRule) String Uses

func (m *FileReplicationRule) String() string

func (*FileReplicationRule) XXX_DiscardUnknown Uses

func (m *FileReplicationRule) XXX_DiscardUnknown()

func (*FileReplicationRule) XXX_Marshal Uses

func (m *FileReplicationRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileReplicationRule) XXX_Merge Uses

func (m *FileReplicationRule) XXX_Merge(src proto.Message)

func (*FileReplicationRule) XXX_Size Uses

func (m *FileReplicationRule) XXX_Size() int

func (*FileReplicationRule) XXX_Unmarshal Uses

func (m *FileReplicationRule) XXX_Unmarshal(b []byte) error

type FileType Uses

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) EnumDescriptor Uses

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

func (FileType) String Uses

func (x FileType) String() string

type ReplicationConfig Uses

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"`
    XXX_NoUnkeyedLiteral struct{}               `json:"-"`
    XXX_unrecognized     []byte                 `json:"-"`
    XXX_sizecache        int32                  `json:"-"`
}

Describes how files should be replicated, e.g. from private to public.

func (*ReplicationConfig) Descriptor Uses

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

func (*ReplicationConfig) GetFileReplicationRules Uses

func (m *ReplicationConfig) GetFileReplicationRules() []*FileReplicationRule

func (*ReplicationConfig) ProtoMessage Uses

func (*ReplicationConfig) ProtoMessage()

func (*ReplicationConfig) Reset Uses

func (m *ReplicationConfig) Reset()

func (*ReplicationConfig) String Uses

func (m *ReplicationConfig) String() string

func (*ReplicationConfig) XXX_DiscardUnknown Uses

func (m *ReplicationConfig) XXX_DiscardUnknown()

func (*ReplicationConfig) XXX_Marshal Uses

func (m *ReplicationConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReplicationConfig) XXX_Merge Uses

func (m *ReplicationConfig) XXX_Merge(src proto.Message)

func (*ReplicationConfig) XXX_Size Uses

func (m *ReplicationConfig) XXX_Size() int

func (*ReplicationConfig) XXX_Unmarshal Uses

func (m *ReplicationConfig) XXX_Unmarshal(b []byte) error

type ReplicationType Uses

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) EnumDescriptor Uses

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

func (ReplicationType) String Uses

func (x ReplicationType) String() string

type StringReplacementRule Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Describes how to replace a text with another text.

func (*StringReplacementRule) Descriptor Uses

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

func (*StringReplacementRule) GetAfter Uses

func (m *StringReplacementRule) GetAfter() string

func (*StringReplacementRule) GetBefore Uses

func (m *StringReplacementRule) GetBefore() string

func (*StringReplacementRule) ProtoMessage Uses

func (*StringReplacementRule) ProtoMessage()

func (*StringReplacementRule) Reset Uses

func (m *StringReplacementRule) Reset()

func (*StringReplacementRule) String Uses

func (m *StringReplacementRule) String() string

func (*StringReplacementRule) XXX_DiscardUnknown Uses

func (m *StringReplacementRule) XXX_DiscardUnknown()

func (*StringReplacementRule) XXX_Marshal Uses

func (m *StringReplacementRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StringReplacementRule) XXX_Merge Uses

func (m *StringReplacementRule) XXX_Merge(src proto.Message)

func (*StringReplacementRule) XXX_Size Uses

func (m *StringReplacementRule) XXX_Size() int

func (*StringReplacementRule) XXX_Unmarshal Uses

func (m *StringReplacementRule) XXX_Unmarshal(b []byte) error

Package config imports 4 packages (graph). Updated 2019-12-14. Refresh now. Tools for package owners.