v1alpha1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 18 Imported by: 9

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

View Source
const (
	Group   = "pkg.pkgserver.dev"
	Version = "v1alpha1"
)
View Source
const (
	DiscoveredPkgRevKey = Group + "/" + "DiscoveredPkgRev"
)
View Source
const PackageRevisionPlural = "packagerevisions"
View Source
const PackageRevisionResourcesPlural = "packagerevisionresourceses"
View Source
const PackageRevisionResourcesSingular = "packagerevisionresources"
View Source
const PackageRevisionSingular = "packagerevision"

Variables

View Source
var (
	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// SchemeGroupVersion contains the API group and version information for the types in this package.
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}
	// AddToScheme applies all the stored functions to the scheme. A non-nil error
	// indicates that one function failed and the attempt was abandoned.
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var (
	PackageRevisionKind = reflect.TypeOf(PackageRevision{}).Name()
)

PackageRevision type metadata.

View Source
var (
	PackageRevisionResourcesKind = reflect.TypeOf(PackageRevisionResources{}).Name()
)

PackageRevisionResources type metadata.

Functions

func AddKnownTypes

func AddKnownTypes(scheme *runtime.Scheme) error

Adds the list of known types to the given scheme.

func ConvertPackageRevisionResourcesFieldSelector

func ConvertPackageRevisionResourcesFieldSelector(label, value string) (internalLabel, internalValue string, err error)

ConvertPackageRevisionFieldSelector is the schema conversion function for normalizing the the FieldSelector for PackageRevision

func ConvertPackageRevisionsFieldSelector

func ConvertPackageRevisionsFieldSelector(label, value string) (internalLabel, internalValue string, err error)

ConvertPackageRevisionsFieldSelector is the schema conversion function for normalizing the FieldSelector for PackageRevisions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func ValidateUpdateLifeCycle

func ValidateUpdateLifeCycle(newPkgRev, oldPkgRev *PackageRevision) error

func ValidateWorkspaceName

func ValidateWorkspaceName(workspace string) error

ValidateWorkspaceName validates WorkspaceName. It must:

  • be at least 1 and at most 63 characters long
  • contain only lowercase alphanumeric characters or '-'
  • start and end with an alphanumeric character.

'/ ' should never be allowed, because we use '/' to delimit branch names (e.g. the 'drafts/' prefix).

Types

type PackageRevision

