secret

package
v0.0.0-...-49c8f32 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Algorithm_name = map[int32]string{
	0: "None",
	1: "HMAC",
	2: "RSA",
	3: "PSS",
	4: "ECDSA",
	5: "EdDSA",
}
View Source
var Algorithm_value = map[string]int32{
	"None":  0,
	"HMAC":  1,
	"RSA":   2,
	"PSS":   3,
	"ECDSA": 4,
	"EdDSA": 5,
}
View Source
var Type_name = map[int32]string{
	0: "CLIENT",
	1: "SERVER",
}
View Source
var Type_value = map[string]int32{
	"CLIENT": 0,
	"SERVER": 1,
}

Functions

This section is empty.

Types

type Algorithm

type Algorithm int32

Token algorithm

const (
	Algorithm_None  Algorithm = 0
	Algorithm_HMAC  Algorithm = 1
	Algorithm_RSA   Algorithm = 2
	Algorithm_PSS   Algorithm = 3
	Algorithm_ECDSA Algorithm = 4
	Algorithm_EdDSA Algorithm = 5
)

func (Algorithm) EnumDescriptor

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

func (Algorithm) String

func (x Algorithm) String() string

type Info

type Info struct {
	Type                 Type                 `protobuf:"varint,1,opt,name=type,proto3,enum=appootb.secret.Type" json:"type,omitempty"`
	Algorithm            Algorithm            `protobuf:"varint,2,opt,name=algorithm,proto3,enum=appootb.secret.Algorithm" json:"algorithm,omitempty"`
	Issuer               string               `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"`
	Account              uint64               `protobuf:"varint,4,opt,name=account,proto3" json:"account,omitempty"`
	KeyId                int64                `protobuf:"varint,5,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	Roles                []string             `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"`
	Subject              permission.Subject   `protobuf:"varint,11,opt,name=subject,proto3,enum=appootb.permission.method.Subject" json:"subject,omitempty"`
	IssuedAt             *timestamp.Timestamp `protobuf:"bytes,21,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
	ExpiredAt            *timestamp.Timestamp `protobuf:"bytes,22,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Token secret info.

func (*Info) Descriptor

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

func (*Info) GetAccount

func (m *Info) GetAccount() uint64

func (*Info) GetAlgorithm

func (m *Info) GetAlgorithm() Algorithm

func (*Info) GetExpiredAt

func (m *Info) GetExpiredAt() *timestamp.Timestamp

func (*Info) GetIssuedAt

func (m *Info) GetIssuedAt() *timestamp.Timestamp

func (*Info) GetIssuer

func (m *Info) GetIssuer() string

func (*Info) GetKeyId

func (m *Info) GetKeyId() int64

func (*Info) GetRoles

func (m *Info) GetRoles() []string

func (*Info) GetSubject

func (m *Info) GetSubject() permission.Subject

func (*Info) GetType

func (m *Info) GetType() Type

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) Reset

func (m *Info) Reset()

func (*Info) String

func (m *Info) String() string

func (*Info) XXX_DiscardUnknown

func (m *Info) XXX_DiscardUnknown()

func (*Info) XXX_Marshal

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

func (*Info) XXX_Merge

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

func (*Info) XXX_Size

func (m *Info) XXX_Size() int

func (*Info) XXX_Unmarshal

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

type Type

type Type int32

Secret type.

const (
	Type_CLIENT Type = 0
	Type_SERVER Type = 1
)

func (Type) EnumDescriptor

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

func (Type) String

func (x Type) String() string

Jump to

Keyboard shortcuts

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