pbautoconf

package
v1.12.7 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_pbautoconf_auto_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AutoConfigRequest

type AutoConfigRequest struct {

	// Datacenter is the local datacenter name. This wont actually be set by clients
	// but rather will be set by the servers to allow for forwarding to
	// the leader. If it ever happens to be set and differs from the local datacenters
	// name then an error should be returned.
	Datacenter string `protobuf:"bytes,1,opt,name=Datacenter,proto3" json:"Datacenter,omitempty"`
	// Node is the node name that the requester would like to assume
	// the identity of.
	Node string `protobuf:"bytes,2,opt,name=Node,proto3" json:"Node,omitempty"`
	// Segment is the network segment that the requester would like to join
	Segment string `protobuf:"bytes,4,opt,name=Segment,proto3" json:"Segment,omitempty"`
	// Partition is the partition that the requester would like to join
	Partition string `protobuf:"bytes,8,opt,name=Partition,proto3" json:"Partition,omitempty"`
	// JWT is a signed JSON Web Token used to authorize the request
	JWT string `protobuf:"bytes,5,opt,name=JWT,proto3" json:"JWT,omitempty"`
	// ConsulToken is a Consul ACL token that the agent requesting the
	// configuration already has.
	ConsulToken string `protobuf:"bytes,6,opt,name=ConsulToken,proto3" json:"ConsulToken,omitempty"`
	// CSR is a certificate signing request to be used when generating the
	// agents TLS certificate
	CSR string `protobuf:"bytes,7,opt,name=CSR,proto3" json:"CSR,omitempty"`
	// contains filtered or unexported fields
}

AutoConfigRequest is the data structure to be sent along with the AutoConfig.InitialConfiguration RPC

func (*AutoConfigRequest) AllowStaleRead

func (req *AutoConfigRequest) AllowStaleRead() bool

func (*AutoConfigRequest) Descriptor deprecated

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

Deprecated: Use AutoConfigRequest.ProtoReflect.Descriptor instead.

func (*AutoConfigRequest) GetCSR

func (x *AutoConfigRequest) GetCSR() string

func (*AutoConfigRequest) GetConsulToken

func (x *AutoConfigRequest) GetConsulToken() string

func (*AutoConfigRequest) GetDatacenter

func (x *AutoConfigRequest) GetDatacenter() string

func (*AutoConfigRequest) GetJWT

func (x *AutoConfigRequest) GetJWT() string

func (*AutoConfigRequest) GetNode

func (x *AutoConfigRequest) GetNode() string

func (*AutoConfigRequest) GetPartition added in v1.11.0

func (x *AutoConfigRequest) GetPartition() string

func (*AutoConfigRequest) GetSegment

func (x *AutoConfigRequest) GetSegment() string

func (*AutoConfigRequest) HasTimedOut added in v1.11.0

func (req *AutoConfigRequest) HasTimedOut(start time.Time, rpcHoldTimeout, _, _ time.Duration) (bool, error)

func (*AutoConfigRequest) IsRead

func (req *AutoConfigRequest) IsRead() bool

func (*AutoConfigRequest) MarshalBinary

func (msg *AutoConfigRequest) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*AutoConfigRequest) PartitionOrDefault added in v1.11.0

func (req *AutoConfigRequest) PartitionOrDefault() string

func (*AutoConfigRequest) ProtoMessage

func (*AutoConfigRequest) ProtoMessage()

func (*AutoConfigRequest) ProtoReflect added in v1.12.0

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

func (*AutoConfigRequest) RequestDatacenter

func (req *AutoConfigRequest) RequestDatacenter() string

func (*AutoConfigRequest) Reset

func (x *AutoConfigRequest) Reset()

func (*AutoConfigRequest) SetTokenSecret

func (req *AutoConfigRequest) SetTokenSecret(token string)

func (*AutoConfigRequest) String

func (x *AutoConfigRequest) String() string

func (*AutoConfigRequest) TokenSecret

func (req *AutoConfigRequest) TokenSecret() string

func (*AutoConfigRequest) UnmarshalBinary

func (msg *AutoConfigRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

type AutoConfigResponse

type AutoConfigResponse struct {

	// Config is the partial Consul configuration to inject into the agents own configuration
	Config *pbconfig.Config `protobuf:"bytes,1,opt,name=Config,proto3" json:"Config,omitempty"`
	// CARoots is the current list of Connect CA Roots
	CARoots *pbconnect.CARoots `protobuf:"bytes,2,opt,name=CARoots,proto3" json:"CARoots,omitempty"`
	// Certificate is the TLS certificate issued for the agent
	Certificate *pbconnect.IssuedCert `protobuf:"bytes,3,opt,name=Certificate,proto3" json:"Certificate,omitempty"`
	// ExtraCACertificates holds non-Connect certificates that may be necessary
	// to verify TLS connections with the Consul servers
	ExtraCACertificates []string `protobuf:"bytes,4,rep,name=ExtraCACertificates,proto3" json:"ExtraCACertificates,omitempty"`
	// contains filtered or unexported fields
}

AutoConfigResponse is the data structure sent in response to a AutoConfig.InitialConfiguration request

func (*AutoConfigResponse) Descriptor deprecated

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

Deprecated: Use AutoConfigResponse.ProtoReflect.Descriptor instead.

func (*AutoConfigResponse) GetCARoots

func (x *AutoConfigResponse) GetCARoots() *pbconnect.CARoots

func (*AutoConfigResponse) GetCertificate

func (x *AutoConfigResponse) GetCertificate() *pbconnect.IssuedCert

func (*AutoConfigResponse) GetConfig

func (x *AutoConfigResponse) GetConfig() *pbconfig.Config

func (*AutoConfigResponse) GetExtraCACertificates

func (x *AutoConfigResponse) GetExtraCACertificates() []string

func (*AutoConfigResponse) MarshalBinary

func (msg *AutoConfigResponse) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*AutoConfigResponse) ProtoMessage

func (*AutoConfigResponse) ProtoMessage()

func (*AutoConfigResponse) ProtoReflect added in v1.12.0

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

func (*AutoConfigResponse) Reset

func (x *AutoConfigResponse) Reset()

func (*AutoConfigResponse) String

func (x *AutoConfigResponse) String() string

func (*AutoConfigResponse) UnmarshalBinary

func (msg *AutoConfigResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

Jump to

Keyboard shortcuts

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