v1alpha1

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	KubernetesGroup = "groups.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: KubernetesGroup, Version: Version}

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

GroupGitLab type metadata

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

MemberGitLab type metadata

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

Deploy Token type metadata

View Source
var (
	AccessTokenKind             = reflect.TypeOf(AccessToken{}).Name()
	AccessTokenGroupKind        = schema.GroupKind{Group: KubernetesGroup, Kind: AccessTokenKind}.String()
	AccessTokenKindAPIVersion   = AccessTokenKind + "." + SchemeGroupVersion.String()
	AccessTokenGroupVersionKind = SchemeGroupVersion.WithKind(AccessTokenKind)
)

Access Token type metadata

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

Variable type metadata

Functions

This section is empty.

Types

type AccessLevelValue

type AccessLevelValue int

AccessLevelValue represents a permission level within GitLab.

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

const (
	NoPermissions            AccessLevelValue = 0
	MinimalAccessPermissions AccessLevelValue = 5
	GuestPermissions         AccessLevelValue = 10
	ReporterPermissions      AccessLevelValue = 20
	DeveloperPermissions     AccessLevelValue = 30
	MaintainerPermissions    AccessLevelValue = 40
	OwnerPermissions         AccessLevelValue = 50

	// These are deprecated and should be removed in a future version
	MasterPermissions AccessLevelValue = 40
	OwnerPermission   AccessLevelValue = 50
)

List of available access levels

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

type AccessToken added in v0.7.0

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

	Spec   AccessTokenSpec   `json:"spec"`
	Status AccessTokenStatus `json:"status,omitempty"`
}

A AccessToken is a managed resource that represents a Gitlab group access 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 (*AccessToken) DeepCopy added in v0.7.0

func (in *AccessToken) DeepCopy() *AccessToken

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

func (*AccessToken) DeepCopyInto added in v0.7.0

func (in *AccessToken) DeepCopyInto(out *AccessToken)

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

func (*AccessToken) DeepCopyObject added in v0.7.0

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

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

func (*AccessToken) GetCondition added in v0.7.0

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

GetCondition of this AccessToken.

func (*AccessToken) GetDeletionPolicy added in v0.7.0

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

GetDeletionPolicy of this AccessToken.

func (*AccessToken) GetManagementPolicies added in v0.7.0

func (mg *AccessToken) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this AccessToken.

func (*AccessToken) GetProviderConfigReference added in v0.7.0

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

GetProviderConfigReference of this AccessToken.

func (*AccessToken) GetPublishConnectionDetailsTo added in v0.7.0

func (mg *AccessToken) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this AccessToken.

func (*AccessToken) GetWriteConnectionSecretToReference added in v0.7.0

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

GetWriteConnectionSecretToReference of this AccessToken.

func (*AccessToken) ResolveReferences added in v0.7.0

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

ResolveReferences of this Access Token

func (*AccessToken) SetConditions added in v0.7.0

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

SetConditions of this AccessToken.

func (*AccessToken) SetDeletionPolicy added in v0.7.0

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

SetDeletionPolicy of this AccessToken.

func (*AccessToken) SetManagementPolicies added in v0.7.0

func (mg *AccessToken) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this AccessToken.

func (*AccessToken) SetProviderConfigReference added in v0.7.0

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

SetProviderConfigReference of this AccessToken.

func (*AccessToken) SetPublishConnectionDetailsTo added in v0.7.0

func (mg *AccessToken) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this AccessToken.

func (*AccessToken) SetWriteConnectionSecretToReference added in v0.7.0

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

SetWriteConnectionSecretToReference of this AccessToken.

type AccessTokenList added in v0.7.0

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

AccessTokenList contains a list of group items

func (*AccessTokenList) DeepCopy added in v0.7.0

func (in *AccessTokenList) DeepCopy() *AccessTokenList

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

func (*AccessTokenList) DeepCopyInto added in v0.7.0

func (in *AccessTokenList) DeepCopyInto(out *AccessTokenList)

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

