v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package v1alpha1 contains managed resources for Gitlab Projects +kubebuilder:object:generate=true +groupName=projects.gitlab.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "projects.gitlab.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 (
	ProjectKind             = reflect.TypeOf(Project{}).Name()
	ProjectGroupKind        = schema.GroupKind{Group: Group, Kind: ProjectKind}.String()
	ProjectKindAPIVersion   = ProjectKind + "." + SchemeGroupVersion.String()
	ProjectGroupVersionKind = SchemeGroupVersion.WithKind(ProjectKind)
)

Project type metadata

View Source
var (
	HookKind             = reflect.TypeOf(Hook{}).Name()
	HookGroupKind        = schema.GroupKind{Group: Group, Kind: HookKind}.String()
	HookKindAPIVersion   = HookKind + "." + SchemeGroupVersion.String()
	HookGroupVersionKind = SchemeGroupVersion.WithKind(HookKind)
)

Hook type metadata

View Source
var (
	MemberKind             = reflect.TypeOf(Member{}).Name()
	MemberGroupKind        = schema.GroupKind{Group: Group, Kind: MemberKind}.String()
	MemberKindAPIVersion   = MemberKind + "." + SchemeGroupVersion.String()
	MemberGroupVersionKind = SchemeGroupVersion.WithKind(MemberKind)
)

Member type metadata

View Source
var (
	DeployTokenKind             = reflect.TypeOf(DeployToken{}).Name()
	DeployTokenGroupKind        = schema.GroupKind{Group: Group, Kind: DeployTokenKind}.String()
	DeployTokenKindAPIVersion   = DeployTokenKind + "." + SchemeGroupVersion.String()
	DeployTokenGroupVersionKind = SchemeGroupVersion.WithKind(DeployTokenKind)
)

Deploy Token type metadata

View Source
var (
	VariableKind             = reflect.TypeOf(Variable{}).Name()
	VariableGroupKind        = schema.GroupKind{Group: Group, Kind: VariableKind}.String()
	VariableKindAPIVersion   = VariableKind + "." + SchemeGroupVersion.String()
	VariableGroupVersionKind = SchemeGroupVersion.WithKind(VariableKind)
)

Variable type metadata

Functions

This section is empty.

Types

type AccessControlValue

type AccessControlValue string

AccessControlValue represents an access control value within GitLab, used for managing access to certain project features.

GitLab API docs: https://docs.gitlab.com/ce/api/projects.html

const (
	DisabledAccessControl AccessControlValue = "disabled"
	EnabledAccessControl  AccessControlValue = "enabled"
	PrivateAccessControl  AccessControlValue = "private"
	PublicAccessControl   AccessControlValue = "public"
)

List of available access control values.

GitLab API docs: https://docs.gitlab.com/ce/api/projects.html

type AccessLevelValue

type AccessLevelValue int

AccessLevelValue represents a permission level within GitLab.

GitLab API docs: https://docs.gitlab.com/ce/permissions/permissions.html

type ContainerExpirationPolicy

type ContainerExpirationPolicy struct {
	Cadence         string       `json:"cadence"`
	KeepN           int          `json:"keepN"`
	OlderThan       string       `json:"olderThan"`
	NameRegexDelete string       `json:"nameRegexDelete"`
	NameRegexKeep   string       `json:"nameRegexKeep"`
	Enabled         bool         `json:"enabled"`
	NextRunAt       *metav1.Time `json:"nextRunAt"`
}

ContainerExpirationPolicy represents the container expiration policy.

func (*ContainerExpirationPolicy) DeepCopy

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

func (*ContainerExpirationPolicy) DeepCopyInto

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

type ContainerExpirationPolicyAttributes

type ContainerExpirationPolicyAttributes struct {
	Cadence         *string `json:"cadence,omitempty"`
	KeepN           *int    `json:"keepN,omitempty"`
	OlderThan       *string `json:"olderThan,omitempty"`
	NameRegexDelete *string `json:"nameRegexDelete,omitempty"`
	NameRegexKeep   *string `json:"nameRegexKeep,omitempty"`
	Enabled         *bool   `json:"enabled,omitempty"`

	// Deprecated members
	NameRegex *string `url:"name_regex,omitempty" json:"name_regex,omitempty"`
}

ContainerExpirationPolicyAttributes represents the available container expiration policy attributes.

GitLab API docs: https://docs.gitlab.com/ee/api/projects.html#create-project

func (*ContainerExpirationPolicyAttributes) DeepCopy

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

func (*ContainerExpirationPolicyAttributes) DeepCopyInto

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

type CustomAttribute

type CustomAttribute struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

CustomAttribute struct is used to unmarshal response to api calls.

GitLab API docs: https://docs.gitlab.com/ce/api/custom_attributes.html

func (*CustomAttribute) DeepCopy

func (in *CustomAttribute) DeepCopy() *CustomAttribute

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

func (*CustomAttribute) DeepCopyInto

func (in *CustomAttribute) DeepCopyInto(out *CustomAttribute)

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

type DeployToken

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

	Spec   DeployTokenSpec   `json:"spec"`
	Status DeployTokenStatus `json:"status,omitempty"`
}

A DeployToken is a managed resource that represents a Gitlab deploy token +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gitlab}

func (*DeployToken) DeepCopy

func (in *DeployToken) DeepCopy() *DeployToken

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

func (*DeployToken) DeepCopyInto

func (in *DeployToken) DeepCopyInto(out *DeployToken)

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

func (*DeployToken) DeepCopyObject

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

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

func (*DeployToken) GetCondition

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

GetCondition of this DeployToken.

func (*DeployToken) GetDeletionPolicy

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

GetDeletionPolicy of this DeployToken.

func (*DeployToken) GetProviderConfigReference

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

GetProviderConfigReference of this DeployToken.

func (*DeployToken) GetProviderReference

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

GetProviderReference of this DeployToken. Deprecated: Use GetProviderConfigReference.

func (*DeployToken) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this DeployToken.

func (*DeployToken) ResolveReferences

func (mg *DeployToken) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this Deploy Token

func (*DeployToken) SetConditions

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

SetConditions of this DeployToken.

func (*DeployToken) SetDeletionPolicy

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

SetDeletionPolicy of this DeployToken.

func (*DeployToken) SetProviderConfigReference

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

SetProviderConfigReference of this DeployToken.

func (*DeployToken) SetProviderReference

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

