commands

package
v0.0.0-...-d4a6967 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2018 License: Apache-2.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PatchFolder          = "patch"
	KinflateManifestName = "kube-manifest.yaml"
)
View Source
const (
	CompileDirectory = "output"
	InstallSHName    = "install.sh"
	InstallSHDefault = `#!/bin/bash

`
)
View Source
const OpenapiSpecDloadPath = "https://raw.githubusercontent.com/kubernetes/kubernetes/%s/api/openapi-spec/swagger.json"
View Source
const PackTempDirectory = ".pack"

Variables

This section is empty.

Functions

func CompileWithPatch

func CompileWithPatch(srcByte, patchByte []byte) ([]byte, error)

func CompileWithpatchByPath

func CompileWithpatchByPath(src, patch string) ([]byte, error)

func Decode

func Decode(in []byte) ([]*unstructured.Unstructured, error)

Decode decodes a list of objects in byte array format

func DumpCompiledFile

func DumpCompiledFile(compiledYaml []byte, outlookPath string) error

func GetImportRoot

func GetImportRoot(root string) string

func GetKubernetesVersion

func GetKubernetesVersion() (string, error)

func GetOpenapiValidator

func GetOpenapiValidator(cmd *cobra.Command) (*validation.SchemaValidation, error)

func GetPatch

func GetPatch(src, dst []byte, cmd *cobra.Command, plugin bool) error

func GetSwaggerJsonpath

func GetSwaggerJsonpath(cmd *cobra.Command) (string, error)

func NewCmdTools

func NewCmdTools(clientConfig clientcmd.ClientConfig) *cobra.Command

func NewDefaultEditor

func NewDefaultEditor() editor.Editor

func NewDepCommand

func NewDepCommand(plugin bool) *cobra.Command

func NewEditCommand

func NewEditCommand(plugin bool) *cobra.Command

Local directory path needs to be absolute path. Patch filepath needs to be either absolute path or relative path.

func NewKubepackInitializeCmd

func NewKubepackInitializeCmd(plugin bool) *cobra.Command

func NewPackCmd

func NewPackCmd(version string, plugin bool) *cobra.Command

func NewStack

func NewStack() *stack

func NewUpCommand

func NewUpCommand(plugin bool) *cobra.Command

func NewValidateCommand

func NewValidateCommand(plugin bool) *cobra.Command

func RunEdit

func RunEdit(cmd *cobra.Command, plugin bool) error

func WriteCompiledFileToDest

func WriteCompiledFileToDest(path string, compiledYaml []byte) error

Types

type ApiSchema

type ApiSchema struct {
	Path string
	// contains filtered or unexported fields
}

func (*ApiSchema) OpenApiSchema

func (f *ApiSchema) OpenApiSchema() (*openapi_v2.Document, error)

type ApplyPatchToForkRepo

type ApplyPatchToForkRepo struct {
	// contains filtered or unexported fields
}

type InternalLock

type InternalLock struct {
	// contains filtered or unexported fields
}

func (InternalLock) InputsDigest

func (a InternalLock) InputsDigest() []byte

func (InternalLock) Projects

func (a InternalLock) Projects() []gps.LockedProject

type InternalManifest

type InternalManifest struct {
	// contains filtered or unexported fields
}

func (InternalManifest) DependencyConstraints

func (a InternalManifest) DependencyConstraints() gps.ProjectConstraints

type ManifestYaml

type ManifestYaml struct {
	// contains filtered or unexported fields
}

func (ManifestYaml) DependencyConstraints

func (a ManifestYaml) DependencyConstraints() gps.ProjectConstraints

func (ManifestYaml) IgnoredPackages

func (a ManifestYaml) IgnoredPackages() *pkgtree.IgnoredRuleset

func (ManifestYaml) Overrides

func (a ManifestYaml) Overrides() gps.ProjectConstraints

func (ManifestYaml) RequiredPackages

func (a ManifestYaml) RequiredPackages() map[string]bool

func (ManifestYaml) TestDependencyConstraints

func (a ManifestYaml) TestDependencyConstraints() gps.ProjectConstraints

type NaiveAnalyzer

type NaiveAnalyzer struct {
}

func (NaiveAnalyzer) DeriveManifestAndLock

func (a NaiveAnalyzer) DeriveManifestAndLock(path string, n gps.ProjectRoot) (gps.Manifest, gps.Lock, error)

DeriveManifestAndLock is called when the solver needs manifest/lock data for a particular dependency project (identified by the gps.ProjectRoot parameter) at a particular version. That version will be checked out in a directory rooted at path.

func (NaiveAnalyzer) Info

Reports the name and version of the analyzer. This is used internally as part of gps' hashing memoization scheme.

Jump to

Keyboard shortcuts

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