func (*AccessTokenList) DeepCopyObject added in v0.7.0

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

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

func (*AccessTokenList) GetItems added in v0.7.0

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

GetItems of this AccessTokenList.

type AccessTokenObservation added in v0.7.0

type AccessTokenObservation struct {
	TokenID *int `json:"id,omitempty"`
}

AccessTokenObservation represents a access token.

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

func (*AccessTokenObservation) DeepCopy added in v0.7.0

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

func (*AccessTokenObservation) DeepCopyInto added in v0.7.0

func (in *AccessTokenObservation) DeepCopyInto(out *AccessTokenObservation)

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

type AccessTokenParameters added in v0.7.0

type AccessTokenParameters struct {
	// GroupID is the ID of the group to create the deploy token in.
	// +optional
	// +immutable
	GroupID *int `json:"groupId,omitempty"`

	// GroupIDRef is a reference to a group to retrieve its groupId
	// +optional
	// +immutable
	GroupIDRef *xpv1.Reference `json:"groupIdRef,omitempty"`

	// GroupIDSelector selects reference to a group to retrieve its groupId.
	// +optional
	GroupIDSelector *xpv1.Selector `json:"groupIdSelector,omitempty"`

	// Expiration date of the access token. The date cannot be set later than the maximum allowable lifetime of an access token.
	// If not set, the maximum allowable lifetime of a personal access token is 365 days.
	// Expected in ISO 8601 format (2019-03-15T08:00:00Z)
	// +immutable
	ExpiresAt *metav1.Time `json:"expiresAt,omitempty"`

	// Access level for the group. Default is 40.
	// Valid values are 10 (Guest), 20 (Reporter), 30 (Developer), 40 (Maintainer), and 50 (Owner).
	// +optional
	// +immutable
	AccessLevel *AccessLevelValue `json:"accessLevel,omitempty"`

	// Scopes indicates the access 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"`

	// Name of the group access token
	// +required
	Name string `json:"name"`
}

AccessTokenParameters define the desired state of a Gitlab access token https://docs.gitlab.com/ee/api/access_tokens.html

func (*AccessTokenParameters) DeepCopy added in v0.7.0

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

func (*AccessTokenParameters) DeepCopyInto added in v0.7.0

func (in *AccessTokenParameters) DeepCopyInto(out *AccessTokenParameters)

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

type AccessTokenSpec added in v0.7.0

type AccessTokenSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       AccessTokenParameters `json:"forProvider"`
}

A AccessTokenSpec defines the desired state of a Gitlab group.

func (*AccessTokenSpec) DeepCopy added in v0.7.0

func (in *AccessTokenSpec) DeepCopy() *AccessTokenSpec

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

func (*AccessTokenSpec) DeepCopyInto added in v0.7.0

func (in *AccessTokenSpec) DeepCopyInto(out *AccessTokenSpec)

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

type AccessTokenStatus added in v0.7.0

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

A AccessTokenStatus represents the observed state of a Gitlab group.

func (*AccessTokenStatus) DeepCopy added in v0.7.0

func (in *AccessTokenStatus) DeepCopy() *AccessTokenStatus

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

func (*AccessTokenStatus) DeepCopyInto added in v0.7.0

func (in *AccessTokenStatus) DeepCopyInto(out *AccessTokenStatus)

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 added in v0.2.0

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 added in v0.2.0

func (in *DeployToken) DeepCopy() *DeployToken

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

func (*DeployToken) DeepCopyInto added in v0.2.0

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 added in v0.2.0

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

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

func (*DeployToken) GetCondition added in v0.2.0

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

GetCondition of this DeployToken.

func (*DeployToken) GetDeletionPolicy added in v0.2.0

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

GetDeletionPolicy of this DeployToken.

func (*DeployToken) GetManagementPolicies added in v0.6.0

func (mg *DeployToken) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this DeployToken.

func (*DeployToken) GetProviderConfigReference added in v0.2.0

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

GetProviderConfigReference of this DeployToken.

