v1alpha1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=team.github.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "team.github.upbound.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	Team_Kind             = "Team"
	Team_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Team_Kind}.String()
	Team_KindAPIVersion   = Team_Kind + "." + CRDGroupVersion.String()
	Team_GroupVersionKind = CRDGroupVersion.WithKind(Team_Kind)
)

Repository type metadata.

View Source
var (
	TeamRepository_Kind             = "TeamRepository"
	TeamRepository_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: TeamRepository_Kind}.String()
	TeamRepository_KindAPIVersion   = TeamRepository_Kind + "." + CRDGroupVersion.String()
	TeamRepository_GroupVersionKind = CRDGroupVersion.WithKind(TeamRepository_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type Team

type Team struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              TeamSpec   `json:"spec"`
	Status            TeamStatus `json:"status,omitempty"`
}

Team is the Schema for the Teams API. Provides a GitHub team resource. +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="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,github}

func (*Team) DeepCopy

func (in *Team) DeepCopy() *Team

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

func (*Team) DeepCopyInto

func (in *Team) DeepCopyInto(out *Team)

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

func (*Team) DeepCopyObject

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

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

func (*Team) GetCondition

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

GetCondition of this Team.

func (*Team) GetConnectionDetailsMapping

func (tr *Team) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Team

func (*Team) GetDeletionPolicy

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

GetDeletionPolicy of this Team.

func (*Team) GetID

func (tr *Team) GetID() string

GetID returns ID of underlying Terraform resource of this Team

func (*Team) GetObservation

func (tr *Team) GetObservation() (map[string]any, error)

GetObservation of this Team

func (*Team) GetParameters

func (tr *Team) GetParameters() (map[string]any, error)

GetParameters of this Team

func (*Team) GetProviderConfigReference

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

GetProviderConfigReference of this Team.

func (*Team) GetProviderReference

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

GetProviderReference of this Team. Deprecated: Use GetProviderConfigReference.

func (*Team) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Team.

func (*Team) GetTerraformResourceType

func (mg *Team) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Team

func (*Team) GetTerraformSchemaVersion

func (tr *Team) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Team) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Team.

func (*Team) LateInitialize

func (tr *Team) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Team using its observed tfState. returns True if there are any spec changes for the resource.

func (*Team) SetConditions

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

SetConditions of this Team.

func (*Team) SetDeletionPolicy

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

SetDeletionPolicy of this Team.

func (*Team) SetObservation

func (tr *Team) SetObservation(obs map[string]any) error

SetObservation for this Team

func (*Team) SetParameters

func (tr *Team) SetParameters(params map[string]any) error

SetParameters for this Team

func (*Team) SetProviderConfigReference

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

SetProviderConfigReference of this Team.

func (*Team) SetProviderReference

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

SetProviderReference of this Team. Deprecated: Use SetProviderConfigReference.

func (*Team) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Team.

func (*Team) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Team.

type TeamList

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

TeamList contains a list of Teams

func (*TeamList) DeepCopy

func (in *TeamList) DeepCopy() *TeamList

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

func (*TeamList) DeepCopyInto

func (in *TeamList) DeepCopyInto(out *TeamList)

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

func (*TeamList) DeepCopyObject

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

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

func (*TeamList) GetItems

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

GetItems of this TeamList.

type TeamObservation

type TeamObservation struct {
	Etag *string `json:"etag,omitempty" tf:"etag,omitempty"`

	// The ID of the created team.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	MembersCount *float64 `json:"membersCount,omitempty" tf:"members_count,omitempty"`

	// The Node ID of the created team.
	NodeID *string `json:"nodeId,omitempty" tf:"node_id,omitempty"`

	// The slug of the created team, which may or may not differ from name,
	// depending on whether name contains "URL-unsafe" characters.
	// Useful when referencing the team in github_branch_protection.
	Slug *string `json:"slug,omitempty" tf:"slug,omitempty"`
}

func (*TeamObservation) DeepCopy

func (in *TeamObservation) DeepCopy() *TeamObservation

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

func (*TeamObservation) DeepCopyInto

func (in *TeamObservation) DeepCopyInto(out *TeamObservation)

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

type TeamParameters

