public_replication

package
v0.0.0-...-b8a1838 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_chromiumos_config_public_replication_public_replication_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type PublicReplication

type PublicReplication struct {
	PublicFields *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=public_fields,json=publicFields,proto3" json:"public_fields,omitempty"`
	// contains filtered or unexported fields
}

Configures which fields in a ConfigBundle are made public.

Any message in a ConfigBundle that has a PublicReplication message as a field will have the fields specified by the public_fields FieldMask made public. For example, consider the ConfigBundle:

software_configs {
  audio_configs {
    card_name: "testcard"
    private_field: "secretA"
    public_replication {
      public_fields {
        paths: "card_name"
      }
    }
  }
}

"card_name" will be made public, "private_field" will not be.

A few notes:

  • Currently PublicReplication just wraps a FieldMask. This is done so that it can be discovered via proto reflection without accidentally using FieldMasks that are not meant to control public fields.
  • In FieldMasks a repeated field is only allowed in the last position of a path (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask). Using a single FieldMask for a ConfigBundle would not be very useful, since more granularity is needed (i.e. saying all or none of "software_configs" is public is not useful). Thus, FieldMasks to control public fields are specified in child messages of ConfigBundle.

func (*PublicReplication) Descriptor deprecated

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

Deprecated: Use PublicReplication.ProtoReflect.Descriptor instead.

func (*PublicReplication) GetPublicFields

func (x *PublicReplication) GetPublicFields() *fieldmaskpb.FieldMask

func (*PublicReplication) ProtoMessage

func (*PublicReplication) ProtoMessage()

func (*PublicReplication) ProtoReflect

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

func (*PublicReplication) Reset

func (x *PublicReplication) Reset()

func (*PublicReplication) String

func (x *PublicReplication) String() string

Jump to

Keyboard shortcuts

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