type PackageRevision struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Spec   PackageRevisionSpec   `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	Status PackageRevisionStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}
PackageRevision is the Schema for the PackageRevision API

+k8s:openapi-gen=true

func BuildPackageRevision

func BuildPackageRevision(meta metav1.ObjectMeta, spec PackageRevisionSpec, status PackageRevisionStatus) *PackageRevision

BuildPackageRevision returns an PackageRevision from a client Object a Spec/Status

func (*PackageRevision) DeepCopy

func (in *PackageRevision) DeepCopy() *PackageRevision

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

func (*PackageRevision) DeepCopyInto

func (in *PackageRevision) DeepCopyInto(out *PackageRevision)

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

func (*PackageRevision) DeepCopyObject

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

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

func (*PackageRevision) Descriptor

func (*PackageRevision) Descriptor() ([]byte, []int)

func (*PackageRevision) GetCondition

GetCondition returns the condition based on the condition kind

func (PackageRevision) GetGroupVersionResource

func (PackageRevision) GetGroupVersionResource() schema.GroupVersionResource

func (*PackageRevision) GetObjectMeta

func (r *PackageRevision) GetObjectMeta() *metav1.ObjectMeta

GetObjectMeta implements resource.Object

func (*PackageRevision) GetPreviousCondition

func (r *PackageRevision) GetPreviousCondition(cType condition.ConditionType) condition.Condition

func (*PackageRevision) GetSingularName

func (r *PackageRevision) GetSingularName() string

func (*PackageRevision) GetStatus

func (*PackageRevision) HasCondition

func (r *PackageRevision) HasCondition(t condition.ConditionType) bool

HasCondition returns the if the condition is set

func (*PackageRevision) HasReadinessGate

func (r *PackageRevision) HasReadinessGate(cType condition.ConditionType) bool

func (PackageRevision) IsStorageVersion

func (PackageRevision) IsStorageVersion() bool

IsStorageVersion returns true -- v1alpha1.Config is used as the internal version. IsStorageVersion implements resource.Object.

func (*PackageRevision) Marshal

func (m *PackageRevision) Marshal() (dAtA []byte, err error)

func (*PackageRevision) MarshalTo

func (m *PackageRevision) MarshalTo(dAtA []byte) (int, error)

func (*PackageRevision) MarshalToSizedBuffer

func (m *PackageRevision) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (PackageRevision) NamespaceScoped

func (PackageRevision) NamespaceScoped() bool

NamespaceScoped returns true to indicate Fortune is a namespaced resource. NamespaceScoped implements resource.Object.

func (PackageRevision) New

New implements resource.Object

func (PackageRevision) NewList

func (PackageRevision) NewList() runtime.Object

NewList implements resource.Object

func (*PackageRevision) NextReadinessGate

func (r *PackageRevision) NextReadinessGate(cType condition.ConditionType) condition.ConditionType

func (*PackageRevision) ProtoMessage

func (*PackageRevision) ProtoMessage()

func (*PackageRevision) Reset

func (m *PackageRevision) Reset()

func (*PackageRevision) SetConditions

func (r *PackageRevision) SetConditions(c ...condition.Condition)

SetConditions sets the conditions on the resource. it allows for 0, 1 or more conditions to be set at once

func (*PackageRevision) Size

func (m *PackageRevision) Size() (n int)

func (*PackageRevision) String

func (this *PackageRevision) String() string

func (*PackageRevision) Unmarshal

func (m *PackageRevision) Unmarshal(dAtA []byte) error

func (*PackageRevision) ValidateDiscoveryAnnotation

func (r *PackageRevision) ValidateDiscoveryAnnotation() error

func (*PackageRevision) ValidateRepository

func (r *PackageRevision) ValidateRepository() error

func (*PackageRevision) XXX_DiscardUnknown

func (m *PackageRevision) XXX_DiscardUnknown()

func (*PackageRevision) XXX_Marshal

func (m *PackageRevision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PackageRevision) XXX_Merge

func (m *PackageRevision) XXX_Merge(src proto.Message)

func (*PackageRevision) XXX_Size

func (m *PackageRevision) XXX_Size() int

func (*PackageRevision) XXX_Unmarshal

func (m *PackageRevision) XXX_Unmarshal(b []byte) error

type PackageRevisionApproval

type PackageRevisionApproval struct{}

func (*PackageRevisionApproval) DeepCopy

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

func (*PackageRevisionApproval) DeepCopyInto

func (in *PackageRevisionApproval) DeepCopyInto(out *PackageRevisionApproval)

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

func (*PackageRevisionApproval) Descriptor

func (*PackageRevisionApproval) Descriptor() ([]byte, []int)

func (*PackageRevisionApproval) Destroy

func (r *PackageRevisionApproval) Destroy()

func (*PackageRevisionApproval) Marshal

func (m *PackageRevisionApproval) Marshal() (dAtA []byte, err error)

func (*PackageRevisionApproval) MarshalTo

func (m *PackageRevisionApproval) MarshalTo(dAtA []byte) (int, error)

func (*PackageRevisionApproval) MarshalToSizedBuffer

func (m *PackageRevisionApproval) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PackageRevisionApproval) New

New returns an empty object that can be used with Create and Update after request data has been put into it. This object must be a pointer type for use with Codec.DecodeInto([]byte, runtime.Object)

func (*PackageRevisionApproval) ProtoMessage

func (*PackageRevisionApproval) ProtoMessage()

func (*PackageRevisionApproval) Reset

func (m *PackageRevisionApproval) Reset()

func (*PackageRevisionApproval) Size

func (m *PackageRevisionApproval) Size() (n int)

func (*PackageRevisionApproval) String

func (this *PackageRevisionApproval) String() string

func (*PackageRevisionApproval) SubResourceName

func (r *PackageRevisionApproval) SubResourceName() string

func (*PackageRevisionApproval) Unmarshal

func (m *PackageRevisionApproval) Unmarshal(dAtA []byte) error

func (*PackageRevisionApproval) XXX_DiscardUnknown

func (m *PackageRevisionApproval) XXX_DiscardUnknown()

func (*PackageRevisionApproval) XXX_Marshal

func (m *PackageRevisionApproval) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PackageRevisionApproval) XXX_Merge

func (m *PackageRevisionApproval) XXX_Merge(src proto.Message)

func (*PackageRevisionApproval) XXX_Size

func (m *PackageRevisionApproval) XXX_Size() int

func (*PackageRevisionApproval) XXX_Unmarshal

func (m *PackageRevisionApproval) XXX_Unmarshal(b []byte) error

type PackageRevisionDependencies

type PackageRevisionDependencies struct {
	// Summary Error in case an error was discovered
	Error *string `json:"error,omitempty" protobuf:"bytes,1,opt,name=error"`
	// Errors define the detailed error per reference
	Errors []*PackageRevisionDependencyError `json:"errors,omitempty" protobuf:"bytes,2,rep,name=errors"`
	// Warnings define the detailed warning per reference
	Warnings []*PackageRevisionDependencyError `json:"warnings,omitempty" protobuf:"bytes,3,rep,name=warnings"`
	// Dependencies define the dependency details per reference
	Dependencies []*PackageRevisionDependency `json:"dependencies,omitempty" protobuf:"bytes,4,rep,name=dependencies"`
}

func (*PackageRevisionDependencies) DeepCopy

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

func (*PackageRevisionDependencies) DeepCopyInto

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

func (*PackageRevisionDependencies) Descriptor

func (*PackageRevisionDependencies) Descriptor() ([]byte, []int)

func (*PackageRevisionDependencies) Marshal

func (m *PackageRevisionDependencies) Marshal() (dAtA []byte, err error)

func (*PackageRevisionDependencies) MarshalTo

func (m *PackageRevisionDependencies) MarshalTo(dAtA []byte) (int, error)

func (*PackageRevisionDependencies) MarshalToSizedBuffer

func (m *PackageRevisionDependencies) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PackageRevisionDependencies) ProtoMessage

func (*PackageRevisionDependencies) ProtoMessage()

func (*PackageRevisionDependencies) Reset

func (m *PackageRevisionDependencies) Reset()

func (*PackageRevisionDependencies) Size

func (m *PackageRevisionDependencies) Size() (n int)

func (*PackageRevisionDependencies) String

func (this *PackageRevisionDependencies) String() string

func (*PackageRevisionDependencies) Unmarshal

func (m *PackageRevisionDependencies) Unmarshal(dAtA []byte) error

func (*PackageRevisionDependencies) XXX_DiscardUnknown

func (m *PackageRevisionDependencies) XXX_DiscardUnknown()

func (*PackageRevisionDependencies) XXX_Marshal

func (m *PackageRevisionDependencies) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PackageRevisionDependencies) XXX_Merge

func (m *PackageRevisionDependencies) XXX_Merge(src proto.Message)

func (*PackageRevisionDependencies) XXX_Size

func (m *PackageRevisionDependencies) XXX_Size() int

func (*PackageRevisionDependencies) XXX_Unmarshal

func (m *PackageRevisionDependencies) XXX_Unmarshal(b []byte) error

type PackageRevisionDependency

type PackageRevisionDependency struct {
	// Type defines the type of dependency we refer to
	Type PackageRevisionDependencyType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type"`
	// Reference the dependency is sourced from (apiversion, kind, namespace, name)
	Ref *corev1.ObjectReference `json:"ref,omitempty" protobuf:"bytes,2,opt,name=ref"`
	// PackageDependencies define the package dependencies the reference depend upon (repository, realm, package, (revision)
	PackageDependencies []*pkgid.Upstream `json:"packageDependencies,omitempty" protobuf:"bytes,3,rep,name=packageDependencies"`
	// RuntimeDependencies define the runtime dependencies the reference depend upon (apiversion, kind, namespace, name)
	RuntimeDependencies []*corev1.ObjectReference `json:"runtimeDependencies,omitempty" protobuf:"bytes,4,rep,name=runtimeDependencies"`
}