SetProviderReference of this DeployToken. Deprecated: Use SetProviderConfigReference.

func (*DeployToken) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this DeployToken.

type DeployTokenList

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

DeployTokenList contains a list of Project items

func (*DeployTokenList) DeepCopy

func (in *DeployTokenList) DeepCopy() *DeployTokenList

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

func (*DeployTokenList) DeepCopyInto

func (in *DeployTokenList) DeepCopyInto(out *DeployTokenList)

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

func (*DeployTokenList) DeepCopyObject

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

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

func (*DeployTokenList) GetItems

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

GetItems of this DeployTokenList.

type DeployTokenObservation

type DeployTokenObservation struct{}

DeployTokenObservation represents a deploy token.

GitLab API docs: https://docs.gitlab.com/ee/api/deploy_tokens.html

func (*DeployTokenObservation) DeepCopy

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

func (*DeployTokenObservation) DeepCopyInto

func (in *DeployTokenObservation) DeepCopyInto(out *DeployTokenObservation)

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

type DeployTokenParameters

type DeployTokenParameters struct {
	// ProjectID is the ID of the project to create the deploy token in.
	// +optional
	// +immutable
	ProjectID *int `json:"projectId,omitempty"`

	// ProjectIDRef is a reference to a project to retrieve its projectId
	// +optional
	// +immutable
	ProjectIDRef *xpv1.Reference `json:"projectIdRef,omitempty"`

	// ProjectIDSelector selects reference to a project to retrieve its projectId.
	// +optional
	ProjectIDSelector *xpv1.Selector `json:"projectIdSelector,omitempty"`

	// Expiration date for the deploy token. Does not expire if no value is provided.
	// Expected in ISO 8601 format (2019-03-15T08:00:00Z)
	// +optional
	// +immutable
	ExpiresAt *metav1.Time `json:"expiresAt,omitempty"`

	// Username for deploy token. Default is gitlab+deploy-token-{n}
	// +optional
	// +immutable
	Username *string `json:"username,omitempty"`

	// Scopes indicates the deploy token scopes.
	// Must be at least one of read_repository, read_registry, write_registry,
	// read_package_registry, or write_package_registry.
	// +immutable
	Scopes []string `json:"scopes"`
}

DeployTokenParameters define the desired state of a Gitlab deploy token https://docs.gitlab.com/ee/api/deploy_tokens.html

func (*DeployTokenParameters) DeepCopy

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

func (*DeployTokenParameters) DeepCopyInto

func (in *DeployTokenParameters) DeepCopyInto(out *DeployTokenParameters)

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

type DeployTokenSpec

type DeployTokenSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       DeployTokenParameters `json:"forProvider"`
}

A DeployTokenSpec defines the desired state of a Gitlab Project.

func (*DeployTokenSpec) DeepCopy

func (in *DeployTokenSpec) DeepCopy() *DeployTokenSpec

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

func (*DeployTokenSpec) DeepCopyInto

func (in *DeployTokenSpec) DeepCopyInto(out *DeployTokenSpec)

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

type DeployTokenStatus

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

A DeployTokenStatus represents the observed state of a Gitlab Project.

func (*DeployTokenStatus) DeepCopy

func (in *DeployTokenStatus) DeepCopy() *DeployTokenStatus

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

func (*DeployTokenStatus) DeepCopyInto

func (in *DeployTokenStatus) DeepCopyInto(out *DeployTokenStatus)

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

type ForkParent

type ForkParent struct {
	HTTPURLToRepo     string `json:"HTTPURLToRepo"`
	ID                int    `json:"ID"`
	Name              string `json:"name"`
	NameWithNamespace string `json:"nameWithNamespace"`
	Path              string `json:"path"`
	PathWithNamespace string `json:"pathWithNamespace"`
	WebURL            string `json:"webURL"`
}

ForkParent represents the parent project when this is a fork.

func (*ForkParent) DeepCopy

func (in *ForkParent) DeepCopy() *ForkParent

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

func (*ForkParent) DeepCopyInto

func (in *ForkParent) DeepCopyInto(out *ForkParent)

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

type GroupAccess

type GroupAccess struct {
	AccessLevel       AccessLevelValue       `json:"accessLevel"`
	NotificationLevel NotificationLevelValue `json:"notificationLevel"`
}

GroupAccess represents group access.

func (*GroupAccess) DeepCopy

func (in *GroupAccess) DeepCopy() *GroupAccess

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

func (*GroupAccess) DeepCopyInto

func (in *GroupAccess) DeepCopyInto(out *GroupAccess)

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

type Hook

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

	Spec   HookSpec   `json:"spec"`
	Status HookStatus `json:"status,omitempty"`
}

A Hook is a managed resource that represents a Gitlab Project Hook +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gitlab}

func (*Hook) DeepCopy

func (in *Hook) DeepCopy() *Hook

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

func (*Hook) DeepCopyInto

func (in *Hook) DeepCopyInto(out *Hook)

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

func (*Hook) DeepCopyObject

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

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

func (*Hook) GetCondition

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

GetCondition of this Hook.

func (*Hook) GetDeletionPolicy

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

GetDeletionPolicy of this Hook.

func (*Hook) GetProviderConfigReference

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

GetProviderConfigReference of this Hook.

func (*Hook) GetProviderReference

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

GetProviderReference of this Hook. Deprecated: Use GetProviderConfigReference.

func (*Hook) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Hook.

func (*Hook) ResolveReferences

func (mg *Hook) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this Hook

func (*Hook) SetConditions

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

SetConditions of this Hook.

func (*Hook) SetDeletionPolicy

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

SetDeletionPolicy of this Hook.

func (*Hook) SetProviderConfigReference

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

SetProviderConfigReference of this Hook.

func (*Hook) SetProviderReference

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

SetProviderReference of this Hook. Deprecated: Use SetProviderConfigReference.

func (*Hook) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Hook.

type HookList

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

HookList contains a list of Project Hook items

func (*HookList) DeepCopy

func (in *HookList) DeepCopy() *HookList

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

func (*HookList) DeepCopyInto

func (in *HookList) DeepCopyInto(out *HookList)

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

func (*HookList) DeepCopyObject

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

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

func (*HookList) GetItems

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

GetItems of this HookList.

type HookObservation

