v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the kubernetes datastore v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/summerwind/spire-plugin-datastore-k8s/pkg/apis +k8s:defaulter-gen=TypeMeta +groupName=kubernetes.spire.summerwind.dev

Package v1alpha1 contains API Schema definitions for the kubernetes datastore v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/summerwind/spire-plugin-datastore-k8s/pkg/apis +k8s:defaulter-gen=TypeMeta +groupName=kubernetes.spire.summerwind.dev

Index

Constants

View Source
const (
	LabelSpiffeID         = "spire.summerwind.dev/spiffe-id"
	LabelParentID         = "spire.summerwind.dev/parent-id"
	LabelPrefixFederation = "federation.spire.summerwind.dev"
)

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "kubernetes.spire.summerwind.dev", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme is required by pkg/client/...
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func EncodeID

func EncodeID(id string) string

func GetFederationLabels

func GetFederationLabels(domains []string) map[string]string

func NewName

func NewName() string

func Resource

func Resource(resource string) schema.GroupResource

Resource is required by pkg/client/listers/...

Types

type AttestedNode

type AttestedNode struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AttestedNodeSpec   `json:"spec,omitempty"`
	Status AttestedNodeStatus `json:"status,omitempty"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func NewAttestedNode

func NewAttestedNode(node *common.AttestedNode) *AttestedNode

func (*AttestedNode) DeepCopy

func (in *AttestedNode) DeepCopy() *AttestedNode

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttestedNode.

func (*AttestedNode) DeepCopyInto

func (in *AttestedNode) DeepCopyInto(out *AttestedNode)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AttestedNode) DeepCopyObject

func (in *AttestedNode) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AttestedNode) Proto

func (an *AttestedNode) Proto() (*common.AttestedNode, error)

type AttestedNodeList

type AttestedNodeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AttestedNode `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*AttestedNodeList) DeepCopy

func (in *AttestedNodeList) DeepCopy() *AttestedNodeList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttestedNodeList.

func (*AttestedNodeList) DeepCopyInto

func (in *AttestedNodeList) DeepCopyInto(out *AttestedNodeList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AttestedNodeList) DeepCopyObject

