Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the applicationconnector v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kyma-project/kyma/components/connection-token-handler/pkg/apis/applicationconnector +k8s:defaulter-gen=TypeMeta +groupName=applicationconnector.kyma-project.io
Package v1alpha1 contains API Schema definitions for the applicationconnector v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kyma-project/kyma/components/connection-token-handler/pkg/apis/applicationconnector +k8s:defaulter-gen=TypeMeta +groupName=applicationconnector.kyma-project.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "applicationconnector.kyma-project.io", 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 Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/client/listers/...
Types ¶
type ClusterContext ¶
type TokenRequest ¶
type TokenRequest struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Context ClusterContext `json:"context,omitempty"` Status TokenRequestStatus `json:"status,omitempty"` }
TokenRequest is the Schema for the tokenrequests API +k8s:openapi-gen=true
func (*TokenRequest) DeepCopy ¶
func (in *TokenRequest) DeepCopy() *TokenRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenRequest.
func (*TokenRequest) DeepCopyInto ¶
func (in *TokenRequest) DeepCopyInto(out *TokenRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TokenRequest) DeepCopyObject ¶
func (in *TokenRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TokenRequest) ShouldExpire ¶
func (tr *TokenRequest) ShouldExpire() bool
ShouldExpire method returs true if tokenrequest expired
func (*TokenRequest) ShouldFetch ¶
func (tr *TokenRequest) ShouldFetch() bool
ShouldFetch method retuns true if tokenrequest requires fethcing new token
type TokenRequestList ¶
type TokenRequestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TokenRequest `json:"items"` }
TokenRequestList contains a list of TokenRequest
func (*TokenRequestList) DeepCopy ¶
func (in *TokenRequestList) DeepCopy() *TokenRequestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenRequestList.
func (*TokenRequestList) DeepCopyInto ¶
func (in *TokenRequestList) DeepCopyInto(out *TokenRequestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TokenRequestList) DeepCopyObject ¶
func (in *TokenRequestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TokenRequestState ¶
type TokenRequestState string
TokenRequestState represents state of tokenrequest
const ( // TokenRequestStateOK is used when successfully fetched token TokenRequestStateOK TokenRequestState = "OK" // TokenRequestStateERR is used when an error occured during token fetch TokenRequestStateERR TokenRequestState = "Error" )
type TokenRequestStatus ¶
type TokenRequestStatus struct { Token string `json:"token"` URL string `json:"url"` ExpireAfter metav1.Time `json:"expireAfter"` Application string `json:"application"` State TokenRequestState `json:"state"` }
TokenRequestStatus defines the observed state of TokenRequest
func (*TokenRequestStatus) DeepCopy ¶
func (in *TokenRequestStatus) DeepCopy() *TokenRequestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenRequestStatus.
func (*TokenRequestStatus) DeepCopyInto ¶
func (in *TokenRequestStatus) DeepCopyInto(out *TokenRequestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.