jwtpb

package
v0.0.0-...-06e8911 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthJwt        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowJwt          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupJwt = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type ClusterJWTClaims

type ClusterJWTClaims struct {
	ClusterID string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"clusterID"`
}

func (*ClusterJWTClaims) Descriptor

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

func (*ClusterJWTClaims) Equal

func (this *ClusterJWTClaims) Equal(that interface{}) bool

func (*ClusterJWTClaims) GetClusterID

func (m *ClusterJWTClaims) GetClusterID() string

func (*ClusterJWTClaims) GoString

func (this *ClusterJWTClaims) GoString() string

func (*ClusterJWTClaims) Marshal

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

func (*ClusterJWTClaims) MarshalTo

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

func (*ClusterJWTClaims) MarshalToSizedBuffer

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

func (*ClusterJWTClaims) ProtoMessage

func (*ClusterJWTClaims) ProtoMessage()

func (*ClusterJWTClaims) Reset

func (m *ClusterJWTClaims) Reset()

func (*ClusterJWTClaims) Size

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

func (*ClusterJWTClaims) String

func (this *ClusterJWTClaims) String() string

func (*ClusterJWTClaims) Unmarshal

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

func (*ClusterJWTClaims) XXX_DiscardUnknown

func (m *ClusterJWTClaims) XXX_DiscardUnknown()

func (*ClusterJWTClaims) XXX_Marshal

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

func (*ClusterJWTClaims) XXX_Merge

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

func (*ClusterJWTClaims) XXX_Size

func (m *ClusterJWTClaims) XXX_Size() int

func (*ClusterJWTClaims) XXX_Unmarshal

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

type JWTClaims

type JWTClaims struct {
	Audience  string   `protobuf:"bytes,1,opt,name=audience,proto3" json:"aud"`
	ExpiresAt int64    `protobuf:"varint,2,opt,name=expires_at,json=expiresAt,proto3" json:"exp"`
	JTI       string   `protobuf:"bytes,3,opt,name=jti,proto3" json:"jti"`
	IssuedAt  int64    `protobuf:"varint,4,opt,name=issued_at,json=issuedAt,proto3" json:"iat"`
	Issuer    string   `protobuf:"bytes,5,opt,name=issuer,proto3" json:"iss"`
	NotBefore int64    `protobuf:"varint,6,opt,name=not_before,json=notBefore,proto3" json:"nbf"`
	Subject   string   `protobuf:"bytes,7,opt,name=subject,proto3" json:"sub"`
	Scopes    []string `protobuf:"bytes,8,rep,name=scopes,proto3" json:"scopes,omitempty"`
	// Types that are valid to be assigned to CustomClaims:
	//
	//	*JWTClaims_UserClaims
	//	*JWTClaims_ServiceClaims
	//	*JWTClaims_ClusterClaims
	CustomClaims isJWTClaims_CustomClaims `protobuf_oneof:"custom_claims"`
}

func (*JWTClaims) Descriptor

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

func (*JWTClaims) Equal

func (this *JWTClaims) Equal(that interface{}) bool

func (*JWTClaims) GetAudience

func (m *JWTClaims) GetAudience() string

func (*JWTClaims) GetClusterClaims

func (m *JWTClaims) GetClusterClaims() *ClusterJWTClaims

func (*JWTClaims) GetCustomClaims

func (m *JWTClaims) GetCustomClaims() isJWTClaims_CustomClaims

func (*JWTClaims) GetExpiresAt

func (m *JWTClaims) GetExpiresAt() int64

func (*JWTClaims) GetIssuedAt

func (m *JWTClaims) GetIssuedAt() int64

func (*JWTClaims) GetIssuer

func (m *JWTClaims) GetIssuer() string

func (*JWTClaims) GetJTI

func (m *JWTClaims) GetJTI() string

func (*JWTClaims) GetNotBefore

func (m *JWTClaims) GetNotBefore() int64

func (*JWTClaims) GetScopes

func (m *JWTClaims) GetScopes() []string

func (*JWTClaims) GetServiceClaims

func (m *JWTClaims) GetServiceClaims() *ServiceJWTClaims

func (*JWTClaims) GetSubject

func (m *JWTClaims) GetSubject() string

func (*JWTClaims) GetUserClaims

func (m *JWTClaims) GetUserClaims() *UserJWTClaims

func (*JWTClaims) GoString

func (this *JWTClaims) GoString() string

func (*JWTClaims) Marshal

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

func (*JWTClaims) MarshalTo

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

func (*JWTClaims) MarshalToSizedBuffer

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

func (*JWTClaims) ProtoMessage

func (*JWTClaims) ProtoMessage()

func (*JWTClaims) Reset

func (m *JWTClaims) Reset()

func (*JWTClaims) Size

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

func (*JWTClaims) String

func (this *JWTClaims) String() string

func (*JWTClaims) Unmarshal

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

func (*JWTClaims) XXX_DiscardUnknown

func (m *JWTClaims) XXX_DiscardUnknown()

func (*JWTClaims) XXX_Marshal

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

func (*JWTClaims) XXX_Merge

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

func (*JWTClaims) XXX_OneofWrappers

func (*JWTClaims) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*JWTClaims) XXX_Size

func (m *JWTClaims) XXX_Size() int

func (*JWTClaims) XXX_Unmarshal

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

type JWTClaims_ClusterClaims

type JWTClaims_ClusterClaims struct {
	ClusterClaims *ClusterJWTClaims `protobuf:"bytes,11,opt,name=cluster_claims,json=clusterClaims,proto3,oneof" json:"cluster_claims,omitempty"`
}

func (*JWTClaims_ClusterClaims) Equal

func (this *JWTClaims_ClusterClaims) Equal(that interface{}) bool

func (*JWTClaims_ClusterClaims) GoString

func (this *JWTClaims_ClusterClaims) GoString() string

func (*JWTClaims_ClusterClaims) MarshalTo

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

func (*JWTClaims_ClusterClaims) MarshalToSizedBuffer

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

func (*JWTClaims_ClusterClaims) Size

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

func (*JWTClaims_ClusterClaims) String

func (this *JWTClaims_ClusterClaims) String() string

type JWTClaims_ServiceClaims

type JWTClaims_ServiceClaims struct {
	ServiceClaims *ServiceJWTClaims `protobuf:"bytes,10,opt,name=service_claims,json=serviceClaims,proto3,oneof" json:"service_claims,omitempty"`
}

func (*JWTClaims_ServiceClaims) Equal

func (this *JWTClaims_ServiceClaims) Equal(that interface{}) bool

func (*JWTClaims_ServiceClaims) GoString

func (this *JWTClaims_ServiceClaims) GoString() string

func (*JWTClaims_ServiceClaims) MarshalTo

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

func (*JWTClaims_ServiceClaims) MarshalToSizedBuffer

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

func (*JWTClaims_ServiceClaims) Size

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

func (*JWTClaims_ServiceClaims) String

func (this *JWTClaims_ServiceClaims) String() string

type JWTClaims_UserClaims

type JWTClaims_UserClaims struct {
	UserClaims *UserJWTClaims `protobuf:"bytes,9,opt,name=user_claims,json=userClaims,proto3,oneof" json:"user_claims,omitempty"`
}

func (*JWTClaims_UserClaims) Equal

func (this *JWTClaims_UserClaims) Equal(that interface{}) bool

func (*JWTClaims_UserClaims) GoString

func (this *JWTClaims_UserClaims) GoString() string

func (*JWTClaims_UserClaims) MarshalTo

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

func (*JWTClaims_UserClaims) MarshalToSizedBuffer

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

func (*JWTClaims_UserClaims) Size

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

func (*JWTClaims_UserClaims) String

func (this *JWTClaims_UserClaims) String() string

type ServiceJWTClaims

type ServiceJWTClaims struct {
	ServiceID string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"serviceID"`
}

