types

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SelectorMatch_MatchBehavior_name = map[int32]string{
		0: "MATCH_EXACT",
		1: "MATCH_SUBSET",
	}
	SelectorMatch_MatchBehavior_value = map[string]int32{
		"MATCH_EXACT":  0,
		"MATCH_SUBSET": 1,
	}
)

Enum value maps for SelectorMatch_MatchBehavior.

View Source
var (
	PermissionDeniedDetails_Reason_name = map[int32]string{
		0: "UNKNOWN",
		1: "AGENT_EXPIRED",
		2: "AGENT_NOT_ATTESTED",
		3: "AGENT_NOT_ACTIVE",
		4: "AGENT_BANNED",
	}
	PermissionDeniedDetails_Reason_value = map[string]int32{
		"UNKNOWN":            0,
		"AGENT_EXPIRED":      1,
		"AGENT_NOT_ATTESTED": 2,
		"AGENT_NOT_ACTIVE":   3,
		"AGENT_BANNED":       4,
	}
)

Enum value maps for PermissionDeniedDetails_Reason.

View Source
var File_spire_types_agent_proto protoreflect.FileDescriptor
View Source
var File_spire_types_attestation_proto protoreflect.FileDescriptor
View Source
var File_spire_types_bundle_proto protoreflect.FileDescriptor
View Source
var File_spire_types_entry_proto protoreflect.FileDescriptor
View Source
var File_spire_types_jointoken_proto protoreflect.FileDescriptor
View Source
var File_spire_types_jwtsvid_proto protoreflect.FileDescriptor
View Source
var File_spire_types_selector_proto protoreflect.FileDescriptor
View Source
var File_spire_types_spiffeid_proto protoreflect.FileDescriptor
View Source
var File_spire_types_status_proto protoreflect.FileDescriptor
View Source
var File_spire_types_x509svid_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Agent

type Agent struct {

	// Output only. SPIFFE ID of the agent.
	Id *SPIFFEID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Output only. The method by which the agent attested.
	AttestationType string `protobuf:"bytes,2,opt,name=attestation_type,json=attestationType,proto3" json:"attestation_type,omitempty"`
	// Output only. The X509-SVID serial number.
	X509SvidSerialNumber string `protobuf:"bytes,3,opt,name=x509svid_serial_number,json=x509svidSerialNumber,proto3" json:"x509svid_serial_number,omitempty"`
	// Output only. The X509-SVID expiration (seconds since Unix epoch).
	X509SvidExpiresAt int64 `protobuf:"varint,4,opt,name=x509svid_expires_at,json=x509svidExpiresAt,proto3" json:"x509svid_expires_at,omitempty"`
	// Output only. The selectors attributed to the agent during attestation.
	Selectors []*Selector `protobuf:"bytes,5,rep,name=selectors,proto3" json:"selectors,omitempty"`
	// Output only. Whether or not the agent is banned.
	Banned bool `protobuf:"varint,6,opt,name=banned,proto3" json:"banned,omitempty"`
	// contains filtered or unexported fields
}

func (*Agent) Descriptor deprecated

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

Deprecated: Use Agent.ProtoReflect.Descriptor instead.

func (*Agent) GetAttestationType

func (x *Agent) GetAttestationType() string

func (*Agent) GetBanned

func (x *Agent) GetBanned() bool

func (*Agent) GetId

func (x *Agent) GetId() *SPIFFEID

func (*Agent) GetSelectors

func (x *Agent) GetSelectors() []*Selector

func (*Agent) GetX509SvidExpiresAt

func (x *Agent) GetX509SvidExpiresAt() int64

func (*Agent) GetX509SvidSerialNumber

func (x *Agent) GetX509SvidSerialNumber() string

func (*Agent) ProtoMessage

func (*Agent) ProtoMessage()

func (*Agent) ProtoReflect added in v0.12.0

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

func (*Agent) Reset

func (x *Agent) Reset()

func (*Agent) String

func (x *Agent) String() string

type AgentMask

