pbautoconf

package
v1.8.11-beta1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAutoConfig = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAutoConfig   = fmt.Errorf("proto: integer overflow")
)

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

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

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

func (*AutoConfigRequest) GetCSR

func (m *AutoConfigRequest) GetCSR() string

func (*AutoConfigRequest) GetConsulToken

func (m *AutoConfigRequest) GetConsulToken() string

func (*AutoConfigRequest) GetDatacenter

func (m *AutoConfigRequest) GetDatacenter() string

func (*AutoConfigRequest) GetJWT

func (m *AutoConfigRequest) GetJWT() string

func (*AutoConfigRequest) GetNode

func (m *AutoConfigRequest) GetNode() string

func (*AutoConfigRequest) GetSegment

func (m *AutoConfigRequest) GetSegment() string

func (*AutoConfigRequest) IsRead

func (req *AutoConfigRequest) IsRead() bool

func (*AutoConfigRequest) Marshal

func (m *AutoConfigRequest) Marshal() (dAtA []byte, err error)

func (*AutoConfigRequest) MarshalBinary

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

MarshalBinary implements encoding.BinaryMarshaler

func (*AutoConfigRequest) MarshalTo

func (m *AutoConfigRequest) MarshalTo(dAtA []byte) (int, error)

func (*AutoConfigRequest) MarshalToSizedBuffer added in v1.8.2

func (m *AutoConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AutoConfigRequest) ProtoMessage

func (*AutoConfigRequest) ProtoMessage()

func (*AutoConfigRequest) RequestDatacenter

func (req *AutoConfigRequest) RequestDatacenter() string

func (*AutoConfigRequest) Reset

func (m *AutoConfigRequest) Reset()

func (*AutoConfigRequest) SetTokenSecret

func (req *AutoConfigRequest) SetTokenSecret(token string)

func (*AutoConfigRequest) Size

func (m *AutoConfigRequest) Size() (n int)

func (*AutoConfigRequest) String

func (m *AutoConfigRequest) String() string

func (*AutoConfigRequest) TokenSecret

func (req *AutoConfigRequest) TokenSecret() string

func (*AutoConfigRequest) Unmarshal

func (m *AutoConfigRequest) Unmarshal(dAtA []byte) error

func (*AutoConfigRequest) UnmarshalBinary

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

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*AutoConfigRequest) XXX_DiscardUnknown

func (m *AutoConfigRequest) XXX_DiscardUnknown()

func (*AutoConfigRequest) XXX_Marshal

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

func (*AutoConfigRequest) XXX_Merge

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

func (*AutoConfigRequest) XXX_Size

func (m *AutoConfigRequest) XXX_Size() int

func (*AutoConfigRequest) XXX_Unmarshal

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

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

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

func (*AutoConfigResponse) Descriptor

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

func (*AutoConfigResponse) GetCARoots

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

func (*AutoConfigResponse) GetCertificate

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

func (*AutoConfigResponse) GetConfig

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

func (*AutoConfigResponse) GetExtraCACertificates

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

func (*AutoConfigResponse) Marshal

func (m *AutoConfigResponse) Marshal() (dAtA []byte, err error)

func (*AutoConfigResponse) MarshalBinary

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

MarshalBinary implements encoding.BinaryMarshaler

func (*AutoConfigResponse) MarshalTo

func (m *AutoConfigResponse) MarshalTo(dAtA []byte) (int, error)

func (*AutoConfigResponse) MarshalToSizedBuffer added in v1.8.2

func (m *AutoConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AutoConfigResponse) ProtoMessage

func (*AutoConfigResponse) ProtoMessage()

func (*AutoConfigResponse) Reset

func (m *AutoConfigResponse) Reset()

func (*AutoConfigResponse) Size

func (m *AutoConfigResponse) Size() (n int)

func (*AutoConfigResponse) String

func (m *AutoConfigResponse) String() string

func (*AutoConfigResponse) Unmarshal

func (m *AutoConfigResponse) Unmarshal(dAtA []byte) error

func (*AutoConfigResponse) UnmarshalBinary

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

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*AutoConfigResponse) XXX_DiscardUnknown

func (m *AutoConfigResponse) XXX_DiscardUnknown()

func (*AutoConfigResponse) XXX_Marshal

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

func (*AutoConfigResponse) XXX_Merge

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

func (*AutoConfigResponse) XXX_Size

func (m *AutoConfigResponse) XXX_Size() int

func (*AutoConfigResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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