func (*PackageRevisionDependency) DeepCopy

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

func (*PackageRevisionDependency) DeepCopyInto

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

func (*PackageRevisionDependency) Descriptor

func (*PackageRevisionDependency) Descriptor() ([]byte, []int)

func (*PackageRevisionDependency) Marshal

func (m *PackageRevisionDependency) Marshal() (dAtA []byte, err error)

func (*PackageRevisionDependency) MarshalTo

func (m *PackageRevisionDependency) MarshalTo(dAtA []byte) (int, error)

func (*PackageRevisionDependency) MarshalToSizedBuffer

func (m *PackageRevisionDependency) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PackageRevisionDependency) ProtoMessage

func (*PackageRevisionDependency) ProtoMessage()

func (*PackageRevisionDependency) Reset

func (m *PackageRevisionDependency) Reset()

func (*PackageRevisionDependency) Size

func (m *PackageRevisionDependency) Size() (n int)

func (*PackageRevisionDependency) String

func (this *PackageRevisionDependency) String() string

func (*PackageRevisionDependency) Unmarshal

func (m *PackageRevisionDependency) Unmarshal(dAtA []byte) error

func (*PackageRevisionDependency) XXX_DiscardUnknown

func (m *PackageRevisionDependency) XXX_DiscardUnknown()

func (*PackageRevisionDependency) XXX_Marshal

func (m *PackageRevisionDependency) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PackageRevisionDependency) XXX_Merge

func (m *PackageRevisionDependency) XXX_Merge(src proto.Message)

func (*PackageRevisionDependency) XXX_Size

func (m *PackageRevisionDependency) XXX_Size() int

func (*PackageRevisionDependency) XXX_Unmarshal

func (m *PackageRevisionDependency) XXX_Unmarshal(b []byte) error

type PackageRevisionDependencyError

type PackageRevisionDependencyError struct {
	// Reference the error is sourced from (apiversion, kind, namespace, name)
	Ref *corev1.ObjectReference `json:"ref,omitempty" protobuf:"bytes,1,opt,name=ref"`
	// Reason describes the reason why the dependency failed
	Reason string `json:"reason,omitempty" protobuf:"bytes,2,opt,name=reason"`
}