type TeamParameters struct {

	// Adds a default maintainer to the team. Defaults to false and adds the creating user to the team when true.
	// +kubebuilder:validation:Optional
	CreateDefaultMaintainer *bool `json:"createDefaultMaintainer,omitempty" tf:"create_default_maintainer,omitempty"`

	// A description of the team.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The LDAP Distinguished Name of the group where membership will be synchronized. Only available in GitHub Enterprise Server.
	// +kubebuilder:validation:Optional
	LdapDn *string `json:"ldapDn,omitempty" tf:"ldap_dn,omitempty"`

	// The name of the team.
	// +kubebuilder:validation:Required
	Name *string `json:"name" tf:"name,omitempty"`

	// The ID of the parent team, if this is a nested team.
	// +kubebuilder:validation:Optional
	ParentTeamID *float64 `json:"parentTeamId,omitempty" tf:"parent_team_id,omitempty"`

	// The level of privacy for the team. Must be one of secret or closed.
	// Defaults to secret.
	// +kubebuilder:validation:Optional
	Privacy *string `json:"privacy,omitempty" tf:"privacy,omitempty"`
}

func (*TeamParameters) DeepCopy

func (in *TeamParameters) DeepCopy() *TeamParameters

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

func (*TeamParameters) DeepCopyInto

func (in *TeamParameters) DeepCopyInto(out *TeamParameters)

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

type TeamRepository

type TeamRepository struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              TeamRepositorySpec   `json:"spec"`
	Status            TeamRepositoryStatus `json:"status,omitempty"`
}

TeamRepository is the Schema for the TeamRepositorys API. Manages the associations between teams and repositories. +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="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,github}

func (*TeamRepository) DeepCopy

func (in *TeamRepository) DeepCopy() *TeamRepository

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

func (*TeamRepository) DeepCopyInto

func (in *TeamRepository) DeepCopyInto(out *TeamRepository)

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

func (*TeamRepository) DeepCopyObject

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

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

func (*TeamRepository) GetCondition

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

GetCondition of this TeamRepository.

func (*TeamRepository) GetConnectionDetailsMapping

func (tr *TeamRepository) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this TeamRepository

func (*TeamRepository) GetDeletionPolicy

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

GetDeletionPolicy of this TeamRepository.

func (*TeamRepository) GetID

func (tr *TeamRepository) GetID() string

GetID returns ID of underlying Terraform resource of this TeamRepository

func (*TeamRepository) GetObservation

func (tr *TeamRepository) GetObservation() (map[string]any, error)

GetObservation of this TeamRepository

func (*TeamRepository) GetParameters

func (tr *TeamRepository) GetParameters() (map[string]any, error)

GetParameters of this TeamRepository

func (*TeamRepository) GetProviderConfigReference

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

GetProviderConfigReference of this TeamRepository.

func (*TeamRepository) GetProviderReference

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

GetProviderReference of this TeamRepository. Deprecated: Use GetProviderConfigReference.

func (*TeamRepository) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this TeamRepository.

func (*TeamRepository) GetTerraformResourceType

func (mg *TeamRepository) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this TeamRepository

func (*TeamRepository) GetTerraformSchemaVersion

func (tr *TeamRepository) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*TeamRepository) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this TeamRepository.

func (*TeamRepository) LateInitialize

func (tr *TeamRepository) LateInitialize(attrs []byte) (bool, error)

LateInitialize this TeamRepository using its observed tfState. returns True if there are any spec changes for the resource.

func (*TeamRepository) ResolveReferences

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

ResolveReferences of this TeamRepository.

func (*TeamRepository) SetConditions

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

SetConditions of this TeamRepository.

func (*TeamRepository) SetDeletionPolicy

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

SetDeletionPolicy of this TeamRepository.

func (*TeamRepository) SetObservation

func (tr *TeamRepository) SetObservation(obs map[string]any) error

SetObservation for this TeamRepository

func (*TeamRepository) SetParameters

func (tr *TeamRepository) SetParameters(params map[string]any) error

SetParameters for this TeamRepository

func (*TeamRepository) SetProviderConfigReference

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

SetProviderConfigReference of this TeamRepository.

func (*TeamRepository) SetProviderReference

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

SetProviderReference of this TeamRepository. Deprecated: Use SetProviderConfigReference.

func (*TeamRepository) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this TeamRepository.

func (*TeamRepository) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this TeamRepository.

type TeamRepositoryList

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

TeamRepositoryList contains a list of TeamRepositorys

func (*TeamRepositoryList) DeepCopy