type AgentMask struct {

	// attestation_type field mask
	AttestationType bool `protobuf:"varint,2,opt,name=attestation_type,json=attestationType,proto3" json:"attestation_type,omitempty"`
	// x509svid_serial_number field mask
	X509SvidSerialNumber bool `protobuf:"varint,3,opt,name=x509svid_serial_number,json=x509svidSerialNumber,proto3" json:"x509svid_serial_number,omitempty"`
	// x509svid_expires_at field mask
	X509SvidExpiresAt bool `protobuf:"varint,4,opt,name=x509svid_expires_at,json=x509svidExpiresAt,proto3" json:"x509svid_expires_at,omitempty"`
	// selectors field mask
	Selectors bool `protobuf:"varint,5,opt,name=selectors,proto3" json:"selectors,omitempty"`
	// banned field mask
	Banned bool `protobuf:"varint,6,opt,name=banned,proto3" json:"banned,omitempty"`
	// contains filtered or unexported fields
}

func (*AgentMask) Descriptor deprecated

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

Deprecated: Use AgentMask.ProtoReflect.Descriptor instead.

func (*AgentMask) GetAttestationType

func (x *AgentMask) GetAttestationType() bool

func (*AgentMask) GetBanned

func (x *AgentMask) GetBanned() bool

func (*AgentMask) GetSelectors

func (x *AgentMask) GetSelectors() bool

func (*AgentMask) GetX509SvidExpiresAt

func (x *AgentMask) GetX509SvidExpiresAt() bool

func (*AgentMask) GetX509SvidSerialNumber

func (x *AgentMask) GetX509SvidSerialNumber() bool

func (*AgentMask) ProtoMessage

func (*AgentMask) ProtoMessage()

func (*AgentMask) ProtoReflect added in v0.12.0

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

func (*AgentMask) Reset

func (x *AgentMask) Reset()

func (*AgentMask) String

func (x *AgentMask) String() string

type AttestationData

type AttestationData struct {

	// The type of attestation data. This is typically the name of the plugin
	// that produced that data.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// The attestation data payload.
	Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*AttestationData) Descriptor deprecated

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

Deprecated: Use AttestationData.ProtoReflect.Descriptor instead.

func (*AttestationData) GetPayload

func (x *AttestationData) GetPayload() []byte

func (*AttestationData) GetType

func (x *AttestationData) GetType() string

func (*AttestationData) ProtoMessage

func (*AttestationData) ProtoMessage()

func (*AttestationData) ProtoReflect added in v0.12.0

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

func (*AttestationData) Reset

func (x *AttestationData) Reset()

func (*AttestationData) String

func (x *AttestationData) String() string

type Bundle

type Bundle struct {

	// The name of the trust domain the bundle belongs to (e.g., "example.org").
	TrustDomain string `protobuf:"bytes,1,opt,name=trust_domain,json=trustDomain,proto3" json:"trust_domain,omitempty"`
	// X.509 authorities for authenticating X509-SVIDs.
	X509Authorities []*X509Certificate `protobuf:"bytes,2,rep,name=x509_authorities,json=x509Authorities,proto3" json:"x509_authorities,omitempty"`
	// JWT authorities for authenticating JWT-SVIDs.
	JwtAuthorities []*JWTKey `protobuf:"bytes,3,rep,name=jwt_authorities,json=jwtAuthorities,proto3" json:"jwt_authorities,omitempty"`
	// A hint on how often the bundle should be refreshed from the bundle
	// provider, in seconds. Can be zero (meaning no hint available).
	RefreshHint int64 `protobuf:"varint,4,opt,name=refresh_hint,json=refreshHint,proto3" json:"refresh_hint,omitempty"`
	// The sequence number of the bundle.
	SequenceNumber uint64 `protobuf:"varint,5,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
	// contains filtered or unexported fields
}

func (*Bundle) Descriptor deprecated

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

Deprecated: Use Bundle.ProtoReflect.Descriptor instead.

func (*Bundle) GetJwtAuthorities

func (x *Bundle) GetJwtAuthorities() []*JWTKey

func (*Bundle) GetRefreshHint

func (x *Bundle) GetRefreshHint() int64

func (*Bundle) GetSequenceNumber

func (x *Bundle) GetSequenceNumber() uint64

func (*Bundle) GetTrustDomain

func (x *Bundle) GetTrustDomain() string

func (*Bundle) GetX509Authorities

func (x *Bundle) GetX509Authorities() []*X509Certificate

func (*Bundle) ProtoMessage

func (*Bundle) ProtoMessage()

func (*Bundle) ProtoReflect added in v0.12.0

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

func (*Bundle) Reset

func (x *Bundle) Reset()

func (*Bundle) String

func (x *Bundle) String() string

type BundleMask

type BundleMask struct {

	// x509_authorities field mask.
	X509Authorities bool `protobuf:"varint,2,opt,name=x509_authorities,json=x509Authorities,proto3" json:"x509_authorities,omitempty"`
	// jwt_authorities field mask.
	JwtAuthorities bool `protobuf:"varint,3,opt,name=jwt_authorities,json=jwtAuthorities,proto3" json:"jwt_authorities,omitempty"`
	// refresh_hint field mask.
	RefreshHint bool `protobuf:"varint,4,opt,name=refresh_hint,json=refreshHint,proto3" json:"refresh_hint,omitempty"`
	// sequence_number field mask.
	SequenceNumber bool `protobuf:"varint,5,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
	// contains filtered or unexported fields
}