func (*PackageRevisionDependencyError) DeepCopy

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

func (*PackageRevisionDependencyError) DeepCopyInto

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

func (*PackageRevisionDependencyError) Descriptor

func (*PackageRevisionDependencyError) Descriptor() ([]byte, []int)

func (*PackageRevisionDependencyError) Marshal

func (m *PackageRevisionDependencyError) Marshal() (dAtA []byte, err error)

func (*PackageRevisionDependencyError) MarshalTo

func (m *PackageRevisionDependencyError) MarshalTo(dAtA []byte) (int, error)

func (*PackageRevisionDependencyError) MarshalToSizedBuffer

func (m *PackageRevisionDependencyError) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PackageRevisionDependencyError) ProtoMessage

func (*PackageRevisionDependencyError) ProtoMessage()

func (*PackageRevisionDependencyError) Reset

func (m *PackageRevisionDependencyError) Reset()

func (*PackageRevisionDependencyError) Size

func (m *PackageRevisionDependencyError) Size() (n int)

func (*PackageRevisionDependencyError) String

func (this *PackageRevisionDependencyError) String() string

func (*PackageRevisionDependencyError) Unmarshal

func (m *PackageRevisionDependencyError) Unmarshal(dAtA []byte) error

func (*PackageRevisionDependencyError) XXX_DiscardUnknown

func (m *PackageRevisionDependencyError) XXX_DiscardUnknown()

func (*PackageRevisionDependencyError) XXX_Marshal

func (m *PackageRevisionDependencyError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PackageRevisionDependencyError) XXX_Merge

func (m *PackageRevisionDependencyError) XXX_Merge(src proto.Message)

func (*PackageRevisionDependencyError) XXX_Size

func (m *PackageRevisionDependencyError) XXX_Size() int

func (*PackageRevisionDependencyError) XXX_Unmarshal

func (m *PackageRevisionDependencyError) XXX_Unmarshal(b []byte) error

type PackageRevisionDependencyType

type PackageRevisionDependencyType string
const (
	PackageRevisionDependencyType_Core    PackageRevisionDependencyType = "core"
	PackageRevisionDependencyType_Package PackageRevisionDependencyType = "package"
	PackageRevisionDependencyType_Runtime PackageRevisionDependencyType = "runtime"
)

type PackageRevisionLifecycle

type PackageRevisionLifecycle string
const (
	PackageRevisionLifecycleDraft            PackageRevisionLifecycle = "draft"
	PackageRevisionLifecycleProposed         PackageRevisionLifecycle = "proposed"
	PackageRevisionLifecyclePublished        PackageRevisionLifecycle = "published"
	PackageRevisionLifecycleDeletionProposed PackageRevisionLifecycle = "deletionProposed"
)

type PackageRevisionList

type PackageRevisionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []PackageRevision `json:"items" protobuf:"bytes,2,rep,name=items"`
}

PackageRevisionList contains a list of PackageRevisions +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*PackageRevisionList) DeepCopy

func (in *PackageRevisionList) DeepCopy() *PackageRevisionList

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

func (*PackageRevisionList) DeepCopyInto

func (in *PackageRevisionList) DeepCopyInto(out *PackageRevisionList)

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

func (*PackageRevisionList) DeepCopyObject

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

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

func (*PackageRevisionList) Descriptor

func (*PackageRevisionList) Descriptor() ([]byte, []int)

func (*PackageRevisionList) GetListMeta

func (r *PackageRevisionList) GetListMeta() *metav1.ListMeta

GetListMeta returns the ListMeta

func (*PackageRevisionList) Marshal

func (m *PackageRevisionList) Marshal() (dAtA []byte, err error)

func (*PackageRevisionList) MarshalTo

func (m *PackageRevisionList) MarshalTo(dAtA []byte) (int, error)

func (*PackageRevisionList) MarshalToSizedBuffer

func (m *PackageRevisionList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PackageRevisionList) ProtoMessage

func (*PackageRevisionList) ProtoMessage()

func (*PackageRevisionList) Reset

func (m *PackageRevisionList) Reset()

func (*PackageRevisionList) Size

func (m *PackageRevisionList) Size() (n int)

func (*PackageRevisionList) String

func (this *PackageRevisionList) String() string

func (*PackageRevisionList) Unmarshal

func (m *PackageRevisionList) Unmarshal(dAtA []byte) error

func (*PackageRevisionList) XXX_DiscardUnknown

func (m *PackageRevisionList) XXX_DiscardUnknown()

func (*PackageRevisionList) XXX_Marshal

func (m *PackageRevisionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PackageRevisionList) XXX_Merge

func (m *PackageRevisionList) XXX_Merge(src proto.Message)

func (*PackageRevisionList) XXX_Size

func (m *PackageRevisionList) XXX_Size() int

func (*PackageRevisionList) XXX_Unmarshal

func (m *PackageRevisionList) XXX_Unmarshal(b []byte) error

