qliksense

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Below are some constants to support qliksense context setup
	QliksenseConfigFile     = "config.yaml"
	QliksenseContextsDir    = "contexts"
	DefaultQliksenseContext = "qlik-default"
	MaxContextNameLength    = 17
	QliksenseSecretsDir     = "secrets"
)
View Source
const (
	QLIK_GIT_REPO = "https://github.com/qlik-oss/qliksense-k8s"
)
View Source
const (
	Q_INIT_CRD_PATH = "manifests/base/crds"
)

Variables

This section is empty.

Functions

func AskForConfirmation added in v0.13.0

func AskForConfirmation(s string) bool

func DownloadFromGitRepoToTmpDir added in v0.9.12

func DownloadFromGitRepoToTmpDir(gitUrl, gitRef string) (string, error)

DownloadFromGitRepoToTmpDir download git repo to a temporary directory

func ExecuteKustomizeBuild added in v0.9.12

func ExecuteKustomizeBuild(directory string) ([]byte, error)

ExecuteKustomizeBuild execute kustomize to the directory and return manifest as byte array

func GetYamlsFromMultiDoc added in v0.9.12

func GetYamlsFromMultiDoc(multiYaml string, kind string) string

GetYamlsFromMultiDoc filter yaml docs from multiyaml based on kind

Types

type CrdCommandOptions

type CrdCommandOptions struct {
	All bool
}

type FetchCommandOptions added in v0.10.0

type FetchCommandOptions struct {
	GitUrl      string
	AccessToken string
	Version     string
	SecretName  string
	Overwrite   bool
}

type InstallCommandOptions

type InstallCommandOptions struct {
	StorageClass    string
	MongodbUri      string
	AcceptEULA      string
	DryRun          bool
	Pull            bool
	Push            bool
	CleanPatchFiles bool
	RotateKeys      bool
}

type LsRemoteCmdOptions

type LsRemoteCmdOptions struct {
	IncludeBranches bool
	Limit           int
}

type Qliksense

type Qliksense struct {
	QliksenseHome string
	CrdBox        *packr.Box ``
}

Qliksense is the logic behind the qliksense client

func New

func New(qliksenseHome string) *Qliksense

New qliksense client, initialized with useful defaults.

func (*Qliksense) About

func (q *Qliksense) About(gitRef, profile string) (*VersionOutput, error)

func (*Qliksense) AboutDir

func (q *Qliksense) AboutDir(configDirectory, profile string) (*VersionOutput, error)

func (*Qliksense) ApplyCRFromBytes added in v0.31.0

func (q *Qliksense) ApplyCRFromBytes(crBytes []byte, opts *InstallCommandOptions, overwriteExistingContext bool) error

func (*Qliksense) CheckAllCrdsInstalled added in v0.22.0

func (q *Qliksense) CheckAllCrdsInstalled() (bool, error)

func (*Qliksense) ConfigApplyQK8s

func (q *Qliksense) ConfigApplyQK8s() error

func (*Qliksense) ConfigViewCR

func (q *Qliksense) ConfigViewCR() error

func (*Qliksense) DeleteContextConfig

func (q *Qliksense) DeleteContextConfig(args []string, flag bool) error

func (*Qliksense) DeleteKeysClusterBackup added in v0.34.0

func (q *Qliksense) DeleteKeysClusterBackup() error

func (*Qliksense) DiscardAllUnstagedChangesFromGitRepo

func (q *Qliksense) DiscardAllUnstagedChangesFromGitRepo(qConfig *qapi.QliksenseConfig) error

func (*Qliksense) EditCR added in v0.9.13

func (q *Qliksense) EditCR(contextName string) error

func (*Qliksense) FetchK8sWithOpts added in v0.10.0

func (q *Qliksense) FetchK8sWithOpts(opts *FetchCommandOptions) error

func (*Qliksense) FetchQK8s

func (q *Qliksense) FetchQK8s(version string) error

func (*Qliksense) GetInstallableVersions

func (q *Qliksense) GetInstallableVersions(opts *LsRemoteCmdOptions) error

func (*Qliksense) GetOperatorCRDString

