common_go_proto

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Ciphersuite_name = map[int32]string{
		0: "AES_128_GCM_SHA256",
		1: "AES_256_GCM_SHA384",
		2: "CHACHA20_POLY1305_SHA256",
	}
	Ciphersuite_value = map[string]int32{
		"AES_128_GCM_SHA256":       0,
		"AES_256_GCM_SHA384":       1,
		"CHACHA20_POLY1305_SHA256": 2,
	}
)

Enum value maps for Ciphersuite.

View Source
var (
	TLSVersion_name = map[int32]string{
		0: "TLS1_2",
		1: "TLS1_3",
	}
	TLSVersion_value = map[string]int32{
		"TLS1_2": 0,
		"TLS1_3": 1,
	}
)

Enum value maps for TLSVersion.

View Source
var File_internal_proto_common_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Ciphersuite

type Ciphersuite int32

The ciphersuites supported by S2A. The name determines the confidentiality, and authentication ciphers as well as the hash algorithm used for PRF in TLS 1.2 or HKDF in TLS 1.3. Thus, the components of the name are:

  • AEAD -- for encryption and authentication, e.g., AES_128_GCM.
  • Hash algorithm -- used in PRF or HKDF, e.g., SHA256.
const (
	Ciphersuite_AES_128_GCM_SHA256       Ciphersuite = 0
	Ciphersuite_AES_256_GCM_SHA384       Ciphersuite = 1
	Ciphersuite_CHACHA20_POLY1305_SHA256 Ciphersuite = 2
)

func (Ciphersuite) Descriptor

func (Ciphersuite) Enum

func (x Ciphersuite) Enum() *Ciphersuite

func (Ciphersuite) EnumDescriptor deprecated

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

Deprecated: Use Ciphersuite.Descriptor instead.

func (Ciphersuite) Number

func (x Ciphersuite) Number() protoreflect.EnumNumber

func (Ciphersuite) String

func (x Ciphersuite) String() string

func (Ciphersuite) Type

type Identity

type Identity struct {

	// Types that are assignable to IdentityOneof:
	//
	//	*Identity_SpiffeId
	//	*Identity_Hostname
	//	*Identity_Uid
	//	*Identity_Username
	//	*Identity_GcpId
	IdentityOneof isIdentity_IdentityOneof `protobuf_oneof:"identity_oneof"`
	// Additional identity-specific attributes.
	Attributes map[string]string `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Identity) Descriptor deprecated

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

Deprecated: Use Identity.ProtoReflect.Descriptor instead.

func (*Identity) GetAttributes

func (x *Identity) GetAttributes() map[string]string

func (*Identity) GetGcpId added in v0.1.8

func (x *Identity) GetGcpId() string

func (*Identity) GetHostname

func (x *Identity) GetHostname() string

func (*Identity) GetIdentityOneof

func (m *Identity) GetIdentityOneof() isIdentity_IdentityOneof

func (*Identity) GetSpiffeId

func (x *Identity) GetSpiffeId() string

func (*Identity) GetUid

func (x *Identity) GetUid() string

func (*Identity) GetUsername added in v0.1.8

func (x *Identity) GetUsername() string

func (*Identity) ProtoMessage

func (*Identity) ProtoMessage()

func (*Identity) ProtoReflect

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

func (*Identity) Reset

func (x *Identity) Reset()

func (*Identity) String

func (x *Identity) String() string

type Identity_GcpId added in v0.1.8

type Identity_GcpId struct {
	// The GCP ID of a connection endpoint.
	GcpId string `protobuf:"bytes,6,opt,name=gcp_id,json=gcpId,proto3,oneof"`
}

type Identity_Hostname

type Identity_Hostname struct {
	// The hostname of a connection endpoint.
	Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3,oneof"`
}

type Identity_SpiffeId

type Identity_SpiffeId struct {
	// The SPIFFE ID of a connection endpoint.
	SpiffeId string `protobuf:"bytes,1,opt,name=spiffe_id,json=spiffeId,proto3,oneof"`
}

type Identity_Uid

type Identity_Uid struct {
	// The UID of a connection endpoint.
	Uid string `protobuf:"bytes,4,opt,name=uid,proto3,oneof"`
}

type Identity_Username added in v0.1.8

type Identity_Username struct {
	// The username of a connection endpoint.
	Username string `protobuf:"bytes,5,opt,name=username,proto3,oneof"`
}

type TLSVersion

type TLSVersion int32

The TLS versions supported by S2A's handshaker module.

const (
	TLSVersion_TLS1_2 TLSVersion = 0
	TLSVersion_TLS1_3 TLSVersion = 1
)

func (TLSVersion) Descriptor

func (TLSVersion) Descriptor() protoreflect.EnumDescriptor

func (TLSVersion) Enum

func (x TLSVersion) Enum() *TLSVersion

func (TLSVersion) EnumDescriptor deprecated

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

Deprecated: Use TLSVersion.Descriptor instead.

func (TLSVersion) Number

func (x TLSVersion) Number() protoreflect.EnumNumber

func (TLSVersion) String

func (x TLSVersion) String() string

func (TLSVersion) Type

Jump to

Keyboard shortcuts

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