func (*BundleMask) Descriptor deprecated

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

Deprecated: Use BundleMask.ProtoReflect.Descriptor instead.

func (*BundleMask) GetJwtAuthorities

func (x *BundleMask) GetJwtAuthorities() bool

func (*BundleMask) GetRefreshHint

func (x *BundleMask) GetRefreshHint() bool

func (*BundleMask) GetSequenceNumber

func (x *BundleMask) GetSequenceNumber() bool

func (*BundleMask) GetX509Authorities

func (x *BundleMask) GetX509Authorities() bool

func (*BundleMask) ProtoMessage

func (*BundleMask) ProtoMessage()

func (*BundleMask) ProtoReflect added in v0.12.0

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

func (*BundleMask) Reset

func (x *BundleMask) Reset()

func (*BundleMask) String

func (x *BundleMask) String() string

type Entry

type Entry struct {

	// Globally unique ID for the entry.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The SPIFFE ID of the identity described by this entry.
	SpiffeId *SPIFFEID `protobuf:"bytes,2,opt,name=spiffe_id,json=spiffeId,proto3" json:"spiffe_id,omitempty"`
	// Who the entry is delegated to. If the entry describes a node, this is
	// set to the SPIFFE ID of the SPIRE server of the trust domain (e.g.
	// spiffe://example.org/spire/server). Otherwise, it will be set to a node
	// SPIFFE ID.
	ParentId *SPIFFEID `protobuf:"bytes,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	// The selectors which identify which entities match this entry. If this is
	// an entry for a node, these selectors represent selectors produced by
	// node attestation. Otherwise, these selectors represent those produced by
	// workload attestation.
	Selectors []*Selector `protobuf:"bytes,4,rep,name=selectors,proto3" json:"selectors,omitempty"`
	// The time to live for identities issued for this entry (in seconds).
	Ttl int32 `protobuf:"varint,5,opt,name=ttl,proto3" json:"ttl,omitempty"`
	// The names of trust domains the identity described by this entry
	// federates with.
	FederatesWith []string `protobuf:"bytes,6,rep,name=federates_with,json=federatesWith,proto3" json:"federates_with,omitempty"`
	// Whether or not the identity described by this entry is an administrative
	// workload. Administrative workloads are granted additional access to
	// various managerial server APIs, such as entry registration.
	Admin bool `protobuf:"varint,7,opt,name=admin,proto3" json:"admin,omitempty"`
	// Whether or not the identity described by this entry represents a
	// downstream SPIRE server. Downstream SPIRE servers have additional access
	// to various signing APIs, such as those used to sign X.509 CA
	// certificates and publish JWT signing keys.
	Downstream bool `protobuf:"varint,8,opt,name=downstream,proto3" json:"downstream,omitempty"`
	// When the entry expires (seconds since Unix epoch).
	ExpiresAt int64 `protobuf:"varint,9,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// A list of DNS names associated with the identity described by this entry.
	DnsNames []string `protobuf:"bytes,10,rep,name=dns_names,json=dnsNames,proto3" json:"dns_names,omitempty"`
	// Revision number is bumped every time the entry is updated
	RevisionNumber int64 `protobuf:"varint,11,opt,name=revision_number,json=revisionNumber,proto3" json:"revision_number,omitempty"`
	// contains filtered or unexported fields
}

