Move pkg/plugin -> internal/plugin

Signed-off-by: George Jenkins <gvjenkins@gmail.com>
pull/31142/head
George Jenkins 3 weeks ago
parent 36e52c828d
commit a1c84f9a4c

@ -14,7 +14,7 @@ limitations under the License.
*/ */
// Package cache provides a key generator for vcs urls. // Package cache provides a key generator for vcs urls.
package cache // import "helm.sh/helm/v4/pkg/plugin/cache" package cache // import "helm.sh/helm/v4/internal/plugin/cache"
import ( import (
"net/url" "net/url"

@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package plugin // import "helm.sh/helm/v4/pkg/plugin" package plugin // import "helm.sh/helm/v4/internal/plugin"
// Types of hooks // Types of hooks
const ( const (

@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package installer // import "helm.sh/helm/v4/pkg/plugin/installer" package installer // import "helm.sh/helm/v4/internal/plugin/installer"
import ( import (
"path/filepath" "path/filepath"

@ -11,7 +11,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package installer // import "helm.sh/helm/v4/pkg/plugin/installer" package installer // import "helm.sh/helm/v4/internal/plugin/installer"
import ( import (
"testing" "testing"

@ -14,4 +14,4 @@ limitations under the License.
*/ */
// Package installer provides an interface for installing Helm plugins. // Package installer provides an interface for installing Helm plugins.
package installer // import "helm.sh/helm/v4/pkg/plugin/installer" package installer // import "helm.sh/helm/v4/internal/plugin/installer"

@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package installer // import "helm.sh/helm/v4/pkg/plugin/installer" package installer // import "helm.sh/helm/v4/internal/plugin/installer"
import ( import (
"archive/tar" "archive/tar"
@ -32,11 +32,11 @@ import (
securejoin "github.com/cyphar/filepath-securejoin" securejoin "github.com/cyphar/filepath-securejoin"
"helm.sh/helm/v4/internal/plugin/cache"
"helm.sh/helm/v4/internal/third_party/dep/fs" "helm.sh/helm/v4/internal/third_party/dep/fs"
"helm.sh/helm/v4/pkg/cli" "helm.sh/helm/v4/pkg/cli"
"helm.sh/helm/v4/pkg/getter" "helm.sh/helm/v4/pkg/getter"
"helm.sh/helm/v4/pkg/helmpath" "helm.sh/helm/v4/pkg/helmpath"
"helm.sh/helm/v4/pkg/plugin/cache"
) )
// HTTPInstaller installs plugins from an archive served by a web server. // HTTPInstaller installs plugins from an archive served by a web server.

@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package installer // import "helm.sh/helm/v4/pkg/plugin/installer" package installer // import "helm.sh/helm/v4/internal/plugin/installer"
import ( import (
"archive/tar" "archive/tar"

@ -22,7 +22,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"helm.sh/helm/v4/pkg/plugin" "helm.sh/helm/v4/internal/plugin"
) )
// ErrMissingMetadata indicates that plugin.yaml is missing. // ErrMissingMetadata indicates that plugin.yaml is missing.

@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package installer // import "helm.sh/helm/v4/pkg/plugin/installer" package installer // import "helm.sh/helm/v4/internal/plugin/installer"
import ( import (
"errors" "errors"

@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package installer // import "helm.sh/helm/v4/pkg/plugin/installer" package installer // import "helm.sh/helm/v4/internal/plugin/installer"
import ( import (
"os" "os"

@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package installer // import "helm.sh/helm/v4/pkg/plugin/installer" package installer // import "helm.sh/helm/v4/internal/plugin/installer"
import ( import (
"errors" "errors"
@ -26,9 +26,9 @@ import (
"github.com/Masterminds/semver/v3" "github.com/Masterminds/semver/v3"
"github.com/Masterminds/vcs" "github.com/Masterminds/vcs"
"helm.sh/helm/v4/internal/plugin/cache"
"helm.sh/helm/v4/internal/third_party/dep/fs" "helm.sh/helm/v4/internal/third_party/dep/fs"
"helm.sh/helm/v4/pkg/helmpath" "helm.sh/helm/v4/pkg/helmpath"
"helm.sh/helm/v4/pkg/plugin/cache"
) )
// VCSInstaller installs plugins from remote a repository. // VCSInstaller installs plugins from remote a repository.

@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package installer // import "helm.sh/helm/v4/pkg/plugin/installer" package installer // import "helm.sh/helm/v4/internal/plugin/installer"
import ( import (
"fmt" "fmt"

@ -31,7 +31,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"sigs.k8s.io/yaml" "sigs.k8s.io/yaml"
"helm.sh/helm/v4/pkg/plugin" "helm.sh/helm/v4/internal/plugin"
) )
const ( const (

@ -24,7 +24,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"helm.sh/helm/v4/pkg/plugin" "helm.sh/helm/v4/internal/plugin"
) )
const pluginHelp = ` const pluginHelp = `

@ -22,9 +22,9 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"helm.sh/helm/v4/internal/plugin"
"helm.sh/helm/v4/internal/plugin/installer"
"helm.sh/helm/v4/pkg/cmd/require" "helm.sh/helm/v4/pkg/cmd/require"
"helm.sh/helm/v4/pkg/plugin"
"helm.sh/helm/v4/pkg/plugin/installer"
) )
type pluginInstallOptions struct { type pluginInstallOptions struct {

@ -24,7 +24,7 @@ import (
"github.com/gosuri/uitable" "github.com/gosuri/uitable"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"helm.sh/helm/v4/pkg/plugin" "helm.sh/helm/v4/internal/plugin"
) )
func newPluginListCmd(out io.Writer) *cobra.Command { func newPluginListCmd(out io.Writer) *cobra.Command {

@ -24,7 +24,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"helm.sh/helm/v4/pkg/plugin" "helm.sh/helm/v4/internal/plugin"
) )
type pluginUninstallOptions struct { type pluginUninstallOptions struct {

@ -24,8 +24,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"helm.sh/helm/v4/pkg/plugin" "helm.sh/helm/v4/internal/plugin"
"helm.sh/helm/v4/pkg/plugin/installer" "helm.sh/helm/v4/internal/plugin/installer"
) )
type pluginUpdateOptions struct { type pluginUpdateOptions struct {

@ -23,8 +23,8 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"helm.sh/helm/v4/internal/plugin"
"helm.sh/helm/v4/pkg/cli" "helm.sh/helm/v4/pkg/cli"
"helm.sh/helm/v4/pkg/plugin"
) )
// collectPlugins scans for getter plugins. // collectPlugins scans for getter plugins.

Loading…
Cancel
Save