common

package
v0.0.0-...-8f69376 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttestationData

type AttestationData struct {
	// * Type of attestation to perform.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// * The attestation data.
	Data                 []byte   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* A type which contains attestation data for specific platform.

func (*AttestationData) Descriptor

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

func (*AttestationData) GetData

func (m *AttestationData) GetData() []byte

func (*AttestationData) GetType

func (m *AttestationData) GetType() string

func (*AttestationData) ProtoMessage

func (*AttestationData) ProtoMessage()

func (*AttestationData) Reset

func (m *AttestationData) Reset()

func (*AttestationData) String

func (m *AttestationData) String() string

func (*AttestationData) XXX_DiscardUnknown

func (m *AttestationData) XXX_DiscardUnknown()

func (*AttestationData) XXX_Marshal

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

func (*AttestationData) XXX_Merge

func (dst *AttestationData) XXX_Merge(src proto.Message)

func (*AttestationData) XXX_Size

func (m *AttestationData) XXX_Size() int

func (*AttestationData) XXX_Unmarshal

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

type Bundle

type Bundle struct {
	// * the SPIFFE ID of the trust domain the bundle belongs to
	TrustDomainId string `protobuf:"bytes,1,opt,name=trust_domain_id,json=trustDomainId,proto3" json:"trust_domain_id,omitempty"`
	// * list of root CA certificates
	RootCas []*Certificate `protobuf:"bytes,2,rep,name=root_cas,json=rootCas,proto3" json:"root_cas,omitempty"`
	// * list of JWT signing keys
	JwtSigningKeys       []*PublicKey `protobuf:"bytes,3,rep,name=jwt_signing_keys,json=jwtSigningKeys,proto3" json:"jwt_signing_keys,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*Bundle) Descriptor

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

func (*Bundle) GetJwtSigningKeys

func (m *Bundle) GetJwtSigningKeys() []*PublicKey

func (*Bundle) GetRootCas

func (m *Bundle) GetRootCas() []*Certificate

func (*Bundle) GetTrustDomainId

func (m *Bundle) GetTrustDomainId() string

func (*Bundle) ProtoMessage

func (*Bundle) ProtoMessage()

func (*Bundle) Reset

func (m *Bundle) Reset()

func (*Bundle) String

func (m *Bundle) String() string

func (*Bundle) XXX_DiscardUnknown

func (m *Bundle) XXX_DiscardUnknown()

func (*Bundle) XXX_Marshal

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

func (*Bundle) XXX_Merge

func (dst *Bundle) XXX_Merge(src proto.Message)

func (*Bundle) XXX_Size

func (m *Bundle) XXX_Size() int

func (*Bundle) XXX_Unmarshal

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

type Certificate

type Certificate struct {
	DerBytes             []byte   `protobuf:"bytes,1,opt,name=der_bytes,json=derBytes,proto3" json:"der_bytes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Certificate represents a ASN.1/DER encoded X509 certificate

func (*Certificate) Descriptor

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

func (*Certificate) GetDerBytes

func (m *Certificate) GetDerBytes() []byte

func (*Certificate) ProtoMessage

func (*Certificate) ProtoMessage()

func (*Certificate) Reset

func (m *Certificate) Reset()

func (*Certificate) String

func (m *Certificate) String() string

func (*Certificate) XXX_DiscardUnknown

func (m *Certificate) XXX_DiscardUnknown()

func (*Certificate) XXX_Marshal

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

func (*Certificate) XXX_Merge

func (dst *Certificate) XXX_Merge(src proto.Message)

func (*Certificate) XXX_Size

func (m *Certificate) XXX_Size() int

func (*Certificate) XXX_Unmarshal

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

type Empty

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Represents an empty message

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

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

func (*Empty) XXX_Merge

func (dst *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

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

type PublicKey

type PublicKey struct {
	// * PKIX encoded key data
	PkixBytes []byte `protobuf:"bytes,1,opt,name=pkix_bytes,json=pkixBytes,proto3" json:"pkix_bytes,omitempty"`
	// * key identifier
	Kid string `protobuf:"bytes,2,opt,name=kid,proto3" json:"kid,omitempty"`
	// * not after (seconds since unix epoch, 0 means "never expires")
	NotAfter             int64    `protobuf:"varint,3,opt,name=not_after,json=notAfter,proto3" json:"not_after,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* PublicKey represents a PKIX encoded public key

func (*PublicKey) Descriptor

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

func (*PublicKey) GetKid

func (m *PublicKey) GetKid() string

func (*PublicKey) GetNotAfter

func (m *PublicKey) GetNotAfter() int64

func (*PublicKey) GetPkixBytes

func (m *PublicKey) GetPkixBytes() []byte

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) Reset

func (m *PublicKey) Reset()

func (*PublicKey) String

func (m *PublicKey) String() string

func (*PublicKey) XXX_DiscardUnknown

func (m *PublicKey) XXX_DiscardUnknown()

func (*PublicKey) XXX_Marshal

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

func (*PublicKey) XXX_Merge

func (dst *PublicKey) XXX_Merge(src proto.Message)

func (*PublicKey) XXX_Size

func (m *PublicKey) XXX_Size() int

func (*PublicKey) XXX_Unmarshal

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

type RegistrationEntries

type RegistrationEntries struct {
	// * A list of RegistrationEntry.
	Entries              []*RegistrationEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

* A list of registration entries.

func (*RegistrationEntries) Descriptor

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

func (*RegistrationEntries) GetEntries

func (m *RegistrationEntries) GetEntries() []*RegistrationEntry

func (*RegistrationEntries) ProtoMessage

func (*RegistrationEntries) ProtoMessage()

func (*RegistrationEntries) Reset

func (m *RegistrationEntries) Reset()

func (*RegistrationEntries) String

func (m *RegistrationEntries) String() string

func (*RegistrationEntries) XXX_DiscardUnknown

func (m *RegistrationEntries) XXX_DiscardUnknown()

func (*RegistrationEntries) XXX_Marshal

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

func (*RegistrationEntries) XXX_Merge

func (dst *RegistrationEntries) XXX_Merge(src proto.Message)

func (*RegistrationEntries) XXX_Size

func (m *RegistrationEntries) XXX_Size() int

func (*RegistrationEntries) XXX_Unmarshal

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

type RegistrationEntry

type RegistrationEntry struct {
	// * A list of selectors.
	Selectors []*Selector `protobuf:"bytes,1,rep,name=selectors,proto3" json:"selectors,omitempty"`
	// * The SPIFFE ID of an entity that is authorized to attest the validity
	// of a selector
	ParentId string `protobuf:"bytes,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	// * The SPIFFE ID is a structured string used to identify a resource or
	// caller. It is defined as a URI comprising a “trust domain” and an
	// associated path.
	SpiffeId string `protobuf:"bytes,3,opt,name=spiffe_id,json=spiffeId,proto3" json:"spiffe_id,omitempty"`
	// * Time to live.
	Ttl int32 `protobuf:"varint,4,opt,name=ttl,proto3" json:"ttl,omitempty"`
	// * A list of federated trust domain SPIFFE IDs.
	FederatesWith []string `protobuf:"bytes,5,rep,name=federates_with,json=federatesWith,proto3" json:"federates_with,omitempty"`
	// * Entry ID
	EntryId              string   `protobuf:"bytes,6,opt,name=entry_id,json=entryId,proto3" json:"entry_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* This is a curated record that the Server uses to set up and manage the various registered nodes and workloads that are controlled by it.

func (*RegistrationEntry) Descriptor

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

func (*RegistrationEntry) GetEntryId

func (m *RegistrationEntry) GetEntryId() string

func (*RegistrationEntry) GetFederatesWith

func (m *RegistrationEntry) GetFederatesWith() []string

func (*RegistrationEntry) GetParentId

func (m *RegistrationEntry) GetParentId() string

func (*RegistrationEntry) GetSelectors

func (m *RegistrationEntry) GetSelectors() []*Selector

func (*RegistrationEntry) GetSpiffeId

func (m *RegistrationEntry) GetSpiffeId() string

func (*RegistrationEntry) GetTtl

func (m *RegistrationEntry) GetTtl() int32

func (*RegistrationEntry) ProtoMessage

func (*RegistrationEntry) ProtoMessage()

func (*RegistrationEntry) Reset

func (m *RegistrationEntry) Reset()

func (*RegistrationEntry) String

func (m *RegistrationEntry) String() string

func (*RegistrationEntry) XXX_DiscardUnknown

func (m *RegistrationEntry) XXX_DiscardUnknown()

func (*RegistrationEntry) XXX_Marshal

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

func (*RegistrationEntry) XXX_Merge

func (dst *RegistrationEntry) XXX_Merge(src proto.Message)

func (*RegistrationEntry) XXX_Size

func (m *RegistrationEntry) XXX_Size() int

func (*RegistrationEntry) XXX_Unmarshal

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

type Selector

type Selector struct {
	// * A selector type represents the type of attestation used in attesting
	// the entity (Eg: AWS, K8).
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// * The value to be attested.
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* A type which describes the conditions under which a registration entry is matched.

func (*Selector) Descriptor

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

func (*Selector) GetType

func (m *Selector) GetType() string

func (*Selector) GetValue

func (m *Selector) GetValue() string

func (*Selector) ProtoMessage

func (*Selector) ProtoMessage()

func (*Selector) Reset

func (m *Selector) Reset()

func (*Selector) String

func (m *Selector) String() string

func (*Selector) XXX_DiscardUnknown

func (m *Selector) XXX_DiscardUnknown()

func (*Selector) XXX_Marshal

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

func (*Selector) XXX_Merge

func (dst *Selector) XXX_Merge(src proto.Message)

func (*Selector) XXX_Size

func (m *Selector) XXX_Size() int

func (*Selector) XXX_Unmarshal

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

type Selectors

type Selectors struct {
	// * A list of Selector.
	Entries              []*Selector `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

* Represents a type with a list of Selector.

func (*Selectors) Descriptor

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

func (*Selectors) GetEntries

func (m *Selectors) GetEntries() []*Selector

func (*Selectors) ProtoMessage

func (*Selectors) ProtoMessage()

func (*Selectors) Reset

func (m *Selectors) Reset()

func (*Selectors) String

func (m *Selectors) String() string

func (*Selectors) XXX_DiscardUnknown

func (m *Selectors) XXX_DiscardUnknown()

func (*Selectors) XXX_Marshal

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

func (*Selectors) XXX_Merge

func (dst *Selectors) XXX_Merge(src proto.Message)

func (*Selectors) XXX_Size

func (m *Selectors) XXX_Size() int

func (*Selectors) XXX_Unmarshal

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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