Documentation ¶
Overview ¶
+kubebuilder:object:generate=true
Index ¶
- Constants
- Variables
- func GetRepoNameFromPkgRevName(name string) string
- func IsRevLater(currentRev, latestRev string) bool
- func LatestRevisionNumber(revs []string) string
- func NextRevisionNumber(revs []string) (string, error)
- func PackageToDir(pkg string) string
- func RealmToName(pkg string) string
- type Downstream
- func (in *Downstream) DeepCopy() *Downstream
- func (in *Downstream) DeepCopyInto(out *Downstream)
- func (*Downstream) Descriptor() ([]byte, []int)
- func (m *Downstream) Marshal() (dAtA []byte, err error)
- func (m *Downstream) MarshalTo(dAtA []byte) (int, error)
- func (m *Downstream) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (r *Downstream) PkgString() string
- func (*Downstream) ProtoMessage()
- func (m *Downstream) Reset()
- func (m *Downstream) Size() (n int)
- func (this *Downstream) String() string
- func (m *Downstream) Unmarshal(dAtA []byte) error
- func (m *Downstream) XXX_DiscardUnknown()
- func (m *Downstream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Downstream) XXX_Merge(src proto.Message)
- func (m *Downstream) XXX_Size() int
- func (m *Downstream) XXX_Unmarshal(b []byte) error
- type PackageRevID
- func (r *PackageRevID) Branch(catalog bool) string
- func (r *PackageRevID) DNSName() string
- func (in *PackageRevID) DeepCopy() *PackageRevID
- func (in *PackageRevID) DeepCopyInto(out *PackageRevID)
- func (*PackageRevID) Descriptor() ([]byte, []int)
- func (r *PackageRevID) GitRevision() string
- func (m *PackageRevID) Marshal() (dAtA []byte, err error)
- func (m *PackageRevID) MarshalTo(dAtA []byte) (int, error)
- func (m *PackageRevID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (r *PackageRevID) OutDir() string
- func (r *PackageRevID) Path() string
- func (r *PackageRevID) PkgRevString() string
- func (r *PackageRevID) PkgString() string
- func (*PackageRevID) ProtoMessage()
- func (m *PackageRevID) Reset()
- func (m *PackageRevID) Size() (n int)
- func (this *PackageRevID) String() string
- func (r *PackageRevID) Tag(catalog bool) string
- func (m *PackageRevID) Unmarshal(dAtA []byte) error
- func (m *PackageRevID) XXX_DiscardUnknown()
- func (m *PackageRevID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PackageRevID) XXX_Merge(src proto.Message)
- func (m *PackageRevID) XXX_Size() int
- func (m *PackageRevID) XXX_Unmarshal(b []byte) error
- type PkgState
- type Upstream
- func (in *Upstream) DeepCopy() *Upstream
- func (in *Upstream) DeepCopyInto(out *Upstream)
- func (*Upstream) Descriptor() ([]byte, []int)
- func (m *Upstream) Marshal() (dAtA []byte, err error)
- func (m *Upstream) MarshalTo(dAtA []byte) (int, error)
- func (m *Upstream) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (r *Upstream) PkgRevName() string
- func (r *Upstream) PkgString() string
- func (*Upstream) ProtoMessage()
- func (m *Upstream) Reset()
- func (m *Upstream) Size() (n int)
- func (this *Upstream) String() string
- func (m *Upstream) Unmarshal(dAtA []byte) error
- func (m *Upstream) XXX_DiscardUnknown()
- func (m *Upstream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Upstream) XXX_Merge(src proto.Message)
- func (m *Upstream) XXX_Size() int
- func (m *Upstream) XXX_Unmarshal(b []byte) error
Constants ¶
const ( NoRevision = "v0" Anyrevision = "*" )
const (
PkgTarget_Catalog = "catalog"
)
Variables ¶
Functions ¶
func IsRevLater ¶
func LatestRevisionNumber ¶
LatestRevisionNumber computes the latest revision number of a given list. This function only understands strict versioning format, e.g. v1, v2, etc. It will ignore all revision numbers it finds that do not adhere to this format. If there are no published revisions (in the recognized format), the revision number returned here will be "v0".
func NextRevisionNumber ¶
NextRevisionNumber computes the next revision number as the latest revision number + 1. This function only understands strict versioning format, e.g. v1, v2, etc. It will ignore all revision numbers it finds that do not adhere to this format. If there are no published revisions (in the recognized format), the revision number returned here will be "v1".
func PackageToDir ¶
func RealmToName ¶
Types ¶
type Downstream ¶
type Downstream struct { // Target defines the target for the package; not relevant for catalog packages // e.g. a cluster Target string `json:"target,omitempty" protobuf:"bytes,1,opt,name=target"` // Repository defines the name of the Repository object containing this package. Repository string `json:"repository,omitempty" protobuf:"bytes,2,opt,name=repository"` // Realm defines the scope in which the package is relevant Realm string `json:"realm,omitempty" protobuf:"bytes,3,opt,name=realm"` // Package defines the name of package in the repository. Package string `json:"package,omitempty" protobuf:"bytes,4,opt,name=package"` }
+k8s:openapi-gen=true
func (*Downstream) DeepCopy ¶
func (in *Downstream) DeepCopy() *Downstream
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Downstream.
func (*Downstream) DeepCopyInto ¶
func (in *Downstream) DeepCopyInto(out *Downstream)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Downstream) Descriptor ¶
func (*Downstream) Descriptor() ([]byte, []int)
func (*Downstream) Marshal ¶
func (m *Downstream) Marshal() (dAtA []byte, err error)
func (*Downstream) MarshalToSizedBuffer ¶
func (m *Downstream) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Downstream) PkgString ¶
func (r *Downstream) PkgString() string
func (*Downstream) ProtoMessage ¶
func (*Downstream) ProtoMessage()
func (*Downstream) Reset ¶
func (m *Downstream) Reset()
func (*Downstream) Size ¶
func (m *Downstream) Size() (n int)
func (*Downstream) String ¶
func (this *Downstream) String() string
func (*Downstream) Unmarshal ¶
func (m *Downstream) Unmarshal(dAtA []byte) error
func (*Downstream) XXX_DiscardUnknown ¶
func (m *Downstream) XXX_DiscardUnknown()
func (*Downstream) XXX_Marshal ¶
func (m *Downstream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Downstream) XXX_Merge ¶
func (m *Downstream) XXX_Merge(src proto.Message)
func (*Downstream) XXX_Size ¶
func (m *Downstream) XXX_Size() int
func (*Downstream) XXX_Unmarshal ¶
func (m *Downstream) XXX_Unmarshal(b []byte) error
type PackageRevID ¶
type PackageRevID struct { // Target defines the target for the package; not relevant for catalog packages // e.g. a cluster Target string `json:"target,omitempty" protobuf:"bytes,1,opt,name=target"` // Repository defines the name of the Repository object containing this package. Repository string `json:"repository,omitempty" protobuf:"bytes,2,opt,name=repository"` // Realm defines the scope in which the package is relevant Realm string `json:"realm,omitempty" protobuf:"bytes,3,opt,name=realm"` // Package defines the name of the package in the repository. Package string `json:"package,omitempty" protobuf:"bytes,4,opt,name=package"` // Revision defines the revision of the package once published Revision string `json:"revision,omitempty" protobuf:"bytes,5,opt,name=revision"` // Workspace defines the workspace of the package Workspace string `json:"workspace,omitempty" protobuf:"bytes,6,opt,name=workspace"` }
+k8s:openapi-gen=true
func ParseBranch ¶
func ParseBranch(tagstr string, catalog bool) (*PackageRevID, error)
func ParsePkgRev2PkgRevID ¶
func ParsePkgRev2PkgRevID(pkgstr string) (*PackageRevID, error)
func (*PackageRevID) Branch ¶
func (r *PackageRevID) Branch(catalog bool) string
func (*PackageRevID) DNSName ¶
func (r *PackageRevID) DNSName() string
func (*PackageRevID) DeepCopy ¶
func (in *PackageRevID) DeepCopy() *PackageRevID
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PackageID.
func (*PackageRevID) DeepCopyInto ¶
func (in *PackageRevID) DeepCopyInto(out *PackageRevID)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PackageRevID) Descriptor ¶
func (*PackageRevID) Descriptor() ([]byte, []int)
func (*PackageRevID) GitRevision ¶
func (r *PackageRevID) GitRevision() string
func (*PackageRevID) Marshal ¶
func (m *PackageRevID) Marshal() (dAtA []byte, err error)
func (*PackageRevID) MarshalToSizedBuffer ¶
func (m *PackageRevID) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PackageRevID) OutDir ¶
func (r *PackageRevID) OutDir() string
func (*PackageRevID) Path ¶
func (r *PackageRevID) Path() string
func (*PackageRevID) PkgRevString ¶
func (r *PackageRevID) PkgRevString() string
func (*PackageRevID) PkgString ¶
func (r *PackageRevID) PkgString() string
func (*PackageRevID) ProtoMessage ¶
func (*PackageRevID) ProtoMessage()
func (*PackageRevID) Reset ¶
func (m *PackageRevID) Reset()
func (*PackageRevID) Size ¶
func (m *PackageRevID) Size() (n int)
func (*PackageRevID) String ¶
func (this *PackageRevID) String() string
func (*PackageRevID) Tag ¶
func (r *PackageRevID) Tag(catalog bool) string
func (*PackageRevID) Unmarshal ¶
func (m *PackageRevID) Unmarshal(dAtA []byte) error
func (*PackageRevID) XXX_DiscardUnknown ¶
func (m *PackageRevID) XXX_DiscardUnknown()
func (*PackageRevID) XXX_Marshal ¶
func (m *PackageRevID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PackageRevID) XXX_Merge ¶
func (m *PackageRevID) XXX_Merge(src proto.Message)
func (*PackageRevID) XXX_Size ¶
func (m *PackageRevID) XXX_Size() int
func (*PackageRevID) XXX_Unmarshal ¶
func (m *PackageRevID) XXX_Unmarshal(b []byte) error
type Upstream ¶
type Upstream struct { // Repository defines the name of the Repository object containing this package. Repository string `json:"repository,omitempty" protobuf:"bytes,1,opt,name=repository"` // Realm defines the scope in which the package is relevant Realm string `json:"realm,omitempty" protobuf:"bytes,2,opt,name=realm"` // Package defines the name of package in the repository. Package string `json:"package,omitempty" protobuf:"bytes,3,opt,name=package"` // Revision defines the revision of the package once published Revision string `json:"revision,omitempty" protobuf:"bytes,4,opt,name=revision"` }
+k8s:openapi-gen=true
func (*Upstream) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Upstream.
func (*Upstream) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Upstream) Descriptor ¶
func (*Upstream) MarshalToSizedBuffer ¶
func (*Upstream) PkgRevName ¶
func (*Upstream) ProtoMessage ¶
func (*Upstream) ProtoMessage()
func (*Upstream) XXX_DiscardUnknown ¶
func (m *Upstream) XXX_DiscardUnknown()