func (q *Qliksense) GetOperatorCRDString() string

this will return crd,deployment,role, rolebinding,serviceaccount for operator

func (*Qliksense) GetOperatorControllerString

func (q *Qliksense) GetOperatorControllerString() string

func (*Qliksense) InstallCrds

func (q *Qliksense) InstallCrds(opts *CrdCommandOptions) error

func (*Qliksense) InstallQK8s

func (q *Qliksense) InstallQK8s(version string, opts *InstallCommandOptions) error

func (*Qliksense) ListContextConfigs

func (q *Qliksense) ListContextConfigs() error

func (*Qliksense) LoadCr

func (q *Qliksense) LoadCr(crBytes []byte, overwriteExistingContext bool) error

func (*Qliksense) PrepareK8sSecret

func (q *Qliksense) PrepareK8sSecret(targetFile string) (string, error)

PrepareK8sSecret targetFile contains base64 encoded value of encrypted value. this method decodes and decrypts the secret value in the secret.yaml file and returns a B64encoded string

func (*Qliksense) PullImages added in v0.9.12

func (q *Qliksense) PullImages(version, profile string) error

func (*Qliksense) PullImagesForCurrentCR

func (q *Qliksense) PullImagesForCurrentCR() error

PullImages ...

func (*Qliksense) PushImagesForCurrentCR

func (q *Qliksense) PushImagesForCurrentCR() error

func (*Qliksense) SetConfigFromReader added in v0.11.0

func (q *Qliksense) SetConfigFromReader(arg string, reader io.Reader, base64Encoded bool) error

func (*Qliksense) SetConfigs

func (q *Qliksense) SetConfigs(args []string, base64Encoded bool) error

SetConfigs - set-configs <key>=<value> commands

func (*Qliksense) SetContextConfig

func (q *Qliksense) SetContextConfig(args []string) error

SetContextConfig - set the context for qliksense kubernetes resources to live in

func (*Qliksense) SetEulaAccepted

func (q *Qliksense) SetEulaAccepted() error

func (*Qliksense) SetImageRegistry

func (q *Qliksense) SetImageRegistry(registry, pushUsername, pushPassword, pullUsername, pullPassword string) error

func (*Qliksense) SetOtherConfigs

func (q *Qliksense) SetOtherConfigs(args []string) error

SetOtherConfigs - set profile/storageclassname/git.repository/manifestRoot commands

func (*Qliksense) SetSecrets

func (q *Qliksense) SetSecrets(args []string, isSecretSet bool, base64Encoded bool) error

SetSecrets - set-secrets <key>=<value> commands

func (*Qliksense) SetSecretsFromReader added in v0.11.0

func (q *Qliksense) SetSecretsFromReader(arg string, reader io.Reader, createSecret, base64Encoded bool) error

func (*Qliksense) SetUpQliksenseContext

func (q *Qliksense) SetUpQliksenseContext(contextName string) error

SetUpQliksenseContext - to setup qliksense context

func (*Qliksense) SetUpQliksenseDefaultContext

func (q *Qliksense) SetUpQliksenseDefaultContext() error

SetUpQliksenseDefaultContext - to setup dir structure for default qliksense context

func (*Qliksense) UninstallQK8s

func (q *Qliksense) UninstallQK8s(contextName string, skipConfirmation bool) error

func (*Qliksense) UnsetCmd added in v0.22.0

func (q *Qliksense) UnsetCmd(args []string) error

func (*Qliksense) UpgradeQK8s

func (q *Qliksense) UpgradeQK8s(cleanPatchFiles bool) error

func (*Qliksense) ViewCrds

func (q *Qliksense) ViewCrds(opts *CrdCommandOptions) error

func (*Qliksense) ViewOperator

func (q *Qliksense) ViewOperator() error

func (*Qliksense) ViewOperatorController

func (q *Qliksense) ViewOperatorController() error

type VersionOutput

type VersionOutput struct {
	QliksenseVersion string   `yaml:"qlikSenseVersion"`
	Images           []string `yaml:"images"`
}

Jump to

Keyboard shortcuts

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