func (in *TeamRepositoryList) DeepCopy() *TeamRepositoryList

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

func (*TeamRepositoryList) DeepCopyInto

func (in *TeamRepositoryList) DeepCopyInto(out *TeamRepositoryList)

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

func (*TeamRepositoryList) DeepCopyObject

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

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

func (*TeamRepositoryList) GetItems

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

GetItems of this TeamRepositoryList.

type TeamRepositoryObservation

type TeamRepositoryObservation struct {
	Etag *string `json:"etag,omitempty" tf:"etag,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`
}

func (*TeamRepositoryObservation) DeepCopy

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

func (*TeamRepositoryObservation) DeepCopyInto

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

type TeamRepositoryParameters

type TeamRepositoryParameters struct {

	// The permissions of team members regarding the repository.
	// Must be one of pull, triage, push, maintain, admin or the name of an existing custom repository role within the organisation. Defaults to pull.
	// +kubebuilder:validation:Optional
	Permission *string `json:"permission,omitempty" tf:"permission,omitempty"`

	// The repository to add to the team.
	// +crossplane:generate:reference:type=github.com/coopnorge/provider-github/apis/repo/v1alpha1.Repository
	// +kubebuilder:validation:Optional
	Repository *string `json:"repository,omitempty" tf:"repository,omitempty"`

	// Reference to a Repository in repo to populate repository.
	// +kubebuilder:validation:Optional
	RepositoryRef *v1.Reference `json:"repositoryRef,omitempty" tf:"-"`

	// Selector for a Repository in repo to populate repository.
	// +kubebuilder:validation:Optional
	RepositorySelector *v1.Selector `json:"repositorySelector,omitempty" tf:"-"`

	// The GitHub team id or the GitHub team slug
	// ID or slug of team
	// +crossplane:generate:reference:type=github.com/coopnorge/provider-github/apis/team/v1alpha1.Team
	// +kubebuilder:validation:Optional
	TeamID *string `json:"teamId,omitempty" tf:"team_id,omitempty"`

	// Reference to a Team in team to populate teamId.
	// +kubebuilder:validation:Optional
	TeamIDRef *v1.Reference `json:"teamIdRef,omitempty" tf:"-"`

	// Selector for a Team in team to populate teamId.
	// +kubebuilder:validation:Optional
	TeamIDSelector *v1.Selector `json:"teamIdSelector,omitempty" tf:"-"`
}

func (*TeamRepositoryParameters) DeepCopy

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

func (*TeamRepositoryParameters) DeepCopyInto

func (in *TeamRepositoryParameters) DeepCopyInto(out *TeamRepositoryParameters)

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

type TeamRepositorySpec

type TeamRepositorySpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     TeamRepositoryParameters `json:"forProvider"`
}

TeamRepositorySpec defines the desired state of TeamRepository

func (*TeamRepositorySpec) DeepCopy

func (in *TeamRepositorySpec) DeepCopy() *TeamRepositorySpec

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

func (*TeamRepositorySpec) DeepCopyInto

func (in *TeamRepositorySpec) DeepCopyInto(out *TeamRepositorySpec)

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

type TeamRepositoryStatus

type TeamRepositoryStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        TeamRepositoryObservation `json:"atProvider,omitempty"`
}

TeamRepositoryStatus defines the observed state of TeamRepository.

func (*TeamRepositoryStatus) DeepCopy

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

func (*TeamRepositoryStatus) DeepCopyInto

func (in *TeamRepositoryStatus) DeepCopyInto(out *TeamRepositoryStatus)

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

type TeamSpec

type TeamSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     TeamParameters `json:"forProvider"`
}

TeamSpec defines the desired state of Team

func (*TeamSpec) DeepCopy

func (in *TeamSpec) DeepCopy() *TeamSpec

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

func (*TeamSpec) DeepCopyInto

func (in *TeamSpec) DeepCopyInto(out *TeamSpec)

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

type TeamStatus

type TeamStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        TeamObservation `json:"atProvider,omitempty"`
}

TeamStatus defines the observed state of Team.

func (*TeamStatus) DeepCopy

func (in *TeamStatus) DeepCopy() *TeamStatus

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

func (*TeamStatus) DeepCopyInto

func (in *TeamStatus) DeepCopyInto(out *TeamStatus)

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

Jump to

Keyboard shortcuts

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