journal

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Status_name = map[int32]string{
		0: "UNKNOWN",
		2: "PREPARED",
		3: "ACTIVE",
		4: "OLD",
	}
	Status_value = map[string]int32{
		"UNKNOWN":  0,
		"PREPARED": 2,
		"ACTIVE":   3,
		"OLD":      4,
	}
)

Enum value maps for Status.

View Source
var File_private_server_journal_journal_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Entries

type Entries struct {
	X509CAs []*X509CAEntry `protobuf:"bytes,1,rep,name=x509CAs,proto3" json:"x509CAs,omitempty"`
	JwtKeys []*JWTKeyEntry `protobuf:"bytes,2,rep,name=jwtKeys,proto3" json:"jwtKeys,omitempty"`
	// contains filtered or unexported fields
}

func (*Entries) Descriptor deprecated

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

Deprecated: Use Entries.ProtoReflect.Descriptor instead.

func (*Entries) GetJwtKeys

func (x *Entries) GetJwtKeys() []*JWTKeyEntry

func (*Entries) GetX509CAs

func (x *Entries) GetX509CAs() []*X509CAEntry

func (*Entries) ProtoMessage

func (*Entries) ProtoMessage()

func (*Entries) ProtoReflect added in v0.12.0

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

func (*Entries) Reset

func (x *Entries) Reset()

func (*Entries) String

func (x *Entries) String() string

type JWTKeyEntry

type JWTKeyEntry struct {

	// Which JWT Key slot this entry occupied.
	SlotId string `protobuf:"bytes,1,opt,name=slot_id,json=slotId,proto3" json:"slot_id,omitempty"`
	// When the key was issued (unix epoch in seconds)
	IssuedAt int64 `protobuf:"varint,2,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
	// When the key expires unix epoch in seconds)
	NotAfter int64 `protobuf:"varint,3,opt,name=not_after,json=notAfter,proto3" json:"not_after,omitempty"`
	// JWT key id (i.e. "kid" claim)
	Kid string `protobuf:"bytes,4,opt,name=kid,proto3" json:"kid,omitempty"`
	// PKIX encoded public key
	PublicKey []byte `protobuf:"bytes,5,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// The entry status
	Status Status `protobuf:"varint,6,opt,name=status,proto3,enum=Status" json:"status,omitempty"`
	// The JWT key ID
	AuthorityId string `protobuf:"bytes,7,opt,name=authority_id,json=authorityId,proto3" json:"authority_id,omitempty"`
	// contains filtered or unexported fields
}

func (*JWTKeyEntry) Descriptor deprecated

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

Deprecated: Use JWTKeyEntry.ProtoReflect.Descriptor instead.

func (*JWTKeyEntry) GetAuthorityId added in v1.7.2

func (x *JWTKeyEntry) GetAuthorityId() string

func (*JWTKeyEntry) GetIssuedAt

func (x *JWTKeyEntry) GetIssuedAt() int64

func (*JWTKeyEntry) GetKid

func (x *JWTKeyEntry) GetKid() string

func (*JWTKeyEntry) GetNotAfter

func (x *JWTKeyEntry) GetNotAfter() int64

func (*JWTKeyEntry) GetPublicKey

func (x *JWTKeyEntry) GetPublicKey() []byte

func (*JWTKeyEntry) GetSlotId

func (x *JWTKeyEntry) GetSlotId() string

func (*JWTKeyEntry) GetStatus added in v1.7.1

func (x *JWTKeyEntry) GetStatus() Status

func (*JWTKeyEntry) ProtoMessage

func (*JWTKeyEntry) ProtoMessage()

func (*JWTKeyEntry) ProtoReflect added in v0.12.0

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

func (*JWTKeyEntry) Reset

func (x *JWTKeyEntry) Reset()

func (*JWTKeyEntry) String

func (x *JWTKeyEntry) String() string

type Status added in v1.7.1

type Status int32
const (
	// Status is unknown.
	Status_UNKNOWN Status = 0
	// This holds a new authority that was prepared for future uses.
	Status_PREPARED Status = 2
	// This holds the active authority that is currently being used for
	// signing operations.
	Status_ACTIVE Status = 3
	// This holds an old authority that is no longer used.
	Status_OLD Status = 4
)

func (Status) Descriptor added in v1.7.1

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum added in v1.7.1

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated added in v1.7.1

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number added in v1.7.1

func (x Status) Number() protoreflect.EnumNumber

func (Status) String added in v1.7.1

func (x Status) String() string

func (Status) Type added in v1.7.1

func (Status) Type() protoreflect.EnumType

type X509CAEntry

type X509CAEntry struct {

	// Which X509 CA slot this entry occupied.
	SlotId string `protobuf:"bytes,1,opt,name=slot_id,json=slotId,proto3" json:"slot_id,omitempty"`
	// When the CA was issued (unix epoch in seconds)
	IssuedAt int64 `protobuf:"varint,2,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
	// DER encoded CA certificate
	Certificate []byte `protobuf:"bytes,3,opt,name=certificate,proto3" json:"certificate,omitempty"`
	// DER encoded upstream CA chain. See the X509CA struct for details.
	UpstreamChain [][]byte `protobuf:"bytes,4,rep,name=upstream_chain,json=upstreamChain,proto3" json:"upstream_chain,omitempty"`
	// The entry status
	Status Status `protobuf:"varint,5,opt,name=status,proto3,enum=Status" json:"status,omitempty"`
	// The X.509 Subject Key Identifier (SKID)
	AuthorityId string `protobuf:"bytes,6,opt,name=authority_id,json=authorityId,proto3" json:"authority_id,omitempty"`
	// contains filtered or unexported fields
}

func (*X509CAEntry) Descriptor deprecated

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

Deprecated: Use X509CAEntry.ProtoReflect.Descriptor instead.

func (*X509CAEntry) GetAuthorityId added in v1.7.2

func (x *X509CAEntry) GetAuthorityId() string

func (*X509CAEntry) GetCertificate

func (x *X509CAEntry) GetCertificate() []byte

func (*X509CAEntry) GetIssuedAt

func (x *X509CAEntry) GetIssuedAt() int64

func (*X509CAEntry) GetSlotId

func (x *X509CAEntry) GetSlotId() string

func (*X509CAEntry) GetStatus added in v1.7.1

func (x *X509CAEntry) GetStatus() Status

func (*X509CAEntry) GetUpstreamChain

func (x *X509CAEntry) GetUpstreamChain() [][]byte

func (*X509CAEntry) ProtoMessage

func (*X509CAEntry) ProtoMessage()

func (*X509CAEntry) ProtoReflect added in v0.12.0

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

func (*X509CAEntry) Reset

func (x *X509CAEntry) Reset()

func (*X509CAEntry) String

func (x *X509CAEntry) String() string

Jump to

Keyboard shortcuts

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