Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=tokenaut.appthrust.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "tokenaut.appthrust.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type InstallationAccessToken ¶
type InstallationAccessToken struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec InstallationAccessTokenSpec `json:"spec,omitempty"` Status InstallationAccessTokenStatus `json:"status,omitempty"` }
InstallationAccessToken is the Schema for the installationaccesstokens API
func (*InstallationAccessToken) DeepCopy ¶
func (in *InstallationAccessToken) DeepCopy() *InstallationAccessToken
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstallationAccessToken.
func (*InstallationAccessToken) DeepCopyInto ¶
func (in *InstallationAccessToken) DeepCopyInto(out *InstallationAccessToken)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InstallationAccessToken) DeepCopyObject ¶
func (in *InstallationAccessToken) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InstallationAccessTokenList ¶
type InstallationAccessTokenList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []InstallationAccessToken `json:"items"` }
InstallationAccessTokenList contains a list of InstallationAccessToken
func (*InstallationAccessTokenList) DeepCopy ¶
func (in *InstallationAccessTokenList) DeepCopy() *InstallationAccessTokenList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstallationAccessTokenList.
func (*InstallationAccessTokenList) DeepCopyInto ¶
func (in *InstallationAccessTokenList) DeepCopyInto(out *InstallationAccessTokenList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InstallationAccessTokenList) DeepCopyObject ¶
func (in *InstallationAccessTokenList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InstallationAccessTokenSpec ¶
type InstallationAccessTokenSpec struct { // The GitHub App's ID AppID string `json:"appId"` // The Installation ID InstallationID string `json:"installationId"` // Optional template for customizing the generated resource // +kubebuilder:pruning:PreserveUnknownFields Template *runtime.RawExtension `json:"template,omitempty"` // Reference to the private key used for authentication PrivateKeyRef *PrivateKeyRef `json:"privateKeyRef,omitempty"` // Optional scope for the token Scope *Scope `json:"scope,omitempty"` }
InstallationAccessTokenSpec defines the desired state of InstallationAccessToken
func (*InstallationAccessTokenSpec) DeepCopy ¶
func (in *InstallationAccessTokenSpec) DeepCopy() *InstallationAccessTokenSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstallationAccessTokenSpec.
func (*InstallationAccessTokenSpec) DeepCopyInto ¶
func (in *InstallationAccessTokenSpec) DeepCopyInto(out *InstallationAccessTokenSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstallationAccessTokenStatus ¶
type InstallationAccessTokenStatus struct { // List of current condition states Conditions []metav1.Condition `json:"conditions,omitempty"` // Reference to the secret containing the token SecretRef SecretRef `json:"secretRef,omitempty"` // Token-specific information Token TokenInfo `json:"token,omitempty"` }
InstallationAccessTokenStatus defines the observed state of InstallationAccessToken
func (*InstallationAccessTokenStatus) DeepCopy ¶
func (in *InstallationAccessTokenStatus) DeepCopy() *InstallationAccessTokenStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstallationAccessTokenStatus.
func (*InstallationAccessTokenStatus) DeepCopyInto ¶
func (in *InstallationAccessTokenStatus) DeepCopyInto(out *InstallationAccessTokenStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrivateKeyRef ¶
type PrivateKeyRef struct { // Name of the private key reference Name string `json:"name,omitempty"` // Optional namespace where the private key is stored Namespace string `json:"namespace,omitempty"` // Optional key identifier or value Key string `json:"key,omitempty"` }
func (*PrivateKeyRef) DeepCopy ¶
func (in *PrivateKeyRef) DeepCopy() *PrivateKeyRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateKeyRef.
func (*PrivateKeyRef) DeepCopyInto ¶
func (in *PrivateKeyRef) DeepCopyInto(out *PrivateKeyRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Scope ¶
type Scope struct { // List of repository names that the token should have access to Repositories []string `json:"repositories,omitempty"` // List of repository IDs that the token should have access to RepositoryIDs []int `json:"repositoryIds,omitempty"` // The permissions granted to the user access token Permissions map[string]string `json:"permissions,omitempty"` }
func (*Scope) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scope.
func (*Scope) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretRef ¶
type SecretRef struct { // Name of the secret Name string `json:"name"` // Namespace where the secret is stored Namespace string `json:"namespace,omitempty"` }
func (*SecretRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRef.
func (*SecretRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TokenInfo ¶
type TokenInfo struct { // Expiration time of the token ExpiresAt metav1.Time `json:"expiresAt,omitempty"` // Permissions granted to the token Permissions map[string]string `json:"permissions,omitempty"` // How repositories are selected for this token RepositorySelection string `json:"repositorySelection,omitempty"` // List of repository names that the token has access to Repositories []string `json:"repositories,omitempty"` // List of repository IDs that the token has access to RepositoryIDs []int `json:"repositoryIds,omitempty"` }
func (*TokenInfo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenInfo.
func (*TokenInfo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.