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
- Variables
- func EncodeID(id string) string
- func GetFederationLabels(domains []string) map[string]string
- func NewName() string
- func Resource(resource string) schema.GroupResource
- type AttestedNode
- type AttestedNodeList
- type AttestedNodeSpec
- type AttestedNodeStatus
- type Bundle
- type BundleList
- type BundleSpec
- type BundleStatus
- type Certificate
- type JoinToken
- type JoinTokenList
- type JoinTokenSpec
- type JoinTokenStatus
- type NodeSelectors
- type NodeSelectorsList
- type NodeSelectorsSpec
- type NodeSelectorsStatus
- type PublicKey
- type RegistrationEntry
- type RegistrationEntryList
- type RegistrationEntrySpec
- type RegistrationEntryStatus
- type Selector
Constants ¶
const ( LabelSpiffeID = "spire.summerwind.dev/spiffe-id" LabelParentID = "spire.summerwind.dev/parent-id" LabelPrefixFederation = "federation.spire.summerwind.dev" )
Variables ¶
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 GetFederationLabels ¶
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 (*Bundle) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Bundle.
func (*Bundle) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Bundle) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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.
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 (*JoinToken) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JoinToken.
func (*JoinToken) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*JoinToken) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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 ¶
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.
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 ¶
func (ns *NodeSelectorsSpec) Proto() (*datastore.NodeSelectors, error)
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 (*PublicKey) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PublicKey.
func (*PublicKey) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
func (re *RegistrationEntry) Proto() (*common.RegistrationEntry, error)
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 ¶
func (in *RegistrationEntryList) DeepCopy() *RegistrationEntryList
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 ¶
func (in *RegistrationEntrySpec) DeepCopy() *RegistrationEntrySpec
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 ¶
func (re *RegistrationEntrySpec) Proto() (*common.RegistrationEntry, error)
type RegistrationEntryStatus ¶
type RegistrationEntryStatus struct{}
func (*RegistrationEntryStatus) DeepCopy ¶
func (in *RegistrationEntryStatus) DeepCopy() *RegistrationEntryStatus
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 ¶
func NewSelector ¶
func (*Selector) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Selector.
func (*Selector) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.