crossplane
46 строк · 1.8 Кб
1/*
2Copyright 2023 The Crossplane Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17// Package xpkg contains Crossplane packaging commands.
18package xpkg19
20// TODO(lsviben) add the rest of the commands from up (batch, xpextract).
21
22// Cmd contains commands for interacting with xpkgs.
23type Cmd struct {24// Keep subcommands sorted alphabetically.25Build buildCmd `cmd:"" help:"Build a new package."`26Install installCmd `cmd:"" help:"Install a package in a control plane."`27Login loginCmd `cmd:"" help:"Login to the default package registry."`28Logout logoutCmd `cmd:"" help:"Logout of the default package registry."`29Push pushCmd `cmd:"" help:"Push a package to a registry."`30Update updateCmd `cmd:"" help:"Update a package in a control plane."`31}
32
33// Help prints out the help for the xpkg command.
34func (c *Cmd) Help() string {35return `36Crossplane can be extended using packages. Crossplane packages are called xpkgs.
37Crossplane supports configuration, provider and function packages.
38
39A package is an opinionated OCI image that contains everything needed to extend
40a Crossplane control plane with new functionality. For example installing a
41provider package extends Crossplane with support for new kinds of managed
42resource (MR).
43
44See https://docs.crossplane.io/latest/concepts/packages for more information.
45`
46}
47