func (*Entry) Descriptor deprecated

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

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetAdmin

func (x *Entry) GetAdmin() bool

func (*Entry) GetDnsNames

func (x *Entry) GetDnsNames() []string

func (*Entry) GetDownstream

func (x *Entry) GetDownstream() bool

func (*Entry) GetExpiresAt

func (x *Entry) GetExpiresAt() int64

func (*Entry) GetFederatesWith

func (x *Entry) GetFederatesWith() []string

func (*Entry) GetId

func (x *Entry) GetId() string

func (*Entry) GetParentId

func (x *Entry) GetParentId() *SPIFFEID

func (*Entry) GetRevisionNumber

func (x *Entry) GetRevisionNumber() int64

func (*Entry) GetSelectors

func (x *Entry) GetSelectors() []*Selector

func (*Entry) GetSpiffeId

func (x *Entry) GetSpiffeId() *SPIFFEID

func (*Entry) GetTtl

func (x *Entry) GetTtl() int32

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect added in v0.12.0

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

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) String

func (x *Entry) String() string

type EntryMask

type EntryMask struct {

	// spiffe_id field mask
	SpiffeId bool `protobuf:"varint,2,opt,name=spiffe_id,json=spiffeId,proto3" json:"spiffe_id,omitempty"`
	// parent_id field mask
	ParentId bool `protobuf:"varint,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	// selectors field mask
	Selectors bool `protobuf:"varint,4,opt,name=selectors,proto3" json:"selectors,omitempty"`
	// ttl field mask
	Ttl bool `protobuf:"varint,5,opt,name=ttl,proto3" json:"ttl,omitempty"`
	// federates_with field mask
	FederatesWith bool `protobuf:"varint,6,opt,name=federates_with,json=federatesWith,proto3" json:"federates_with,omitempty"`
	// admin field mask
	Admin bool `protobuf:"varint,7,opt,name=admin,proto3" json:"admin,omitempty"`
	// downstream field mask
	Downstream bool `protobuf:"varint,8,opt,name=downstream,proto3" json:"downstream,omitempty"`
	// expires_at field mask
	ExpiresAt bool `protobuf:"varint,9,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// dns_names field mask
	DnsNames bool `protobuf:"varint,10,opt,name=dns_names,json=dnsNames,proto3" json:"dns_names,omitempty"`
	// revision_number field mask
	RevisionNumber bool `protobuf:"varint,11,opt,name=revision_number,json=revisionNumber,proto3" json:"revision_number,omitempty"`
	// contains filtered or unexported fields
}

Field mask for Entry fields

func (*EntryMask) Descriptor deprecated

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

Deprecated: Use EntryMask.ProtoReflect.Descriptor instead.

func (*EntryMask) GetAdmin

func (x *EntryMask) GetAdmin() bool

func (*EntryMask) GetDnsNames

func (x *EntryMask) GetDnsNames() bool

func (*EntryMask) GetDownstream

func (x *EntryMask) GetDownstream() bool

func (*EntryMask) GetExpiresAt

func (x *EntryMask) GetExpiresAt() bool

func (*EntryMask) GetFederatesWith

func (x *EntryMask) GetFederatesWith() bool

func (*EntryMask) GetParentId

func (x *EntryMask) GetParentId() bool

func (*EntryMask) GetRevisionNumber

func (x *EntryMask) GetRevisionNumber() bool

func (*EntryMask) GetSelectors

func (x *EntryMask) GetSelectors() bool

func (*EntryMask) GetSpiffeId

func (x *EntryMask) GetSpiffeId() bool

