Documentation ¶
Index ¶
- Constants
- func CompileWithPatch(srcByte, patchByte []byte) ([]byte, error)
- func CompileWithpatchByPath(src, patch string) ([]byte, error)
- func Decode(in []byte) ([]*unstructured.Unstructured, error)
- func DumpCompiledFile(compiledYaml []byte, outlookPath string) error
- func GetImportRoot(root string) string
- func GetKubernetesVersion() (string, error)
- func GetOpenapiValidator(cmd *cobra.Command) (*validation.SchemaValidation, error)
- func GetPatch(src, dst []byte, cmd *cobra.Command, plugin bool) error
- func GetSwaggerJsonpath(cmd *cobra.Command) (string, error)
- func NewCmdTools(clientConfig clientcmd.ClientConfig) *cobra.Command
- func NewDefaultEditor() editor.Editor
- func NewDepCommand(plugin bool) *cobra.Command
- func NewEditCommand(plugin bool) *cobra.Command
- func NewKubepackInitializeCmd(plugin bool) *cobra.Command
- func NewPackCmd(version string, plugin bool) *cobra.Command
- func NewStack() *stack
- func NewUpCommand(plugin bool) *cobra.Command
- func NewValidateCommand(plugin bool) *cobra.Command
- func RunEdit(cmd *cobra.Command, plugin bool) error
- func WriteCompiledFileToDest(path string, compiledYaml []byte) error
- type ApiSchema
- type ApplyPatchToForkRepo
- type InternalLock
- type InternalManifest
- type ManifestYaml
- func (a ManifestYaml) DependencyConstraints() gps.ProjectConstraints
- func (a ManifestYaml) IgnoredPackages() *pkgtree.IgnoredRuleset
- func (a ManifestYaml) Overrides() gps.ProjectConstraints
- func (a ManifestYaml) RequiredPackages() map[string]bool
- func (a ManifestYaml) TestDependencyConstraints() gps.ProjectConstraints
- type NaiveAnalyzer
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 CompileWithpatchByPath ¶
func Decode ¶
func Decode(in []byte) ([]*unstructured.Unstructured, error)
Decode decodes a list of objects in byte array format
func DumpCompiledFile ¶
func GetImportRoot ¶
func GetKubernetesVersion ¶
func GetOpenapiValidator ¶
func GetOpenapiValidator(cmd *cobra.Command) (*validation.SchemaValidation, error)
func NewCmdTools ¶
func NewCmdTools(clientConfig clientcmd.ClientConfig) *cobra.Command
func NewDefaultEditor ¶
func NewDepCommand ¶
func NewEditCommand ¶
Local directory path needs to be absolute path. Patch filepath needs to be either absolute path or relative path.
func NewUpCommand ¶
func NewValidateCommand ¶
func WriteCompiledFileToDest ¶
Types ¶
type ApiSchema ¶
type ApiSchema struct { Path string // contains filtered or unexported fields }
func (*ApiSchema) OpenApiSchema ¶
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 ¶
func (a NaiveAnalyzer) Info() gps.ProjectAnalyzerInfo
Reports the name and version of the analyzer. This is used internally as part of gps' hashing memoization scheme.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.