type HookObservation struct {
	// ID of the project hook at gitlab
	ID int `json:"id,omitempty"`

	// CreatedAt specifies the time the project hook was created
	CreatedAt *metav1.Time `json:"createdAt,omitempty"`
}

HookObservation represents a project hook.

GitLab API docs: https://docs.gitlab.com/ce/api/projects.html#list-project-hooks

func (*HookObservation) DeepCopy

func (in *HookObservation) DeepCopy() *HookObservation

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

func (*HookObservation) DeepCopyInto

func (in *HookObservation) DeepCopyInto(out *HookObservation)

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

type HookParameters

type HookParameters struct {
	// URL is the hook URL.
	URL *string `json:"url"`

	// ConfidentialNoteEvents triggers hook on confidential issues events.
	// +optional
	ConfidentialNoteEvents *bool `json:"confidentialNoteEvents,omitempty"`

	// ProjectID is the ID of the project.
	// +optional
	// +immutable
	ProjectID *int `json:"projectId,omitempty"`

	// ProjectIDRef is a reference to a project to retrieve its projectId
	// +optional
	// +immutable
	ProjectIDRef *xpv1.Reference `json:"projectIdRef,omitempty"`

	// ProjectIDSelector selects reference to a project to retrieve its projectId.
	// +optional
	ProjectIDSelector *xpv1.Selector `json:"projectIdSelector,omitempty"`

	// PushEvents triggers hook on push events.
	// +optional
	PushEvents *bool `json:"pushEvents,omitempty"`

	// PushEventsBranchFilter triggers hook on push events for matching branches only.
	// +optional
	PushEventsBranchFilter *string `json:"pushEventsBranch_filter,omitempty"`

	// IssuesEvents triggers hook on issues events.
	// +optional
	IssuesEvents *bool `json:"issuesEvents,omitempty"`

	// ConfidentialIssuesEvents triggers hook on confidential issues events.
	// +optional
	ConfidentialIssuesEvents *bool `json:"confidentialIssuesEvents,omitempty"`

	// MergeRequestsEvents triggers hook on merge requests events.
	// +optional
	MergeRequestsEvents *bool `json:"mergeRequestsEvents,omitempty"`

	// TagPushEvents triggers hook on tag push events.
	// +optional
	TagPushEvents *bool `json:"tagPushEvents,omitempty"`

	// NoteEvents triggers hook on note events.
	// +optional
	NoteEvents *bool `json:"noteEvents,omitempty"`

	// JobEvents triggers hook on job events.
	// +optional
	JobEvents *bool `json:"jobEvents,omitempty"`

	// PipelineEvents triggers hook on pipeline events.
	// +optional
	PipelineEvents *bool `json:"pipelineEvents,omitempty"`

	// WikiPageEvents triggers hook on wiki events.
	// +optional
	WikiPageEvents *bool `json:"wikiPageEvents,omitempty"`

	// EnableSSLVerification enables SSL verification when triggering the hook.
	// +optional
	EnableSSLVerification *bool `json:"enableSslVerification,omitempty"`

	// Token is the secret token to validate received payloads.
	// +optional
	Token *string `json:"token,omitempty"`
}

HookParameters defines the desired state of a Gitlab Project Hook.

func (*HookParameters) DeepCopy

func (in *HookParameters) DeepCopy() *HookParameters

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

func (*HookParameters) DeepCopyInto

func (in *HookParameters) DeepCopyInto(out *HookParameters)

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

type HookSpec

type HookSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       HookParameters `json:"forProvider"`
}

A HookSpec defines the desired state of a Gitlab Project Hook.

func (*HookSpec) DeepCopy

func (in *HookSpec) DeepCopy() *HookSpec

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

func (*HookSpec) DeepCopyInto

func (in *HookSpec) DeepCopyInto(out *HookSpec)

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

type HookStatus

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

A HookStatus represents the observed state of a Gitlab Project Hook.

func (*HookStatus) DeepCopy

func (in *HookStatus) DeepCopy() *HookStatus

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

func (*HookStatus) DeepCopyInto

func (in *HookStatus) DeepCopyInto(out *HookStatus)

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

type Links struct {
	Self          string `json:"self"`
	Issues        string `json:"issues"`
	MergeRequests string `json:"mergeRequests"`
	RepoBranches  string `json:"repoBranches"`
	Labels        string `json:"labels"`
	Events        string `json:"events"`
	Members       string `json:"members"`
}

Links represents a project web links for self, issues, mergeRequests, repoBranches, labels, events, members.

func (*Links) DeepCopy

func (in *Links) DeepCopy() *Links

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

func (*Links) DeepCopyInto

func (in *Links) DeepCopyInto(out *Links)

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

type Member

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

	Spec   MemberSpec   `json:"spec"`
	Status MemberStatus `json:"status,omitempty"`
}

A Member is a managed resource that represents a Gitlab Project Member +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:printcolumn:name="Project ID",type="integer",JSONPath=".spec.forProvider.projectId" +kubebuilder:printcolumn:name="Username",type="string",JSONPath=".status.atProvider.username" +kubebuilder:printcolumn:name="Acceess Level",type="integer",JSONPath=".spec.forProvider.accessLevel" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gitlab}

func (*Member) DeepCopy

func (in *Member) DeepCopy() *Member

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

func (*Member) DeepCopyInto

func (in *Member) DeepCopyInto(out *Member)

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

func (*Member) DeepCopyObject

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

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

func (*Member) GetCondition

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

GetCondition of this Member.

func (*Member) GetDeletionPolicy

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

GetDeletionPolicy of this Member.

func (*Member) GetProviderConfigReference

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

GetProviderConfigReference of this Member.

func (*Member) GetProviderReference

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

GetProviderReference of this Member. Deprecated: Use GetProviderConfigReference.

func (*Member) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Member.

func (*Member) ResolveReferences

func (mg *Member) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this Project Member

func (*Member) SetConditions

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

SetConditions of this Member.

func (*Member) SetDeletionPolicy

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

SetDeletionPolicy of this Member.

func (*Member) SetProviderConfigReference

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

SetProviderConfigReference of this Member.

func (*Member) SetProviderReference

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

SetProviderReference of this Member. Deprecated: Use SetProviderConfigReference.

func (*Member) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Member.

type MemberList

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

MemberList contains a list of Member items

func (*MemberList) DeepCopy

func (in *MemberList) DeepCopy() *MemberList

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

func (*MemberList) DeepCopyInto