type PackageRevisionResources

type PackageRevisionResources struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Spec   PackageRevisionResourcesSpec   `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	Status PackageRevisionResourcesStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}
PackageRevisionResource is the Schema for the PackageRevisionResource API

+k8s:openapi-gen=true

func BuildPackageRevisionResources

BuildPackageRevisionResources returns an BuildPackageRevisionResources from a client Object a Spec/Status

func (*PackageRevisionResources) ConvertToTable

func (in *PackageRevisionResources) ConvertToTable(ctx context.Context, tableOptions runtime.Object) (*metav1.Table, error)

func (*PackageRevisionResources) DeepCopy

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

func (*PackageRevisionResources) DeepCopyInto

func (in *PackageRevisionResources) DeepCopyInto(out *PackageRevisionResources)

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

func (*PackageRevisionResources) DeepCopyObject

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

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

func (*PackageRevisionResources) Descriptor

func (*PackageRevisionResources) Descriptor() ([]byte, []int)

func (*PackageRevisionResources) GetCondition

GetCondition returns the condition based on the condition kind

func (PackageRevisionResources) GetGroupVersionResource

func (PackageRevisionResources) GetGroupVersionResource() schema.GroupVersionResource

func (*PackageRevisionResources) GetObjectMeta

func (r *PackageRevisionResources) GetObjectMeta() *metav1.ObjectMeta

GetObjectMeta implements resource.Object

func (*PackageRevisionResources) GetSingularName

func (r *PackageRevisionResources) GetSingularName() string

func (PackageRevisionResources) IsStorageVersion

func (PackageRevisionResources) IsStorageVersion() bool

IsStorageVersion returns true -- v1alpha1.Config is used as the internal version. IsStorageVersion implements resource.Object.

func (*PackageRevisionResources) Marshal

func (m *PackageRevisionResources) Marshal() (dAtA []byte, err error)

func (*PackageRevisionResources) MarshalTo

func (m *PackageRevisionResources) MarshalTo(dAtA []byte) (int, error)

func (*PackageRevisionResources) MarshalToSizedBuffer

func (m *PackageRevisionResources) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (PackageRevisionResources) NamespaceScoped

func (PackageRevisionResources) NamespaceScoped() bool

NamespaceScoped returns true to indicate Fortune is a namespaced resource. NamespaceScoped implements resource.Object.

func (PackageRevisionResources) New

New implements resource.Object

func (PackageRevisionResources) NewList

NewList implements resource.Object

func (*PackageRevisionResources) ProtoMessage

func (*PackageRevisionResources) ProtoMessage()

func (*PackageRevisionResources) Reset

func (m *PackageRevisionResources) Reset()

func (*PackageRevisionResources) SetConditions

func (r *PackageRevisionResources) SetConditions(c ...condition.Condition)

SetConditions sets the conditions on the resource. it allows for 0, 1 or more conditions to be set at once

func (*PackageRevisionResources) Size

func (m *PackageRevisionResources) Size() (n int)

func (*PackageRevisionResources) String

func (this *PackageRevisionResources) String() string

func (*PackageRevisionResources) Unmarshal

func (m *PackageRevisionResources) Unmarshal(dAtA []byte) error

func (*PackageRevisionResources) XXX_DiscardUnknown

func (m *PackageRevisionResources) XXX_DiscardUnknown()

func (*PackageRevisionResources) XXX_Marshal

func (m *PackageRevisionResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PackageRevisionResources) XXX_Merge

func (m *PackageRevisionResources) XXX_Merge(src proto.Message)

func (*PackageRevisionResources) XXX_Size

func (m *PackageRevisionResources) XXX_Size() int

func (*PackageRevisionResources) XXX_Unmarshal

func (m *PackageRevisionResources) XXX_Unmarshal(b []byte) error

type PackageRevisionResourcesList

type PackageRevisionResourcesList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []PackageRevisionResources `json:"items" protobuf:"bytes,2,rep,name=items"`
}

PackageRevisionResourceList contains a list of PackageRevisionResources +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*PackageRevisionResourcesList) ConvertToTable

func (in *PackageRevisionResourcesList) ConvertToTable(ctx context.Context, tableOptions runtime.Object) (*metav1.Table, error)

func (*PackageRevisionResourcesList) DeepCopy

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

func (*PackageRevisionResourcesList) DeepCopyInto

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

func (*PackageRevisionResourcesList) DeepCopyObject

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

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

func (*PackageRevisionResourcesList) Descriptor

func (*PackageRevisionResourcesList) Descriptor() ([]byte, []int)

func (*PackageRevisionResourcesList) GetListMeta

func (r *PackageRevisionResourcesList) GetListMeta() *metav1.ListMeta

GetListMeta returns the ListMeta

func (*PackageRevisionResourcesList) Marshal

func (m *PackageRevisionResourcesList) Marshal() (dAtA []byte, err error)

func (*PackageRevisionResourcesList) MarshalTo

func (m *PackageRevisionResourcesList) MarshalTo(dAtA []byte) (int, error)

func (*PackageRevisionResourcesList) MarshalToSizedBuffer

func (m *PackageRevisionResourcesList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PackageRevisionResourcesList) ProtoMessage

func (*PackageRevisionResourcesList) ProtoMessage()

func (*PackageRevisionResourcesList) Reset

func (m *PackageRevisionResourcesList) Reset()

func (*PackageRevisionResourcesList) Size

func (m *PackageRevisionResourcesList) Size() (n int)

func (*PackageRevisionResourcesList) String

func (this *PackageRevisionResourcesList) String() string

func (*PackageRevisionResourcesList) Unmarshal

func (m *PackageRevisionResourcesList) Unmarshal(dAtA []byte) error

func (*PackageRevisionResourcesList) XXX_DiscardUnknown

func (m *PackageRevisionResourcesList) XXX_DiscardUnknown()

func (*PackageRevisionResourcesList) XXX_Marshal

func (m *PackageRevisionResourcesList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PackageRevisionResourcesList) XXX_Merge

func (m *PackageRevisionResourcesList) XXX_Merge(src proto.Message)

func (*PackageRevisionResourcesList) XXX_Size

func (m *PackageRevisionResourcesList) XXX_Size() int

func (*PackageRevisionResourcesList) XXX_Unmarshal

func (m *PackageRevisionResourcesList) XXX_Unmarshal(b []byte) error

type PackageRevisionResourcesSpec

type PackageRevisionResourcesSpec struct {
	PackageID pkgid.PackageID `json:"packageID" protobuf:"bytes,6,opt,name=packageID"`
	// Resources define the content of the resources key is the name of the KRM file,
	// value defines the the content of the KRM reource
	Resources map[string]string `json:"resources,omitempty" protobuf:"bytes,1,opt,name=resources"`
}

PackageRevisionResourcesSpec defines the desired state of PackageRevisionResources

func (*PackageRevisionResourcesSpec) DeepCopy

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

func (*PackageRevisionResourcesSpec) DeepCopyInto

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

func (*PackageRevisionResourcesSpec) Descriptor

func (*PackageRevisionResourcesSpec) Descriptor() ([]byte, []int)

func (*PackageRevisionResourcesSpec) Marshal

func (m *PackageRevisionResourcesSpec) Marshal() (dAtA []byte, err error)

func (*PackageRevisionResourcesSpec) MarshalTo

func (m *PackageRevisionResourcesSpec) MarshalTo(dAtA []byte) (int, error)

func (*PackageRevisionResourcesSpec) MarshalToSizedBuffer

func (m *PackageRevisionResourcesSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PackageRevisionResourcesSpec) ProtoMessage

func (*PackageRevisionResourcesSpec) ProtoMessage()

func (*PackageRevisionResourcesSpec) Reset

func (m *PackageRevisionResourcesSpec) Reset()

func (*PackageRevisionResourcesSpec) Size

func (m *PackageRevisionResourcesSpec) Size() (n int)

func (*PackageRevisionResourcesSpec) String

func (this *PackageRevisionResourcesSpec) String() string

func (*PackageRevisionResourcesSpec) Unmarshal

func (m *PackageRevisionResourcesSpec) Unmarshal(dAtA []byte) error

func (*PackageRevisionResourcesSpec) XXX_DiscardUnknown

func (m *PackageRevisionResourcesSpec) XXX_DiscardUnknown()

func (*PackageRevisionResourcesSpec) XXX_Marshal

func (m *PackageRevisionResourcesSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PackageRevisionResourcesSpec) XXX_Merge

func (m *PackageRevisionResourcesSpec) XXX_Merge(src proto.Message)

func (*PackageRevisionResourcesSpec) XXX_Size

func (m *PackageRevisionResourcesSpec) XXX_Size() int

func (*PackageRevisionResourcesSpec) XXX_Unmarshal

func (m *PackageRevisionResourcesSpec) XXX_Unmarshal(b []byte) error

type PackageRevisionResourcesStatus

type PackageRevisionResourcesStatus struct {
	// ConditionedStatus provides the status of the Readiness using conditions
	// if the condition is true the other attributes in the status are meaningful
	condition.ConditionedStatus `json:",inline" protobuf:"bytes,1,opt,name=conditionedStatus"`
}

PackageRevisionResourcesStatus defines the observed state of PackageRevisionResources

func (*PackageRevisionResourcesStatus) DeepCopy

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

func (*PackageRevisionResourcesStatus) DeepCopyInto

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

func (*PackageRevisionResourcesStatus) Descriptor

func (*PackageRevisionResourcesStatus) Descriptor() ([]byte, []int)

func (*PackageRevisionResourcesStatus) Marshal

func (m *PackageRevisionResourcesStatus) Marshal() (dAtA []byte, err error)

func (*PackageRevisionResourcesStatus) MarshalTo

func (m *PackageRevisionResourcesStatus) MarshalTo(dAtA []byte) (int, error)

func (*PackageRevisionResourcesStatus) MarshalToSizedBuffer

func (m *PackageRevisionResourcesStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PackageRevisionResourcesStatus) ProtoMessage

func (*PackageRevisionResourcesStatus) ProtoMessage()

func (*PackageRevisionResourcesStatus) Reset

func (m *PackageRevisionResourcesStatus) Reset()

func (*PackageRevisionResourcesStatus) Size

func (m *PackageRevisionResourcesStatus) Size() (n int)

func (*PackageRevisionResourcesStatus) String

func (this *PackageRevisionResourcesStatus) String() string

func (*PackageRevisionResourcesStatus) Unmarshal

func (m *PackageRevisionResourcesStatus) Unmarshal(dAtA []byte) error

func (*PackageRevisionResourcesStatus) XXX_DiscardUnknown

func (m *PackageRevisionResourcesStatus) XXX_DiscardUnknown()

func (*PackageRevisionResourcesStatus) XXX_Marshal

func (m *PackageRevisionResourcesStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PackageRevisionResourcesStatus) XXX_Merge

func (m *PackageRevisionResourcesStatus) XXX_Merge(src proto.Message)

func (*PackageRevisionResourcesStatus) XXX_Size

func (m *PackageRevisionResourcesStatus) XXX_Size() int

func (*PackageRevisionResourcesStatus) XXX_Unmarshal

func (m *PackageRevisionResourcesStatus) XXX_Unmarshal(b []byte) error

type PackageRevisionSpec

type PackageRevisionSpec struct {
	PackageID pkgid.PackageID `json:"packageID" protobuf:"bytes,1,opt,name=packageID"`
	// Lifecycle defines the lifecycle of the resource
	Lifecycle PackageRevisionLifecycle `json:"lifecycle,omitempty" protobuf:"bytes,2,opt,name=lifecycle"`
	// UpdatePolicy is the policy used to update resources
	// Loose updates the resources w/o removing the other entries in the package
	// strict updates the resources and removes unnessesary entries in the package
	UpdatePolicy UpdatePolicy `json:"updatePolicy,omitempty" protobuf:"bytes,3,rep,name=updatePolicy"`
	// Task is the task to be performed when creating this package revisision
	Tasks []Task `json:"tasks,omitempty" protobuf:"bytes,4,rep,name=tasks"`
	// ReadinessGates define the conditions that need to be acted upon before considering the PackageRevision
	// ready for approval
	ReadinessGates []condition.ReadinessGate `json:"readinessGates,omitempty" protobuf:"bytes,5,rep,name=readinessGates"`
	// Upstream identifies the upstream package this package is originated from
	Upstream *pkgid.Upstream `json:"upstream,omitempty" protobuf:"bytes,6,opt,name=upstream"`
	// Inputs define the inputs defined for the PackageContext
	//+kubebuilder:pruning:PreserveUnknownFields
	Inputs []runtime.RawExtension `json:"inputs,omitempty" protobuf:"bytes,7,rep,name=inputs"`
}

PackageRevisionSpec defines the desired state of PackageRevision

func (*PackageRevisionSpec) DeepCopy

func (in *PackageRevisionSpec) DeepCopy() *PackageRevisionSpec

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

func (*PackageRevisionSpec) DeepCopyInto

func (in *PackageRevisionSpec) DeepCopyInto(out *PackageRevisionSpec)

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

func (*PackageRevisionSpec) Descriptor

func (*PackageRevisionSpec) Descriptor() ([]byte, []int)

func (*PackageRevisionSpec) Marshal

func (m *PackageRevisionSpec) Marshal() (dAtA []byte, err error)

func (*PackageRevisionSpec) MarshalTo

func (m *PackageRevisionSpec) MarshalTo(dAtA []byte) (int, error)

func (*PackageRevisionSpec) MarshalToSizedBuffer

func (m *PackageRevisionSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PackageRevisionSpec) ProtoMessage

func (*PackageRevisionSpec) ProtoMessage()

func (*PackageRevisionSpec) Reset

func (m *PackageRevisionSpec) Reset()

func (*PackageRevisionSpec) Size

func (m *PackageRevisionSpec) Size() (n int)

func (*PackageRevisionSpec) String

func (this *PackageRevisionSpec) String() string

func (*PackageRevisionSpec) Unmarshal

func (m *PackageRevisionSpec) Unmarshal(dAtA []byte) error

func (*PackageRevisionSpec) XXX_DiscardUnknown

func (m *PackageRevisionSpec) XXX_DiscardUnknown()

func (*PackageRevisionSpec) XXX_Marshal

func (m *PackageRevisionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PackageRevisionSpec) XXX_Merge

func (m *PackageRevisionSpec) XXX_Merge(src proto.Message)

func (*PackageRevisionSpec) XXX_Size

func (m *PackageRevisionSpec) XXX_Size() int

func (*PackageRevisionSpec) XXX_Unmarshal

func (m *PackageRevisionSpec) XXX_Unmarshal(b []byte) error

type PackageRevisionStatus

type PackageRevisionStatus struct {
	// ConditionedStatus provides the status of the Readiness using conditions
	// if the condition is true the other attributes in the status are meaningful
	condition.ConditionedStatus `json:",inline" yaml:",inline" protobuf:"bytes,1,opt,name=conditionedStatus"`

	// PublishedBy is the identity of the user who approved the packagerevision.
	PublishedBy string `json:"publishedBy,omitempty" protobuf:"bytes,2,opt,name=publishedBy"`

	// PublishedAt is the time when the packagerevision were approved.
	PublishedAt metav1.Time `json:"publishTimestamp,omitempty" protobuf:"bytes,3,opt,name=publishTimestamp"`

	Dependencies *PackageRevisionDependencies `json:"dependencies,omitempty" protobuf:"bytes,4,opt,name=dependencies"`
}

PackageRevisionStatus defines the observed state of PackageRevision

func (PackageRevisionStatus) CopyTo

func (*PackageRevisionStatus) DeepCopy

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

func (*PackageRevisionStatus) DeepCopyInto

func (in *PackageRevisionStatus) DeepCopyInto(out *PackageRevisionStatus)

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

func (*PackageRevisionStatus) Descriptor

func (*PackageRevisionStatus) Descriptor() ([]byte, []int)

func (*PackageRevisionStatus) Marshal

func (m *PackageRevisionStatus) Marshal() (dAtA []byte, err error)

func (*PackageRevisionStatus) MarshalTo

func (m *PackageRevisionStatus) MarshalTo(dAtA []byte) (int, error)

func (*PackageRevisionStatus) MarshalToSizedBuffer

func (m *PackageRevisionStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PackageRevisionStatus) ProtoMessage

func (*PackageRevisionStatus) ProtoMessage()

func (*PackageRevisionStatus) Reset

func (m *PackageRevisionStatus) Reset()

func (*PackageRevisionStatus) Size

func (m *PackageRevisionStatus) Size() (n int)

func (*PackageRevisionStatus) String

func (this *PackageRevisionStatus) String() string

func (PackageRevisionStatus) SubResourceName

func (PackageRevisionStatus) SubResourceName() string

func (*PackageRevisionStatus) Unmarshal

func (m *PackageRevisionStatus) Unmarshal(dAtA []byte) error

func (*PackageRevisionStatus) XXX_DiscardUnknown

func (m *PackageRevisionStatus) XXX_DiscardUnknown()

func (*PackageRevisionStatus) XXX_Marshal

func (m *PackageRevisionStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PackageRevisionStatus) XXX_Merge

func (m *PackageRevisionStatus) XXX_Merge(src proto.Message)

func (*PackageRevisionStatus) XXX_Size

func (m *PackageRevisionStatus) XXX_Size() int

func (*PackageRevisionStatus) XXX_Unmarshal

func (m *PackageRevisionStatus) XXX_Unmarshal(b []byte) error

type Task

type Task struct {
	Type TaskType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=TaskType"`
}

