pkgid

package
v0.0.0-...-56979a3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Overview

+kubebuilder:object:generate=true

Index

Constants

View Source
const (
	NoRevision  = "v0"
	Anyrevision = "*"
)
View Source
const (
	PkgTarget_Catalog = "catalog"
)

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")
)

Functions

func GetRepoNameFromPkgRevName

func GetRepoNameFromPkgRevName(name string) string

func IsRevLater

func IsRevLater(currentRev, latestRev string) bool

func LatestRevisionNumber

func LatestRevisionNumber(revs []string) string

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

func NextRevisionNumber(revs []string) (string, error)

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 PackageToDir(pkg string) string

func RealmToName

func RealmToName(pkg string) string

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) MarshalTo

func (m *Downstream) MarshalTo(dAtA []byte) (int, 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 PackageID

type PackageID 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 ParsePkgID

func ParsePkgID(pkgstr string) (*PackageID, error)

func (*PackageID) Branch

func (r *PackageID) Branch() string

func (*PackageID) DNSName

func (r *PackageID) DNSName() string

func (*PackageID) DeepCopy

func (in *PackageID) DeepCopy() *PackageID

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

func (*PackageID) DeepCopyInto

func (in *PackageID) DeepCopyInto(out *PackageID)

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

func (*PackageID) Descriptor

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

func (*PackageID) GitRevision

func (r *PackageID) GitRevision() string

func (*PackageID) Marshal

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

func (*PackageID) MarshalTo

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

func (*PackageID) MarshalToSizedBuffer

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

func (*PackageID) OutDir

func (r *PackageID) OutDir() string

func (*PackageID) Path

func (r *PackageID) Path() string

func (*PackageID) PkgRevString

func (r *PackageID) PkgRevString() string

func (*PackageID) PkgString

func (r *PackageID) PkgString() string

func (*PackageID) ProtoMessage

func (*PackageID) ProtoMessage()

func (*PackageID) Reset

func (m *PackageID) Reset()

func (*PackageID) Size

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

func (*PackageID) String

func (this *PackageID) String() string

func (*PackageID) Unmarshal

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

func (*PackageID) XXX_DiscardUnknown

func (m *PackageID) XXX_DiscardUnknown()

func (*PackageID) XXX_Marshal

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

func (*PackageID) XXX_Merge

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

func (*PackageID) XXX_Size

func (m *PackageID) XXX_Size() int

func (*PackageID) XXX_Unmarshal

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

type PkgState

type PkgState int64
const (
	PkgState_NotAvailable PkgState = iota
	PkgState_Scheduled
	PkgState_Processed
	PkgState_Validated // policy
	PkgState_Approved
	PkgState_Installed
)

func (PkgState) String

func (r PkgState) String() string

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

func (in *Upstream) DeepCopy() *Upstream

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

func (*Upstream) DeepCopyInto

func (in *Upstream) DeepCopyInto(out *Upstream)

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

func (*Upstream) Descriptor

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

func (*Upstream) Marshal

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

func (*Upstream) MarshalTo

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

func (*Upstream) MarshalToSizedBuffer

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

func (*Upstream) PkgRevName

func (r *Upstream) PkgRevName() string

func (*Upstream) PkgString

func (r *Upstream) PkgString() string

func (*Upstream) ProtoMessage

func (*Upstream) ProtoMessage()

func (*Upstream) Reset

func (m *Upstream) Reset()

func (*Upstream) Size

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

func (*Upstream) String

func (this *Upstream) String() string

func (*Upstream) Unmarshal

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

func (*Upstream) XXX_DiscardUnknown

func (m *Upstream) XXX_DiscardUnknown()

func (*Upstream) XXX_Marshal

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

func (*Upstream) XXX_Merge

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

func (*Upstream) XXX_Size

func (m *Upstream) XXX_Size() int

func (*Upstream) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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