func (in *MemberList) DeepCopyInto(out *MemberList)

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

func (*MemberList) DeepCopyObject

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

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

func (*MemberList) GetItems

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

GetItems of this MemberList.

type MemberObservation

type MemberObservation struct {
	Username  string       `json:"username,omitempty"`
	Email     string       `json:"email,omitempty"`
	Name      string       `json:"name,omitempty"`
	State     string       `json:"state,omitempty"`
	CreatedAt *metav1.Time `json:"createdAt,omitempty"`
	WebURL    string       `json:"webURL,omitempty"`
	AvatarURL string       `json:"avatarURL,omitempty"`
}

MemberObservation represents a project member.

GitLab API docs: https://docs.gitlab.com/ce/api/projects.html#list-project-team-members

func (*MemberObservation) DeepCopy

func (in *MemberObservation) DeepCopy() *MemberObservation

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

func (*MemberObservation) DeepCopyInto

func (in *MemberObservation) DeepCopyInto(out *MemberObservation)

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

type MemberParameters

type MemberParameters struct {

	// The ID of the project owned by the authenticated user.
	// +optional
	// +immutable
	ProjectID *int `json:"projectId,omitempty"`

	// ProjectIDRef is a reference to a project to retrieve its projectId
	// +optional
	// +immutable
	ProjectIDRef *xpv1.Reference `json:"projectIdRef,omitempty"`

	// ProjectIDSelector selects reference to a project to retrieve its projectId.
	// +optional
	ProjectIDSelector *xpv1.Selector `json:"projectIdSelector,omitempty"`

	// The user ID of the member.
	// +immutable
	UserID int `json:"userID"`

	// A valid access level.
	// +immutable
	AccessLevel AccessLevelValue `json:"accessLevel"`

	// A date string in the format YEAR-MONTH-DAY.
	// +optional
	ExpiresAt *string `json:"expiresAt,omitempty"`
}

A MemberParameters defines the desired state of a Gitlab Project Member.

func (*MemberParameters) DeepCopy

func (in *MemberParameters) DeepCopy() *MemberParameters

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

func (*MemberParameters) DeepCopyInto

func (in *MemberParameters) DeepCopyInto(out *MemberParameters)

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

type MemberSpec

type MemberSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       MemberParameters `json:"forProvider"`
}

A MemberSpec defines the desired state of a Gitlab Project Member.

func (*MemberSpec) DeepCopy

func (in *MemberSpec) DeepCopy() *MemberSpec

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

func (*MemberSpec) DeepCopyInto

func (in *MemberSpec) DeepCopyInto(out *MemberSpec)

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

type MemberStatus

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

A MemberStatus represents the observed state of a Gitlab Project Member.

func (*MemberStatus) DeepCopy

func (in *MemberStatus) DeepCopy() *MemberStatus

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

func (*MemberStatus) DeepCopyInto

func (in *MemberStatus) DeepCopyInto(out *MemberStatus)

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

type MergeMethodValue

type MergeMethodValue string

MergeMethodValue represents a project merge type within GitLab.

GitLab API docs: https://docs.gitlab.com/ce/api/projects.html#project-merge-method

const (
	NoFastForwardMerge MergeMethodValue = "merge"
	FastForwardMerge   MergeMethodValue = "ff"
	RebaseMerge        MergeMethodValue = "rebase_merge"
)

List of available merge type

GitLab API docs: https://docs.gitlab.com/ce/api/projects.html#project-merge-method

type NotificationLevelValue

type NotificationLevelValue int

NotificationLevelValue represents a notification level.

type Permissions

type Permissions struct {
	ProjectAccess *ProjectAccess `json:"projectAccess,omitempty"`
	GroupAccess   *GroupAccess   `json:"groupAccess,omitempty"`
}

Permissions represents permissions.

func (*Permissions) DeepCopy

func (in *Permissions) DeepCopy() *Permissions

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

func (*Permissions) DeepCopyInto

func (in *Permissions) DeepCopyInto(out *Permissions)

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

type Project

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

	Spec   ProjectSpec   `json:"spec"`
	Status ProjectStatus `json:"status,omitempty"`
}

A Project is a managed resource that represents a Gitlab Project +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:printcolumn:name="PATH WITH NAMESPACE",type="string",JSONPath=".status.atProvider.pathWithNamespace" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gitlab}

func (*Project) DeepCopy

func (in *Project) DeepCopy() *Project

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

func (*Project) DeepCopyInto

func (in *Project) DeepCopyInto(out *Project)

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

func (*Project) DeepCopyObject

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

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

func (*Project) GetCondition

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

GetCondition of this Project.

func (*Project) GetDeletionPolicy

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

GetDeletionPolicy of this Project.

func (*Project) GetProviderConfigReference

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

GetProviderConfigReference of this Project.

func (*Project) GetProviderReference

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

GetProviderReference of this Project. Deprecated: Use GetProviderConfigReference.

func (*Project) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Project.

func (*Project) ResolveReferences

func (mg *Project) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this Project

func (*Project) SetConditions

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

SetConditions of this Project.

func (*Project) SetDeletionPolicy

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

SetDeletionPolicy of this Project.

func (*Project) SetProviderConfigReference

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

SetProviderConfigReference of this Project.

func (*Project) SetProviderReference

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

SetProviderReference of this Project. Deprecated: Use SetProviderConfigReference.

func (*Project) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Project.

type ProjectAccess

type ProjectAccess struct {
	AccessLevel       AccessLevelValue       `json:"accessLevel"`
	NotificationLevel NotificationLevelValue `json:"notificationLevel"`
}

ProjectAccess represents project access.

func (*ProjectAccess) DeepCopy

func (in *ProjectAccess) DeepCopy() *ProjectAccess

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

func (*ProjectAccess) DeepCopyInto

func (in *ProjectAccess) DeepCopyInto(out *ProjectAccess)

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

type ProjectLicense

type ProjectLicense struct {
	Key       string `json:"key"`
	Name      string `json:"name"`
	Nickname  string `json:"nickname"`
	HTMLURL   string `json:"HTMLURL"`
	SourceURL string `json:"sourceURL"`
}

ProjectLicense represent the license for a project.

func (*ProjectLicense) DeepCopy

func (in *ProjectLicense) DeepCopy() *ProjectLicense

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

func (*ProjectLicense) DeepCopyInto

func (in *ProjectLicense) DeepCopyInto(out *ProjectLicense)

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