func (in *AttestedNodeList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AttestedNodeSpec

type AttestedNodeSpec struct {
	SpiffeID            string `json:"spiffeID"`
	AttestationDataType string `json:"attestationDataType"`
	CertSerialNumber    string `json:"certSerialNumber"`
	CertNotAfter        int64  `json:"certNotAfter"`
}

func NewAttestedNodeSpec

func NewAttestedNodeSpec(node *common.AttestedNode) *AttestedNodeSpec

func (*AttestedNodeSpec) DeepCopy

func (in *AttestedNodeSpec) DeepCopy() *AttestedNodeSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttestedNodeSpec.

func (*AttestedNodeSpec) DeepCopyInto

func (in *AttestedNodeSpec) DeepCopyInto(out *AttestedNodeSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AttestedNodeSpec) Proto

func (ans *AttestedNodeSpec) Proto() (*common.AttestedNode, error)

type AttestedNodeStatus

type AttestedNodeStatus struct{}

func (*AttestedNodeStatus) DeepCopy

func (in *AttestedNodeStatus) DeepCopy() *AttestedNodeStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttestedNodeStatus.

func (*AttestedNodeStatus) DeepCopyInto

func (in *AttestedNodeStatus) DeepCopyInto(out *AttestedNodeStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Bundle

type Bundle struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BundleSpec   `json:"spec,omitempty"`
	Status BundleStatus `json:"status,omitempty"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func NewBundle

func NewBundle(bundle *common.Bundle) *Bundle

func (*Bundle) DeepCopy

func (in *Bundle) DeepCopy() *Bundle

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Bundle.

func (*Bundle) DeepCopyInto

func (in *Bundle) DeepCopyInto(out *Bundle)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Bundle) DeepCopyObject

func (in *Bundle) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Bundle) Proto

func (b *Bundle) Proto() (*common.Bundle, error)

type BundleList

type BundleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Bundle `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*BundleList) DeepCopy

func (in *BundleList) DeepCopy() *BundleList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundleList.

func (*BundleList) DeepCopyInto

func (in *BundleList) DeepCopyInto(out *BundleList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BundleList) DeepCopyObject

func (in *BundleList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BundleSpec

type BundleSpec struct {
	TrustDomainID  string         `json:"trustDomainID,omitempty"`
	RootCAs        []*Certificate `json:"rootCAs,omitempty"`
	JWTSigningKeys []*PublicKey   `json:"jwtSigningKeys"`
}

func NewBundleSpec

func NewBundleSpec(bundle *common.Bundle) *BundleSpec

func (*BundleSpec) DeepCopy

func (in *BundleSpec) DeepCopy() *BundleSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundleSpec.

func (*BundleSpec) DeepCopyInto

func (in *BundleSpec) DeepCopyInto(out *BundleSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BundleSpec) Proto

func (bs *BundleSpec) Proto() (*common.Bundle, error)

type BundleStatus

type BundleStatus struct{}

func (*BundleStatus) DeepCopy

func (in *BundleStatus) DeepCopy() *BundleStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundleStatus.

func (*BundleStatus) DeepCopyInto

func (in *BundleStatus) DeepCopyInto(out *BundleStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Certificate

type Certificate struct {
	DER string `json:"der"`
}

func NewCertificate

func NewCertificate(cert *common.Certificate) *Certificate

func (*Certificate) DeepCopy

func (in *Certificate) DeepCopy() *Certificate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Certificate.

func (*Certificate) DeepCopyInto

func (in *Certificate) DeepCopyInto(out *Certificate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Certificate) Proto

func (c *Certificate) Proto() (*common.Certificate, error)

type JoinToken

type JoinToken struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   JoinTokenSpec   `json:"spec,omitempty"`
	Status JoinTokenStatus `json:"status,omitempty"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func NewJoinToken

func NewJoinToken(token *datastore.JoinToken) *JoinToken

func (*JoinToken) DeepCopy

func (in *JoinToken) DeepCopy() *JoinToken

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JoinToken.

func (*JoinToken) DeepCopyInto

func (in *JoinToken) DeepCopyInto(out *JoinToken)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*JoinToken) DeepCopyObject

func (in *JoinToken) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*JoinToken) Proto

func (jt *JoinToken) Proto() (*datastore.JoinToken, error)

type JoinTokenList

type JoinTokenList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []JoinToken `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*JoinTokenList) DeepCopy

func (in *JoinTokenList) DeepCopy() *JoinTokenList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JoinTokenList.

func (*JoinTokenList) DeepCopyInto

func (in *JoinTokenList) DeepCopyInto(out *JoinTokenList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*JoinTokenList) DeepCopyObject

func (in *JoinTokenList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type JoinTokenSpec

type JoinTokenSpec struct {
	Token  string `json:"token"`
	Expiry int64  `json:"expiry"`
}

func NewJoinTokenSpec

func NewJoinTokenSpec(token *datastore.JoinToken) *JoinTokenSpec

func (*JoinTokenSpec) DeepCopy

func (in *JoinTokenSpec) DeepCopy() *JoinTokenSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JoinTokenSpec.

func (*JoinTokenSpec) DeepCopyInto

func (in *JoinTokenSpec) DeepCopyInto(out *JoinTokenSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*JoinTokenSpec) Proto

func (jts *JoinTokenSpec) Proto() (*datastore.JoinToken, error)

type JoinTokenStatus

type JoinTokenStatus struct{}

func (*JoinTokenStatus) DeepCopy

func (in *JoinTokenStatus) DeepCopy() *JoinTokenStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JoinTokenStatus.

func (*JoinTokenStatus) DeepCopyInto

func (in *JoinTokenStatus) DeepCopyInto(out *JoinTokenStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeSelectors

type NodeSelectors struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   NodeSelectorsSpec   `json:"spec,omitempty"`
	Status NodeSelectorsStatus `json:"status,omitempty"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func NewNodeSelectors

func NewNodeSelectors(selectors *datastore.NodeSelectors) *NodeSelectors

func (*NodeSelectors) DeepCopy

func (in *NodeSelectors) DeepCopy() *NodeSelectors

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSelectors.

func (*NodeSelectors) DeepCopyInto

func (in *NodeSelectors) DeepCopyInto(out *NodeSelectors)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeSelectors) DeepCopyObject

func (in *NodeSelectors) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*NodeSelectors) Proto

func (ns *NodeSelectors) Proto() (*datastore.NodeSelectors, error)

type NodeSelectorsList

type NodeSelectorsList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []NodeSelectors `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*NodeSelectorsList) DeepCopy

func (in *NodeSelectorsList) DeepCopy() *NodeSelectorsList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSelectorsList.

func (*NodeSelectorsList) DeepCopyInto

func (in *NodeSelectorsList) DeepCopyInto(out *NodeSelectorsList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeSelectorsList) DeepCopyObject

func (in *NodeSelectorsList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NodeSelectorsSpec

type NodeSelectorsSpec struct {
	SpiffeID  string      `json:"spiffeID"`
	Selectors []*Selector `json:"selectors,omitempty"`
}

func NewNodeSelectorsSpec

func NewNodeSelectorsSpec(selectors *datastore.NodeSelectors) *NodeSelectorsSpec

func (*NodeSelectorsSpec) DeepCopy

func (in *NodeSelectorsSpec) DeepCopy() *NodeSelectorsSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSelectorsSpec.

func (*NodeSelectorsSpec) DeepCopyInto

func (in *NodeSelectorsSpec) DeepCopyInto(out *NodeSelectorsSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeSelectorsSpec) Proto

type NodeSelectorsStatus

type NodeSelectorsStatus struct{}

func (*NodeSelectorsStatus) DeepCopy

func (in *NodeSelectorsStatus) DeepCopy() *NodeSelectorsStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSelectorsStatus.

func (*NodeSelectorsStatus) DeepCopyInto

func (in *NodeSelectorsStatus) DeepCopyInto(out *NodeSelectorsStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PublicKey

type PublicKey struct {
	PKIX     string `json:"pkix"`
	Kid      string `json:"kid"`
	NotAfter int64  `json:"notAfter"`
}

func NewPublicKey

func NewPublicKey(key *common.PublicKey) *PublicKey

func (*PublicKey) DeepCopy

func (in *PublicKey) DeepCopy() *PublicKey

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PublicKey.

func (*PublicKey) DeepCopyInto

func (in *PublicKey) DeepCopyInto(out *PublicKey)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PublicKey) Proto

func (pk *PublicKey) Proto() (*common.PublicKey, error)

type RegistrationEntry

type RegistrationEntry struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   RegistrationEntrySpec   `json:"spec,omitempty"`
	Status RegistrationEntryStatus `json:"status,omitempty"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func NewRegistrationEntry

func NewRegistrationEntry(entry *common.RegistrationEntry) *RegistrationEntry

func (*RegistrationEntry) DeepCopy

func (in *RegistrationEntry) DeepCopy() *RegistrationEntry

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegistrationEntry.

func (*RegistrationEntry) DeepCopyInto

func (in *RegistrationEntry) DeepCopyInto(out *RegistrationEntry)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RegistrationEntry) DeepCopyObject

func (in *RegistrationEntry) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*RegistrationEntry) Proto

type RegistrationEntryList

type RegistrationEntryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []RegistrationEntry `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*RegistrationEntryList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegistrationEntryList.

func (*RegistrationEntryList) DeepCopyInto

func (in *RegistrationEntryList) DeepCopyInto(out *RegistrationEntryList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RegistrationEntryList) DeepCopyObject

func (in *RegistrationEntryList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RegistrationEntrySpec

type RegistrationEntrySpec struct {
	EntryID       string      `json:"entryID"`
	EntryExpiry   int64       `json:"entryExpiry"`
	ParentID      string      `json:"parentID"`
	SpiffeID      string      `json:"spiffeID"`
	TTL           int32       `json:"ttl"`
	Selectors     []*Selector `json:"selectors"`
	FederatesWith []string    `json:"feredatesWith"`
	DNSNames      []string    `json:"dnsNames"`
	Admin         bool        `json:"admin"`
	Downstream    bool        `json:"downstream"`
}

func NewRegistrationEntrySpec

func NewRegistrationEntrySpec(entry *common.RegistrationEntry) *RegistrationEntrySpec

func (*RegistrationEntrySpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegistrationEntrySpec.

func (*RegistrationEntrySpec) DeepCopyInto

func (in *RegistrationEntrySpec) DeepCopyInto(out *RegistrationEntrySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RegistrationEntrySpec) Proto

type RegistrationEntryStatus

type RegistrationEntryStatus struct{}

func (*RegistrationEntryStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegistrationEntryStatus.

func (*RegistrationEntryStatus) DeepCopyInto

func (in *RegistrationEntryStatus) DeepCopyInto(out *RegistrationEntryStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Selector

type Selector struct {
	Type  string `json:"type"`
	Value string `json:"value"`
}

func NewSelector

func NewSelector(selector *common.Selector) *Selector

func (*Selector) DeepCopy

func (in *Selector) DeepCopy() *Selector

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Selector.

func (*Selector) DeepCopyInto

func (in *Selector) DeepCopyInto(out *Selector)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Selector) Proto

func (s *Selector) Proto() (*common.Selector, error)

Jump to

Keyboard shortcuts

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