func (*DeployToken) GetPublishConnectionDetailsTo added in v0.3.0

func (mg *DeployToken) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this DeployToken.

func (*DeployToken) GetWriteConnectionSecretToReference added in v0.2.0

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

GetWriteConnectionSecretToReference of this DeployToken.

func (*DeployToken) ResolveReferences added in v0.2.0

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

ResolveReferences of this Deploy Token

func (*DeployToken) SetConditions added in v0.2.0

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

SetConditions of this DeployToken.

func (*DeployToken) SetDeletionPolicy added in v0.2.0

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

SetDeletionPolicy of this DeployToken.

func (*DeployToken) SetManagementPolicies added in v0.6.0

func (mg *DeployToken) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this DeployToken.

func (*DeployToken) SetProviderConfigReference added in v0.2.0

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

SetProviderConfigReference of this DeployToken.

func (*DeployToken) SetPublishConnectionDetailsTo added in v0.3.0

func (mg *DeployToken) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this DeployToken.

func (*DeployToken) SetWriteConnectionSecretToReference added in v0.2.0

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

SetWriteConnectionSecretToReference of this DeployToken.

type DeployTokenList added in v0.2.0

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

DeployTokenList contains a list of Group items

func (*DeployTokenList) DeepCopy added in v0.2.0

func (in *DeployTokenList) DeepCopy() *DeployTokenList

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

func (*DeployTokenList) DeepCopyInto added in v0.2.0

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 added in v0.2.0

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

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

func (*DeployTokenList) GetItems added in v0.2.0

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

GetItems of this DeployTokenList.

type DeployTokenObservation added in v0.2.0

type DeployTokenObservation struct{}

DeployTokenObservation represents a deploy token.

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

func (*DeployTokenObservation) DeepCopy added in v0.2.0

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