func (*EntryMask) GetTtl

func (x *EntryMask) GetTtl() bool

func (*EntryMask) ProtoMessage

func (*EntryMask) ProtoMessage()

func (*EntryMask) ProtoReflect added in v0.12.0

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

func (*EntryMask) Reset

func (x *EntryMask) Reset()

func (*EntryMask) String

func (x *EntryMask) String() string

type JWTKey

type JWTKey struct {

	// The PKIX encoded public key.
	PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// The key identifier.
	KeyId string `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	// When the key expires (seconds since Unix epoch). If zero, the key does
	// not expire.
	ExpiresAt int64 `protobuf:"varint,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// contains filtered or unexported fields
}

func (*JWTKey) Descriptor deprecated

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

Deprecated: Use JWTKey.ProtoReflect.Descriptor instead.

func (*JWTKey) GetExpiresAt

func (x *JWTKey) GetExpiresAt() int64

func (*JWTKey) GetKeyId

func (x *JWTKey) GetKeyId() string

func (*JWTKey) GetPublicKey

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

func (*JWTKey) ProtoMessage

func (*JWTKey) ProtoMessage()

func (*JWTKey) ProtoReflect added in v0.12.0

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

func (*JWTKey) Reset

func (x *JWTKey) Reset()

func (*JWTKey) String

func (x *JWTKey) String() string

type JWTSVID

type JWTSVID struct {

	// The serialized JWT token.
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// The SPIFFE ID of the JWT-SVID.
	Id *SPIFFEID `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Expiration timestamp (seconds since Unix epoch).
	ExpiresAt int64 `protobuf:"varint,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// Issuance timestamp (seconds since Unix epoch).
	IssuedAt int64 `protobuf:"varint,4,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
	// contains filtered or unexported fields
}

JWT SPIFFE Verifiable Identity Document. It contains the raw JWT token as well as a few denormalized fields for convenience.

func (*JWTSVID) Descriptor deprecated

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

Deprecated: Use JWTSVID.ProtoReflect.Descriptor instead.

func (*JWTSVID) GetExpiresAt

func (x *JWTSVID) GetExpiresAt() int64

func (*JWTSVID) GetId

func (x *JWTSVID) GetId() *SPIFFEID

func (*JWTSVID) GetIssuedAt

func (x *JWTSVID) GetIssuedAt() int64

func (*JWTSVID) GetToken

func (x *JWTSVID) GetToken() string

func (*JWTSVID) ProtoMessage

func (*JWTSVID) ProtoMessage()

func (*JWTSVID) ProtoReflect added in v0.12.0

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

func (*JWTSVID) Reset

func (x *JWTSVID) Reset()

func (*JWTSVID) String

func (x *JWTSVID) String() string

type JoinToken

type JoinToken struct {

	// The value of the token.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// The token expiration (seconds since Unix epoch).
	ExpiresAt int64 `protobuf:"varint,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// contains filtered or unexported fields
}

func (*JoinToken) Descriptor deprecated

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

Deprecated: Use JoinToken.ProtoReflect.Descriptor instead.

func (*JoinToken) GetExpiresAt

func (x *JoinToken) GetExpiresAt() int64

func (*JoinToken) GetValue

func (x *JoinToken) GetValue() string

func (*JoinToken) ProtoMessage

func (*JoinToken) ProtoMessage()

func (*JoinToken) ProtoReflect added in v0.12.0

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

func (*JoinToken) Reset

func (x *JoinToken) Reset()

func (*JoinToken) String

func (x *JoinToken) String() string

type PermissionDeniedDetails

