v1alpha1

package
v0.0.0-...-8199295 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 4 Imported by: 0

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

View Source
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

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

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

func (*InstallationAccessTokenList) DeepCopyInto

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

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

func (*InstallationAccessTokenSpec) DeepCopyInto

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

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

func (*InstallationAccessTokenStatus) DeepCopyInto

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

func (in *Scope) DeepCopy() *Scope

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

func (*Scope) DeepCopyInto

func (in *Scope) DeepCopyInto(out *Scope)

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

func (in *SecretRef) DeepCopy() *SecretRef

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

func (*SecretRef) DeepCopyInto

func (in *SecretRef) DeepCopyInto(out *SecretRef)

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

func (in *TokenInfo) DeepCopy() *TokenInfo

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

func (*TokenInfo) DeepCopyInto

func (in *TokenInfo) DeepCopyInto(out *TokenInfo)

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

Jump to

Keyboard shortcuts

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