...

Package common_go_proto

import "github.com/google/s2a-go/internal/proto/common_go_proto"
Overview
Index

Overview ▾

Variables

Enum value maps for Ciphersuite.

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 TLSVersion.

var (
    TLSVersion_name = map[int32]string{
        0: "TLS1_2",
        1: "TLS1_3",
    }
    TLSVersion_value = map[string]int32{
        "TLS1_2": 0,
        "TLS1_3": 1,
    }
)
var File_internal_proto_common_common_proto protoreflect.FileDescriptor

type Ciphersuite

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:

type Ciphersuite int32
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) Descriptor() protoreflect.EnumDescriptor

func (Ciphersuite) Enum

func (x Ciphersuite) Enum() *Ciphersuite

func (Ciphersuite) EnumDescriptor

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

func (Ciphersuite) Type() protoreflect.EnumType

type Identity

type Identity struct {

    // Types that are assignable to IdentityOneof:
    //
    //	*Identity_SpiffeId
    //	*Identity_Hostname
    //	*Identity_Uid
    //	*Identity_MdbUsername
    //	*Identity_GaiaId
    IdentityOneof isIdentity_IdentityOneof `protobuf_oneof:"identity_oneof"`
    // Additional identity-specific attributes.
    Attributes map[string]string `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // contains filtered or unexported fields
}

func (*Identity) Descriptor

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

Deprecated: Use Identity.ProtoReflect.Descriptor instead.

func (*Identity) GetAttributes

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

func (*Identity) GetGaiaId

func (x *Identity) GetGaiaId() string

func (*Identity) GetHostname

func (x *Identity) GetHostname() string

func (*Identity) GetIdentityOneof

func (m *Identity) GetIdentityOneof() isIdentity_IdentityOneof

func (*Identity) GetMdbUsername

func (x *Identity) GetMdbUsername() string

func (*Identity) GetSpiffeId

func (x *Identity) GetSpiffeId() string

func (*Identity) GetUid

func (x *Identity) GetUid() 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_GaiaId

type Identity_GaiaId struct {
    // The Gaia ID of a connection endpoint.
    GaiaId string `protobuf:"bytes,6,opt,name=gaia_id,json=gaiaId,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_MdbUsername

type Identity_MdbUsername struct {
    // The MDB username of a connection endpoint.
    MdbUsername string `protobuf:"bytes,5,opt,name=mdb_username,json=mdbUsername,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 TLSVersion

The TLS versions supported by S2A's handshaker module.

type TLSVersion int32
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

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

func (TLSVersion) Type() protoreflect.EnumType