type PermissionDeniedDetails struct {
	Reason PermissionDeniedDetails_Reason `protobuf:"varint,1,opt,name=reason,proto3,enum=spire.types.PermissionDeniedDetails_Reason" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*PermissionDeniedDetails) Descriptor deprecated

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

Deprecated: Use PermissionDeniedDetails.ProtoReflect.Descriptor instead.

func (*PermissionDeniedDetails) GetReason

func (*PermissionDeniedDetails) ProtoMessage

func (*PermissionDeniedDetails) ProtoMessage()

func (*PermissionDeniedDetails) ProtoReflect added in v0.12.0

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

func (*PermissionDeniedDetails) Reset

func (x *PermissionDeniedDetails) Reset()

func (*PermissionDeniedDetails) String

func (x *PermissionDeniedDetails) String() string

type PermissionDeniedDetails_Reason

type PermissionDeniedDetails_Reason int32
const (
	// Reason unknown.
	PermissionDeniedDetails_UNKNOWN PermissionDeniedDetails_Reason = 0
	// Agent identity has expired.
	PermissionDeniedDetails_AGENT_EXPIRED PermissionDeniedDetails_Reason = 1
	// Identity is not an attested agent.
	PermissionDeniedDetails_AGENT_NOT_ATTESTED PermissionDeniedDetails_Reason = 2
	// Identity is not the active agent identity.
	PermissionDeniedDetails_AGENT_NOT_ACTIVE PermissionDeniedDetails_Reason = 3
	// Agent has been banned.
	PermissionDeniedDetails_AGENT_BANNED PermissionDeniedDetails_Reason = 4
)

func (PermissionDeniedDetails_Reason) Descriptor added in v0.12.0

func (PermissionDeniedDetails_Reason) Enum added in v0.12.0

func (PermissionDeniedDetails_Reason) EnumDescriptor deprecated

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

Deprecated: Use PermissionDeniedDetails_Reason.Descriptor instead.

func (PermissionDeniedDetails_Reason) Number added in v0.12.0

func (PermissionDeniedDetails_Reason) String

func (PermissionDeniedDetails_Reason) Type added in v0.12.0

type SPIFFEID

type SPIFFEID struct {

	// Trust domain portion the SPIFFE ID (e.g. "example.org")
	TrustDomain string `protobuf:"bytes,1,opt,name=trust_domain,json=trustDomain,proto3" json:"trust_domain,omitempty"`
	// The path component of the SPIFFE ID (e.g. "/foo/bar/baz"). The path
	// SHOULD have a leading slash. Consumers MUST normalize the path before
	// making any sort of comparison between IDs.
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

A SPIFFE ID, consisting of the trust domain name and a path portions of the SPIFFE ID URI.

func (*SPIFFEID) Descriptor deprecated

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

Deprecated: Use SPIFFEID.ProtoReflect.Descriptor instead.

func (*SPIFFEID) GetPath

func (x *SPIFFEID) GetPath() string

func (*SPIFFEID) GetTrustDomain

func (x *SPIFFEID) GetTrustDomain() string

func (*SPIFFEID) ProtoMessage

func (*SPIFFEID) ProtoMessage()

func (*SPIFFEID) ProtoReflect added in v0.12.0

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

func (*SPIFFEID) Reset

func (x *SPIFFEID) Reset()

func (*SPIFFEID) String

func (x *SPIFFEID) String() string

type Selector

type Selector struct {

	// The type of the selector. This is typically the name of the plugin that
	// produces the selector.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// The value of the selector.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Selector) Descriptor deprecated

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

Deprecated: Use Selector.ProtoReflect.Descriptor instead.

func (*Selector) GetType

func (x *Selector) GetType() string

func (*Selector) GetValue

func (x *Selector) GetValue() string

func (*Selector) ProtoMessage

func (*Selector) ProtoMessage()

func (*Selector) ProtoReflect added in v0.12.0

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

func (*Selector) Reset

func (x *Selector) Reset()

func (*Selector) String

func (x *Selector) String() string

type SelectorMatch

type SelectorMatch struct {

	// The set of selectors to match on.
	Selectors []*Selector `protobuf:"bytes,1,rep,name=selectors,proto3" json:"selectors,omitempty"`
	// How to match the selectors.
	Match SelectorMatch_MatchBehavior `protobuf:"varint,2,opt,name=match,proto3,enum=spire.types.SelectorMatch_MatchBehavior" json:"match,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectorMatch) Descriptor deprecated

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

Deprecated: Use SelectorMatch.ProtoReflect.Descriptor instead.

func (*SelectorMatch) GetMatch

func (*SelectorMatch) GetSelectors

func (x *SelectorMatch) GetSelectors() []*Selector

func (*SelectorMatch) ProtoMessage

func (*SelectorMatch) ProtoMessage()

func (*SelectorMatch) ProtoReflect added in v0.12.0

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

func (*SelectorMatch) Reset

func (x *SelectorMatch) Reset()

func (*SelectorMatch) String

func (x *SelectorMatch) String() string

type SelectorMatch_MatchBehavior

type SelectorMatch_MatchBehavior int32
const (
	// Indicates that the selectors in this match are equal to the
	// candidate selectors, independent of ordering.
	SelectorMatch_MATCH_EXACT SelectorMatch_MatchBehavior = 0
	// Indicates that the selectors in this match are a subset of the
	// candidate selectors.
	SelectorMatch_MATCH_SUBSET SelectorMatch_MatchBehavior = 1
)

func (SelectorMatch_MatchBehavior) Descriptor added in v0.12.0

func (SelectorMatch_MatchBehavior) Enum added in v0.12.0

func (SelectorMatch_MatchBehavior) EnumDescriptor deprecated

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

Deprecated: Use SelectorMatch_MatchBehavior.Descriptor instead.

func (SelectorMatch_MatchBehavior) Number added in v0.12.0

func (SelectorMatch_MatchBehavior) String

func (SelectorMatch_MatchBehavior) Type added in v0.12.0

type Status

type Status struct {

	// A status code, which should be an enum value of google.rpc.Code.
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// A developer-facing error message.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Status) Descriptor deprecated

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

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetCode

func (x *Status) GetCode() int32

func (*Status) GetMessage

func (x *Status) GetMessage() string

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect added in v0.12.0

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

func (*Status) Reset

func (x *Status) Reset()

func (*Status) String

func (x *Status) String() string

type X509Certificate

type X509Certificate struct {

	// The ASN.1 DER encoded bytes of the X.509 certificate.
	Asn1 []byte `protobuf:"bytes,1,opt,name=asn1,proto3" json:"asn1,omitempty"`
	// contains filtered or unexported fields
}

func (*X509Certificate) Descriptor deprecated

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

Deprecated: Use X509Certificate.ProtoReflect.Descriptor instead.

func (*X509Certificate) GetAsn1

func (x *X509Certificate) GetAsn1() []byte

func (*X509Certificate) ProtoMessage

func (*X509Certificate) ProtoMessage()

func (*X509Certificate) ProtoReflect added in v0.12.0

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

func (*X509Certificate) Reset

func (x *X509Certificate) Reset()

func (*X509Certificate) String

func (x *X509Certificate) String() string

type X509SVID

type X509SVID struct {

	// Certificate and intermediates required to form a chain of trust back to
	// the X.509 authorities of the trust domain (ASN.1 DER encoded).
	CertChain [][]byte `protobuf:"bytes,1,rep,name=cert_chain,json=certChain,proto3" json:"cert_chain,omitempty"`
	// SPIFFE ID of the SVID.
	Id *SPIFFEID `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Expiration timestamp (seconds since Unix epoch).
	ExpiresAt int64 `protobuf:"varint,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// contains filtered or unexported fields
}

X.509 SPIFFE Verifiable Identity Document. It contains the raw X.509 certificate data as well as a few denormalized fields for convenience.

func (*X509SVID) Descriptor deprecated

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

Deprecated: Use X509SVID.ProtoReflect.Descriptor instead.

func (*X509SVID) GetCertChain

func (x *X509SVID) GetCertChain() [][]byte

func (*X509SVID) GetExpiresAt

func (x *X509SVID) GetExpiresAt() int64

func (*X509SVID) GetId

func (x *X509SVID) GetId() *SPIFFEID

func (*X509SVID) ProtoMessage

func (*X509SVID) ProtoMessage()

func (*X509SVID) ProtoReflect added in v0.12.0

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

func (*X509SVID) Reset

func (x *X509SVID) Reset()

func (*X509SVID) String

func (x *X509SVID) String() string

Jump to

Keyboard shortcuts

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