func (*DeployTokenObservation) DeepCopyInto added in v0.2.0

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 added in v0.2.0

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

	// GroupIDRef is a reference to a group to retrieve its groupId
	// +optional
	// +immutable
	GroupIDRef *xpv1.Reference `json:"groupIdRef,omitempty"`

	// GroupIDSelector selects reference to a group to retrieve its groupId.
	// +optional
	GroupIDSelector *xpv1.Selector `json:"groupIdSelector,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 added in v0.2.0

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

func (*DeployTokenParameters) DeepCopyInto added in v0.2.0

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 added in v0.2.0

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

A DeployTokenSpec defines the desired state of a Gitlab Group.

func (*DeployTokenSpec) DeepCopy added in v0.2.0

func (in *DeployTokenSpec) DeepCopy() *DeployTokenSpec

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

func (*DeployTokenSpec) DeepCopyInto added in v0.2.0

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 added in v0.2.0

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

A DeployTokenStatus represents the observed state of a Gitlab Group.

func (*DeployTokenStatus) DeepCopy added in v0.2.0

func (in *DeployTokenStatus) DeepCopy() *DeployTokenStatus

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

func (*DeployTokenStatus) DeepCopyInto added in v0.2.0

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

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

type Group

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

	Spec   GroupSpec   `json:"spec"`
	Status GroupStatus `json:"status,omitempty"`
}

A Group is a managed resource that represents a Gitlab Group +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="EXTERNAL-NAME",type="string",JSONPath=".status.atProvider.ID" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gitlab}

func (*Group) DeepCopy

func (in *Group) DeepCopy() *Group

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

func (*Group) DeepCopyInto

func (in *Group) DeepCopyInto(out *Group)

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

func (*Group) DeepCopyObject

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

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

func (*Group) GetCondition

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

GetCondition of this Group.

func (*Group) GetDeletionPolicy

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

GetDeletionPolicy of this Group.

func (*Group) GetManagementPolicies added in v0.6.0

func (mg *Group) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Group.

func (*Group) GetProviderConfigReference

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

GetProviderConfigReference of this Group.

func (*Group) GetPublishConnectionDetailsTo added in v0.3.0

func (mg *Group) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Group.

func (*Group) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Group.

func (*Group) ResolveReferences

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

ResolveReferences of this Group.

func (*Group) SetConditions

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

SetConditions of this Group.

func (*Group) SetDeletionPolicy

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

SetDeletionPolicy of this Group.

func (*Group) SetManagementPolicies added in v0.6.0

func (mg *Group) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Group.

func (*Group) SetProviderConfigReference

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

SetProviderConfigReference of this Group.

func (*Group) SetPublishConnectionDetailsTo added in v0.3.0

func (mg *Group) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Group.

func (*Group) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Group.

type GroupList

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

GroupList contains a list of Group items

func (*GroupList) DeepCopy

func (in *GroupList) DeepCopy() *GroupList

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

func (*GroupList) DeepCopyInto

func (in *GroupList) DeepCopyInto(out *GroupList)

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

func (*GroupList) DeepCopyObject

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

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

func (*GroupList) GetItems

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

GetItems of this GroupList.

type GroupObservation

type GroupObservation struct {
	ID                  *int                          `json:"id,omitempty"`
	AvatarURL           *string                       `json:"avatarUrl,omitempty"`
	WebURL              *string                       `json:"webUrl,omitempty"`
	FullName            *string                       `json:"fullName,omitempty"`
	FullPath            *string                       `json:"fullPath,omitempty"`
	Statistics          *StorageStatistics            `json:"statistics,omitempty"`
	CustomAttributes    []CustomAttribute             `json:"customAttributes,omitempty"`
	LDAPCN              *string                       `json:"ldapCn,omitempty"`
	LDAPAccess          *AccessLevelValue             `json:"ldapAccess,omitempty"`
	LDAPGroupLinks      []LDAPGroupLink               `json:"ldapGroupLinks,omitempty"`
	MarkedForDeletionOn *metav1.Time                  `json:"markedForDeletionOn,omitempty"`
	CreatedAt           *metav1.Time                  `json:"createdAt,omitempty"`
	SharedWithGroups    []SharedWithGroupsObservation `json:"sharedWithGroups,omitempty"`
}

GroupObservation is the observed state of a Group.

func (*GroupObservation) DeepCopy

func (in *GroupObservation) DeepCopy() *GroupObservation

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

func (*GroupObservation) DeepCopyInto

func (in *GroupObservation) DeepCopyInto(out *GroupObservation)

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

type GroupParameters

type GroupParameters struct {
	// The path of the group.
	// +immutable
	Path string `json:"path"`

	// The group’s description.
	// +optional
	Description *string `json:"description,omitempty"`

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

	// Prevent adding new members to project membership within this group.
	// +optional
	MembershipLock *bool `json:"membershipLock,omitempty"`

	// The group’s visibility. Can be private, internal, or public.
	// +optional
	Visibility *VisibilityValue `json:"visibility,omitempty"`

	// Prevent sharing a project with another group within this group.
	// +optional
	ShareWithGroupLock *bool `json:"shareWithGroupLock,omitempty"`

	// Require all users in this group to setup Two-factor authentication.
	// +optional
	RequireTwoFactorAuth *bool `json:"requireTwoFactorAuthentication,omitempty"`

	// Time before Two-factor authentication is enforced (in hours).
	// +optional
	TwoFactorGracePeriod *int `json:"twoFactorGracePeriod,omitempty"`

	// developers can create projects in the group.
	// Can be noone (No one), maintainer (Maintainers), or developer (Developers + Maintainers).
	// +optional
	ProjectCreationLevel *ProjectCreationLevelValue `json:"projectCreationLevel,omitempty"`

	// Default to Auto DevOps pipeline for all projects within this group.
	// +optional
	AutoDevopsEnabled *bool `json:"autoDevopsEnabled,omitempty"`

	// Allowed to create subgroups. Can be owner (Owners), or maintainer (Maintainers).
	// +optional
	SubGroupCreationLevel *SubGroupCreationLevelValue `json:"subgroupCreationLevel,omitempty"`

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

	// Disable the capability of a group from getting mentioned.
	// +optional
	MentionsDisabled *bool `json:"mentionsDisabled,omitempty"`

	// Enable/disable Large File Storage (LFS) for the projects in this group.
	// +optional
	LFSEnabled *bool `json:"lfsEnabled,omitempty"`

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

	// The parent group ID for creating nested group.
	// +optional
	ParentID *int `json:"parentId,omitempty"`

	// ParentIDRef is a reference to a group to retrieve its parentId
	// +optional
	// +immutable
	ParentIDRef *xpv1.Reference `json:"parentIdRef,omitempty"`

	// ParentIDSelector selects reference to a group to retrieve its parentId.
	// +optional
	ParentIDSelector *xpv1.Selector `json:"parentIdSelector,omitempty"`

	// Pipeline minutes quota for this group (included in plan).
	// Can be nil (default; inherit system default), 0 (unlimited) or > 0.
	// +optional
	SharedRunnersMinutesLimit *int `json:"sharedRunnersMinutesLimit,omitempty"`

	// Extra pipeline minutes quota for this group (purchased in addition to the minutes included in the plan).
	// +optional
	ExtraSharedRunnersMinutesLimit *int `json:"extraSharedRunnersMinutesLimit,omitempty"`

	// SharedWithGroups create links for sharing a group with another group.
	// +optional
	SharedWithGroups []SharedWithGroups `json:"sharedWithGroups,omitempty"`
}

GroupParameters define the desired state of a Gitlab Project

func (*GroupParameters) DeepCopy

func (in *GroupParameters) DeepCopy() *GroupParameters

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

func (*GroupParameters) DeepCopyInto

func (in *GroupParameters) DeepCopyInto(out *GroupParameters)

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

type GroupSpec

type GroupSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       GroupParameters `json:"forProvider"`
}

A GroupSpec defines the desired state of a Gitlab Group.

func (*GroupSpec) DeepCopy

func (in *GroupSpec) DeepCopy() *GroupSpec

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

func (*GroupSpec) DeepCopyInto

func (in *GroupSpec) DeepCopyInto(out *GroupSpec)

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

type GroupStatus

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

A GroupStatus represents the observed state of a Gitlab Group.

func (*GroupStatus) DeepCopy

func (in *GroupStatus) DeepCopy() *GroupStatus

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

func (*GroupStatus) DeepCopyInto

func (in *GroupStatus) DeepCopyInto(out *GroupStatus)

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

type LDAPGroupLink struct {
	CN          string           `json:"cn"`
	GroupAccess AccessLevelValue `json:"groupAccess"`
	Provider    string           `json:"provider"`
}

LDAPGroupLink represents a GitLab LDAP group link.

GitLab API docs: https://docs.gitlab.com/ce/api/groups.html#ldap-group-links

func (*LDAPGroupLink) DeepCopy

func (in *LDAPGroupLink) DeepCopy() *LDAPGroupLink

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

func (*LDAPGroupLink) DeepCopyInto

func (in *LDAPGroupLink) DeepCopyInto(out *LDAPGroupLink)

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 Group 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="Group ID",type="integer",JSONPath=".spec.forProvider.groupId" +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) GetManagementPolicies added in v0.6.0

func (mg *Member) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Member.

func (*Member) GetProviderConfigReference

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

GetProviderConfigReference of this Member.

func (*Member) GetPublishConnectionDetailsTo added in v0.3.0

func (mg *Member) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Member.

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 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) SetManagementPolicies added in v0.6.0

func (mg *Member) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Member.

func (*Member) SetProviderConfigReference

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

SetProviderConfigReference of this Member.

func (*Member) SetPublishConnectionDetailsTo added in v0.3.0

func (mg *Member) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Member.

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"`
	Name              string              `json:"name,omitempty"`
	State             string              `json:"state,omitempty"`
	AvatarURL         string              `json:"avatarURL,omitempty"`
	WebURL            string              `json:"webURL,omitempty"`
	GroupSAMLIdentity *MemberSAMLIdentity `json:"groupSamlIdentity,omitempty"`
}

