Documentation ¶
Index ¶
- func ConfigFromContext(ctx context.Context) *rest.Config
- func NewPackage(packageName, version string) *v1alpha1.Package
- func RawConfigFromContext(ctx context.Context) *api.Config
- func SetupContext(ctx context.Context, config *rest.Config, rawConfig *api.Config) (context.Context, error)
- func SetupContextWithClient(ctx context.Context, config *rest.Config, rawConfig *api.Config, ...) context.Context
- type PackageInfoInterface
- type PackageInterface
- type PackageStatus
- type PackageV1Alpha1Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPackage ¶
NewPackage instantiates a new v1alpha1.Package struct with the given package name
func RawConfigFromContext ¶ added in v0.0.3
func SetupContext ¶
Types ¶
type PackageInfoInterface ¶ added in v0.0.2
type PackageInfoInterface interface { Get(ctx context.Context, name string, packageInfo *packagev1alpha1.PackageInfo) error GetAll(ctx context.Context, packageInfo *packagev1alpha1.PackageInfoList) error }
type PackageInterface ¶
type PackageInterface interface { Create(ctx context.Context, p *v1alpha1.Package) error Update(ctx context.Context, p *v1alpha1.Package) error Get(ctx context.Context, pkgName string, p *v1alpha1.Package) error GetAll(ctx context.Context, result *v1alpha1.PackageList) error Watch(ctx context.Context) (watch.Interface, error) Delete(ctx context.Context, pkg *v1alpha1.Package, options metav1.DeleteOptions) error }
type PackageStatus ¶
func GetStatus ¶
func GetStatus(status *v1alpha1.PackageStatus) *PackageStatus
func GetStatusOrPending ¶ added in v0.0.3
func GetStatusOrPending(status *v1alpha1.PackageStatus) *PackageStatus
func NewPendingStatus ¶ added in v0.0.3
func NewPendingStatus() *PackageStatus
type PackageV1Alpha1Client ¶
type PackageV1Alpha1Client interface { Packages() PackageInterface PackageInfos() PackageInfoInterface WithPackageStore(store cache.Store) PackageV1Alpha1Client }
func FromContext ¶
func FromContext(ctx context.Context) PackageV1Alpha1Client
Click to show internal directories.
Click to hide internal directories.