type ProjectList

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

ProjectList contains a list of Project items

func (*ProjectList) DeepCopy

func (in *ProjectList) DeepCopy() *ProjectList

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

func (*ProjectList) DeepCopyInto

func (in *ProjectList) DeepCopyInto(out *ProjectList)

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

func (*ProjectList) DeepCopyObject

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

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

func (*ProjectList) GetItems

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

GetItems of this ProjectList.

type ProjectNamespace

type ProjectNamespace struct {
	ID        int    `json:"ID"`
	Name      string `json:"name"`
	Path      string `json:"path"`
	Kind      string `json:"kind"`
	FullPath  string `json:"fullPath"`
	AvatarURL string `json:"avatarURL"`
	WebURL    string `json:"webURL"`
}

ProjectNamespace represents a project namespace.

func (*ProjectNamespace) DeepCopy

func (in *ProjectNamespace) DeepCopy() *ProjectNamespace

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

func (*ProjectNamespace) DeepCopyInto

func (in *ProjectNamespace) DeepCopyInto(out *ProjectNamespace)

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

type ProjectObservation

type ProjectObservation struct {
	ID                        int                        `json:"id,omitempty"`
	Archived                  bool                       `json:"archived,omitempty"`
	AvatarURL                 string                     `json:"avatarUrl,omitempty"`
	ComplianceFrameworks      []string                   `json:"complianceFrameworks,omitempty"`
	ContainerExpirationPolicy *ContainerExpirationPolicy `json:"containerExpirationPolicy,omitempty"`
	CreatedAt                 *metav1.Time               `json:"createdAt,omitempty"`
	CreatorID                 int                        `json:"creatorId,omitempty"`
	CustomAttributes          []CustomAttribute          `json:"customAttributes,omitempty"`
	EmptyRepo                 bool                       `json:"emptyRepo,omitempty"`
	ForkedFromProject         *ForkParent                `json:"forkedFromProject,omitempty"`
	ForksCount                int                        `json:"forksCount,omitempty"`
	HTTPURLToRepo             string                     `json:"httpUrlToRepo,omitempty"`
	ImportError               string                     `json:"importError,omitempty"`
	ImportStatus              string                     `json:"importStatus,omitempty"`
	IssuesEnabled             bool                       `json:"issuesEnabled,omitempty"`
	JobsEnabled               bool                       `json:"jobsEnabled,omitempty"`
	LastActivityAt            *metav1.Time               `json:"lastActivityAt,omitempty"`
	License                   *ProjectLicense            `json:"license,omitempty"`
	LicenseURL                string                     `json:"licenseUrl,omitempty"`
	Links                     *Links                     `json:"links,omitempty"`
	MarkedForDeletionAt       *metav1.Time               `json:"markedForDeletionAt,omitempty"`
	MergeRequestsEnabled      bool                       `json:"mergeRequestsEnabled,omitempty"`
	NameWithNamespace         string                     `json:"nameWithNamespace,omitempty"`
	Namespace                 *ProjectNamespace          `json:"namespace,omitempty"`
	OpenIssuesCount           int                        `json:"openIssuesCount,omitempty"`
	Owner                     *User                      `json:"owner,omitempty"`
	PathWithNamespace         string                     `json:"pathWithNamespace,omitempty"`
	Permissions               *Permissions               `json:"permissions,omitempty"`
	Public                    bool                       `json:"public,omitempty"`
	ReadmeURL                 string                     `json:"readmeUrl,omitempty"`
	RunnersToken              string                     `json:"runnersToken,omitempty"`
	SSHURLToRepo              string                     `json:"sshUrlToRepo,omitempty"`
	ServiceDeskAddress        string                     `json:"serviceDeskAddress,omitempty"`
	SharedWithGroups          []SharedWithGroups         `json:"sharedWithGroups,omitempty"`
	SnippetsEnabled           bool                       `json:"snippetsEnabled,omitempty"`
	StarCount                 int                        `json:"starCount,omitempty"`
	Statistics                *ProjectStatistics         `json:"statistics,omitempty"`
	WebURL                    string                     `json:"webUrl,omitempty"`
	WikiEnabled               bool                       `json:"wikiEnabled,omitempty"`
}

ProjectObservation is the observed state of a Project.

func (*ProjectObservation) DeepCopy

func (in *ProjectObservation) DeepCopy() *ProjectObservation

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

func (*ProjectObservation) DeepCopyInto

func (in *ProjectObservation) DeepCopyInto(out *ProjectObservation)

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

type ProjectParameters