MemberObservation represents a group member.

GitLab API docs: https://docs.gitlab.com/ce/api/groups.html#list-group-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 group owned by the authenticated user.
	// +optional
	// +immutable
	GroupID *int `json:"groupId,omitempty"`

	// GroupIDRef is a reference to a group to retrieve its groupId
	// +optional
	// +immutable
	GroupIDRef *xpv1.Reference `json:"groupIdRef,omitempty"`

	// GroupIDSelector selects reference to a group to retrieve its groupId.
	// +optional
	GroupIDSelector *xpv1.Selector `json:"groupIdSelector,omitempty"`

	// The user ID of the member.
	// +optional
	UserID *int `json:"userID,omitempty"`

	// The userName of the member.
	// +optional
	UserName *string `json:"userName,omitempty"`

	// 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 Group 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 MemberSAMLIdentity

type MemberSAMLIdentity struct {
	ExternUID      string `json:"externUID"`
	Provider       string `json:"provider"`
	SAMLProviderID int    `json:"samlProviderID"`
}

MemberSAMLIdentity represents the SAML Identity link for the group member.

GitLab API docs: https://docs.gitlab.com/ce/api/members.html#list-all-members-of-a-group-or-project Gitlab MR for API change: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/20357 Gitlab MR for API Doc change: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/25652