func (*ServiceJWTClaims) Descriptor

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

func (*ServiceJWTClaims) Equal

func (this *ServiceJWTClaims) Equal(that interface{}) bool

func (*ServiceJWTClaims) GetServiceID

func (m *ServiceJWTClaims) GetServiceID() string

func (*ServiceJWTClaims) GoString

func (this *ServiceJWTClaims) GoString() string

func (*ServiceJWTClaims) Marshal

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

func (*ServiceJWTClaims) MarshalTo

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

func (*ServiceJWTClaims) MarshalToSizedBuffer

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

func (*ServiceJWTClaims) ProtoMessage

func (*ServiceJWTClaims) ProtoMessage()

func (*ServiceJWTClaims) Reset

func (m *ServiceJWTClaims) Reset()

func (*ServiceJWTClaims) Size

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

func (*ServiceJWTClaims) String

func (this *ServiceJWTClaims) String() string

func (*ServiceJWTClaims) Unmarshal

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

func (*ServiceJWTClaims) XXX_DiscardUnknown

func (m *ServiceJWTClaims) XXX_DiscardUnknown()

func (*ServiceJWTClaims) XXX_Marshal

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

func (*ServiceJWTClaims) XXX_Merge

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

func (*ServiceJWTClaims) XXX_Size

func (m *ServiceJWTClaims) XXX_Size() int

func (*ServiceJWTClaims) XXX_Unmarshal

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

type UserJWTClaims

type UserJWTClaims struct {
	UserID    string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"userID"`
	OrgID     string `protobuf:"bytes,2,opt,name=org_id,json=orgId,proto3" json:"orgID"`
	Email     string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	IsAPIUser bool   `protobuf:"varint,4,opt,name=is_api_user,json=isApiUser,proto3" json:"isAPIUser"`
}

func (*UserJWTClaims) Descriptor

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

func (*UserJWTClaims) Equal

func (this *UserJWTClaims) Equal(that interface{}) bool

func (*UserJWTClaims) GetEmail

func (m *UserJWTClaims) GetEmail() string

func (*UserJWTClaims) GetIsAPIUser

func (m *UserJWTClaims) GetIsAPIUser() bool

func (*UserJWTClaims) GetOrgID

func (m *UserJWTClaims) GetOrgID() string

func (*UserJWTClaims) GetUserID

func (m *UserJWTClaims) GetUserID() string

func (*UserJWTClaims) GoString

func (this *UserJWTClaims) GoString() string

func (*UserJWTClaims) Marshal

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

func (*UserJWTClaims) MarshalTo

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

func (*UserJWTClaims) MarshalToSizedBuffer

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

func (*UserJWTClaims) ProtoMessage

func (*UserJWTClaims) ProtoMessage()

func (*UserJWTClaims) Reset

func (m *UserJWTClaims) Reset()

func (*UserJWTClaims) Size

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

func (*UserJWTClaims) String

func (this *UserJWTClaims) String() string

func (*UserJWTClaims) Unmarshal

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

func (*UserJWTClaims) XXX_DiscardUnknown

func (m *UserJWTClaims) XXX_DiscardUnknown()

func (*UserJWTClaims) XXX_Marshal

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

func (*UserJWTClaims) XXX_Merge

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

func (*UserJWTClaims) XXX_Size

func (m *UserJWTClaims) XXX_Size() int

func (*UserJWTClaims) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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