type ProjectParameters struct {
	// Set whether or not merge requests can be merged with skipped jobs.
	// +optional
	AllowMergeOnSkippedPipeline *bool `json:"allowMergeOnSkippedPipeline,omitempty"`

	// How many approvers should approve merge request by default.
	// To configure approval rules, see Merge request approvals API.
	// +optional
	ApprovalsBeforeMerge *int `json:"approvalsBeforeMerge,omitempty"`

	// Auto-cancel pending pipelines. This isn’t a boolean, but enabled/disabled.
	// +optional
	AutoCancelPendingPipelines *string `json:"autoCancelPendingPipelines,omitempty"`

	// Auto Deploy strategy (continuous, manual or timedIncremental).
	// +optional
	AutoDevopsDeployStrategy *string `json:"autoDevopsDeployStrategy,omitempty"`

	// Enable Auto DevOps for this project.
	// +optional
	AutoDevopsEnabled *bool `json:"autoDevopsEnabled,omitempty"`

	// Set whether auto-closing referenced issues on default branch.
	// +optional
	AutocloseReferencedIssues *bool `json:"autocloseReferencedIssues,omitempty"`

	// Test coverage parsing.
	// +optional
	BuildCoverageRegex *string `json:"buildCoverageRegex,omitempty"`

	// The Git strategy. Defaults to fetch.
	// +optional
	BuildGitStrategy *string `json:"buildGitStrategy,omitempty"`

	// The maximum amount of time, in seconds, that a job can run.
	// +optional
	BuildTimeout *int `json:"buildTimeout,omitempty"`

	// One of disabled, private, or enabled.
	// +optional
	BuildsAccessLevel *AccessControlValue `json:"buildsAccessLevel,omitempty"`

	// The path to CI configuration file.
	// +optional
	CIConfigPath *string `json:"ciConfigPath,omitempty"`

	// Default number of revisions for shallow cloning.
	// +optional
	CIDefaultGitDepth *int `json:"ciDefaultGitDepth,omitempty"`

	// When a new deployment job starts, skip older deployment jobs that are still pending
	// +optional
	CIForwardDeploymentEnabled *bool `json:"ciForwardDeploymentEnabled,omitempty"`

	// Update the image cleanup policy for this project. Accepts: cadence (string), keepN (integer), olderThan (string),
	// nameRegex (string), nameRegexDelete (string), nameRegexKeep (string), enabled (boolean).
	// +optional
	ContainerExpirationPolicyAttributes *ContainerExpirationPolicyAttributes `json:"containerExpirationPolicyAttributes,omitempty"`

	// Enable container registry for this project.
	// +optional
	ContainerRegistryEnabled *bool `json:"containerRegistryEnabled,omitempty"`

	// The default branch name. Requires initializeWithReadme to be true.
	// +optional
	DefaultBranch *string `json:"defaultBranch,omitempty"`

	// Short project description.
	// +optional
	Description *string `json:"description,omitempty"`

	// Name is the human-readable name of the project.
	// If set, it overrides metadata.name.
	// +kubebuilder:validation:MaxLength:=255
	// +optional
	Name *string `json:"name,omitempty"`

	// Disable email notifications.
	// +optional
	EmailsDisabled *bool `json:"emailsDisabled,omitempty"`

	// The classification label for the project.
	// +optional
	ExternalAuthorizationClassificationLabel *string `json:"externalAuthorizationClassificationLabel,omitempty"`

	// One of disabled, private, or enabled.
	// +optional
	ForkingAccessLevel *AccessControlValue `json:"forkingAccessLevel,omitempty"`

	// For group-level custom templates, specifies ID of group from which all the custom project templates are sourced.
	// Leave empty for instance-level templates. Requires useCustomTemplate to be true.
	// +optional
	// +immutable
	GroupWithProjectTemplatesID *int `json:"groupWithProjectTemplatesId,omitempty"`

	// URL to import repository from.
	// +optional
	ImportURL *string `json:"importUrl,omitempty"`

	// false by default.
	// +optional
	// +immutable
	InitializeWithReadme *bool `json:"initializeWithReadme,omitempty"`

	// One of disabled, private, or enabled.
	// +optional
	IssuesAccessLevel *AccessControlValue `json:"issuesAccessLevel,omitempty"`

	// Default description for Issues. Description is parsed with GitLab Flavored Markdown.
	// See Templates for issues and merge requests.
	// +optional
	IssuesTemplate *string `json:"issuesTemplate,omitempty"`

	// Enable LFS.
	// +optional
	LFSEnabled *bool `json:"lfsEnabled,omitempty"`

	// Set the merge method used.
	// +optional
	MergeMethod *MergeMethodValue `json:"mergeMethod,omitempty"`

	// One of disabled, private, or enabled.
	// +optional
	MergeRequestsAccessLevel *AccessControlValue `json:"mergeRequestsAccessLevel,omitempty"`

	// Default description for Merge Requests. Description is parsed with GitLab Flavored Markdown.
	// See Templates for issues and merge requests.
	// +optional
	MergeRequestsTemplate *string `json:"mergeRequestsTemplate,omitempty"`

	// Enables pull mirroring in a project.
	// +optional
	Mirror *bool `json:"mirror,omitempty"`

	// Pull mirror overwrites diverged branches.
	// +optional
	MirrorOverwritesDivergedBranches *bool `json:"mirrorOverwritesDivergedBranches,omitempty"`

	// Pull mirroring triggers builds.
	// +optional
	MirrorTriggerBuilds *bool `json:"mirrorTriggerBuilds,omitempty"`

	// User responsible for all the activity surrounding a pull mirror event. (admins only)
	// +optional
	MirrorUserID *int `json:"mirrorUserId,omitempty"`

	// Namespace for the new project (defaults to the current user’s namespace).
	// +optional
	NamespaceID *int `json:"namespaceId,omitempty"`

	// NamespaceIDRef is a reference to a project to retrieve its namespaceId
	// +optional
	// +immutable
	NamespaceIDRef *xpv1.Reference `json:"namespaceIdRef,omitempty"`

	// NamespaceIDSelector selects reference to a project to retrieve its namespaceId.
	// +optional
	NamespaceIDSelector *xpv1.Selector `json:"namespaceIdSelector,omitempty"`

	// Set whether merge requests can only be merged when all the discussions are resolved.
	// +optional
	OnlyAllowMergeIfAllDiscussionsAreResolved *bool `json:"onlyAllowMergeIfAllDiscussionsAreResolved,omitempty"`

	// Set whether merge requests can only be merged with successful jobs.
	// +optional
	OnlyAllowMergeIfPipelineSucceeds *bool `json:"onlyAllowMergeIfPipelineSucceeds,omitempty"`

	// Only mirror protected branches.
	// +optional
	OnlyMirrorProtectedBranches *bool `json:"onlyMirrorProtectedBranches,omitempty"`

	// One of disabled, private, or enabled.
	// +optional
	OperationsAccessLevel *AccessControlValue `json:"operationsAccessLevel,omitempty"`

	// Enable or disable packages repository feature.
	// +optional
	PackagesEnabled *bool `json:"packagesEnabled,omitempty"`

	// One of disabled, private, enabled, or public.
	// +optional
	PagesAccessLevel *AccessControlValue `json:"pagesAccessLevel,omitempty"`

	// Repository name for new project.
	// Generated based on name if not provided (generated as lowercase with dashes).
	// +optional
	Path *string `json:"path,omitempty"`

	// Show link to create/view merge request when pushing from the command line.
	// +optional
	// +immutable
	PrintingMergeRequestLinkEnabled *bool `json:"printingMergeRequestLinkEnabled,omitempty"`

	// If true, jobs can be viewed by non-project members.
	// +optional
	PublicBuilds *bool `json:"publicBuilds,omitempty"`

	// Enable Delete source branch option by default for all new merge requests.
	// +optional
	RemoveSourceBranchAfterMerge *bool `json:"removeSourceBranchAfterMerge,omitempty"`

	// One of disabled, private, or enabled.
	// +optional
	RepositoryAccessLevel *AccessControlValue `json:"repositoryAccessLevel,omitempty"`

	// Allow users to request member access.
	// +optional
	RequestAccessEnabled *bool `json:"requestAccessEnabled,omitempty"`

	// Automatically resolve merge request diffs discussions on lines changed with a push.
	// +optional
	ResolveOutdatedDiffDiscussions *bool `json:"resolveOutdatedDiffDiscussions,omitempty"`

	// Enable or disable Service Desk feature.
	// +optional
	ServiceDeskEnabled *bool `json:"serviceDeskEnabled,omitempty"`

	// Enable shared runners for this project.
	// +optional
	SharedRunnersEnabled *bool `json:"sharedRunnersEnabled,omitempty"`

	// One of disabled, private, or enabled.
	// +optional
	SnippetsAccessLevel *AccessControlValue `json:"snippetsAccessLevel,omitempty"`

	// The commit message used to apply merge request suggestions.
	// +optional
	SuggestionCommitMessage *string `json:"suggestionCommitMessage,omitempty"`

	// The list of tags for a project; put array of tags,
	// that should be finally assigned to a project. Use topics instead.
	// +optional
	TagList []string `json:"tagList,omitempty"`

	// When used without useCustomTemplate, name of a built-in project template.
	// When used with useCustomTemplate, name of a custom project template.
	// +optional
	// +immutable
	TemplateName *string `json:"templateName,omitempty"`

	// When used with useCustomTemplate, project ID of a custom project template.
	// This is preferable to using templateName since templateName may be ambiguous.
	// +optional
	// +immutable
	TemplateProjectID *int `json:"templateProjectId,omitempty"`

	// Use either custom instance or group (with groupWithProjectTemplatesId) project template.
	// +optional
	// +immutable
	UseCustomTemplate *bool `json:"useCustomTemplate,omitempty"`

	// See project visibility level.
	// +optional
	Visibility *VisibilityValue `json:"visibility,omitempty"`

	// One of disabled, private, or enabled.
	// +optional
	WikiAccessLevel *AccessControlValue `json:"wikiAccessLevel,omitempty"`
}