func (*MemberSAMLIdentity) DeepCopy

func (in *MemberSAMLIdentity) DeepCopy() *MemberSAMLIdentity

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

func (*MemberSAMLIdentity) DeepCopyInto

func (in *MemberSAMLIdentity) DeepCopyInto(out *MemberSAMLIdentity)

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 Group 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 Group 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 ProjectCreationLevelValue

type ProjectCreationLevelValue string

ProjectCreationLevelValue represents a project creation level within GitLab.

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

const (
	NoOneProjectCreation      ProjectCreationLevelValue = "noone"
	MaintainerProjectCreation ProjectCreationLevelValue = "maintainer"
	DeveloperProjectCreation  ProjectCreationLevelValue = "developer"
)

List of available project creation levels.

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

type SharedWithGroups

type SharedWithGroups struct {
	// The ID of the group to share with.
	// +optional
	GroupID *int `json:"groupId,omitempty"`

	// GroupIDRef is a reference to a group to retrieve its ID.
	GroupIDRef *xpv1.Reference `json:"groupIdRef,omitempty"`

	// GroupIDSelector selects reference to a group to retrieve its ID.
	GroupIDSelector *xpv1.Selector `json:"groupIdSelector,omitempty"`

	// The role (access_level) to grant the group
	// https://docs.gitlab.com/ee/api/members.html#roles
	// +required
	// +immutable
	GroupAccessLevel int `json:"groupAccessLevel"`

	// Share expiration date in ISO 8601 format: 2016-09-26
	// +optional
	// +immutable
	ExpiresAt *metav1.Time `json:"expiresAt,omitempty"`
}

SharedWithGroups represents a GitLab Shared with groups. At least one of the fields [GroupID, GroupIDRef, GroupIDSelector] must be set.

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 SharedWithGroupsObservation added in v0.4.0

type SharedWithGroupsObservation struct {
	GroupID          *int         `json:"groupId"`
	GroupName        *string      `json:"groupName"`
	GroupFullPath    *string      `json:"groupFullPath"`
	GroupAccessLevel *int         `json:"groupAccessLevel"`
	ExpiresAt        *metav1.Time `json:"expiresAt"`
}

SharedWithGroupsObservation is the observed state of a SharedWithGroups.

func (*SharedWithGroupsObservation) DeepCopy added in v0.4.0

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

func (*SharedWithGroupsObservation) DeepCopyInto added in v0.4.0

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 SubGroupCreationLevelValue

type SubGroupCreationLevelValue string

SubGroupCreationLevelValue represents a sub group creation level within GitLab.

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