func (*Task) DeepCopy

func (in *Task) DeepCopy() *Task

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

func (*Task) DeepCopyInto

func (in *Task) DeepCopyInto(out *Task)

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

func (*Task) Descriptor

func (*Task) Descriptor() ([]byte, []int)

func (*Task) Marshal

func (m *Task) Marshal() (dAtA []byte, err error)

func (*Task) MarshalTo

func (m *Task) MarshalTo(dAtA []byte) (int, error)

func (*Task) MarshalToSizedBuffer

func (m *Task) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) Reset

func (m *Task) Reset()

func (*Task) Size

func (m *Task) Size() (n int)

func (*Task) String

func (this *Task) String() string

func (*Task) Unmarshal

func (m *Task) Unmarshal(dAtA []byte) error

func (*Task) XXX_DiscardUnknown

func (m *Task) XXX_DiscardUnknown()

func (*Task) XXX_Marshal

func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Task) XXX_Merge

func (m *Task) XXX_Merge(src proto.Message)

func (*Task) XXX_Size

func (m *Task) XXX_Size() int

func (*Task) XXX_Unmarshal

func (m *Task) XXX_Unmarshal(b []byte) error

type TaskType

type TaskType string
const (
	TaskTypeInit  TaskType = "init"
	TaskTypeClone TaskType = "clone"
)

type UpdatePolicy

type UpdatePolicy string
const (
	UpdatePolicy_Loose  UpdatePolicy = "loose"
	UpdatePolicy_Strict UpdatePolicy = "strict"
)

Jump to

Keyboard shortcuts

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