v1alpha1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 contains the v1alpha1 group AccessKey resources of the Bitbucket Service provider. +kubebuilder:object:generate=true +groupName=accesskey.bitbucket-server.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "accesskey.bitbucket-server.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

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

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	AccessKeyKind             = reflect.TypeOf(AccessKey{}).Name()
	AccessKeyGroupKind        = schema.GroupKind{Group: Group, Kind: AccessKeyKind}.String()
	AccessKeyKindAPIVersion   = AccessKeyKind + "." + SchemeGroupVersion.String()
	AccessKeyGroupVersionKind = SchemeGroupVersion.WithKind(AccessKeyKind)
)

AccessKey type metadata.

Functions

This section is empty.

Types

type AccessKey

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

	Spec   AccessKeySpec   `json:"spec"`
	Status AccessKeyStatus `json:"status,omitempty"`
}

An AccessKey is an SSH key with read or write access to a bitbucket git repo. +kubebuilder:subresource:status +kubebuilder:printcolumn:name="PROJECT",type="string",JSONPath=".spec.forProvider.projectKey" +kubebuilder:printcolumn:name="REPO-NAME",type="string",JSONPath=".spec.forProvider.repoName" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster

func (AccessKey) AccessKey

func (a AccessKey) AccessKey() bitbucket.AccessKey

AccessKey defined the bitbucket server api TODO: move

func (*AccessKey) DeepCopy

func (in *AccessKey) DeepCopy() *AccessKey

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

func (*AccessKey) DeepCopyInto

func (in *AccessKey) DeepCopyInto(out *AccessKey)

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

func (*AccessKey) DeepCopyObject

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

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

func (*AccessKey) GetCondition

func (mg *AccessKey) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this AccessKey.

func (*AccessKey) GetDeletionPolicy

func (mg *AccessKey) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this AccessKey.

func (*AccessKey) GetProviderConfigReference

func (mg *AccessKey) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this AccessKey.

func (*AccessKey) GetProviderReference

func (mg *AccessKey) GetProviderReference() *xpv1.Reference

GetProviderReference of this AccessKey. Deprecated: Use GetProviderConfigReference.

func (*AccessKey) GetWriteConnectionSecretToReference

func (mg *AccessKey) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this AccessKey.

func (AccessKey) Repo

func (a AccessKey) Repo() bitbucket.Repo

Repo defines the bitbucket server api TODO: Move

func (*AccessKey) SetConditions

func (mg *AccessKey) SetConditions(c ...xpv1.Condition)

SetConditions of this AccessKey.

func (*AccessKey) SetDeletionPolicy

func (mg *AccessKey) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this AccessKey.

func (*AccessKey) SetProviderConfigReference

func (mg *AccessKey) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this AccessKey.

func (*AccessKey) SetProviderReference

func (mg *AccessKey) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this AccessKey. Deprecated: Use SetProviderConfigReference.

func (*AccessKey) SetWriteConnectionSecretToReference

func (mg *AccessKey) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this AccessKey.

type AccessKeyList

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

AccessKeyList contains a list of AccessKey

func (*AccessKeyList) DeepCopy

func (in *AccessKeyList) DeepCopy() *AccessKeyList

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

func (*AccessKeyList) DeepCopyInto

func (in *AccessKeyList) DeepCopyInto(out *AccessKeyList)

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

func (*AccessKeyList) DeepCopyObject

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

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

func (*AccessKeyList) GetItems

func (l *AccessKeyList) GetItems() []resource.Managed

GetItems of this AccessKeyList.

type AccessKeyObservation

type AccessKeyObservation struct {
	// +kubebuilder:validation:Optional
	ID int `json:"id,omitempty"`
	// +kubebuilder:validation:Optional
	Key *PublicKey `json:"publicKey,omitempty"`
}

AccessKeyObservation are the observable fields of an AccessKey.

func (*AccessKeyObservation) DeepCopy

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

func (*AccessKeyObservation) DeepCopyInto

func (in *AccessKeyObservation) DeepCopyInto(out *AccessKeyObservation)

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

type AccessKeyParameters

type AccessKeyParameters struct {
	// The project key is the short name for the project for a
	// repository. Typically the key for a project called "Foo Bar"
	// would be "FB".
	// +immutable
	ProjectKey string `json:"projectKey"`

	// The repoName is the name of the git repository.
	// +immutable
	RepoName string `json:"repoName"`

	PublicKey PublicKey `json:"publicKey"`
}

AccessKeyParameters are the configurable fields of a AccessKey.

func (*AccessKeyParameters) DeepCopy

func (in *AccessKeyParameters) DeepCopy() *AccessKeyParameters

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

func (*AccessKeyParameters) DeepCopyInto

func (in *AccessKeyParameters) DeepCopyInto(out *AccessKeyParameters)

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

type AccessKeySpec

type AccessKeySpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       AccessKeyParameters `json:"forProvider"`
}

An AccessKeySpec defines the desired state of an AccessKey.

func (*AccessKeySpec) DeepCopy

func (in *AccessKeySpec) DeepCopy() *AccessKeySpec

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

func (*AccessKeySpec) DeepCopyInto

func (in *AccessKeySpec) DeepCopyInto(out *AccessKeySpec)

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

type AccessKeyStatus

type AccessKeyStatus struct {
	xpv1.ResourceStatus `json:",inline"`
	AtProvider          AccessKeyObservation `json:"atProvider,omitempty"`
}

An AccessKeyStatus represents the observed state of an AccessKey.

func (*AccessKeyStatus) DeepCopy

func (in *AccessKeyStatus) DeepCopy() *AccessKeyStatus

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

func (*AccessKeyStatus) DeepCopyInto

func (in *AccessKeyStatus) DeepCopyInto(out *AccessKeyStatus)

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

type PublicKey

type PublicKey struct {
	// Label
	Label string `json:"label"`

	// The ssh-key with access to the git repo. Leave empty to get a ssh-privatekey in the connection details
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Pattern=((ssh|ecdsa)-[a-z0-9-]+ .*|)
	Key string `json:"key,omitempty"`

	// +kubebuilder:validation:Enum=REPO_READ;REPO_WRITE
	Permission string `json:"permission"`
}

PublicKey contains the information about the public key. Only the permission field is mutable.

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.

Jump to

Keyboard shortcuts

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