const (
	OwnerSubGroupCreationLevelValue      SubGroupCreationLevelValue = "owner"
	MaintainerSubGroupCreationLevelValue SubGroupCreationLevelValue = "maintainer"
)

List of available sub group creation levels.

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

type Variable added in v0.5.0

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 added in v0.5.0

func (in *Variable) DeepCopy() *Variable

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

func (*Variable) DeepCopyInto added in v0.5.0

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 added in v0.5.0

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

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

func (*Variable) GetCondition added in v0.5.0

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

GetCondition of this Variable.

func (*Variable) GetDeletionPolicy added in v0.5.0

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

GetDeletionPolicy of this Variable.

func (*Variable) GetManagementPolicies added in v0.6.0

func (mg *Variable) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Variable.

func (*Variable) GetProviderConfigReference added in v0.5.0

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

GetProviderConfigReference of this Variable.

func (*Variable) GetPublishConnectionDetailsTo added in v0.5.0

func (mg *Variable) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Variable.

func (*Variable) GetWriteConnectionSecretToReference added in v0.5.0

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

GetWriteConnectionSecretToReference of this Variable.

func (*Variable) ResolveReferences added in v0.5.0

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

ResolveReferences of this Variable

func (*Variable) SetConditions added in v0.5.0

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

SetConditions of this Variable.

func (*Variable) SetDeletionPolicy added in v0.5.0

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

SetDeletionPolicy of this Variable.

func (*Variable) SetManagementPolicies added in v0.6.0

func (mg *Variable) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Variable.

func (*Variable) SetProviderConfigReference added in v0.5.0

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

SetProviderConfigReference of this Variable.

func (*Variable) SetPublishConnectionDetailsTo added in v0.5.0

func (mg *Variable) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Variable.

func (*Variable) SetWriteConnectionSecretToReference added in v0.5.0

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

SetWriteConnectionSecretToReference of this Variable.

type VariableList added in v0.5.0

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 added in v0.5.0

func (in *VariableList) DeepCopy() *VariableList

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

func (*VariableList) DeepCopyInto added in v0.5.0

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 added in v0.5.0

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

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

func (*VariableList) GetItems added in v0.5.0

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

GetItems of this VariableList.

type VariableParameters added in v0.5.0

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

	// GroupIDRef is a reference to a group to retrieve its groupId.
	// +optional
	// +immutable
	GroupIDRef *xpv1.Reference `json:"groupIdRef,omitempty"`

	// GroupIDSelector selects reference to a group to retrieve its groupId.
	// +optional
	GroupIDSelector *xpv1.Selector `json:"groupIdSelector,omitempty"`

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

	// Value of a variable. Mutually exclusive with ValueSecretRef.
	// +optional
	Value *string `json:"value,omitempty"`

	// ValueSecretRef is used to obtain the value from a secret. This will set Masked and Raw to true if they
	// have not been set implicitly. Mutually exclusive with Value.
	// +optional
	// +nullable
	ValueSecretRef *xpv1.SecretKeySelector `json:"valueSecretRef,omitempty"`

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

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

	// Raw disables variable expansion of the variable.
	// +optional
	Raw *bool `json:"raw,omitempty"`

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

	// EnvironmentScope indicates the environment scope of a variable.
	// +optional
	EnvironmentScope *string `json:"environmentScope,omitempty"`
}

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

func (*VariableParameters) DeepCopy added in v0.5.0

func (in *VariableParameters) DeepCopy() *VariableParameters

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

func (*VariableParameters) DeepCopyInto added in v0.5.0

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 added in v0.5.0

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

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

func (*VariableSpec) DeepCopy added in v0.5.0

func (in *VariableSpec) DeepCopy() *VariableSpec

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

func (*VariableSpec) DeepCopyInto added in v0.5.0

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 added in v0.5.0

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

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

func (*VariableStatus) DeepCopy added in v0.5.0

func (in *VariableStatus) DeepCopy() *VariableStatus

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

func (*VariableStatus) DeepCopyInto added in v0.5.0

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 added in v0.5.0

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/group_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