ProjectParameters define the desired state of a Gitlab Project

func (*ProjectParameters) DeepCopy

func (in *ProjectParameters) DeepCopy() *ProjectParameters

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

func (*ProjectParameters) DeepCopyInto

func (in *ProjectParameters) DeepCopyInto(out *ProjectParameters)

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

type ProjectSpec

type ProjectSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       ProjectParameters `json:"forProvider"`
}

A ProjectSpec defines the desired state of a Gitlab Project.

func (*ProjectSpec) DeepCopy

func (in *ProjectSpec) DeepCopy() *ProjectSpec

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

func (*ProjectSpec) DeepCopyInto

func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec)

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

type ProjectStatistics

type ProjectStatistics struct {
	StorageStatistics `json:",inline"`
	CommitCount       int `json:"commitCount"`
}

ProjectStatistics represents a statistics record for a project.

func (*ProjectStatistics) DeepCopy

func (in *ProjectStatistics) DeepCopy() *ProjectStatistics

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

func (*ProjectStatistics) DeepCopyInto

func (in *ProjectStatistics) DeepCopyInto(out *ProjectStatistics)

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

type ProjectStatus

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

A ProjectStatus represents the observed state of a Gitlab Project.

func (*ProjectStatus) DeepCopy

func (in *ProjectStatus) DeepCopy() *ProjectStatus

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

func (*ProjectStatus) DeepCopyInto

func (in *ProjectStatus) DeepCopyInto(out *ProjectStatus)

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

type SharedWithGroups

type SharedWithGroups struct {
	GroupID          int    `json:"groupID,omitempty"`
	GroupName        string `json:"groupName,omitempty"`
	GroupAccessLevel int    `json:"groupAccessLevel,omitempty"`
}

SharedWithGroups struct used in gitlab project

func (*SharedWithGroups) DeepCopy

func (in *SharedWithGroups) DeepCopy() *SharedWithGroups

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

func (*SharedWithGroups) DeepCopyInto

func (in *SharedWithGroups) DeepCopyInto(out *SharedWithGroups)

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

type StorageStatistics

type StorageStatistics struct {
	StorageSize      int64 `json:"storageSize"`
	RepositorySize   int64 `json:"repositorySize"`
	LfsObjectsSize   int64 `json:"lfsObjectsSize"`
	JobArtifactsSize int64 `json:"jobArtifactsSize"`
}

StorageStatistics represents a statistics record for a group or project.

func (*StorageStatistics) DeepCopy

func (in *StorageStatistics) DeepCopy() *StorageStatistics

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

func (*StorageStatistics) DeepCopyInto

func (in *StorageStatistics) DeepCopyInto(out *StorageStatistics)

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

type User

type User struct {
	ID                        int                `json:"ID,omitempty"`
	Username                  string             `json:"username,omitempty"`
	Email                     string             `json:"email,omitempty"`
	Name                      string             `json:"name,omitempty"`
	State                     string             `json:"state,omitempty"`
	WebURL                    string             `json:"webURL,omitempty"`
	CreatedAt                 *metav1.Time       `json:"createdAt,omitempty"`
	Bio                       string             `json:"bio,omitempty"`
	Location                  string             `json:"location,omitempty"`
	PublicEmail               string             `json:"publicEmail,omitempty"`
	Skype                     string             `json:"skype,omitempty"`
	Linkedin                  string             `json:"linkedin,omitempty"`
	Twitter                   string             `json:"twitter,omitempty"`
	WebsiteURL                string             `json:"websiteURL,omitempty"`
	Organization              string             `json:"organization,omitempty"`
	ExternUID                 string             `json:"externUID,omitempty"`
	Provider                  string             `json:"provider,omitempty"`
	ThemeID                   int                `json:"themeID,omitempty"`
	LastActivityOn            *metav1.Time       `json:"lastActivityOn,omitempty"`
	ColorSchemeID             int                `json:"colorSchemeID,omitempty"`
	IsAdmin                   bool               `json:"isAdmin,omitempty"`
	AvatarURL                 string             `json:"avatarURL,omitempty"`
	CanCreateGroup            bool               `json:"canCreateGroup,omitempty"`
	CanCreateProject          bool               `json:"canCreateProject,omitempty"`
	ProjectsLimit             int                `json:"projectsLimit,omitempty"`
	CurrentSignInAt           *metav1.Time       `json:"currentSignInAt,omitempty"`
	LastSignInAt              *metav1.Time       `json:"lastSignInAt,omitempty"`
	ConfirmedAt               *metav1.Time       `json:"confirmedAt,omitempty"`
	TwoFactorEnabled          bool               `json:"twoFactorEnabled,omitempty"`
	Identities                []*UserIdentity    `json:"identities,omitempty"`
	External                  bool               `json:"external,omitempty"`
	PrivateProfile            bool               `json:"privateProfile,omitempty"`
	SharedRunnersMinutesLimit int                `json:"sharedRunnersMinutesLimit,omitempty"`
	CustomAttributes          []*CustomAttribute `json:"customAttributes,omitempty"`
}

User represents a GitLab user.

GitLab API docs: https://docs.gitlab.com/ee/api/users.html

func (*User) DeepCopy

func (in *User) DeepCopy() *User

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

func (*User) DeepCopyInto

func (in *User) DeepCopyInto(out *User)

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

type UserIdentity

type UserIdentity struct {
	Provider  string `json:"provider"`
	ExternUID string `json:"externUID"`
}

UserIdentity represents a user identity.

func (*UserIdentity) DeepCopy

func (in *UserIdentity) DeepCopy() *UserIdentity

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

func (*UserIdentity) DeepCopyInto

func (in *UserIdentity) DeepCopyInto(out *UserIdentity)

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

type Variable

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

	Spec   VariableSpec   `json:"spec"`
	Status VariableStatus `json:"status,omitempty"`
}

A Variable is a managed resource that represents a Gitlab CI variable. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gitlab}

func (*Variable) DeepCopy

func (in *Variable) DeepCopy() *Variable

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

func (*Variable) DeepCopyInto

func (in *Variable) DeepCopyInto(out *Variable)

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

func (*Variable) DeepCopyObject

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

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

func (*Variable) GetCondition

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

GetCondition of this Variable.

func (*Variable) GetDeletionPolicy

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

GetDeletionPolicy of this Variable.

func (*Variable) GetProviderConfigReference

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

GetProviderConfigReference of this Variable.

func (*Variable) GetProviderReference

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

GetProviderReference of this Variable. Deprecated: Use GetProviderConfigReference.

func (*Variable) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Variable.

func (*Variable) ResolveReferences

func (mg *Variable) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this Variable

func (*Variable) SetConditions

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

SetConditions of this Variable.

func (*Variable) SetDeletionPolicy

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

SetDeletionPolicy of this Variable.

func (*Variable) SetProviderConfigReference

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

SetProviderConfigReference of this Variable.

func (*Variable) SetProviderReference

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

SetProviderReference of this Variable. Deprecated: Use SetProviderConfigReference.

func (*Variable) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Variable.

type VariableList

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

VariableList contains a list of Variable items.

func (*VariableList) DeepCopy

func (in *VariableList) DeepCopy() *VariableList

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

func (*VariableList) DeepCopyInto

func (in *VariableList) DeepCopyInto(out *VariableList)

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

func (*VariableList) DeepCopyObject

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

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

func (*VariableList) GetItems

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

GetItems of this VariableList.

type VariableParameters

type VariableParameters struct {
	// ProjectID is the ID of the project to create the variable on.
	// +optional
	// +immutable
	ProjectID *int `json:"projectId,omitempty"`

	// ProjectIDRef is a reference to a project to retrieve its projectId.
	// +optional
	// +immutable
	ProjectIDRef *xpv1.Reference `json:"projectIdRef,omitempty"`

	// ProjectIDSelector selects reference to a project to retrieve its projectId.
	// +optional
	ProjectIDSelector *xpv1.Selector `json:"projectIdSelector,omitempty"`

	// Key for the variable.
	// +kubebuilder:validation:Pattern:=^[a-zA-Z0-9\_]+$
	// +kubebuilder:validation:MaxLength:=255
	// +immutable
	Key string `json:"key"`

	// Value for the variable.
	Value string `json:"value"`

	// Masked enables or disables variable masking.
	// +optional
	Masked *bool `json:"masked,omitempty"`

	// Protected enables or disables variable protection.
	// +optional
	Protected *bool `json:"protected,omitempty"`

	// VariableType is the type of the variable.
	// +kubebuilder:validation:Enum:=env_var;file
	// +optional
	VariableType *VariableType `json:"variableType,omitempty"`

	// EnvironmentScope indicates the environment scope
	// that this variable is applied to.
	// +optional
	EnvironmentScope *string `json:"environmentScope,omitempty"`
}

VariableParameters define the desired state of a Gitlab CI Variable https://docs.gitlab.com/ee/api/project_level_variables.html

func (*VariableParameters) DeepCopy

func (in *VariableParameters) DeepCopy() *VariableParameters

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

func (*VariableParameters) DeepCopyInto

func (in *VariableParameters) DeepCopyInto(out *VariableParameters)

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

type VariableSpec

type VariableSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       VariableParameters `json:"forProvider"`
}

A VariableSpec defines the desired state of a Gitlab Project CI Variable.

func (*VariableSpec) DeepCopy

func (in *VariableSpec) DeepCopy() *VariableSpec

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

func (*VariableSpec) DeepCopyInto

func (in *VariableSpec) DeepCopyInto(out *VariableSpec)

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

type VariableStatus

type VariableStatus struct {
	xpv1.ResourceStatus `json:",inline"`
}

A VariableStatus represents the observed state of a Gitlab Project CI Variable.

func (*VariableStatus) DeepCopy

func (in *VariableStatus) DeepCopy() *VariableStatus

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

func (*VariableStatus) DeepCopyInto

func (in *VariableStatus) DeepCopyInto(out *VariableStatus)

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

type VariableType

type VariableType string

VariableType indicates the type of the GitLab CI variable.

const (
	VariableTypeEnvVar VariableType = "env_var"
	VariableTypeFile   VariableType = "file"
)

List of variable type values.

GitLab API docs: https://docs.gitlab.com/ee/api/project_level_variables.html

type VisibilityValue

type VisibilityValue string

VisibilityValue represents a visibility level within GitLab.

GitLab API docs: https://docs.gitlab.com/ce/api/

const (
	PrivateVisibility  VisibilityValue = "private"
	InternalVisibility VisibilityValue = "internal"
	PublicVisibility   VisibilityValue = "public"
)

List of available visibility levels.

GitLab API docs: https://docs.gitlab.com/ce/api/

Jump to

Keyboard shortcuts

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