asciichgolangpublic

package module
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: Apache-2.0 Imports: 42 Imported by: 0

README

asciichgolangpublic

This module helps to write infrastructure and/or automation related microservices and CLIs easier and faster. By providing a lot of convenience functions, sanity checks during runtime and detailed error messages it can be used to write easy to understand software to automate repeatable work. The focus is on ease of use and developer speed instead of algorithm speed and computer resource efficiency.

Logging

To provide easy readable CLI output its recommended to use the provided logging functions:

package main

import "github.com/asciich/asciichgolangpublic"

func main() {
	asciichgolangpublic.LogInfo("Shown without additional color.")
	asciichgolangpublic.LogInfof("Shown without additional color. %s", "Also available with formatting.")

	asciichgolangpublic.LogGood("Good messages are green.")
	asciichgolangpublic.LogGoodf("Good messages are green. %s", "Also available with formatting.")

	asciichgolangpublic.LogChanged("Changes are purple.")
	asciichgolangpublic.LogChangedf("Changes are purple. %s", "Also available with formatting.")

	asciichgolangpublic.LogWarn("Warnings are yellow.")
	asciichgolangpublic.LogWarnf("Warnings are yellow. %s", "Also available with formatting.")

	asciichgolangpublic.LogError("Errors are red.")
	asciichgolangpublic.LogErrorf("Errors are red. %s", "Also available with formatting.")

	asciichgolangpublic.LogFatalf("Fatal will exit with a red error message and exit code %d", 1)
}

Output produced by this example code:

Errors

It's recommended to use TracedError whenever an error occurs with a custom error message. Error wrapping by directly passing errors or using the %w format string in TracedErrorf is supported. TracedErrors give you a nice debug output including the stack trace in a human readable form compatiple to VSCode (affected sources can directly be opened from Terminal).

Example usage:

func inThisFunctionSomethingGoesWrong() (err error) {
    return asciichgolangpublic.TracedError("This is an error message") // Use TracedErrors when an error occures.
}

err = inThisFunctionSomethingGoesWrong()
asciichgolangpublic.Errors().IsTracedError(err) // returns true for all TracedErrors.
asciichgolangpublic.Errors().IsTracedError(fmt.Errorf("another error")) // returns false for all non TracedErrors.

err.Error() // includes the error message and the stack trace as human readable text.

Documentation

Index

Constants

View Source
const FALLBACK_SOFTWARE_NAME_UNDEFINED = "[default software name not defined]"
View Source
const SOFTWARE_NAME_UNDEFINED = "[software name not defined]"

Variables

View Source
var ErrFileBaseParentNotSet = errors.New("parent is not set")
View Source
var ErrGitlabGroupNotFoundError = errors.New("Gitlab group not found")
View Source
var ErrGitlabProjectNotFound = errors.New("Gitlab project not found")
View Source
var ErrGitlabRepositoryFileDoesNotExist = errors.New("Gitlab repository file does not exist")
View Source
var ErrTracedError = errors.New("asciichgolangpublic TracedError base")
View Source
var ErrTracedErrorEmptyString = errors.New("asciichgolangpublic TracedError empty string")
View Source
var ErrTracedErrorNil = errors.New("asciichgolangpublic TracedError nil")
View Source
var ErrTracedErrorNotImplemented = errors.New("asciichgolangpublic TracedError not implemented")

Functions

func GetSoftwareNameString added in v0.31.0

func GetSoftwareNameString() (name string)

func GetSoftwareVersionString added in v0.31.0

func GetSoftwareVersionString() (version string)

func Log

func Log(logmessage string)

func LogBold

func LogBold(logmessage string)

func LogChanged

func LogChanged(logmessage string)

func LogChangedf

func LogChangedf(logmessage string, args ...interface{})

func LogError

func LogError(logmessage string)

func LogErrorf

func LogErrorf(logmessage string, args ...interface{})

func LogFatal

func LogFatal(logmessage string)

func LogFatalWithTrace

func LogFatalWithTrace(errorMessageOrError interface{})

func LogFatalWithTracef

func LogFatalWithTracef(logmessage string, args ...interface{})

func LogFatalf

func LogFatalf(logmessage string, args ...interface{})

func LogGoError

func LogGoError(err error)

func LogGoErrorFatal

func LogGoErrorFatal(err error)

func LogGoErrorFatalWithTrace

func LogGoErrorFatalWithTrace(err error)

func LogGood

func LogGood(logmessage string)

func LogGoodf

func LogGoodf(logmessage string, args ...interface{})

func LogInfo

func LogInfo(logmessage string)

func LogInfof

func LogInfof(logmessage string, args ...interface{})

func LogTurnOfColorOutput added in v0.7.1

func LogTurnOfColorOutput()

func LogTurnOnColorOutput added in v0.7.1

func LogTurnOnColorOutput()

func LogVersion added in v0.31.0

func LogVersion()

func LogWarn

func LogWarn(logmessage string)

func LogWarnf

func LogWarnf(logmessage string, args ...interface{})

func MustFormatAsTestname

func MustFormatAsTestname(objectToFormat interface{}) (testname string)

func TracedError

func TracedError(errorMessageOrError interface{}) (tracedError error)

Create a new error with given error or error message. TracedErrors extends the error message by a human readable stack trace.

func TracedErrorEmptyString

func TracedErrorEmptyString(stringVarName string, errorToUnwrap ...error) (tracedError error)

func TracedErrorNil

func TracedErrorNil(nilVarName string) (tracedError error)

func TracedErrorNilf

func TracedErrorNilf(formatString string, args ...interface{}) (tracedError error)

func TracedErrorNotImplemented

func TracedErrorNotImplemented() (tracedError error)

func TracedErrorf

func TracedErrorf(formatString string, args ...interface{}) (tracedError error)

Create a new error with given error or error message. TracedErrors extends the error message by a human readable stack trace. Error wrapping using '%w' in format string is supported.

Types

type AuthenticationOption added in v0.31.0

type AuthenticationOption interface {
	IsAuthenticatingAgainst(serviceName string) (isAuthenticatingAgainst bool, err error)
	IsVerbose() (isVerbose bool)
}

type AuthenticationOptionsHandlerService added in v0.31.0

type AuthenticationOptionsHandlerService struct{}

func AuthenticationOptionsHandler added in v0.31.0

func AuthenticationOptionsHandler() (a *AuthenticationOptionsHandlerService)

func NewAuthenticationOptionsHandlerService added in v0.31.0

func NewAuthenticationOptionsHandlerService() (a *AuthenticationOptionsHandlerService)

func (*AuthenticationOptionsHandlerService) GetAuthenticationoptionsForService added in v0.31.0

func (a *AuthenticationOptionsHandlerService) GetAuthenticationoptionsForService(authentiationOptions []AuthenticationOption, serviceName string) (authOption AuthenticationOption, err error)

func (*AuthenticationOptionsHandlerService) GetAuthenticationoptionsForServiceByUrl added in v0.31.0

func (a *AuthenticationOptionsHandlerService) GetAuthenticationoptionsForServiceByUrl(authenticationOptions []AuthenticationOption, url *URL) (authOption AuthenticationOption, err error)

func (*AuthenticationOptionsHandlerService) MustGetAuthenticationoptionsForService added in v0.31.0

func (a *AuthenticationOptionsHandlerService) MustGetAuthenticationoptionsForService(authentiationOptions []AuthenticationOption, serviceName string) (authOption AuthenticationOption)

func (*AuthenticationOptionsHandlerService) MustGetAuthenticationoptionsForServiceByUrl added in v0.31.0

func (a *AuthenticationOptionsHandlerService) MustGetAuthenticationoptionsForServiceByUrl(authenticationOptions []AuthenticationOption, url *URL) (authOption AuthenticationOption)

type Base64Service added in v0.39.0

type Base64Service struct{}

func Base64 added in v0.39.0

func Base64() (b *Base64Service)

func NewBase64Service added in v0.39.0

func NewBase64Service() (b *Base64Service)

func (*Base64Service) DecodeStringAsBytes added in v0.39.0

func (b *Base64Service) DecodeStringAsBytes(input string) (decoded []byte, err error)

func (*Base64Service) MustDecodeStringAsBytes added in v0.39.0

func (b *Base64Service) MustDecodeStringAsBytes(input string) (decoded []byte)

type BashService added in v0.4.0

type BashService struct {
	CommandExecutorBase
}

func Bash added in v0.4.0

func Bash() (b *BashService)

func NewBashService added in v0.4.0

func NewBashService() (b *BashService)

func (*BashService) MustRunCommand added in v0.4.0

func (b *BashService) MustRunCommand(options *RunCommandOptions) (commandOutput *CommandOutput)

func (*BashService) MustRunOneLiner added in v0.10.0

func (b *BashService) MustRunOneLiner(oneLiner string, verbose bool) (output *CommandOutput)

func (*BashService) MustRunOneLinerAndGetStdoutAsString added in v0.10.0

func (b *BashService) MustRunOneLinerAndGetStdoutAsString(oneLiner string, verbose bool) (stdout string)

func (*BashService) RunCommand added in v0.4.0

func (b *BashService) RunCommand(options *RunCommandOptions) (commandOutput *CommandOutput, err error)

func (*BashService) RunOneLiner added in v0.10.0

func (b *BashService) RunOneLiner(oneLiner string, verbose bool) (output *CommandOutput, err error)

func (*BashService) RunOneLinerAndGetStdoutAsString added in v0.10.0

func (b *BashService) RunOneLinerAndGetStdoutAsString(oneLiner string, verbose bool) (stdout string, err error)

type BinaryInfo added in v0.31.0

type BinaryInfo struct {
}

func GetBinaryInfo added in v0.31.0

func GetBinaryInfo() (binaryInfo *BinaryInfo)

func NewBinaryInfo added in v0.31.0

func NewBinaryInfo() (b *BinaryInfo)

func (*BinaryInfo) GetGitHash added in v0.31.0

func (b *BinaryInfo) GetGitHash() (gitHash string, err error)

func (*BinaryInfo) GetGitHashOrErrorMessageOnError added in v0.31.0

func (b *BinaryInfo) GetGitHashOrErrorMessageOnError() (gitHash string)

func (*BinaryInfo) GetInfoString added in v0.31.0

func (b *BinaryInfo) GetInfoString() (infoString string)

func (*BinaryInfo) GetSoftwareName added in v0.31.0

func (b *BinaryInfo) GetSoftwareName() (softwareName string)

func (*BinaryInfo) GetSoftwareNameString added in v0.31.0

func (b *BinaryInfo) GetSoftwareNameString() (version string)

func (*BinaryInfo) GetSoftwareVersionString added in v0.31.0

func (b *BinaryInfo) GetSoftwareVersionString() (version string)

func (*BinaryInfo) IsFallbackSoftwareNameSet added in v0.31.0

func (b *BinaryInfo) IsFallbackSoftwareNameSet() (isSet bool)

func (*BinaryInfo) IsSoftwareNameSet added in v0.31.0

func (b *BinaryInfo) IsSoftwareNameSet() (isSet bool)

func (*BinaryInfo) LogInfo added in v0.31.0

func (b *BinaryInfo) LogInfo()

func (*BinaryInfo) MustGetGitHash added in v0.31.0

func (b *BinaryInfo) MustGetGitHash() (gitHash string)

func (*BinaryInfo) MustSetFallbackSoftwareName added in v0.31.0

func (b *BinaryInfo) MustSetFallbackSoftwareName(defaultName string)

func (*BinaryInfo) SetFallbackSoftwareName added in v0.31.0

func (b *BinaryInfo) SetFallbackSoftwareName(defaultName string) (err error)

type ChecksumsService added in v0.1.4

type ChecksumsService struct {
}

func Checksums added in v0.1.4

func Checksums() (checksums *ChecksumsService)

func NewChecksumsService added in v0.1.4

func NewChecksumsService() (c *ChecksumsService)

func (*ChecksumsService) GetSha256SumFromBytes added in v0.14.4

func (c *ChecksumsService) GetSha256SumFromBytes(bytesToHash []byte) (checksum string)

func (*ChecksumsService) GetSha256SumFromString added in v0.1.4

func (c *ChecksumsService) GetSha256SumFromString(stringToHash string) (checksum string)

type ChownOptions added in v0.31.0

type ChownOptions struct {
	UserName  string
	GroupName string
	UseSudo   bool
	Verbose   bool
}

func NewChownOptions added in v0.31.0

func NewChownOptions() (c *ChownOptions)

func (*ChownOptions) GetGroupName added in v0.31.0

func (c *ChownOptions) GetGroupName() (GroupName string, err error)

func (*ChownOptions) GetUseSudo added in v0.31.0

func (c *ChownOptions) GetUseSudo() (useSudo bool)

func (*ChownOptions) GetUserAndOptionallyGroupForChownCommand added in v0.31.0

func (c *ChownOptions) GetUserAndOptionallyGroupForChownCommand() (userAndGroup string, err error)

func (*ChownOptions) GetUserName added in v0.31.0

func (c *ChownOptions) GetUserName() (userName string, err error)

func (*ChownOptions) GetVerbose added in v0.31.0

func (c *ChownOptions) GetVerbose() (verbose bool)

func (*ChownOptions) MustGetGroupName added in v0.31.0

func (c *ChownOptions) MustGetGroupName() (GroupName string)

func (*ChownOptions) MustGetUserAndOptionallyGroupForChownCommand added in v0.31.0

func (c *ChownOptions) MustGetUserAndOptionallyGroupForChownCommand() (userAndGroup string)

func (*ChownOptions) MustGetUserName added in v0.31.0

func (c *ChownOptions) MustGetUserName() (userName string)

func (*ChownOptions) MustSetGroupName added in v0.31.0

func (c *ChownOptions) MustSetGroupName(GroupName string)

func (*ChownOptions) MustSetUserName added in v0.31.0

func (c *ChownOptions) MustSetUserName(userName string)

func (*ChownOptions) SetGroupName added in v0.31.0

func (c *ChownOptions) SetGroupName(GroupName string) (err error)

func (*ChownOptions) SetUseSudo added in v0.31.0

func (c *ChownOptions) SetUseSudo(useSudo bool)

func (*ChownOptions) SetUserName added in v0.31.0

func (c *ChownOptions) SetUserName(userName string) (err error)

func (*ChownOptions) SetVerbose added in v0.31.0

func (c *ChownOptions) SetVerbose(verbose bool)

type CommandExecutor added in v0.4.0

type CommandExecutor interface {
	RunCommand(options *RunCommandOptions) (commandOutput *CommandOutput, err error)
	MustRunCommand(options *RunCommandOptions) (commandOutput *CommandOutput)

	// These Commands can be implemented by embedding the `CommandExecutorBase` struct:
	MustRunCommandAndGetStdoutAsBytes(options *RunCommandOptions) (stdout []byte)
	MustRunCommandAndGetStdoutAsFloat64(options *RunCommandOptions) (stdout float64)
	MustRunCommandAndGetStdoutAsLines(options *RunCommandOptions) (stdoutLines []string)
	MustRunCommandAndGetStdoutAsString(options *RunCommandOptions) (stdout string)
	RunCommandAndGetStdoutAsBytes(options *RunCommandOptions) (stdout []byte, err error)
	RunCommandAndGetStdoutAsFloat64(options *RunCommandOptions) (stdout float64, err error)
	RunCommandAndGetStdoutAsLines(options *RunCommandOptions) (stdoutLines []string, err error)
	RunCommandAndGetStdoutAsString(options *RunCommandOptions) (stdout string, err error)
}

A CommandExecutor is able to run a command like Exec or bash.

type CommandExecutorBase added in v0.4.0

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

func NewCommandExecutorBase added in v0.4.0

func NewCommandExecutorBase() (c *CommandExecutorBase)

func (*CommandExecutorBase) GetParentCommandExecutorForBaseClass added in v0.4.0

func (c *CommandExecutorBase) GetParentCommandExecutorForBaseClass() (parentCommandExecutorForBaseClass CommandExecutor, err error)

func (*CommandExecutorBase) MustGetParentCommandExecutorForBaseClass added in v0.4.0

func (c *CommandExecutorBase) MustGetParentCommandExecutorForBaseClass() (parentCommandExecutorForBaseClass CommandExecutor)

func (*CommandExecutorBase) MustRunCommandAndGetStdoutAsBytes added in v0.4.0

func (c *CommandExecutorBase) MustRunCommandAndGetStdoutAsBytes(options *RunCommandOptions) (stdout []byte)

func (*CommandExecutorBase) MustRunCommandAndGetStdoutAsFloat64 added in v0.4.0

func (c *CommandExecutorBase) MustRunCommandAndGetStdoutAsFloat64(options *RunCommandOptions) (stdout float64)

func (*CommandExecutorBase) MustRunCommandAndGetStdoutAsLines added in v0.4.2

func (c *CommandExecutorBase) MustRunCommandAndGetStdoutAsLines(options *RunCommandOptions) (stdoutLines []string)

func (*CommandExecutorBase) MustRunCommandAndGetStdoutAsString added in v0.4.0

func (c *CommandExecutorBase) MustRunCommandAndGetStdoutAsString(options *RunCommandOptions) (stdout string)

func (*CommandExecutorBase) MustSetParentCommandExecutorForBaseClass added in v0.4.0

func (c *CommandExecutorBase) MustSetParentCommandExecutorForBaseClass(parentCommandExecutorForBaseClass CommandExecutor)

func (*CommandExecutorBase) RunCommandAndGetStdoutAsBytes added in v0.4.0

func (c *CommandExecutorBase) RunCommandAndGetStdoutAsBytes(options *RunCommandOptions) (stdout []byte, err error)

func (*CommandExecutorBase) RunCommandAndGetStdoutAsFloat64 added in v0.4.0

func (c *CommandExecutorBase) RunCommandAndGetStdoutAsFloat64(options *RunCommandOptions) (stdout float64, err error)

func (*CommandExecutorBase) RunCommandAndGetStdoutAsLines added in v0.4.2

func (c *CommandExecutorBase) RunCommandAndGetStdoutAsLines(options *RunCommandOptions) (stdoutLines []string, err error)

func (*CommandExecutorBase) RunCommandAndGetStdoutAsString added in v0.4.0

func (c *CommandExecutorBase) RunCommandAndGetStdoutAsString(options *RunCommandOptions) (stdout string, err error)

func (*CommandExecutorBase) SetParentCommandExecutorForBaseClass added in v0.4.0

func (c *CommandExecutorBase) SetParentCommandExecutorForBaseClass(parentCommandExecutorForBaseClass CommandExecutor) (err error)

type CommandOutput added in v0.4.0

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

func NewCommandOutput added in v0.4.0

func NewCommandOutput() (c *CommandOutput)

func (*CommandOutput) GetCmdRunError added in v0.4.0

func (c *CommandOutput) GetCmdRunError() (cmdRunError *error, err error)

func (*CommandOutput) GetCmdRunErrorStringOrEmptyStringIfUnset added in v0.4.0

func (o *CommandOutput) GetCmdRunErrorStringOrEmptyStringIfUnset() (cmdRunErrorString string)

func (*CommandOutput) GetFirstLineOfStdoutAsString added in v0.25.0

func (c *CommandOutput) GetFirstLineOfStdoutAsString() (firstLine string, err error)

func (*CommandOutput) GetReturnCode added in v0.4.0

func (o *CommandOutput) GetReturnCode() (returnCode int, err error)

func (*CommandOutput) GetStderr added in v0.4.0

func (c *CommandOutput) GetStderr() (stderr *[]byte, err error)

func (*CommandOutput) GetStderrAsString added in v0.4.0

func (o *CommandOutput) GetStderrAsString() (stderr string, err error)

func (*CommandOutput) GetStderrAsStringOrEmptyIfUnset added in v0.4.0

func (o *CommandOutput) GetStderrAsStringOrEmptyIfUnset() (stderr string)

func (*CommandOutput) GetStdout added in v0.4.0

func (c *CommandOutput) GetStdout() (stdout *[]byte, err error)

func (*CommandOutput) GetStdoutAsBytes added in v0.4.0

func (o *CommandOutput) GetStdoutAsBytes() (stdout []byte, err error)

func (*CommandOutput) GetStdoutAsFloat64 added in v0.4.0

func (c *CommandOutput) GetStdoutAsFloat64() (stdout float64, err error)

func (*CommandOutput) GetStdoutAsLines added in v0.4.0

func (o *CommandOutput) GetStdoutAsLines() (stdoutLines []string, err error)

func (*CommandOutput) GetStdoutAsString added in v0.4.0

func (o *CommandOutput) GetStdoutAsString() (stdout string, err error)

func (*CommandOutput) IsExitSuccess added in v0.4.0

func (o *CommandOutput) IsExitSuccess() (isSuccess bool)

func (*CommandOutput) IsTimedOut added in v0.4.0

func (o *CommandOutput) IsTimedOut() (IsTimedOut bool, err error)

func (*CommandOutput) LogStdoutAsInfo added in v0.4.0

func (c *CommandOutput) LogStdoutAsInfo() (err error)

func (*CommandOutput) MustGetCmdRunError added in v0.4.0

func (c *CommandOutput) MustGetCmdRunError() (cmdRunError *error)

func (*CommandOutput) MustGetFirstLineOfStdoutAsString added in v0.25.0

func (c *CommandOutput) MustGetFirstLineOfStdoutAsString() (firstLine string)

func (*CommandOutput) MustGetReturnCode added in v0.4.0

func (c *CommandOutput) MustGetReturnCode() (returnCode int)

func (*CommandOutput) MustGetStderr added in v0.4.0

func (c *CommandOutput) MustGetStderr() (stderr *[]byte)

func (*CommandOutput) MustGetStderrAsString added in v0.4.0

func (c *CommandOutput) MustGetStderrAsString() (stdout string)

func (*CommandOutput) MustGetStdout added in v0.4.0

func (c *CommandOutput) MustGetStdout() (stdout *[]byte)

func (*CommandOutput) MustGetStdoutAsBytes added in v0.4.0

func (c *CommandOutput) MustGetStdoutAsBytes() (stdout []byte)

func (*CommandOutput) MustGetStdoutAsFloat64 added in v0.4.0

func (c *CommandOutput) MustGetStdoutAsFloat64() (stdout float64)

func (*CommandOutput) MustGetStdoutAsLines added in v0.4.0

func (c *CommandOutput) MustGetStdoutAsLines() (stdoutLines []string)

func (*CommandOutput) MustGetStdoutAsString added in v0.4.0

func (c *CommandOutput) MustGetStdoutAsString() (stdout string)

func (*CommandOutput) MustIsTimedOut added in v0.4.0

func (c *CommandOutput) MustIsTimedOut() (IsTimedOut bool)

func (*CommandOutput) MustLogStdoutAsInfo added in v0.4.0

func (c *CommandOutput) MustLogStdoutAsInfo()

func (*CommandOutput) MustSetReturnCode added in v0.4.0

func (c *CommandOutput) MustSetReturnCode(returnCode int)

func (*CommandOutput) MustSetStderr added in v0.4.0

func (c *CommandOutput) MustSetStderr(stderr []byte)

func (*CommandOutput) MustSetStdout added in v0.4.0

func (c *CommandOutput) MustSetStdout(stdout []byte)

func (*CommandOutput) SetCmdRunError added in v0.4.0

func (o *CommandOutput) SetCmdRunError(err error)

func (*CommandOutput) SetReturnCode added in v0.4.0

func (o *CommandOutput) SetReturnCode(returnCode int) (err error)

func (*CommandOutput) SetStderr added in v0.4.0

func (o *CommandOutput) SetStderr(stderr []byte) (err error)

func (*CommandOutput) SetStdout added in v0.4.0

func (o *CommandOutput) SetStdout(stdout []byte) (err error)

type ContinuousIntegrationService added in v0.13.2

type ContinuousIntegrationService struct {
}

func ContinuousIntegration added in v0.13.2

func ContinuousIntegration() (continuousIntegration *ContinuousIntegrationService)

func NewContinuousIntegrationService added in v0.13.2

func NewContinuousIntegrationService() (continuousIntegration *ContinuousIntegrationService)

func (*ContinuousIntegrationService) IsRunningInCircleCi added in v0.13.2

func (c *ContinuousIntegrationService) IsRunningInCircleCi() (isRunningInGitlab bool)

func (*ContinuousIntegrationService) IsRunningInContinuousIntegration added in v0.13.2

func (c *ContinuousIntegrationService) IsRunningInContinuousIntegration() (isRunningInContinousIntegration bool)

func (*ContinuousIntegrationService) IsRunningInGithub added in v0.13.2

func (c *ContinuousIntegrationService) IsRunningInGithub() (isRunningInGitlab bool)

func (*ContinuousIntegrationService) IsRunningInGitlab added in v0.13.2

func (c *ContinuousIntegrationService) IsRunningInGitlab() (isRunningInGitlab bool)

func (*ContinuousIntegrationService) IsRunningInTravis added in v0.13.2

func (c *ContinuousIntegrationService) IsRunningInTravis() (isRunningInGitlab bool)

type CreateRepositoryOptions added in v0.13.1

type CreateRepositoryOptions struct {
	BareRepository            bool
	Verbose                   bool
	InitializeWithEmptyCommit bool

	// Set the default author for the repository to a default one.
	// Mainly usefull for testing since the author stays everywhere the same.
	InitializeWithDefaultAuthor bool
}

func NewCreateRepositoryOptions added in v0.13.1

func NewCreateRepositoryOptions() (c *CreateRepositoryOptions)

func (*CreateRepositoryOptions) GetBareRepository added in v0.13.1

func (c *CreateRepositoryOptions) GetBareRepository() (bareRepository bool)

func (*CreateRepositoryOptions) GetInitializeWithEmptyCommit added in v0.14.1

func (c *CreateRepositoryOptions) GetInitializeWithEmptyCommit() (initializeWithEmptyCommit bool)

func (*CreateRepositoryOptions) GetVerbose added in v0.13.1

func (c *CreateRepositoryOptions) GetVerbose() (verbose bool)

func (*CreateRepositoryOptions) SetBareRepository added in v0.13.1

func (c *CreateRepositoryOptions) SetBareRepository(bareRepository bool)

func (*CreateRepositoryOptions) SetInitializeWithEmptyCommit added in v0.14.1

func (c *CreateRepositoryOptions) SetInitializeWithEmptyCommit(initializeWithEmptyCommit bool)

func (*CreateRepositoryOptions) SetVerbose added in v0.13.1

func (c *CreateRepositoryOptions) SetVerbose(verbose bool)

type DirectoriesService added in v0.6.0

type DirectoriesService struct {
}

func Directories added in v0.6.0

func Directories() (d *DirectoriesService)

func NewDirectoriesService added in v0.6.0

func NewDirectoriesService() (d *DirectoriesService)

func (*DirectoriesService) CreateLocalDirectoryByPath added in v0.6.0

func (d *DirectoriesService) CreateLocalDirectoryByPath(path string, verbose bool) (l Directory, err error)

func (*DirectoriesService) MustCreateLocalDirectoryByPath added in v0.6.0

func (d *DirectoriesService) MustCreateLocalDirectoryByPath(path string, verbose bool) (l Directory)

type Directory

type Directory interface {
	Create(verbose bool) (err error)
	CreateSubDirectory(subDirectoryName string, verbose bool) (createdSubDirectory Directory, err error)
	Delete(verbose bool) (err error)
	Exists() (exists bool, err error)
	GetBaseName() (baseName string, err error)
	GetDirName() (dirName string, err error)
	GetFileInDirectory(pathToFile ...string) (file File, err error)
	GetLocalPath() (localPath string, err error)
	GetSubDirectories(options *ListDirectoryOptions) (subDirectories []Directory, err error)
	GetSubDirectory(path ...string) (subDirectory Directory, err error)
	IsLocalDirectory() (isLocalDirectory bool)
	MustCreate(verbose bool)
	MustCreateSubDirectory(subDirectoryName string, verbose bool) (createdSubDirectory Directory)
	MustDelete(verbose bool)
	MustExists() (exists bool)
	MustGetBaseName() (baseName string)
	MustGetDirName() (dirName string)
	MustGetSubDirectory(path ...string) (subDirectory Directory)
	MustGetSubDirectories(options *ListDirectoryOptions) (subDirectories []Directory)
	MustGetFileInDirectory(pathToFile ...string) (file File)
	MustGetLocalPath() (localPath string)

	// All methods below this line can be implemented by embedding the `DirectoryBase` struct:
	GetFilePathInDirectory(path ...string) (filePath string, err error)
	FileInDirectoryExists(path ...string) (exists bool, err error)
	MustGetFilePathInDirectory(path ...string) (filePath string)
	MustFileInDirectoryExists(path ...string) (exists bool)
	MustReadFileInDirectoryAsString(path ...string) (content string)
	ReadFileInDirectoryAsString(path ...string) (content string, err error)
}

type DirectoryBase added in v0.9.0

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

func NewDirectoryBase added in v0.9.0

func NewDirectoryBase() (d *DirectoryBase)

func (*DirectoryBase) CreateFileInDirectoryFromString added in v0.14.7

func (d *DirectoryBase) CreateFileInDirectoryFromString(content string, verbose bool, pathToCreate ...string) (createdFile File, err error)

func (*DirectoryBase) FileInDirectoryExists added in v0.23.0

func (d *DirectoryBase) FileInDirectoryExists(path ...string) (fileExists bool, err error)

func (*DirectoryBase) GetFilePathInDirectory added in v0.9.0

func (d *DirectoryBase) GetFilePathInDirectory(path ...string) (filePath string, err error)

func (*DirectoryBase) GetParentDirectoryForBaseClass added in v0.9.0

func (d *DirectoryBase) GetParentDirectoryForBaseClass() (parentDirectoryForBaseClass Directory, err error)

func (*DirectoryBase) MustCreateFileInDirectoryFromString added in v0.14.7

func (d *DirectoryBase) MustCreateFileInDirectoryFromString(content string, verbose bool, pathToCreate ...string) (createdFile File)

func (*DirectoryBase) MustFileInDirectoryExists added in v0.23.0

func (d *DirectoryBase) MustFileInDirectoryExists(path ...string) (fileExists bool)

func (*DirectoryBase) MustGetFilePathInDirectory added in v0.9.0

func (d *DirectoryBase) MustGetFilePathInDirectory(path ...string) (filePath string)

func (*DirectoryBase) MustGetParentDirectoryForBaseClass added in v0.9.0

func (d *DirectoryBase) MustGetParentDirectoryForBaseClass() (parentDirectoryForBaseClass Directory)

func (*DirectoryBase) MustReadFileInDirectoryAsString added in v0.31.0

func (d *DirectoryBase) MustReadFileInDirectoryAsString(path ...string) (content string)

func (*DirectoryBase) MustSetParentDirectoryForBaseClass added in v0.9.0

func (d *DirectoryBase) MustSetParentDirectoryForBaseClass(parentDirectoryForBaseClass Directory)

func (*DirectoryBase) ReadFileInDirectoryAsString added in v0.31.0

func (d *DirectoryBase) ReadFileInDirectoryAsString(path ...string) (content string, err error)

func (*DirectoryBase) SetParentDirectoryForBaseClass added in v0.9.0

func (d *DirectoryBase) SetParentDirectoryForBaseClass(parentDirectoryForBaseClass Directory) (err error)

type DockerContainer added in v0.31.0

type DockerContainer struct {
	CommandExecutor
	// contains filtered or unexported fields
}

func NewDockerContainer added in v0.31.0

func NewDockerContainer() (dockerContainer *DockerContainer)

func (*DockerContainer) GetDockerService added in v0.31.0

func (c *DockerContainer) GetDockerService() (dockerService *DockerService, err error)

func (*DockerContainer) GetName added in v0.31.0

func (c *DockerContainer) GetName() (name string, err error)

func (*DockerContainer) IsRunning added in v0.31.0

func (c *DockerContainer) IsRunning(verbose bool) (isRunning bool, err error)

func (*DockerContainer) Kill added in v0.31.0

func (c *DockerContainer) Kill(verbose bool) (err error)

func (*DockerContainer) MustGetDockerService added in v0.31.0

func (d *DockerContainer) MustGetDockerService() (dockerService *DockerService)

func (*DockerContainer) MustGetName added in v0.31.0

func (d *DockerContainer) MustGetName() (name string)

func (*DockerContainer) MustIsRunning added in v0.31.0

func (d *DockerContainer) MustIsRunning(verbose bool) (isRunning bool)

func (*DockerContainer) MustKill added in v0.31.0

func (d *DockerContainer) MustKill(verbose bool)

func (*DockerContainer) MustSetDockerService added in v0.31.0

func (d *DockerContainer) MustSetDockerService(dockerService *DockerService)

func (*DockerContainer) MustSetName added in v0.31.0

func (d *DockerContainer) MustSetName(name string)

func (*DockerContainer) SetDockerService added in v0.31.0

func (c *DockerContainer) SetDockerService(dockerService *DockerService) (err error)

func (*DockerContainer) SetName added in v0.31.0

func (c *DockerContainer) SetName(name string) (err error)

type DockerRunContainerOptions added in v0.31.0

type DockerRunContainerOptions struct {
	ImageName               string
	Name                    string
	Command                 []string
	Ports                   []string
	Mounts                  []string
	KeepStoppedContainer    bool
	Verbose                 bool
	VerboseDockerRunCommand bool
	UseHostNet              bool
}

func NewDockerRunContainerOptions added in v0.31.0

func NewDockerRunContainerOptions() (d *DockerRunContainerOptions)

func (*DockerRunContainerOptions) GetCommand added in v0.31.0

func (d *DockerRunContainerOptions) GetCommand() (command []string, err error)

func (*DockerRunContainerOptions) GetImageName added in v0.31.0

func (o *DockerRunContainerOptions) GetImageName() (imageName string, err error)

func (*DockerRunContainerOptions) GetKeepStoppedContainer added in v0.31.0

func (d *DockerRunContainerOptions) GetKeepStoppedContainer() (keepStoppedContainer bool, err error)

func (*DockerRunContainerOptions) GetMounts added in v0.31.0

func (d *DockerRunContainerOptions) GetMounts() (mounts []string, err error)

func (*DockerRunContainerOptions) GetName added in v0.31.0

func (o *DockerRunContainerOptions) GetName() (name string, err error)

func (*DockerRunContainerOptions) GetPorts added in v0.31.0

func (d *DockerRunContainerOptions) GetPorts() (ports []string, err error)

func (*DockerRunContainerOptions) GetUseHostNet added in v0.31.0

func (d *DockerRunContainerOptions) GetUseHostNet() (useHostNet bool, err error)

func (*DockerRunContainerOptions) GetVerbose added in v0.31.0

func (d *DockerRunContainerOptions) GetVerbose() (verbose bool, err error)

func (*DockerRunContainerOptions) GetVerboseDockerRunCommand added in v0.31.0

func (d *DockerRunContainerOptions) GetVerboseDockerRunCommand() (verboseDockerRunCommand bool, err error)

func (*DockerRunContainerOptions) MustGetCommand added in v0.31.0

func (d *DockerRunContainerOptions) MustGetCommand() (command []string)

func (*DockerRunContainerOptions) MustGetImageName added in v0.31.0

func (d *DockerRunContainerOptions) MustGetImageName() (imageName string)

func (*DockerRunContainerOptions) MustGetKeepStoppedContainer added in v0.31.0

func (d *DockerRunContainerOptions) MustGetKeepStoppedContainer() (keepStoppedContainer bool)

func (*DockerRunContainerOptions) MustGetMounts added in v0.31.0

func (d *DockerRunContainerOptions) MustGetMounts() (mounts []string)

func (*DockerRunContainerOptions) MustGetName added in v0.31.0

func (d *DockerRunContainerOptions) MustGetName() (name string)

func (*DockerRunContainerOptions) MustGetPorts added in v0.31.0

func (d *DockerRunContainerOptions) MustGetPorts() (ports []string)

func (*DockerRunContainerOptions) MustGetUseHostNet added in v0.31.0

func (d *DockerRunContainerOptions) MustGetUseHostNet() (useHostNet bool)

func (*DockerRunContainerOptions) MustGetVerbose added in v0.31.0

func (d *DockerRunContainerOptions) MustGetVerbose() (verbose bool)

func (*DockerRunContainerOptions) MustGetVerboseDockerRunCommand added in v0.31.0

func (d *DockerRunContainerOptions) MustGetVerboseDockerRunCommand() (verboseDockerRunCommand bool)

func (*DockerRunContainerOptions) MustSetCommand added in v0.31.0

func (d *DockerRunContainerOptions) MustSetCommand(command []string)

func (*DockerRunContainerOptions) MustSetImageName added in v0.31.0

func (d *DockerRunContainerOptions) MustSetImageName(imageName string)

func (*DockerRunContainerOptions) MustSetKeepStoppedContainer added in v0.31.0

func (d *DockerRunContainerOptions) MustSetKeepStoppedContainer(keepStoppedContainer bool)

func (*DockerRunContainerOptions) MustSetMounts added in v0.31.0

func (d *DockerRunContainerOptions) MustSetMounts(mounts []string)

func (*DockerRunContainerOptions) MustSetName added in v0.31.0

func (d *DockerRunContainerOptions) MustSetName(name string)

func (*DockerRunContainerOptions) MustSetPorts added in v0.31.0

func (d *DockerRunContainerOptions) MustSetPorts(ports []string)

func (*DockerRunContainerOptions) MustSetUseHostNet added in v0.31.0

func (d *DockerRunContainerOptions) MustSetUseHostNet(useHostNet bool)

func (*DockerRunContainerOptions) MustSetVerbose added in v0.31.0

func (d *DockerRunContainerOptions) MustSetVerbose(verbose bool)

func (*DockerRunContainerOptions) MustSetVerboseDockerRunCommand added in v0.31.0

func (d *DockerRunContainerOptions) MustSetVerboseDockerRunCommand(verboseDockerRunCommand bool)

func (*DockerRunContainerOptions) SetCommand added in v0.31.0

func (d *DockerRunContainerOptions) SetCommand(command []string) (err error)

func (*DockerRunContainerOptions) SetImageName added in v0.31.0

func (d *DockerRunContainerOptions) SetImageName(imageName string) (err error)

func (*DockerRunContainerOptions) SetKeepStoppedContainer added in v0.31.0

func (d *DockerRunContainerOptions) SetKeepStoppedContainer(keepStoppedContainer bool) (err error)

func (*DockerRunContainerOptions) SetMounts added in v0.31.0

func (d *DockerRunContainerOptions) SetMounts(mounts []string) (err error)

func (*DockerRunContainerOptions) SetName added in v0.31.0

func (d *DockerRunContainerOptions) SetName(name string) (err error)

func (*DockerRunContainerOptions) SetPorts added in v0.31.0

func (d *DockerRunContainerOptions) SetPorts(ports []string) (err error)

func (*DockerRunContainerOptions) SetUseHostNet added in v0.31.0

func (d *DockerRunContainerOptions) SetUseHostNet(useHostNet bool) (err error)

func (*DockerRunContainerOptions) SetVerbose added in v0.31.0

func (d *DockerRunContainerOptions) SetVerbose(verbose bool) (err error)

func (*DockerRunContainerOptions) SetVerboseDockerRunCommand added in v0.31.0

func (d *DockerRunContainerOptions) SetVerboseDockerRunCommand(verboseDockerRunCommand bool) (err error)

type DockerService added in v0.31.0

type DockerService struct {
	CommandExecutor
	// contains filtered or unexported fields
}

func Docker added in v0.31.0

func Docker() (dockerService *DockerService)

func NewDockerService added in v0.31.0

func NewDockerService() (dockerService *DockerService)

func (*DockerService) GetDockerContainerByName added in v0.31.0

func (d *DockerService) GetDockerContainerByName(containerName string) (dockerContainer *DockerContainer, err error)

func (*DockerService) GetHost added in v0.31.0

func (d *DockerService) GetHost() (host *Host, err error)

func (*DockerService) IsHostSet added in v0.31.0

func (d *DockerService) IsHostSet() (isSet bool)

func (*DockerService) KillContainerByName added in v0.31.0

func (d *DockerService) KillContainerByName(name string, verbose bool) (err error)

func (*DockerService) MustGetDockerContainerByName added in v0.31.0

func (d *DockerService) MustGetDockerContainerByName(containerName string) (dockerContainer *DockerContainer)

func (*DockerService) MustGetHost added in v0.31.0

func (d *DockerService) MustGetHost() (host *Host)

func (*DockerService) MustKillContainerByName added in v0.31.0

func (d *DockerService) MustKillContainerByName(name string, verbose bool)

func (*DockerService) MustRunContainer added in v0.31.0

func (d *DockerService) MustRunContainer(runOptions *DockerRunContainerOptions) (startedContainer *DockerContainer)

func (*DockerService) MustSetHost added in v0.31.0

func (d *DockerService) MustSetHost(host *Host)

func (*DockerService) RunContainer added in v0.31.0

func (d *DockerService) RunContainer(runOptions *DockerRunContainerOptions) (startedContainer *DockerContainer, err error)

func (*DockerService) SetHost added in v0.31.0

func (d *DockerService) SetHost(host *Host) (err error)

type DurationFormatterService added in v0.2.0

type DurationFormatterService struct {
}

func DurationFormatter added in v0.2.0

func DurationFormatter() (d *DurationFormatterService)

func NewDurationFormatterService added in v0.2.0

func NewDurationFormatterService() (d *DurationFormatterService)

func (*DurationFormatterService) MustToString added in v0.2.0

func (d *DurationFormatterService) MustToString(duration *time.Duration) (durationString string)

func (*DurationFormatterService) ToString added in v0.2.0

func (d *DurationFormatterService) ToString(duration *time.Duration) (durationString string, err error)

type DurationParserService added in v0.4.0

type DurationParserService struct{}

func DurationParser added in v0.4.0

func DurationParser() (durationParser *DurationParserService)

func NewDurationParserService added in v0.4.0

func NewDurationParserService() (d *DurationParserService)

func (*DurationParserService) MustToSecondsAsString added in v0.4.0

func (d *DurationParserService) MustToSecondsAsString(durationString string) (secondsString string)

func (*DurationParserService) MustToSecondsAsTimeDuration added in v0.4.0

func (d *DurationParserService) MustToSecondsAsTimeDuration(durationString string) (duration *time.Duration)

func (*DurationParserService) MustToSecondsFloat64 added in v0.4.0

func (d *DurationParserService) MustToSecondsFloat64(durationString string) (seconds float64)

func (*DurationParserService) MustToSecondsInt64 added in v0.4.0

func (d *DurationParserService) MustToSecondsInt64(durationString string) (seconds int64)

func (*DurationParserService) ToSecondsAsString added in v0.4.0

func (d *DurationParserService) ToSecondsAsString(durationString string) (secondsString string, err error)

func (*DurationParserService) ToSecondsAsTimeDuration added in v0.4.0

func (d *DurationParserService) ToSecondsAsTimeDuration(durationString string) (duration *time.Duration, err error)

func (*DurationParserService) ToSecondsFloat64 added in v0.4.0

func (d *DurationParserService) ToSecondsFloat64(durationString string) (seconds float64, err error)

func (*DurationParserService) ToSecondsInt64 added in v0.4.0

func (d *DurationParserService) ToSecondsInt64(durationString string) (seconds int64, err error)

type ErrorsService

type ErrorsService struct{}

func Errors

func Errors() (e *ErrorsService)

func NewErrorsService

func NewErrorsService() (e *ErrorsService)

func (*ErrorsService) GetAsTracedError added in v0.28.0

func (e *ErrorsService) GetAsTracedError(errorToConvert error) (tracedError *TracedErrorType, err error)

func (ErrorsService) IsEmptyStringError

func (e ErrorsService) IsEmptyStringError(err error) (isEmptyStringError bool)

func (ErrorsService) IsNilError

func (e ErrorsService) IsNilError(err error) (IsNilError bool)

func (ErrorsService) IsNotImplementedError

func (e ErrorsService) IsNotImplementedError(err error) (isNotImplementedError bool)

func (ErrorsService) IsTracedError

func (e ErrorsService) IsTracedError(err error) (isTracedError bool)

Returns true if given error 'err' is a TracedError, false otherwise.

func (*ErrorsService) MustGetAsTracedError added in v0.28.0

func (e *ErrorsService) MustGetAsTracedError(errorToConvert error) (tracedError *TracedErrorType)

type ExecService added in v0.4.0

type ExecService struct {
	CommandExecutorBase
}

func Exec added in v0.4.0

func Exec() (e *ExecService)

func NewExec added in v0.4.0

func NewExec() (e *ExecService)

func NewExecService added in v0.4.0

func NewExecService() (e *ExecService)

func (*ExecService) MustRunCommand added in v0.4.0

func (e *ExecService) MustRunCommand(options *RunCommandOptions) (commandOutput *CommandOutput)

func (*ExecService) RunCommand added in v0.4.0

func (e *ExecService) RunCommand(options *RunCommandOptions) (commandOutput *CommandOutput, err error)

type ExitCodesService added in v0.4.0

type ExitCodesService struct {
}

func ExitCodes added in v0.4.0

func ExitCodes() (exitCodes *ExitCodesService)

func NewExitCodesService added in v0.4.0

func NewExitCodesService() (e *ExitCodesService)

func (*ExitCodesService) ExitCodeOK added in v0.4.0

func (e *ExitCodesService) ExitCodeOK() (exitCode int)

func (*ExitCodesService) ExitCodeTimeout added in v0.4.0

func (e *ExitCodesService) ExitCodeTimeout() (exitCode int)

type File

type File interface {
	AppendBytes(toWrite []byte, verbose bool) (err error)
	AppendString(toWrite string, verbose bool) (err error)
	Create(verbose bool) (err error)
	Delete(verbose bool) (err error)
	Exists() (exists bool, err error)
	GetBaseName() (baseName string, err error)
	GetDeepCopy() (deepCopy File)
	GetLocalPath() (localPath string, err error)
	GetParentDirectory() (parentDirectory Directory, err error)
	GetUriAsString() (uri string, err error)
	MustAppendBytes(toWrtie []byte, verbose bool)
	MustAppendString(toWrtie string, verbose bool)
	MustCreate(verbose bool)
	MustDelete(verbose bool)
	MustExists() (exists bool)
	MustGetBaseName() (baseName string)
	MustGetLocalPath() (localPath string)
	MustGetParentDirectory() (parentDirectory Directory)
	MustGetUriAsString() (uri string)
	MustReadAsBytes() (content []byte)
	MustWriteBytes(toWrite []byte, verbose bool)
	ReadAsBytes() (content []byte, err error)
	WriteBytes(toWrite []byte, verbose bool) (err error)

	// All methods below this line can be implemented by embedding the `FileBase` struct:
	GetSha256Sum() (sha256sum string, err error)
	GetTextBlocks(verbose bool) (textBlocks []string, err error)
	IsContentEqualByComparingSha256Sum(other File, verbose bool) (isMatching bool, err error)
	IsMatchingSha256Sum(sha256sum string) (isMatching bool, err error)
	MustGetSha256Sum() (sha256sum string)
	MustGetTextBlocks(verbose bool) (textBlocks []string)
	MustIsContentEqualByComparingSha256Sum(other File, verbose bool) (isMatching bool)
	MustIsMatchingSha256Sum(sha256sum string) (isMatching bool)
	MustReadAsLines() (contentLines []string)
	MustReadAsString() (content string)
	MustReadAsLinesWithoutComments() (contentLines []string)
	MustSortBlocksInFile(verbose bool)
	MustWriteString(content string, verbose bool)
	MustWriteTextBlocks(textBlocks []string, verose bool)
	ReadAsLines() (contentLines []string, err error)
	ReadAsLinesWithoutComments() (contentLines []string, err error)
	ReadAsString() (content string, err error)
	SortBlocksInFile(verbose bool) (err error)
	WriteString(content string, verbose bool) (err error)
	WriteTextBlocks(textBlocks []string, verbose bool) (err error)
}

A File represents any kind of file regardless if a local file or a remote file.

func EnableLoggingToUsersHome added in v0.9.0

func EnableLoggingToUsersHome(applicationName string, verbose bool) (logFile File, err error)

func GetFileByOsFile added in v0.1.3

func GetFileByOsFile(osFile *os.File) (file File, err error)

func MustEnableLoggingToUsersHome added in v0.9.0

func MustEnableLoggingToUsersHome(applicationName string, verbose bool) (logFile File)

func MustGetFileByOsFile added in v0.1.3

func MustGetFileByOsFile(osFile *os.File) (file File)

type FileBase added in v0.1.3

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

This is the base for `File` providing most convenience functions for file operations.

func NewFileBase added in v0.1.3

func NewFileBase() (f *FileBase)

func (*FileBase) GetParentFileForBaseClass added in v0.1.3

func (f *FileBase) GetParentFileForBaseClass() (parentFileForBaseClass File, err error)

func (*FileBase) GetSha256Sum added in v0.9.0

func (f *FileBase) GetSha256Sum() (sha256sum string, err error)

func (*FileBase) GetTextBlocks added in v0.20.0

func (f *FileBase) GetTextBlocks(verbose bool) (textBlocks []string, err error)

func (*FileBase) IsContentEqualByComparingSha256Sum added in v0.15.0

func (f *FileBase) IsContentEqualByComparingSha256Sum(otherFile File, verbose bool) (isEqual bool, err error)

func (*FileBase) IsMatchingSha256Sum added in v0.14.3

func (f *FileBase) IsMatchingSha256Sum(sha256sum string) (isMatching bool, err error)

func (*FileBase) MustGetParentFileForBaseClass added in v0.1.3

func (f *FileBase) MustGetParentFileForBaseClass() (parentFileForBaseClass File)

func (*FileBase) MustGetSha256Sum added in v0.9.0

func (f *FileBase) MustGetSha256Sum() (sha256sum string)

func (*FileBase) MustGetTextBlocks added in v0.20.0

func (f *FileBase) MustGetTextBlocks(verbose bool) (textBlocks []string)

func (*FileBase) MustIsContentEqualByComparingSha256Sum added in v0.15.0

func (f *FileBase) MustIsContentEqualByComparingSha256Sum(otherFile File, verbose bool) (isEqual bool)

func (*FileBase) MustIsMatchingSha256Sum added in v0.14.3

func (f *FileBase) MustIsMatchingSha256Sum(sha256sum string) (isMatching bool)

func (*FileBase) MustReadAsLines added in v0.20.0

func (f *FileBase) MustReadAsLines() (contentLines []string)

func (*FileBase) MustReadAsLinesWithoutComments added in v0.31.0

func (f *FileBase) MustReadAsLinesWithoutComments() (contentLines []string)

func (*FileBase) MustReadAsString added in v0.1.3

func (f *FileBase) MustReadAsString() (content string)

func (*FileBase) MustSetParentFileForBaseClass added in v0.1.3

func (f *FileBase) MustSetParentFileForBaseClass(parentFileForBaseClass File)

func (*FileBase) MustSortBlocksInFile added in v0.21.0

func (f *FileBase) MustSortBlocksInFile(verbose bool)

func (*FileBase) MustWriteString added in v0.1.3

func (f *FileBase) MustWriteString(toWrite string, verbose bool)

func (*FileBase) MustWriteTextBlocks added in v0.20.0

func (f *FileBase) MustWriteTextBlocks(textBlocks []string, verbose bool)

func (*FileBase) ReadAsLines added in v0.20.0

func (f *FileBase) ReadAsLines() (contentLines []string, err error)

func (*FileBase) ReadAsLinesWithoutComments added in v0.31.0

func (f *FileBase) ReadAsLinesWithoutComments() (contentLines []string, err error)

func (*FileBase) ReadAsString added in v0.1.3

func (f *FileBase) ReadAsString() (content string, err error)

func (*FileBase) SetParentFileForBaseClass added in v0.1.3

func (f *FileBase) SetParentFileForBaseClass(parentFileForBaseClass File) (err error)

func (*FileBase) SortBlocksInFile added in v0.21.0

func (f *FileBase) SortBlocksInFile(verbose bool) (err error)

func (*FileBase) WriteString added in v0.1.3

func (f *FileBase) WriteString(toWrite string, verbose bool) (err error)

func (*FileBase) WriteTextBlocks added in v0.20.0

func (f *FileBase) WriteTextBlocks(textBlocks []string, verbose bool) (err error)

type FilesService added in v0.21.2

type FilesService struct {
}

func Files added in v0.21.2

func Files() (f *FilesService)

func NewFilesService added in v0.21.2

func NewFilesService() (f *FilesService)

func (*FilesService) MustWriteStringToFile added in v0.21.2

func (f *FilesService) MustWriteStringToFile(path string, content string, verbose bool)

func (*FilesService) WriteStringToFile added in v0.21.2

func (f *FilesService) WriteStringToFile(path string, content string, verbose bool) (err error)

type GitCommit added in v0.11.0

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

func NewGitCommit added in v0.11.0

func NewGitCommit() (g *GitCommit)

func (*GitCommit) GetAgeSeconds added in v0.33.0

func (g *GitCommit) GetAgeSeconds() (age float64, err error)

func (*GitCommit) GetAuthorEmail added in v0.33.0

func (g *GitCommit) GetAuthorEmail() (authorEmail string, err error)

func (*GitCommit) GetAuthorString added in v0.33.0

func (g *GitCommit) GetAuthorString() (authorString string, err error)

func (*GitCommit) GetCommitMessage added in v0.33.0

func (g *GitCommit) GetCommitMessage() (commitMessage string, err error)

func (*GitCommit) GetGitRepo added in v0.11.0

func (g *GitCommit) GetGitRepo() (gitRepo GitRepository, err error)

func (*GitCommit) GetHash added in v0.11.0

func (g *GitCommit) GetHash() (hash string, err error)

func (*GitCommit) GetParentCommits added in v0.34.0

func (g *GitCommit) GetParentCommits(options *GitCommitGetParentsOptions) (parentCommit []*GitCommit, err error)

func (*GitCommit) HasParentCommit added in v0.34.0

func (g *GitCommit) HasParentCommit() (hasParentCommit bool, err error)

func (*GitCommit) MustGetAgeSeconds added in v0.33.0

func (g *GitCommit) MustGetAgeSeconds() (age float64)

func (*GitCommit) MustGetAuthorEmail added in v0.33.0

func (g *GitCommit) MustGetAuthorEmail() (authorEmail string)

func (*GitCommit) MustGetAuthorString added in v0.33.0

func (g *GitCommit) MustGetAuthorString() (authorString string)

func (*GitCommit) MustGetCommitMessage added in v0.33.0

func (g *GitCommit) MustGetCommitMessage() (commitMessage string)

func (*GitCommit) MustGetGitRepo added in v0.11.0

func (g *GitCommit) MustGetGitRepo() (gitRepo GitRepository)

func (*GitCommit) MustGetHash added in v0.11.0

func (g *GitCommit) MustGetHash() (hash string)

func (*GitCommit) MustGetParentCommits added in v0.34.0

func (g *GitCommit) MustGetParentCommits(options *GitCommitGetParentsOptions) (parentCommit []*GitCommit)

func (*GitCommit) MustHasParentCommit added in v0.34.0

func (g *GitCommit) MustHasParentCommit() (hasParentCommit bool)

func (*GitCommit) MustSetGitRepo added in v0.11.0

func (g *GitCommit) MustSetGitRepo(gitRepo GitRepository)

func (*GitCommit) MustSetHash added in v0.11.0

func (g *GitCommit) MustSetHash(hash string)

func (*GitCommit) SetGitRepo added in v0.11.0

func (g *GitCommit) SetGitRepo(gitRepo GitRepository) (err error)

func (*GitCommit) SetHash added in v0.11.0

func (g *GitCommit) SetHash(hash string) (err error)

type GitCommitGetParentsOptions added in v0.34.0

type GitCommitGetParentsOptions struct {
	IncludeParentsOfParents bool
	Verbose                 bool
}

type GitCommitOptions added in v0.11.0

type GitCommitOptions struct {
	Message    string
	AllowEmpty bool
	Verbose    bool
}

func NewGitCommitOptions added in v0.11.0

func NewGitCommitOptions() (g *GitCommitOptions)

func (*GitCommitOptions) GetAllowEmpty added in v0.11.0

func (g *GitCommitOptions) GetAllowEmpty() (allowEmpty bool)

func (*GitCommitOptions) GetMessage added in v0.11.0

func (g *GitCommitOptions) GetMessage() (message string, err error)

func (*GitCommitOptions) GetVerbose added in v0.11.0

func (g *GitCommitOptions) GetVerbose() (verbose bool)

func (*GitCommitOptions) MustGetMessage added in v0.11.0

func (g *GitCommitOptions) MustGetMessage() (message string)

func (*GitCommitOptions) MustSetMessage added in v0.11.0

func (g *GitCommitOptions) MustSetMessage(message string)

func (*GitCommitOptions) SetAllowEmpty added in v0.11.0

func (g *GitCommitOptions) SetAllowEmpty(allowEmpty bool)

func (*GitCommitOptions) SetMessage added in v0.11.0

func (g *GitCommitOptions) SetMessage(message string) (err error)

func (*GitCommitOptions) SetVerbose added in v0.11.0

func (g *GitCommitOptions) SetVerbose(verbose bool)

type GitConfigSetOptions added in v0.11.0

type GitConfigSetOptions struct {
	Name    string
	Email   string
	Verbose bool
}

func NewGitConfigSetOptions added in v0.11.0

func NewGitConfigSetOptions() (g *GitConfigSetOptions)

func (*GitConfigSetOptions) GetEmail added in v0.11.0

func (g *GitConfigSetOptions) GetEmail() (email string, err error)

func (*GitConfigSetOptions) GetName added in v0.11.0

func (g *GitConfigSetOptions) GetName() (name string, err error)

func (*GitConfigSetOptions) GetVerbose added in v0.11.0

func (g *GitConfigSetOptions) GetVerbose() (verbose bool)

func (*GitConfigSetOptions) IsEmailSet added in v0.11.0

func (g *GitConfigSetOptions) IsEmailSet() (isSet bool)

func (*GitConfigSetOptions) IsNameSet added in v0.11.0

func (g *GitConfigSetOptions) IsNameSet() (isSet bool)

func (*GitConfigSetOptions) MustGetEmail added in v0.11.0

func (g *GitConfigSetOptions) MustGetEmail() (email string)

func (*GitConfigSetOptions) MustGetName added in v0.11.0

func (g *GitConfigSetOptions) MustGetName() (name string)

func (*GitConfigSetOptions) MustSetEmail added in v0.11.0

func (g *GitConfigSetOptions) MustSetEmail(email string)

func (*GitConfigSetOptions) MustSetName added in v0.11.0

func (g *GitConfigSetOptions) MustSetName(name string)

func (*GitConfigSetOptions) SetEmail added in v0.11.0

func (g *GitConfigSetOptions) SetEmail(email string) (err error)

func (*GitConfigSetOptions) SetName added in v0.11.0

func (g *GitConfigSetOptions) SetName(name string) (err error)

func (*GitConfigSetOptions) SetVerbose added in v0.11.0

func (g *GitConfigSetOptions) SetVerbose(verbose bool)

type GitRepositoriesService added in v0.11.0

type GitRepositoriesService struct {
}

func GitRepositories added in v0.11.0

func GitRepositories() (g *GitRepositoriesService)

func NewGitRepositories added in v0.11.0

func NewGitRepositories() (g *GitRepositoriesService)

func NewGitRepositoriesService added in v0.11.0

func NewGitRepositoriesService() (g *GitRepositoriesService)

func (*GitRepositoriesService) CloneGitRepositoryToDirectory added in v0.14.1

func (g *GitRepositoriesService) CloneGitRepositoryToDirectory(toClone GitRepository, destinationPath string, verbose bool) (repo *LocalGitRepository, err error)

func (*GitRepositoriesService) CloneGitRepositoryToTemporaryDirectory added in v0.14.1

func (g *GitRepositoriesService) CloneGitRepositoryToTemporaryDirectory(toClone GitRepository, verbose bool) (repo *LocalGitRepository, err error)

func (*GitRepositoriesService) CloneToDirectoryByPath added in v0.11.0

func (g *GitRepositoriesService) CloneToDirectoryByPath(urlOrPath string, destinationPath string, verbose bool) (repo *LocalGitRepository, err error)

func (*GitRepositoriesService) CloneToTemporaryDirectory added in v0.11.0

func (g *GitRepositoriesService) CloneToTemporaryDirectory(urlOrPath string, verbose bool) (repo *LocalGitRepository, err error)

func (*GitRepositoriesService) CreateTemporaryInitializedRepository added in v0.11.0

func (g *GitRepositoriesService) CreateTemporaryInitializedRepository(options *CreateRepositoryOptions) (repo *LocalGitRepository, err error)

func (*GitRepositoriesService) MustCloneGitRepositoryToDirectory added in v0.14.1

func (g *GitRepositoriesService) MustCloneGitRepositoryToDirectory(toClone GitRepository, destinationPath string, verbose bool) (repo *LocalGitRepository)

func (*GitRepositoriesService) MustCloneGitRepositoryToTemporaryDirectory added in v0.14.1

func (g *GitRepositoriesService) MustCloneGitRepositoryToTemporaryDirectory(toClone GitRepository, verbose bool) (repo *LocalGitRepository)

func (*GitRepositoriesService) MustCloneToDirectoryByPath added in v0.11.0

func (g *GitRepositoriesService) MustCloneToDirectoryByPath(urlOrPath string, destinationPath string, verbose bool) (repo *LocalGitRepository)

func (*GitRepositoriesService) MustCloneToTemporaryDirectory added in v0.11.0

func (g *GitRepositoriesService) MustCloneToTemporaryDirectory(urlOrPath string, verbose bool) (repo *LocalGitRepository)

func (*GitRepositoriesService) MustCreateTemporaryInitializedRepository added in v0.11.0

func (g *GitRepositoriesService) MustCreateTemporaryInitializedRepository(options *CreateRepositoryOptions) (repo *LocalGitRepository)

type GitRepository added in v0.11.0

type GitRepository interface {
	CommitHasParentCommitByCommitHash(hash string) (hasParentCommit bool, err error)
	GetAuthorEmailByCommitHash(hash string) (authorEmail string, err error)
	GetAuthorStringByCommitHash(hash string) (authorString string, err error)
	GetCommitAgeDurationByCommitHash(hash string) (ageDuration *time.Duration, err error)
	GetCommitAgeSecondsByCommitHash(hash string) (ageSeconds float64, err error)
	GetCommitMessageByCommitHash(hash string) (commitMessage string, err error)
	GetCommitParentsByCommitHash(hash string, options *GitCommitGetParentsOptions) (commitParents []*GitCommit, err error)
	GetCommitTimeByCommitHash(hash string) (commitTime *time.Time, err error)

	MustCommitHasParentCommitByCommitHash(hash string) (hasParentCommit bool)
	MustGetAuthorEmailByCommitHash(hash string) (authorEmail string)
	MustGetAuthorStringByCommitHash(hash string) (authorString string)
	MustGetCommitAgeDurationByCommitHash(hash string) (ageDuration *time.Duration)
	MustGetCommitAgeSecondsByCommitHash(hash string) (ageSeconds float64)
	MustGetCommitMessageByCommitHash(hash string) (commitMessage string)
	MustGetCommitParentsByCommitHash(hash string, options *GitCommitGetParentsOptions) (commitParents []*GitCommit)
	MustGetCommitTimeByCommitHash(hash string) (commitTime *time.Time)
}

A git repository can be a LocalGitRepository or remote repositories like Gitlab or Github.

type GitTag added in v0.34.2

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

func NewGitTag added in v0.34.2

func NewGitTag() (g *GitTag)

func (*GitTag) GetGitRepository added in v0.34.2

func (g *GitTag) GetGitRepository() (gitRepository GitRepository, err error)

func (*GitTag) GetHash added in v0.34.2

func (g *GitTag) GetHash() (hash string, err error)

func (*GitTag) MustGetGitRepository added in v0.34.2

func (g *GitTag) MustGetGitRepository() (gitRepository GitRepository)

func (*GitTag) MustGetHash added in v0.34.2

func (g *GitTag) MustGetHash() (hash string)

func (*GitTag) MustSetGitRepository added in v0.34.2

func (g *GitTag) MustSetGitRepository(gitRepository GitRepository)

func (*GitTag) MustSetHash added in v0.34.2

func (g *GitTag) MustSetHash(hash string)

func (*GitTag) SetGitRepository added in v0.34.2

func (g *GitTag) SetGitRepository(gitRepository GitRepository) (err error)

func (*GitTag) SetHash added in v0.34.2

func (g *GitTag) SetHash(hash string) (err error)

type GitlabAddRunnerOptions added in v0.31.0

type GitlabAddRunnerOptions struct {
	Name       string
	RunnerTags []string
	Verbose    bool
}

func NewGitlabAddRunnerOptions added in v0.31.0

func NewGitlabAddRunnerOptions() (g *GitlabAddRunnerOptions)

func (*GitlabAddRunnerOptions) GetName added in v0.31.0

func (g *GitlabAddRunnerOptions) GetName() (name string, err error)

func (*GitlabAddRunnerOptions) GetRunnerName added in v0.31.0

func (o *GitlabAddRunnerOptions) GetRunnerName() (runnerName string, err error)

func (*GitlabAddRunnerOptions) GetRunnerTags added in v0.31.0

func (g *GitlabAddRunnerOptions) GetRunnerTags() (runnerTags []string, err error)

func (*GitlabAddRunnerOptions) GetTags added in v0.31.0

func (o *GitlabAddRunnerOptions) GetTags() (runnerTags []string, err error)

func (*GitlabAddRunnerOptions) GetTagsCommaSeparated added in v0.31.0

func (o *GitlabAddRunnerOptions) GetTagsCommaSeparated() (tagsCommaSeperated string, err error)

func (*GitlabAddRunnerOptions) GetVerbose added in v0.31.0

func (g *GitlabAddRunnerOptions) GetVerbose() (verbose bool, err error)

func (*GitlabAddRunnerOptions) MustGetName added in v0.31.0

func (g *GitlabAddRunnerOptions) MustGetName() (name string)

func (*GitlabAddRunnerOptions) MustGetRunnerName added in v0.31.0

func (g *GitlabAddRunnerOptions) MustGetRunnerName() (runnerName string)

func (*GitlabAddRunnerOptions) MustGetRunnerTags added in v0.31.0

func (g *GitlabAddRunnerOptions) MustGetRunnerTags() (runnerTags []string)

func (*GitlabAddRunnerOptions) MustGetTags added in v0.31.0

func (g *GitlabAddRunnerOptions) MustGetTags() (runnerTags []string)

func (*GitlabAddRunnerOptions) MustGetTagsCommaSeparated added in v0.31.0

func (g *GitlabAddRunnerOptions) MustGetTagsCommaSeparated() (tagsCommaSeperated string)

func (*GitlabAddRunnerOptions) MustGetVerbose added in v0.31.0

func (g *GitlabAddRunnerOptions) MustGetVerbose() (verbose bool)

func (*GitlabAddRunnerOptions) MustSetName added in v0.31.0

func (g *GitlabAddRunnerOptions) MustSetName(name string)

func (*GitlabAddRunnerOptions) MustSetRunnerTags added in v0.31.0

func (g *GitlabAddRunnerOptions) MustSetRunnerTags(runnerTags []string)

func (*GitlabAddRunnerOptions) MustSetVerbose added in v0.31.0

func (g *GitlabAddRunnerOptions) MustSetVerbose(verbose bool)

func (*GitlabAddRunnerOptions) SetName added in v0.31.0

func (g *GitlabAddRunnerOptions) SetName(name string) (err error)

func (*GitlabAddRunnerOptions) SetRunnerTags added in v0.31.0

func (g *GitlabAddRunnerOptions) SetRunnerTags(runnerTags []string) (err error)

func (*GitlabAddRunnerOptions) SetVerbose added in v0.31.0

func (g *GitlabAddRunnerOptions) SetVerbose(verbose bool) (err error)

type GitlabAuthenticationOptions added in v0.13.0

type GitlabAuthenticationOptions struct {
	AccessToken            string
	AccessTokensFromGopass []string
	Verbose                bool
	GitlabUrl              string
}

func NewGitlabAuthenticationOptions added in v0.13.0

func NewGitlabAuthenticationOptions() (g *GitlabAuthenticationOptions)

func (*GitlabAuthenticationOptions) GetAccessToken added in v0.32.0

func (g *GitlabAuthenticationOptions) GetAccessToken() (accessToken string, err error)

func (*GitlabAuthenticationOptions) GetAccessTokensFromGopass added in v0.13.0

func (g *GitlabAuthenticationOptions) GetAccessTokensFromGopass() (accessTokensFromGopass []string, err error)

func (*GitlabAuthenticationOptions) GetGitlabUrl added in v0.13.0

func (g *GitlabAuthenticationOptions) GetGitlabUrl() (gitlabUrl string, err error)

func (*GitlabAuthenticationOptions) GetVerbose added in v0.13.0

func (g *GitlabAuthenticationOptions) GetVerbose() (verbose bool, err error)

func (*GitlabAuthenticationOptions) IsAccessTokenSet added in v0.32.0

func (g *GitlabAuthenticationOptions) IsAccessTokenSet() (isSet bool)

func (*GitlabAuthenticationOptions) IsAuthenticatingAgainst added in v0.13.0

func (g *GitlabAuthenticationOptions) IsAuthenticatingAgainst(serviceName string) (isAuthenticatingAgainst bool, err error)

func (*GitlabAuthenticationOptions) IsVerbose added in v0.13.0

func (g *GitlabAuthenticationOptions) IsVerbose() (isVerbose bool)

func (*GitlabAuthenticationOptions) MustGetAccessToken added in v0.32.0

func (g *GitlabAuthenticationOptions) MustGetAccessToken() (accessToken string)

func (*GitlabAuthenticationOptions) MustGetAccessTokensFromGopass added in v0.13.0

func (g *GitlabAuthenticationOptions) MustGetAccessTokensFromGopass() (accessTokensFromGopass []string)

func (*GitlabAuthenticationOptions) MustGetGitlabUrl added in v0.13.0

func (g *GitlabAuthenticationOptions) MustGetGitlabUrl() (gitlabUrl string)

func (*GitlabAuthenticationOptions) MustGetVerbose added in v0.13.0

func (g *GitlabAuthenticationOptions) MustGetVerbose() (verbose bool)

func (*GitlabAuthenticationOptions) MustIsAuthenticatingAgainst added in v0.13.0

func (g *GitlabAuthenticationOptions) MustIsAuthenticatingAgainst(serviceName string) (isAuthenticatingAgainst bool)

func (*GitlabAuthenticationOptions) MustSetAccessToken added in v0.32.0

func (g *GitlabAuthenticationOptions) MustSetAccessToken(accessToken string)

func (*GitlabAuthenticationOptions) MustSetAccessTokensFromGopass added in v0.13.0

func (g *GitlabAuthenticationOptions) MustSetAccessTokensFromGopass(accessTokensFromGopass []string)

func (*GitlabAuthenticationOptions) MustSetGitlabUrl added in v0.13.0

func (g *GitlabAuthenticationOptions) MustSetGitlabUrl(gitlabUrl string)

func (*GitlabAuthenticationOptions) MustSetVerbose added in v0.13.0

func (g *GitlabAuthenticationOptions) MustSetVerbose(verbose bool)

func (*GitlabAuthenticationOptions) SetAccessToken added in v0.32.0

func (g *GitlabAuthenticationOptions) SetAccessToken(accessToken string) (err error)

func (*GitlabAuthenticationOptions) SetAccessTokensFromGopass added in v0.13.0

func (g *GitlabAuthenticationOptions) SetAccessTokensFromGopass(accessTokensFromGopass []string) (err error)

func (*GitlabAuthenticationOptions) SetGitlabUrl added in v0.13.0

func (g *GitlabAuthenticationOptions) SetGitlabUrl(gitlabUrl string) (err error)

func (*GitlabAuthenticationOptions) SetVerbose added in v0.13.0

func (g *GitlabAuthenticationOptions) SetVerbose(verbose bool) (err error)

type GitlabCiYamlFile added in v0.20.0

type GitlabCiYamlFile struct {
	LocalFile
}

func GetGitlabCiYamlFileByFile added in v0.20.0

func GetGitlabCiYamlFileByFile(file File) (gitlabCiYamlFile *GitlabCiYamlFile, err error)

func GetGitlabCiYamlFileByLocalFile added in v0.20.0

func GetGitlabCiYamlFileByLocalFile(localFile *LocalFile) (gitlabCiYamlFile *GitlabCiYamlFile, err error)

func GetGitlabCiYamlFileByPath added in v0.20.0

func GetGitlabCiYamlFileByPath(filePath string) (gitlabCiYamlFile *GitlabCiYamlFile, err error)

func MustGetGitlabCiYamlFileByFile added in v0.20.0

func MustGetGitlabCiYamlFileByFile(file File) (gitlabCiYamlFile *GitlabCiYamlFile)

func MustGetGitlabCiYamlFileByLocalFile added in v0.20.0

func MustGetGitlabCiYamlFileByLocalFile(localFile *LocalFile) (gitlabCiYamlFile *GitlabCiYamlFile)

func MustGetGitlabCiYamlFileByPath added in v0.20.0

func MustGetGitlabCiYamlFileByPath(filePath string) (gitlabCiYamlFile *GitlabCiYamlFile)

func NewGitlabCiYamlFile added in v0.20.0

func NewGitlabCiYamlFile() (g *GitlabCiYamlFile)

func (*GitlabCiYamlFile) AddInclude added in v0.20.0

func (g *GitlabCiYamlFile) AddInclude(include *GitlabCiYamlInclude, verbose bool) (err error)

func (*GitlabCiYamlFile) ContainsInclude added in v0.20.0

func (g *GitlabCiYamlFile) ContainsInclude(include *GitlabCiYamlInclude, ignoreVersion bool, verbose bool) (containsInclude bool, err error)

func (*GitlabCiYamlFile) GetIncludes added in v0.20.0

func (g *GitlabCiYamlFile) GetIncludes(verbose bool) (includes []*GitlabCiYamlInclude, err error)

func (*GitlabCiYamlFile) GetTextBlocksWithoutIncludes added in v0.20.0

func (g *GitlabCiYamlFile) GetTextBlocksWithoutIncludes(verbose bool) (textBlocks []string, err error)

func (*GitlabCiYamlFile) MustAddInclude added in v0.20.0

func (g *GitlabCiYamlFile) MustAddInclude(include *GitlabCiYamlInclude, verbose bool)

func (*GitlabCiYamlFile) MustContainsInclude added in v0.20.0

func (g *GitlabCiYamlFile) MustContainsInclude(include *GitlabCiYamlInclude, ignoreVersion bool, verbose bool) (containsInclude bool)

func (*GitlabCiYamlFile) MustGetIncludes added in v0.20.0

func (g *GitlabCiYamlFile) MustGetIncludes(verbose bool) (includes []*GitlabCiYamlInclude)

func (*GitlabCiYamlFile) MustGetTextBlocksWithoutIncludes added in v0.20.0

func (g *GitlabCiYamlFile) MustGetTextBlocksWithoutIncludes(verbose bool) (textBlocks []string)

func (*GitlabCiYamlFile) MustRewriteIncludes added in v0.20.0

func (g *GitlabCiYamlFile) MustRewriteIncludes(includes []*GitlabCiYamlInclude, verbose bool)

func (*GitlabCiYamlFile) RewriteIncludes added in v0.20.0

func (g *GitlabCiYamlFile) RewriteIncludes(includes []*GitlabCiYamlInclude, verbose bool) (err error)

type GitlabCiYamlInclude added in v0.20.0

type GitlabCiYamlInclude struct {
	Project string `yaml:"project"`
	File    string `yaml:"file"`
	Ref     string `yaml:"ref"`
}

func NewGitlabCiYamlInclude added in v0.20.0

func NewGitlabCiYamlInclude() (g *GitlabCiYamlInclude)

func (*GitlabCiYamlInclude) EqualsIgnoreVersion added in v0.20.0

func (g *GitlabCiYamlInclude) EqualsIgnoreVersion(other *GitlabCiYamlInclude) (isEqual bool, err error)

func (*GitlabCiYamlInclude) GetFile added in v0.20.0

func (g *GitlabCiYamlInclude) GetFile() (file string, err error)

func (*GitlabCiYamlInclude) GetLoggableString added in v0.20.0

func (g *GitlabCiYamlInclude) GetLoggableString() (loggableString string, err error)

func (*GitlabCiYamlInclude) GetProject added in v0.20.0

func (g *GitlabCiYamlInclude) GetProject() (project string, err error)

func (*GitlabCiYamlInclude) GetProjectAndFile added in v0.20.0

func (g *GitlabCiYamlInclude) GetProjectAndFile() (project string, file string, err error)

func (*GitlabCiYamlInclude) GetRef added in v0.20.0

func (g *GitlabCiYamlInclude) GetRef() (ref string, err error)

func (*GitlabCiYamlInclude) IsEmpty added in v0.20.0

func (g *GitlabCiYamlInclude) IsEmpty() (isEmpty bool)

func (*GitlabCiYamlInclude) IsNonEmpty added in v0.20.0

func (g *GitlabCiYamlInclude) IsNonEmpty() (isNonEmpty bool)

func (*GitlabCiYamlInclude) MustEqualsIgnoreVersion added in v0.20.0

func (g *GitlabCiYamlInclude) MustEqualsIgnoreVersion(other *GitlabCiYamlInclude) (isEqual bool)

func (*GitlabCiYamlInclude) MustGetFile added in v0.20.0

func (g *GitlabCiYamlInclude) MustGetFile() (file string)

func (*GitlabCiYamlInclude) MustGetLoggableString added in v0.20.0

func (g *GitlabCiYamlInclude) MustGetLoggableString() (loggableString string)

func (*GitlabCiYamlInclude) MustGetProject added in v0.20.0

func (g *GitlabCiYamlInclude) MustGetProject() (project string)

func (*GitlabCiYamlInclude) MustGetProjectAndFile added in v0.20.0

func (g *GitlabCiYamlInclude) MustGetProjectAndFile() (project string, file string)

func (*GitlabCiYamlInclude) MustGetRef added in v0.20.0

func (g *GitlabCiYamlInclude) MustGetRef() (ref string)

func (*GitlabCiYamlInclude) MustSetFile added in v0.20.0

func (g *GitlabCiYamlInclude) MustSetFile(file string)

func (*GitlabCiYamlInclude) MustSetProject added in v0.20.0

func (g *GitlabCiYamlInclude) MustSetProject(project string)

func (*GitlabCiYamlInclude) MustSetRef added in v0.20.0

func (g *GitlabCiYamlInclude) MustSetRef(ref string)

func (*GitlabCiYamlInclude) SetFile added in v0.20.0

func (g *GitlabCiYamlInclude) SetFile(file string) (err error)

func (*GitlabCiYamlInclude) SetProject added in v0.20.0

func (g *GitlabCiYamlInclude) SetProject(project string) (err error)

func (*GitlabCiYamlInclude) SetRef added in v0.20.0

func (g *GitlabCiYamlInclude) SetRef(ref string) (err error)

func (*GitlabCiYamlInclude) UnmarshalYAML added in v0.27.1

func (g *GitlabCiYamlInclude) UnmarshalYAML(unmarshal func(interface{}) error) (err error)

The UnmarshalYAML is used as custom unmarshal function to avoid issues with multinine file sections. E.g this works anyway:

include:

  • file: "c.yaml"

But this is a problem without custom UnmarshalYaml function:

include:

  • file:
  • "c.yaml"

type GitlabCreateAccessTokenOptions added in v0.31.0

type GitlabCreateAccessTokenOptions struct {
	UserName  string
	TokenName string
	Scopes    []string
	ExpiresAt *time.Time
	Verbose   bool
}

func NewGitlabCreateAccessTokenOptions added in v0.31.0

func NewGitlabCreateAccessTokenOptions() (g *GitlabCreateAccessTokenOptions)

func (*GitlabCreateAccessTokenOptions) GetExipiresAtOrDefaultIfUnset added in v0.31.0

func (o *GitlabCreateAccessTokenOptions) GetExipiresAtOrDefaultIfUnset() (expiresAt *time.Time, err error)

func (*GitlabCreateAccessTokenOptions) GetExpiresAt added in v0.31.0

func (g *GitlabCreateAccessTokenOptions) GetExpiresAt() (expiresAt *time.Time, err error)

func (*GitlabCreateAccessTokenOptions) GetScopes added in v0.31.0

func (o *GitlabCreateAccessTokenOptions) GetScopes() (scopes []string, err error)

func (*GitlabCreateAccessTokenOptions) GetTokenName added in v0.31.0

func (o *GitlabCreateAccessTokenOptions) GetTokenName() (tokenName string, err error)

func (*GitlabCreateAccessTokenOptions) GetUserName added in v0.31.0

func (o *GitlabCreateAccessTokenOptions) GetUserName() (userName string, err error)

func (*GitlabCreateAccessTokenOptions) GetVerbose added in v0.31.0

func (g *GitlabCreateAccessTokenOptions) GetVerbose() (verbose bool, err error)

func (*GitlabCreateAccessTokenOptions) MustGetExipiresAtOrDefaultIfUnset added in v0.31.0

func (g *GitlabCreateAccessTokenOptions) MustGetExipiresAtOrDefaultIfUnset() (expiresAt *time.Time)

func (*GitlabCreateAccessTokenOptions) MustGetExpiresAt added in v0.31.0

func (g *GitlabCreateAccessTokenOptions) MustGetExpiresAt() (expiresAt *time.Time)

func (*GitlabCreateAccessTokenOptions) MustGetScopes added in v0.31.0

func (g *GitlabCreateAccessTokenOptions) MustGetScopes() (scopes []string)

func (*GitlabCreateAccessTokenOptions) MustGetTokenName added in v0.31.0

func (g *GitlabCreateAccessTokenOptions) MustGetTokenName() (tokenName string)

func (*GitlabCreateAccessTokenOptions) MustGetUserName added in v0.31.0

func (g *GitlabCreateAccessTokenOptions) MustGetUserName() (userName string)

func (*GitlabCreateAccessTokenOptions) MustGetVerbose added in v0.31.0

func (g *GitlabCreateAccessTokenOptions) MustGetVerbose() (verbose bool)

func (*GitlabCreateAccessTokenOptions) MustSetExpiresAt added in v0.31.0

func (g *GitlabCreateAccessTokenOptions) MustSetExpiresAt(expiresAt *time.Time)

func (*GitlabCreateAccessTokenOptions) MustSetScopes added in v0.31.0

func (g *GitlabCreateAccessTokenOptions) MustSetScopes(scopes []string)

func (*GitlabCreateAccessTokenOptions) MustSetTokenName added in v0.31.0

func (g *GitlabCreateAccessTokenOptions) MustSetTokenName(tokenName string)

func (*GitlabCreateAccessTokenOptions) MustSetUserName added in v0.31.0

func (g *GitlabCreateAccessTokenOptions) MustSetUserName(userName string)

func (*GitlabCreateAccessTokenOptions) MustSetVerbose added in v0.31.0

func (g *GitlabCreateAccessTokenOptions) MustSetVerbose(verbose bool)

func (*GitlabCreateAccessTokenOptions) SetExpiresAt added in v0.31.0

func (g *GitlabCreateAccessTokenOptions) SetExpiresAt(expiresAt *time.Time) (err error)

func (*GitlabCreateAccessTokenOptions) SetScopes added in v0.31.0

func (g *GitlabCreateAccessTokenOptions) SetScopes(scopes []string) (err error)

func (*GitlabCreateAccessTokenOptions) SetTokenName added in v0.31.0

func (g *GitlabCreateAccessTokenOptions) SetTokenName(tokenName string) (err error)

func (*GitlabCreateAccessTokenOptions) SetUserName added in v0.31.0

func (g *GitlabCreateAccessTokenOptions) SetUserName(userName string) (err error)

func (*GitlabCreateAccessTokenOptions) SetVerbose added in v0.31.0

func (g *GitlabCreateAccessTokenOptions) SetVerbose(verbose bool) (err error)

type GitlabCreateDeployKeyOptions added in v0.31.0

type GitlabCreateDeployKeyOptions struct {
	Name          string
	WriteAccess   bool
	PublicKeyFile File
	Verbose       bool
}

func NewGitlabCreateDeployKeyOptions added in v0.31.0

func NewGitlabCreateDeployKeyOptions() (g *GitlabCreateDeployKeyOptions)

func (*GitlabCreateDeployKeyOptions) GetName added in v0.31.0

func (o *GitlabCreateDeployKeyOptions) GetName() (name string, err error)

func (*GitlabCreateDeployKeyOptions) GetPublicKeyFile added in v0.31.0

func (g *GitlabCreateDeployKeyOptions) GetPublicKeyFile() (publicKeyFile File, err error)

func (*GitlabCreateDeployKeyOptions) GetPublicKeyMaterialString added in v0.31.0

func (o *GitlabCreateDeployKeyOptions) GetPublicKeyMaterialString() (keyMaterial string, err error)

func (*GitlabCreateDeployKeyOptions) GetPublicKeyfile added in v0.31.0

func (o *GitlabCreateDeployKeyOptions) GetPublicKeyfile() (keyFile File, err error)

func (*GitlabCreateDeployKeyOptions) GetVerbose added in v0.31.0

func (g *GitlabCreateDeployKeyOptions) GetVerbose() (verbose bool, err error)

func (*GitlabCreateDeployKeyOptions) GetWriteAccess added in v0.31.0

func (g *GitlabCreateDeployKeyOptions) GetWriteAccess() (writeAccess bool, err error)

func (*GitlabCreateDeployKeyOptions) MustGetName added in v0.31.0

func (g *GitlabCreateDeployKeyOptions) MustGetName() (name string)

func (*GitlabCreateDeployKeyOptions) MustGetPublicKeyFile added in v0.31.0

func (g *GitlabCreateDeployKeyOptions) MustGetPublicKeyFile() (publicKeyFile File)

func (*GitlabCreateDeployKeyOptions) MustGetPublicKeyMaterialString added in v0.31.0

func (g *GitlabCreateDeployKeyOptions) MustGetPublicKeyMaterialString() (keyMaterial string)

func (*GitlabCreateDeployKeyOptions) MustGetPublicKeyfile added in v0.31.0

func (g *GitlabCreateDeployKeyOptions) MustGetPublicKeyfile() (keyFile File)

func (*GitlabCreateDeployKeyOptions) MustGetVerbose added in v0.31.0

func (g *GitlabCreateDeployKeyOptions) MustGetVerbose() (verbose bool)

func (*GitlabCreateDeployKeyOptions) MustGetWriteAccess added in v0.31.0

func (g *GitlabCreateDeployKeyOptions) MustGetWriteAccess() (writeAccess bool)

func (*GitlabCreateDeployKeyOptions) MustSetName added in v0.31.0

func (g *GitlabCreateDeployKeyOptions) MustSetName(name string)

func (*GitlabCreateDeployKeyOptions) MustSetPublicKeyFile added in v0.31.0

func (g *GitlabCreateDeployKeyOptions) MustSetPublicKeyFile(publicKeyFile File)

func (*GitlabCreateDeployKeyOptions) MustSetVerbose added in v0.31.0

func (g *GitlabCreateDeployKeyOptions) MustSetVerbose(verbose bool)

func (*GitlabCreateDeployKeyOptions) MustSetWriteAccess added in v0.31.0

func (g *GitlabCreateDeployKeyOptions) MustSetWriteAccess(writeAccess bool)

func (*GitlabCreateDeployKeyOptions) SetName added in v0.31.0

func (g *GitlabCreateDeployKeyOptions) SetName(name string) (err error)

func (*GitlabCreateDeployKeyOptions) SetPublicKeyFile added in v0.31.0

func (g *GitlabCreateDeployKeyOptions) SetPublicKeyFile(publicKeyFile File) (err error)

func (*GitlabCreateDeployKeyOptions) SetVerbose added in v0.31.0

func (g *GitlabCreateDeployKeyOptions) SetVerbose(verbose bool) (err error)

func (*GitlabCreateDeployKeyOptions) SetWriteAccess added in v0.31.0

func (g *GitlabCreateDeployKeyOptions) SetWriteAccess(writeAccess bool) (err error)

type GitlabCreateGroupOptions added in v0.31.0

type GitlabCreateGroupOptions struct {
	GroupPath string
	Verbose   bool
}

func NewGitlabCreateGroupOptions added in v0.31.0

func NewGitlabCreateGroupOptions() (createOptions *GitlabCreateGroupOptions)

func (*GitlabCreateGroupOptions) GetDeepCopy added in v0.31.0

func (o *GitlabCreateGroupOptions) GetDeepCopy() (copy *GitlabCreateGroupOptions)

func (*GitlabCreateGroupOptions) GetGroupName added in v0.31.0

func (o *GitlabCreateGroupOptions) GetGroupName() (groupName string, err error)

func (*GitlabCreateGroupOptions) GetGroupPath added in v0.31.0

func (o *GitlabCreateGroupOptions) GetGroupPath() (groupPath string, err error)

func (*GitlabCreateGroupOptions) GetParentGroupPath added in v0.31.0

func (o *GitlabCreateGroupOptions) GetParentGroupPath() (parentGroupPath string, err error)

func (*GitlabCreateGroupOptions) GetVerbose added in v0.31.0

func (g *GitlabCreateGroupOptions) GetVerbose() (verbose bool, err error)

func (*GitlabCreateGroupOptions) IsSubgroup added in v0.31.0

func (o *GitlabCreateGroupOptions) IsSubgroup() (isSubgroup bool, err error)

func (*GitlabCreateGroupOptions) MustGetGroupName added in v0.31.0

func (g *GitlabCreateGroupOptions) MustGetGroupName() (groupName string)

func (*GitlabCreateGroupOptions) MustGetGroupPath added in v0.31.0

func (g *GitlabCreateGroupOptions) MustGetGroupPath() (groupPath string)

func (*GitlabCreateGroupOptions) MustGetParentGroupPath added in v0.31.0

func (g *GitlabCreateGroupOptions) MustGetParentGroupPath() (parentGroupPath string)

func (*GitlabCreateGroupOptions) MustGetVerbose added in v0.31.0

func (g *GitlabCreateGroupOptions) MustGetVerbose() (verbose bool)

func (*GitlabCreateGroupOptions) MustIsSubgroup added in v0.31.0

func (g *GitlabCreateGroupOptions) MustIsSubgroup() (isSubgroup bool)

func (*GitlabCreateGroupOptions) MustSetGroupPath added in v0.31.0

func (g *GitlabCreateGroupOptions) MustSetGroupPath(groupPath string)

func (*GitlabCreateGroupOptions) MustSetVerbose added in v0.31.0

func (g *GitlabCreateGroupOptions) MustSetVerbose(verbose bool)

func (*GitlabCreateGroupOptions) SetGroupPath added in v0.31.0

func (g *GitlabCreateGroupOptions) SetGroupPath(groupPath string) (err error)

func (*GitlabCreateGroupOptions) SetVerbose added in v0.31.0

func (g *GitlabCreateGroupOptions) SetVerbose(verbose bool) (err error)

type GitlabCreatePersonalAccessTokenOptions added in v0.31.0

type GitlabCreatePersonalAccessTokenOptions struct {
	Name    string
	Verbose bool
}

func NewGitlabCreatePersonalAccessTokenOptions added in v0.31.0

func NewGitlabCreatePersonalAccessTokenOptions() (g *GitlabCreatePersonalAccessTokenOptions)

func (*GitlabCreatePersonalAccessTokenOptions) GetName added in v0.31.0

func (o *GitlabCreatePersonalAccessTokenOptions) GetName() (name string, err error)

func (*GitlabCreatePersonalAccessTokenOptions) GetVerbose added in v0.31.0

func (g *GitlabCreatePersonalAccessTokenOptions) GetVerbose() (verbose bool, err error)

func (*GitlabCreatePersonalAccessTokenOptions) MustGetName added in v0.31.0

func (g *GitlabCreatePersonalAccessTokenOptions) MustGetName() (name string)

func (*GitlabCreatePersonalAccessTokenOptions) MustGetVerbose added in v0.31.0

func (g *GitlabCreatePersonalAccessTokenOptions) MustGetVerbose() (verbose bool)

func (*GitlabCreatePersonalAccessTokenOptions) MustSetName added in v0.31.0

func (g *GitlabCreatePersonalAccessTokenOptions) MustSetName(name string)

func (*GitlabCreatePersonalAccessTokenOptions) MustSetVerbose added in v0.31.0

func (g *GitlabCreatePersonalAccessTokenOptions) MustSetVerbose(verbose bool)

func (*GitlabCreatePersonalAccessTokenOptions) SetName added in v0.31.0

func (g *GitlabCreatePersonalAccessTokenOptions) SetName(name string) (err error)

func (*GitlabCreatePersonalAccessTokenOptions) SetVerbose added in v0.31.0

func (g *GitlabCreatePersonalAccessTokenOptions) SetVerbose(verbose bool) (err error)

type GitlabCreateProjectOptions added in v0.31.0

type GitlabCreateProjectOptions struct {
	ProjectPath string
	IsPublic    bool
	Verbose     bool
}

func NewGitlabCreateProjectOptions added in v0.31.0

func NewGitlabCreateProjectOptions() (g *GitlabCreateProjectOptions)

func (*GitlabCreateProjectOptions) GetGroupNames added in v0.31.0

func (o *GitlabCreateProjectOptions) GetGroupNames(verbose bool) (groupNames []string, err error)

func (*GitlabCreateProjectOptions) GetGroupPath added in v0.31.0

func (o *GitlabCreateProjectOptions) GetGroupPath(verbose bool) (groupPath string, err error)

func (*GitlabCreateProjectOptions) GetIsPublic added in v0.31.0

func (g *GitlabCreateProjectOptions) GetIsPublic() (isPublic bool, err error)

func (*GitlabCreateProjectOptions) GetProjectName added in v0.31.0

func (o *GitlabCreateProjectOptions) GetProjectName() (projectName string, err error)

func (*GitlabCreateProjectOptions) GetProjectPath added in v0.31.0

func (o *GitlabCreateProjectOptions) GetProjectPath() (projectPath string, err error)

func (*GitlabCreateProjectOptions) GetVerbose added in v0.31.0

func (g *GitlabCreateProjectOptions) GetVerbose() (verbose bool, err error)

func (*GitlabCreateProjectOptions) MustGetGroupNames added in v0.31.0

func (g *GitlabCreateProjectOptions) MustGetGroupNames(verbose bool) (groupNames []string)

func (*GitlabCreateProjectOptions) MustGetGroupPath added in v0.31.0

func (g *GitlabCreateProjectOptions) MustGetGroupPath(verbose bool) (groupPath string)

func (*GitlabCreateProjectOptions) MustGetIsPublic added in v0.31.0

func (g *GitlabCreateProjectOptions) MustGetIsPublic() (isPublic bool)

func (*GitlabCreateProjectOptions) MustGetProjectName added in v0.31.0

func (g *GitlabCreateProjectOptions) MustGetProjectName() (projectName string)

func (*GitlabCreateProjectOptions) MustGetProjectPath added in v0.31.0

func (g *GitlabCreateProjectOptions) MustGetProjectPath() (projectPath string)

func (*GitlabCreateProjectOptions) MustGetVerbose added in v0.31.0

func (g *GitlabCreateProjectOptions) MustGetVerbose() (verbose bool)

func (*GitlabCreateProjectOptions) MustSetIsPublic added in v0.31.0

func (g *GitlabCreateProjectOptions) MustSetIsPublic(isPublic bool)

func (*GitlabCreateProjectOptions) MustSetProjectPath added in v0.31.0

func (g *GitlabCreateProjectOptions) MustSetProjectPath(projectPath string)

func (*GitlabCreateProjectOptions) MustSetVerbose added in v0.31.0

func (g *GitlabCreateProjectOptions) MustSetVerbose(verbose bool)

func (*GitlabCreateProjectOptions) SetIsPublic added in v0.31.0

func (g *GitlabCreateProjectOptions) SetIsPublic(isPublic bool) (err error)

func (*GitlabCreateProjectOptions) SetProjectPath added in v0.31.0

func (g *GitlabCreateProjectOptions) SetProjectPath(projectPath string) (err error)

func (*GitlabCreateProjectOptions) SetVerbose added in v0.31.0

func (g *GitlabCreateProjectOptions) SetVerbose(verbose bool) (err error)

type GitlabCreateUserOptions added in v0.31.0

type GitlabCreateUserOptions struct {
	Name     string
	Username string
	Password string
	Email    string
	Verbose  bool
}

func NewGitlabCreateUserOptions added in v0.31.0

func NewGitlabCreateUserOptions() (g *GitlabCreateUserOptions)

func (*GitlabCreateUserOptions) GetEmail added in v0.31.0

func (g *GitlabCreateUserOptions) GetEmail() (email string, err error)

func (*GitlabCreateUserOptions) GetName added in v0.31.0

func (g *GitlabCreateUserOptions) GetName() (name string, err error)

func (*GitlabCreateUserOptions) GetPassword added in v0.31.0

func (g *GitlabCreateUserOptions) GetPassword() (password string, err error)

func (*GitlabCreateUserOptions) GetUsername added in v0.31.0

func (g *GitlabCreateUserOptions) GetUsername() (username string, err error)

func (*GitlabCreateUserOptions) GetVerbose added in v0.31.0

func (g *GitlabCreateUserOptions) GetVerbose() (verbose bool, err error)

func (*GitlabCreateUserOptions) MustGetEmail added in v0.31.0

func (g *GitlabCreateUserOptions) MustGetEmail() (email string)

func (*GitlabCreateUserOptions) MustGetName added in v0.31.0

func (g *GitlabCreateUserOptions) MustGetName() (name string)

func (*GitlabCreateUserOptions) MustGetPassword added in v0.31.0

func (g *GitlabCreateUserOptions) MustGetPassword() (password string)

func (*GitlabCreateUserOptions) MustGetUsername added in v0.31.0

func (g *GitlabCreateUserOptions) MustGetUsername() (username string)

func (*GitlabCreateUserOptions) MustGetVerbose added in v0.31.0

func (g *GitlabCreateUserOptions) MustGetVerbose() (verbose bool)

func (*GitlabCreateUserOptions) MustSetEmail added in v0.31.0

func (g *GitlabCreateUserOptions) MustSetEmail(email string)

func (*GitlabCreateUserOptions) MustSetName added in v0.31.0

func (g *GitlabCreateUserOptions) MustSetName(name string)

func (*GitlabCreateUserOptions) MustSetPassword added in v0.31.0

func (g *GitlabCreateUserOptions) MustSetPassword(password string)

func (*GitlabCreateUserOptions) MustSetUsername added in v0.31.0

func (g *GitlabCreateUserOptions) MustSetUsername(username string)

func (*GitlabCreateUserOptions) MustSetVerbose added in v0.31.0

func (g *GitlabCreateUserOptions) MustSetVerbose(verbose bool)

func (*GitlabCreateUserOptions) SetEmail added in v0.31.0

func (g *GitlabCreateUserOptions) SetEmail(email string) (err error)

func (*GitlabCreateUserOptions) SetName added in v0.31.0

func (g *GitlabCreateUserOptions) SetName(name string) (err error)

func (*GitlabCreateUserOptions) SetPassword added in v0.31.0

func (g *GitlabCreateUserOptions) SetPassword(password string) (err error)

func (*GitlabCreateUserOptions) SetUsername added in v0.31.0

func (g *GitlabCreateUserOptions) SetUsername(username string) (err error)

func (*GitlabCreateUserOptions) SetVerbose added in v0.31.0

func (g *GitlabCreateUserOptions) SetVerbose(verbose bool) (err error)

type GitlabGetRepositoryFileOptions added in v0.39.0

type GitlabGetRepositoryFileOptions struct {
	Path       string
	BranchName string
	Verbose    bool
}

func NewGitlabGetRepositoryFileOptions added in v0.39.0

func NewGitlabGetRepositoryFileOptions() (g *GitlabGetRepositoryFileOptions)

func (*GitlabGetRepositoryFileOptions) GetBranchName added in v0.39.0

func (g *GitlabGetRepositoryFileOptions) GetBranchName() (branchName string, err error)

func (*GitlabGetRepositoryFileOptions) GetPath added in v0.39.0

func (g *GitlabGetRepositoryFileOptions) GetPath() (path string, err error)

func (*GitlabGetRepositoryFileOptions) GetVerbose added in v0.39.0

func (g *GitlabGetRepositoryFileOptions) GetVerbose() (verbose bool)

func (*GitlabGetRepositoryFileOptions) IsBranchNameSet added in v0.39.0

func (g *GitlabGetRepositoryFileOptions) IsBranchNameSet() (isSet bool)

func (*GitlabGetRepositoryFileOptions) MustGetBranchName added in v0.39.0

func (g *GitlabGetRepositoryFileOptions) MustGetBranchName() (branchName string)

func (*GitlabGetRepositoryFileOptions) MustGetPath added in v0.39.0

func (g *GitlabGetRepositoryFileOptions) MustGetPath() (path string)

func (*GitlabGetRepositoryFileOptions) MustSetBranchName added in v0.39.0

func (g *GitlabGetRepositoryFileOptions) MustSetBranchName(branchName string)

func (*GitlabGetRepositoryFileOptions) MustSetPath added in v0.39.0

func (g *GitlabGetRepositoryFileOptions) MustSetPath(path string)

func (*GitlabGetRepositoryFileOptions) SetBranchName added in v0.39.0

func (g *GitlabGetRepositoryFileOptions) SetBranchName(branchName string) (err error)

func (*GitlabGetRepositoryFileOptions) SetPath added in v0.39.0

func (g *GitlabGetRepositoryFileOptions) SetPath(path string) (err error)

func (*GitlabGetRepositoryFileOptions) SetVerbose added in v0.39.0

func (g *GitlabGetRepositoryFileOptions) SetVerbose(verbose bool)

type GitlabGroup added in v0.31.0

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

func NewGitlabGroup added in v0.31.0

func NewGitlabGroup() (gitlabGroup *GitlabGroup)

func (*GitlabGroup) GetFqdn added in v0.31.0

func (p *GitlabGroup) GetFqdn() (fqdn string, err error)

func (*GitlabGroup) GetGitlab added in v0.31.0

func (p *GitlabGroup) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabGroup) GetId added in v0.31.0

func (p *GitlabGroup) GetId() (id int, err error)

func (*GitlabGroup) GetNativeClient added in v0.31.0

func (p *GitlabGroup) GetNativeClient() (nativeClient *gitlab.Client, err error)

func (*GitlabGroup) MustGetFqdn added in v0.31.0

func (g *GitlabGroup) MustGetFqdn() (fqdn string)

func (*GitlabGroup) MustGetGitlab added in v0.31.0

func (g *GitlabGroup) MustGetGitlab() (gitlab *GitlabInstance)

func (*GitlabGroup) MustGetId added in v0.31.0

func (g *GitlabGroup) MustGetId() (id int)

func (*GitlabGroup) MustGetNativeClient added in v0.31.0

func (g *GitlabGroup) MustGetNativeClient() (nativeClient *gitlab.Client)

func (*GitlabGroup) MustSetGitlab added in v0.31.0

func (g *GitlabGroup) MustSetGitlab(gitlab *GitlabInstance)

func (*GitlabGroup) MustSetId added in v0.31.0

func (g *GitlabGroup) MustSetId(id int)

func (*GitlabGroup) SetGitlab added in v0.31.0

func (p *GitlabGroup) SetGitlab(gitlab *GitlabInstance) (err error)

func (*GitlabGroup) SetId added in v0.31.0

func (p *GitlabGroup) SetId(id int) (err error)

type GitlabGroups added in v0.31.0

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

func NewGitlabGroups added in v0.31.0

func NewGitlabGroups() (gitlabGroups *GitlabGroups)

func (*GitlabGroups) CreateGroup added in v0.31.0

func (p *GitlabGroups) CreateGroup(createOptions *GitlabCreateGroupOptions) (createdGroup *GitlabGroup, err error)

func (*GitlabGroups) GetFqdn added in v0.31.0

func (p *GitlabGroups) GetFqdn() (fqdn string, err error)

func (*GitlabGroups) GetGitlab added in v0.31.0

func (p *GitlabGroups) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabGroups) GetGroupByGroupPath added in v0.31.0

func (p *GitlabGroups) GetGroupByGroupPath(groupPath string) (gitlabGroup *GitlabGroup, err error)

func (*GitlabGroups) GetNativeClient added in v0.31.0

func (p *GitlabGroups) GetNativeClient() (nativeClient *gitlab.Client, err error)

func (*GitlabGroups) GetNativeGroupsService added in v0.31.0

func (p *GitlabGroups) GetNativeGroupsService() (nativeGroupsService *gitlab.GroupsService, err error)

func (*GitlabGroups) GroupByGroupPathExists added in v0.31.0

func (p *GitlabGroups) GroupByGroupPathExists(groupPath string) (groupExists bool, err error)

func (*GitlabGroups) MustCreateGroup added in v0.31.0

func (g *GitlabGroups) MustCreateGroup(createOptions *GitlabCreateGroupOptions) (createdGroup *GitlabGroup)

func (*GitlabGroups) MustGetFqdn added in v0.31.0

func (g *GitlabGroups) MustGetFqdn() (fqdn string)

func (*GitlabGroups) MustGetGitlab added in v0.31.0

func (g *GitlabGroups) MustGetGitlab() (gitlab *GitlabInstance)

func (*GitlabGroups) MustGetGroupByGroupPath added in v0.31.0

func (g *GitlabGroups) MustGetGroupByGroupPath(groupPath string) (gitlabGroup *GitlabGroup)

func (*GitlabGroups) MustGetNativeClient added in v0.31.0

func (g *GitlabGroups) MustGetNativeClient() (nativeClient *gitlab.Client)

func (*GitlabGroups) MustGetNativeGroupsService added in v0.31.0

func (g *GitlabGroups) MustGetNativeGroupsService() (nativeGroupsService *gitlab.GroupsService)

func (*GitlabGroups) MustGroupByGroupPathExists added in v0.31.0

func (g *GitlabGroups) MustGroupByGroupPathExists(groupPath string) (groupExists bool)

func (*GitlabGroups) MustSetGitlab added in v0.31.0

func (g *GitlabGroups) MustSetGitlab(gitlab *GitlabInstance)

func (*GitlabGroups) SetGitlab added in v0.31.0

func (p *GitlabGroups) SetGitlab(gitlab *GitlabInstance) (err error)

type GitlabInstance added in v0.31.0

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

func GetGitlabByFQDN added in v0.31.0

func GetGitlabByFQDN(fqdn string) (gitlab *GitlabInstance, err error)

func MustGetGitlabByFQDN added in v0.31.0

func MustGetGitlabByFQDN(fqdn string) (gitlab *GitlabInstance)

func MustGetGitlabByFqdn added in v0.31.0

func MustGetGitlabByFqdn(fqdn string) (gitlab *GitlabInstance)

func NewGitlab added in v0.31.0

func NewGitlab() (gitlab *GitlabInstance)

func NewGitlabInstance added in v0.38.0

func NewGitlabInstance() (g *GitlabInstance)

func (*GitlabInstance) AddRunner added in v0.31.0

func (g *GitlabInstance) AddRunner(newRunnerOptions *GitlabAddRunnerOptions) (createdRunner *GitlabRunner, err error)

func (*GitlabInstance) Authenticate added in v0.31.0

func (g *GitlabInstance) Authenticate(authOptions *GitlabAuthenticationOptions) (err error)

func (*GitlabInstance) CheckProjectByPathExists added in v0.31.0

func (g *GitlabInstance) CheckProjectByPathExists(projectPath string, verbose bool) (projectExists bool, err error)

func (*GitlabInstance) CheckRunnerStatusOk added in v0.31.0

func (g *GitlabInstance) CheckRunnerStatusOk(runnerName string, verbose bool) (isStatusOk bool, err error)

func (*GitlabInstance) CreateAccessToken added in v0.31.0

func (g *GitlabInstance) CreateAccessToken(options *GitlabCreateAccessTokenOptions) (newToken string, err error)

func (*GitlabInstance) CreateGroup added in v0.31.0

func (g *GitlabInstance) CreateGroup(createOptions *GitlabCreateGroupOptions) (createdGroup *GitlabGroup, err error)

func (*GitlabInstance) CreateProject added in v0.31.0

func (g *GitlabInstance) CreateProject(createOptions *GitlabCreateProjectOptions) (gitlabProject *GitlabProject, err error)

func (*GitlabInstance) GetApiV4Url added in v0.31.0

func (g *GitlabInstance) GetApiV4Url() (v4ApiUrl string, err error)

func (*GitlabInstance) GetCurrentlyUsedAccessToken added in v0.31.0

func (g *GitlabInstance) GetCurrentlyUsedAccessToken() (gitlabAccessToken string, err error)

func (*GitlabInstance) GetDockerContainerOnGitlabHost added in v0.31.0

func (g *GitlabInstance) GetDockerContainerOnGitlabHost(containerName string, sshUserName string) (dockerContainer *DockerContainer, err error)

func (*GitlabInstance) GetFqdn added in v0.31.0

func (g *GitlabInstance) GetFqdn() (fqdn string, err error)

func (*GitlabInstance) GetGitlabGroups added in v0.31.0

func (g *GitlabInstance) GetGitlabGroups() (gitlabGroups *GitlabGroups, err error)

func (*GitlabInstance) GetGitlabProjectById added in v0.38.0

func (g *GitlabInstance) GetGitlabProjectById(projectId int, verbose bool) (gitlabProject *GitlabProject, err error)

func (*GitlabInstance) GetGitlabProjectByPath added in v0.31.0

func (g *GitlabInstance) GetGitlabProjectByPath(projectPath string, verbose bool) (gitlabProject *GitlabProject, err error)

func (*GitlabInstance) GetGitlabProjects added in v0.31.0

func (g *GitlabInstance) GetGitlabProjects() (gitlabProjects *GitlabProjects, err error)

func (*GitlabInstance) GetGitlabRunners added in v0.31.0

func (g *GitlabInstance) GetGitlabRunners() (gitlabRunners *GitlabRunnersService, err error)

func (*GitlabInstance) GetGitlabSettings added in v0.31.0

func (g *GitlabInstance) GetGitlabSettings() (gitlabSettings *GitlabSettings, err error)

func (*GitlabInstance) GetGitlabUsers added in v0.31.0

func (g *GitlabInstance) GetGitlabUsers() (gitlabUsers *GitlabUsers, err error)

func (*GitlabInstance) GetHost added in v0.31.0

func (g *GitlabInstance) GetHost() (gitlabHost *Host, err error)

func (*GitlabInstance) GetNativeClient added in v0.31.0

func (g *GitlabInstance) GetNativeClient() (nativeClient *gitlab.Client, err error)

func (*GitlabInstance) GetNativeRepositoryFilesClient added in v0.39.0

func (g *GitlabInstance) GetNativeRepositoryFilesClient() (nativeRepositoryFilesClient *gitlab.RepositoryFilesService, err error)

func (*GitlabInstance) GetNativeTagsService added in v0.31.0

func (g *GitlabInstance) GetNativeTagsService() (nativeTagsService *gitlab.TagsService, err error)

func (*GitlabInstance) GetPersonalAccessTokenList added in v0.31.0

func (g *GitlabInstance) GetPersonalAccessTokenList(verbose bool) (personalAccessTokens []*GitlabPersonalAccessToken, err error)

func (*GitlabInstance) GetPersonalAccessTokens added in v0.31.0

func (g *GitlabInstance) GetPersonalAccessTokens() (tokens *GitlabPersonalAccessTokenService, err error)

func (*GitlabInstance) GetProjectIdByPath added in v0.31.0

func (g *GitlabInstance) GetProjectIdByPath(projectPath string, verbose bool) (projectId int, err error)

func (*GitlabInstance) GetProjectPathList added in v0.31.0

func (g *GitlabInstance) GetProjectPathList(verbose bool) (projectPaths []string, err error)

func (*GitlabInstance) GetRunnerByName added in v0.31.0

func (g *GitlabInstance) GetRunnerByName(name string) (runner *GitlabRunner, err error)

func (*GitlabInstance) GetUserByUsername added in v0.31.0

func (g *GitlabInstance) GetUserByUsername(username string) (gitlabUser *GitlabUser, err error)

func (*GitlabInstance) GetUserId added in v0.31.0

func (g *GitlabInstance) GetUserId() (userId int, err error)

func (*GitlabInstance) GetUserNameList added in v0.31.0

func (g *GitlabInstance) GetUserNameList(verbose bool) (userNames []string, err error)

func (*GitlabInstance) GroupByGroupPathExists added in v0.31.0

func (g *GitlabInstance) GroupByGroupPathExists(groupPath string) (groupExists bool, err error)

func (*GitlabInstance) MustAddRunner added in v0.31.0

func (g *GitlabInstance) MustAddRunner(newRunnerOptions *GitlabAddRunnerOptions) (createdRunner *GitlabRunner)

func (*GitlabInstance) MustAuthenticate added in v0.31.0

func (g *GitlabInstance) MustAuthenticate(authOptions *GitlabAuthenticationOptions)

func (*GitlabInstance) MustCheckProjectByPathExists added in v0.31.0

func (g *GitlabInstance) MustCheckProjectByPathExists(projectPath string, verbose bool) (projectExists bool)

func (*GitlabInstance) MustCheckRunnerStatusOk added in v0.31.0

func (g *GitlabInstance) MustCheckRunnerStatusOk(runnerName string, verbose bool) (isStatusOk bool)

func (*GitlabInstance) MustCreateAccessToken added in v0.31.0

func (g *GitlabInstance) MustCreateAccessToken(options *GitlabCreateAccessTokenOptions) (newToken string)

func (*GitlabInstance) MustCreateGroup added in v0.31.0

func (g *GitlabInstance) MustCreateGroup(createOptions *GitlabCreateGroupOptions) (createdGroup *GitlabGroup)

func (*GitlabInstance) MustCreateProject added in v0.31.0

func (g *GitlabInstance) MustCreateProject(createOptions *GitlabCreateProjectOptions) (gitlabProject *GitlabProject)

func (*GitlabInstance) MustGetApiV4Url added in v0.31.0

func (g *GitlabInstance) MustGetApiV4Url() (v4ApiUrl string)

func (*GitlabInstance) MustGetCurrentlyUsedAccessToken added in v0.31.0

func (g *GitlabInstance) MustGetCurrentlyUsedAccessToken() (gitlabAccessToken string)

func (*GitlabInstance) MustGetDockerContainerOnGitlabHost added in v0.31.0

func (g *GitlabInstance) MustGetDockerContainerOnGitlabHost(containerName string, sshUserName string) (dockerContainer *DockerContainer)

func (*GitlabInstance) MustGetFqdn added in v0.31.0

func (g *GitlabInstance) MustGetFqdn() (fqdn string)

func (*GitlabInstance) MustGetGitlabGroups added in v0.31.0

func (g *GitlabInstance) MustGetGitlabGroups() (gitlabGroups *GitlabGroups)

func (*GitlabInstance) MustGetGitlabProjectById added in v0.38.0

func (g *GitlabInstance) MustGetGitlabProjectById(projectId int, verbose bool) (gitlabProject *GitlabProject)

func (*GitlabInstance) MustGetGitlabProjectByPath added in v0.31.0

func (g *GitlabInstance) MustGetGitlabProjectByPath(projectPath string, verbose bool) (gitlabProject *GitlabProject)

func (*GitlabInstance) MustGetGitlabProjects added in v0.31.0

func (g *GitlabInstance) MustGetGitlabProjects() (gitlabProjects *GitlabProjects)

func (*GitlabInstance) MustGetGitlabRunners added in v0.31.0

func (g *GitlabInstance) MustGetGitlabRunners() (gitlabRunners *GitlabRunnersService)

func (*GitlabInstance) MustGetGitlabSettings added in v0.31.0

func (g *GitlabInstance) MustGetGitlabSettings() (gitlabSettings *GitlabSettings)

func (*GitlabInstance) MustGetGitlabUsers added in v0.31.0

func (g *GitlabInstance) MustGetGitlabUsers() (gitlabUsers *GitlabUsers)

func (*GitlabInstance) MustGetHost added in v0.31.0

func (g *GitlabInstance) MustGetHost() (gitlabHost *Host)

func (*GitlabInstance) MustGetNativeClient added in v0.31.0

func (g *GitlabInstance) MustGetNativeClient() (nativeClient *gitlab.Client)

func (*GitlabInstance) MustGetNativeRepositoryFilesClient added in v0.39.0

func (g *GitlabInstance) MustGetNativeRepositoryFilesClient() (nativeRepositoryFilesClient *gitlab.RepositoryFilesService)

func (*GitlabInstance) MustGetNativeTagsService added in v0.31.0

func (g *GitlabInstance) MustGetNativeTagsService() (nativeTagsService *gitlab.TagsService)

func (*GitlabInstance) MustGetPersonalAccessTokenList added in v0.31.0

func (g *GitlabInstance) MustGetPersonalAccessTokenList(verbose bool) (personalAccessTokens []*GitlabPersonalAccessToken)

func (*GitlabInstance) MustGetPersonalAccessTokens added in v0.31.0

func (g *GitlabInstance) MustGetPersonalAccessTokens() (tokens *GitlabPersonalAccessTokenService)

func (*GitlabInstance) MustGetProjectIdByPath added in v0.31.0

func (g *GitlabInstance) MustGetProjectIdByPath(projectPath string, verbose bool) (projectId int)

func (*GitlabInstance) MustGetProjectPathList added in v0.31.0

func (g *GitlabInstance) MustGetProjectPathList(verbose bool) (projectPaths []string)

func (*GitlabInstance) MustGetRunnerByName added in v0.31.0

func (g *GitlabInstance) MustGetRunnerByName(name string) (runner *GitlabRunner)

func (*GitlabInstance) MustGetUserByUsername added in v0.31.0

func (g *GitlabInstance) MustGetUserByUsername(username string) (gitlabUser *GitlabUser)

func (*GitlabInstance) MustGetUserId added in v0.31.0

func (g *GitlabInstance) MustGetUserId() (userId int)

func (*GitlabInstance) MustGetUserNameList added in v0.31.0

func (g *GitlabInstance) MustGetUserNameList(verbose bool) (userNames []string)

func (*GitlabInstance) MustGroupByGroupPathExists added in v0.31.0

func (g *GitlabInstance) MustGroupByGroupPathExists(groupPath string) (groupExists bool)

func (*GitlabInstance) MustProjectByProjectIdExists added in v0.38.0

func (g *GitlabInstance) MustProjectByProjectIdExists(projectId int, verbose bool) (projectExists bool)

func (*GitlabInstance) MustProjectByProjectPathExists added in v0.31.0

func (g *GitlabInstance) MustProjectByProjectPathExists(projectPath string, verbose bool) (projectExists bool)

func (*GitlabInstance) MustRecreatePersonalAccessToken added in v0.31.0

func (g *GitlabInstance) MustRecreatePersonalAccessToken(createOptions *GitlabCreatePersonalAccessTokenOptions) (newToken string)

func (*GitlabInstance) MustRemoveAllRunners added in v0.31.0

func (g *GitlabInstance) MustRemoveAllRunners(verbose bool)

func (*GitlabInstance) MustResetAccessToken added in v0.31.0

func (g *GitlabInstance) MustResetAccessToken(options *GitlabResetAccessTokenOptions)

func (*GitlabInstance) MustResetUserPassword added in v0.31.0

func (g *GitlabInstance) MustResetUserPassword(resetOptions *GitlabResetPasswordOptions)

func (*GitlabInstance) MustSetCurrentlyUsedAccessToken added in v0.31.0

func (g *GitlabInstance) MustSetCurrentlyUsedAccessToken(currentlyUsedAccessToken *string)

func (*GitlabInstance) MustSetFqdn added in v0.31.0

func (g *GitlabInstance) MustSetFqdn(fqdn string)

func (*GitlabInstance) MustSetNativeClient added in v0.31.0

func (g *GitlabInstance) MustSetNativeClient(nativeClient *gitlab.Client)

func (*GitlabInstance) MustUseUnauthenticatedClient added in v0.31.0

func (g *GitlabInstance) MustUseUnauthenticatedClient(verbose bool)

func (*GitlabInstance) ProjectByProjectIdExists added in v0.37.0

func (g *GitlabInstance) ProjectByProjectIdExists(projectId int, verbose bool) (projectExists bool, err error)

func (*GitlabInstance) ProjectByProjectPathExists added in v0.31.0

func (g *GitlabInstance) ProjectByProjectPathExists(projectPath string, verbose bool) (projectExists bool, err error)

func (*GitlabInstance) RecreatePersonalAccessToken added in v0.31.0

func (g *GitlabInstance) RecreatePersonalAccessToken(createOptions *GitlabCreatePersonalAccessTokenOptions) (newToken string, err error)

func (*GitlabInstance) RemoveAllRunners added in v0.31.0

func (g *GitlabInstance) RemoveAllRunners(verbose bool) (err error)

func (*GitlabInstance) ResetAccessToken added in v0.31.0

func (g *GitlabInstance) ResetAccessToken(options *GitlabResetAccessTokenOptions) (err error)

func (*GitlabInstance) ResetUserPassword added in v0.31.0

func (g *GitlabInstance) ResetUserPassword(resetOptions *GitlabResetPasswordOptions) (err error)

func (*GitlabInstance) SetCurrentlyUsedAccessToken added in v0.31.0

func (g *GitlabInstance) SetCurrentlyUsedAccessToken(currentlyUsedAccessToken *string) (err error)

func (*GitlabInstance) SetFqdn added in v0.31.0

func (g *GitlabInstance) SetFqdn(fqdn string) (err error)

func (*GitlabInstance) SetNativeClient added in v0.31.0

func (g *GitlabInstance) SetNativeClient(nativeClient *gitlab.Client) (err error)

func (*GitlabInstance) UseUnauthenticatedClient added in v0.31.0

func (g *GitlabInstance) UseUnauthenticatedClient(verbose bool) (err error)

type GitlabPersonalAccessToken added in v0.31.0

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

func NewGitlabPersonalAccessToken added in v0.31.0

func NewGitlabPersonalAccessToken() (accessToken *GitlabPersonalAccessToken)

func (*GitlabPersonalAccessToken) GetCachedName added in v0.31.0

func (t *GitlabPersonalAccessToken) GetCachedName() (cachedName string, err error)

func (*GitlabPersonalAccessToken) GetGitlabPersonalAccessTokens added in v0.31.0

func (g *GitlabPersonalAccessToken) GetGitlabPersonalAccessTokens() (gitlabPersonalAccessTokens *GitlabPersonalAccessTokenService, err error)

func (*GitlabPersonalAccessToken) GetId added in v0.31.0

func (t *GitlabPersonalAccessToken) GetId() (id int, err error)

func (*GitlabPersonalAccessToken) GetInfoString added in v0.31.0

func (t *GitlabPersonalAccessToken) GetInfoString(verbose bool) (infoString string, err error)

func (*GitlabPersonalAccessToken) GetNativePersonalTokenService added in v0.31.0

func (t *GitlabPersonalAccessToken) GetNativePersonalTokenService() (nativeService *gitlab.PersonalAccessTokensService, err error)

func (*GitlabPersonalAccessToken) GetPersonalAccessTokens added in v0.31.0

func (t *GitlabPersonalAccessToken) GetPersonalAccessTokens() (tokensService *GitlabPersonalAccessTokenService, err error)

func (*GitlabPersonalAccessToken) GetTokenRawResponse added in v0.31.0

func (t *GitlabPersonalAccessToken) GetTokenRawResponse(verbose bool) (nativeResponse *gitlab.PersonalAccessToken, err error)

func (*GitlabPersonalAccessToken) MustGetCachedName added in v0.31.0

func (g *GitlabPersonalAccessToken) MustGetCachedName() (cachedName string)

func (*GitlabPersonalAccessToken) MustGetGitlabPersonalAccessTokens added in v0.31.0

func (g *GitlabPersonalAccessToken) MustGetGitlabPersonalAccessTokens() (gitlabPersonalAccessTokens *GitlabPersonalAccessTokenService)

func (*GitlabPersonalAccessToken) MustGetId added in v0.31.0

func (g *GitlabPersonalAccessToken) MustGetId() (id int)

func (*GitlabPersonalAccessToken) MustGetInfoString added in v0.31.0

func (g *GitlabPersonalAccessToken) MustGetInfoString(verbose bool) (infoString string)

func (*GitlabPersonalAccessToken) MustGetNativePersonalTokenService added in v0.31.0

func (g *GitlabPersonalAccessToken) MustGetNativePersonalTokenService() (nativeService *gitlab.PersonalAccessTokensService)

func (*GitlabPersonalAccessToken) MustGetPersonalAccessTokens added in v0.31.0

func (g *GitlabPersonalAccessToken) MustGetPersonalAccessTokens() (tokensService *GitlabPersonalAccessTokenService)

func (*GitlabPersonalAccessToken) MustGetTokenRawResponse added in v0.31.0

func (g *GitlabPersonalAccessToken) MustGetTokenRawResponse(verbose bool) (nativeResponse *gitlab.PersonalAccessToken)

func (*GitlabPersonalAccessToken) MustSetCachedName added in v0.31.0

func (g *GitlabPersonalAccessToken) MustSetCachedName(cachedName string)

func (*GitlabPersonalAccessToken) MustSetGitlabPersonalAccessTokens added in v0.31.0

func (g *GitlabPersonalAccessToken) MustSetGitlabPersonalAccessTokens(gitlabPersonalAccessTokens *GitlabPersonalAccessTokenService)

func (*GitlabPersonalAccessToken) MustSetId added in v0.31.0

func (g *GitlabPersonalAccessToken) MustSetId(id int)

func (*GitlabPersonalAccessToken) MustSetPersonalAccessTokens added in v0.31.0

func (g *GitlabPersonalAccessToken) MustSetPersonalAccessTokens(tokensService *GitlabPersonalAccessTokenService)

func (*GitlabPersonalAccessToken) SetCachedName added in v0.31.0

func (t *GitlabPersonalAccessToken) SetCachedName(cachedName string) (err error)

func (*GitlabPersonalAccessToken) SetGitlabPersonalAccessTokens added in v0.31.0

func (g *GitlabPersonalAccessToken) SetGitlabPersonalAccessTokens(gitlabPersonalAccessTokens *GitlabPersonalAccessTokenService) (err error)

func (*GitlabPersonalAccessToken) SetId added in v0.31.0

func (t *GitlabPersonalAccessToken) SetId(id int) (err error)

func (*GitlabPersonalAccessToken) SetPersonalAccessTokens added in v0.31.0

func (t *GitlabPersonalAccessToken) SetPersonalAccessTokens(tokensService *GitlabPersonalAccessTokenService) (err error)

type GitlabPersonalAccessTokenService added in v0.31.0

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

func NewGitlabPersonalAccessTokenService added in v0.31.0

func NewGitlabPersonalAccessTokenService() (tokens *GitlabPersonalAccessTokenService)

func (*GitlabPersonalAccessTokenService) CreateToken added in v0.31.0

func (p *GitlabPersonalAccessTokenService) CreateToken(tokenOptions *GitlabCreatePersonalAccessTokenOptions) (newToken string, err error)

func (*GitlabPersonalAccessTokenService) ExistsByName added in v0.31.0

func (p *GitlabPersonalAccessTokenService) ExistsByName(tokenName string, verbose bool) (exists bool, err error)

func (*GitlabPersonalAccessTokenService) GetApiV4Url added in v0.31.0

func (p *GitlabPersonalAccessTokenService) GetApiV4Url() (apiV4Url string, err error)

func (*GitlabPersonalAccessTokenService) GetCurrentUserId added in v0.31.0

func (p *GitlabPersonalAccessTokenService) GetCurrentUserId(verbose bool) (userId int, err error)

func (*GitlabPersonalAccessTokenService) GetCurrentlyUsedAccessToken added in v0.31.0

func (p *GitlabPersonalAccessTokenService) GetCurrentlyUsedAccessToken() (accessToken string, err error)

func (*GitlabPersonalAccessTokenService) GetGitlab added in v0.31.0

func (p *GitlabPersonalAccessTokenService) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabPersonalAccessTokenService) GetGitlabUsers added in v0.31.0

func (p *GitlabPersonalAccessTokenService) GetGitlabUsers() (gitlabUsers *GitlabUsers, err error)

func (*GitlabPersonalAccessTokenService) GetNativeGitlabClient added in v0.31.0

func (p *GitlabPersonalAccessTokenService) GetNativeGitlabClient() (nativeClient *gitlab.Client, err error)

func (*GitlabPersonalAccessTokenService) GetNativePersonalTokenService added in v0.31.0

func (p *GitlabPersonalAccessTokenService) GetNativePersonalTokenService() (nativeService *gitlab.PersonalAccessTokensService, err error)

func (*GitlabPersonalAccessTokenService) GetNativeUsersService added in v0.31.0

func (p *GitlabPersonalAccessTokenService) GetNativeUsersService() (nativeService *gitlab.UsersService, err error)

func (*GitlabPersonalAccessTokenService) GetPersonalAccessTokenList added in v0.31.0

func (p *GitlabPersonalAccessTokenService) GetPersonalAccessTokenList(verbose bool) (tokens []*GitlabPersonalAccessToken, err error)

func (*GitlabPersonalAccessTokenService) GetPersonalAccessTokenNameList added in v0.31.0

func (p *GitlabPersonalAccessTokenService) GetPersonalAccessTokenNameList(verbose bool) (tokenNames []string, err error)

func (*GitlabPersonalAccessTokenService) GetTokenIdByName added in v0.31.0

func (p *GitlabPersonalAccessTokenService) GetTokenIdByName(tokenName string, verbose bool) (tokenId int, err error)

func (*GitlabPersonalAccessTokenService) MustCreateToken added in v0.31.0

func (g *GitlabPersonalAccessTokenService) MustCreateToken(tokenOptions *GitlabCreatePersonalAccessTokenOptions) (newToken string)

func (*GitlabPersonalAccessTokenService) MustExistsByName added in v0.31.0

func (g *GitlabPersonalAccessTokenService) MustExistsByName(tokenName string, verbose bool) (exists bool)

func (*GitlabPersonalAccessTokenService) MustGetApiV4Url added in v0.31.0

func (g *GitlabPersonalAccessTokenService) MustGetApiV4Url() (apiV4Url string)

func (*GitlabPersonalAccessTokenService) MustGetCurrentUserId added in v0.31.0

func (g *GitlabPersonalAccessTokenService) MustGetCurrentUserId(verbose bool) (userId int)

func (*GitlabPersonalAccessTokenService) MustGetCurrentlyUsedAccessToken added in v0.31.0

func (g *GitlabPersonalAccessTokenService) MustGetCurrentlyUsedAccessToken() (accessToken string)

func (*GitlabPersonalAccessTokenService) MustGetGitlab added in v0.31.0

func (g *GitlabPersonalAccessTokenService) MustGetGitlab() (gitlab *GitlabInstance)

func (*GitlabPersonalAccessTokenService) MustGetGitlabUsers added in v0.31.0

func (g *GitlabPersonalAccessTokenService) MustGetGitlabUsers() (gitlabUsers *GitlabUsers)

func (*GitlabPersonalAccessTokenService) MustGetNativeGitlabClient added in v0.31.0

func (g *GitlabPersonalAccessTokenService) MustGetNativeGitlabClient() (nativeClient *gitlab.Client)

func (*GitlabPersonalAccessTokenService) MustGetNativePersonalTokenService added in v0.31.0

func (g *GitlabPersonalAccessTokenService) MustGetNativePersonalTokenService() (nativeService *gitlab.PersonalAccessTokensService)

func (*GitlabPersonalAccessTokenService) MustGetNativeUsersService added in v0.31.0

func (g *GitlabPersonalAccessTokenService) MustGetNativeUsersService() (nativeService *gitlab.UsersService)

func (*GitlabPersonalAccessTokenService) MustGetPersonalAccessTokenList added in v0.31.0

func (g *GitlabPersonalAccessTokenService) MustGetPersonalAccessTokenList(verbose bool) (tokens []*GitlabPersonalAccessToken)

func (*GitlabPersonalAccessTokenService) MustGetPersonalAccessTokenNameList added in v0.31.0

func (g *GitlabPersonalAccessTokenService) MustGetPersonalAccessTokenNameList(verbose bool) (tokenNames []string)

func (*GitlabPersonalAccessTokenService) MustGetTokenIdByName added in v0.31.0

func (g *GitlabPersonalAccessTokenService) MustGetTokenIdByName(tokenName string, verbose bool) (tokenId int)

func (*GitlabPersonalAccessTokenService) MustRecreateToken added in v0.31.0

func (g *GitlabPersonalAccessTokenService) MustRecreateToken(tokenOptions *GitlabCreatePersonalAccessTokenOptions) (newToken string)

func (*GitlabPersonalAccessTokenService) MustRevokeTokenByName added in v0.31.0

func (g *GitlabPersonalAccessTokenService) MustRevokeTokenByName(tokenName string, verbose bool)

func (*GitlabPersonalAccessTokenService) MustSetGitlab added in v0.31.0

func (g *GitlabPersonalAccessTokenService) MustSetGitlab(gitlab *GitlabInstance)

func (*GitlabPersonalAccessTokenService) RecreateToken added in v0.31.0

func (p *GitlabPersonalAccessTokenService) RecreateToken(tokenOptions *GitlabCreatePersonalAccessTokenOptions) (newToken string, err error)

func (*GitlabPersonalAccessTokenService) RevokeTokenByName added in v0.31.0

func (p *GitlabPersonalAccessTokenService) RevokeTokenByName(tokenName string, verbose bool) (err error)

func (*GitlabPersonalAccessTokenService) SetGitlab added in v0.31.0

func (p *GitlabPersonalAccessTokenService) SetGitlab(gitlab *GitlabInstance) (err error)

type GitlabProject added in v0.31.0

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

func GetGitlabProjectByUrl added in v0.31.0

func GetGitlabProjectByUrl(url *URL, authOptions []AuthenticationOption, verbose bool) (gitlabProject *GitlabProject, err error)

func GetGitlabProjectByUrlFromString added in v0.31.0

func GetGitlabProjectByUrlFromString(urlString string, authOptions []AuthenticationOption, verbose bool) (gitlabProject *GitlabProject, err error)

func MustGetGitlabProjectByUrl added in v0.31.0

func MustGetGitlabProjectByUrl(url *URL, authOptions []AuthenticationOption, verbose bool) (gitlabProject *GitlabProject)

func MustGetGitlabProjectByUrlFromString added in v0.31.0

func MustGetGitlabProjectByUrlFromString(urlString string, authOptions []AuthenticationOption, verbose bool) (gitlabProject *GitlabProject)

func NewGitlabProject added in v0.31.0

func NewGitlabProject() (gitlabProject *GitlabProject)

func (*GitlabProject) DeployKeyByNameExists added in v0.31.0

func (p *GitlabProject) DeployKeyByNameExists(keyName string) (exists bool, err error)

func (*GitlabProject) Exists added in v0.37.0

func (g *GitlabProject) Exists(verbose bool) (projectExists bool, err error)

func (*GitlabProject) GetCachedPath added in v0.31.0

func (p *GitlabProject) GetCachedPath() (path string, err error)

func (*GitlabProject) GetDefaultBranchName added in v0.39.0

func (g *GitlabProject) GetDefaultBranchName() (defaultBranchName string, err error)

func (*GitlabProject) GetDeployKeyByName added in v0.31.0

func (p *GitlabProject) GetDeployKeyByName(keyName string) (projectDeployKey *GitlabProjectDeployKey, err error)

func (*GitlabProject) GetDeployKeys added in v0.31.0

func (p *GitlabProject) GetDeployKeys() (deployKeys *GitlabProjectDeployKeys, err error)

func (*GitlabProject) GetGitlab added in v0.31.0

func (p *GitlabProject) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabProject) GetGitlabFqdn added in v0.39.0

func (g *GitlabProject) GetGitlabFqdn() (fqdn string, err error)

func (*GitlabProject) GetGitlabProjectDeployKeys added in v0.31.0

func (p *GitlabProject) GetGitlabProjectDeployKeys() (projectDeployKeys *GitlabProjectDeployKeys, err error)

func (*GitlabProject) GetGitlabProjects added in v0.31.0

func (p *GitlabProject) GetGitlabProjects() (projects *GitlabProjects, err error)

func (*GitlabProject) GetId added in v0.31.0

func (p *GitlabProject) GetId() (id int, err error)

func (*GitlabProject) GetNativeGitlabProject added in v0.39.0

func (g *GitlabProject) GetNativeGitlabProject() (nativeGitlabProject *gitlab.Project, err error)

func (*GitlabProject) GetNativeProjectsService added in v0.31.0

func (p *GitlabProject) GetNativeProjectsService() (nativeGitlabProject *gitlab.ProjectsService, err error)

func (*GitlabProject) GetNewestVersion added in v0.31.0

func (g *GitlabProject) GetNewestVersion(verbose bool) (newestVersion Version, err error)

func (*GitlabProject) GetNewestVersionAsString added in v0.31.0

func (g *GitlabProject) GetNewestVersionAsString(verbose bool) (newestVersionString string, err error)

func (*GitlabProject) GetPath added in v0.38.0

func (g *GitlabProject) GetPath() (projectPath string, err error)

func (*GitlabProject) GetProjectUrl added in v0.39.0

func (g *GitlabProject) GetProjectUrl() (projectUrl string, err error)

func (*GitlabProject) GetRepositoryFiles added in v0.39.0

func (g *GitlabProject) GetRepositoryFiles() (repositoryFiles *GitlabRepositoryFiles, err error)

func (*GitlabProject) GetTags added in v0.31.0

func (g *GitlabProject) GetTags() (gitlabTags *GitlabTags, err error)

func (*GitlabProject) GetVersionTagNames added in v0.31.0

func (g *GitlabProject) GetVersionTagNames(verbose bool) (versionTagNames []string, err error)

func (*GitlabProject) GetVersionTags added in v0.31.0

func (g *GitlabProject) GetVersionTags(verbose bool) (versionTags []*GitlabTag, err error)

func (*GitlabProject) GetVersions added in v0.31.0

func (g *GitlabProject) GetVersions(verbose bool) (versions []Version, err error)

func (*GitlabProject) IsCachedPathSet added in v0.38.0

func (g *GitlabProject) IsCachedPathSet() (isSet bool)

func (*GitlabProject) MakePrivate added in v0.31.0

func (p *GitlabProject) MakePrivate(verbose bool) (err error)

func (*GitlabProject) MakePublic added in v0.31.0

func (p *GitlabProject) MakePublic(verbose bool) (err error)

func (*GitlabProject) MustDeployKeyByNameExists added in v0.31.0

func (g *GitlabProject) MustDeployKeyByNameExists(keyName string) (exists bool)

func (*GitlabProject) MustExists added in v0.37.0

func (g *GitlabProject) MustExists(verbose bool) (projectExists bool)

func (*GitlabProject) MustGetCachedPath added in v0.31.0

func (g *GitlabProject) MustGetCachedPath() (path string)

func (*GitlabProject) MustGetDefaultBranchName added in v0.39.0

func (g *GitlabProject) MustGetDefaultBranchName() (defaultBranchName string)

func (*GitlabProject) MustGetDeployKeyByName added in v0.31.0

func (g *GitlabProject) MustGetDeployKeyByName(keyName string) (projectDeployKey *GitlabProjectDeployKey)

func (*GitlabProject) MustGetDeployKeys added in v0.31.0

func (g *GitlabProject) MustGetDeployKeys() (deployKeys *GitlabProjectDeployKeys)

func (*GitlabProject) MustGetGitlab added in v0.31.0

func (g *GitlabProject) MustGetGitlab() (gitlab *GitlabInstance)

func (*GitlabProject) MustGetGitlabFqdn added in v0.39.0

func (g *GitlabProject) MustGetGitlabFqdn() (fqdn string)

func (*GitlabProject) MustGetGitlabProjectDeployKeys added in v0.31.0

func (g *GitlabProject) MustGetGitlabProjectDeployKeys() (projectDeployKeys *GitlabProjectDeployKeys)

func (*GitlabProject) MustGetGitlabProjects added in v0.31.0

func (g *GitlabProject) MustGetGitlabProjects() (projects *GitlabProjects)

func (*GitlabProject) MustGetId added in v0.31.0

func (g *GitlabProject) MustGetId() (id int)

func (*GitlabProject) MustGetNativeGitlabProject added in v0.39.0

func (g *GitlabProject) MustGetNativeGitlabProject() (nativeGitlabProject *gitlab.Project)

func (*GitlabProject) MustGetNativeProjectsService added in v0.31.0

func (g *GitlabProject) MustGetNativeProjectsService() (nativeGitlabProject *gitlab.ProjectsService)

func (*GitlabProject) MustGetNewestVersion added in v0.31.0

func (g *GitlabProject) MustGetNewestVersion(verbose bool) (newestVersion Version)

func (*GitlabProject) MustGetNewestVersionAsString added in v0.31.0

func (g *GitlabProject) MustGetNewestVersionAsString(verbose bool) (newestVersionString string)

func (*GitlabProject) MustGetPath added in v0.38.0

func (g *GitlabProject) MustGetPath() (projectPath string)

func (*GitlabProject) MustGetProjectUrl added in v0.39.0

func (g *GitlabProject) MustGetProjectUrl() (projectUrl string)

func (*GitlabProject) MustGetRepositoryFiles added in v0.39.0

func (g *GitlabProject) MustGetRepositoryFiles() (repositoryFiles *GitlabRepositoryFiles)

func (*GitlabProject) MustGetTags added in v0.31.0

func (g *GitlabProject) MustGetTags() (gitlabTags *GitlabTags)

func (*GitlabProject) MustGetVersionTagNames added in v0.31.0

func (g *GitlabProject) MustGetVersionTagNames(verbose bool) (versionTagNames []string)

func (*GitlabProject) MustGetVersionTags added in v0.31.0

func (g *GitlabProject) MustGetVersionTags(verbose bool) (versionTags []*GitlabTag)

func (*GitlabProject) MustGetVersions added in v0.31.0

func (g *GitlabProject) MustGetVersions(verbose bool) (versions []Version)

func (*GitlabProject) MustMakePrivate added in v0.31.0

func (g *GitlabProject) MustMakePrivate(verbose bool)

func (*GitlabProject) MustMakePublic added in v0.31.0

func (g *GitlabProject) MustMakePublic(verbose bool)

func (*GitlabProject) MustReadFileContentAsString added in v0.39.0

func (g *GitlabProject) MustReadFileContentAsString(options *GitlabReadFileOptions) (content string)

func (*GitlabProject) MustRecreateDeployKey added in v0.31.0

func (g *GitlabProject) MustRecreateDeployKey(keyOptions *GitlabCreateDeployKeyOptions)

func (*GitlabProject) MustSetCachedPath added in v0.31.0

func (g *GitlabProject) MustSetCachedPath(pathToCache string)

func (*GitlabProject) MustSetGitlab added in v0.31.0

func (g *GitlabProject) MustSetGitlab(gitlab *GitlabInstance)

func (*GitlabProject) MustSetId added in v0.31.0

func (g *GitlabProject) MustSetId(id int)

func (*GitlabProject) MustWriteFileContent added in v0.39.0

func (g *GitlabProject) MustWriteFileContent(options *GitlabWriteFileOptions) (gitlabRepsoitoryFile *GitlabRepositoryFile)

func (*GitlabProject) ReadFileContentAsString added in v0.39.0

func (g *GitlabProject) ReadFileContentAsString(options *GitlabReadFileOptions) (content string, err error)

func (*GitlabProject) RecreateDeployKey added in v0.31.0

func (p *GitlabProject) RecreateDeployKey(keyOptions *GitlabCreateDeployKeyOptions) (err error)

func (*GitlabProject) SetCachedPath added in v0.31.0

func (p *GitlabProject) SetCachedPath(pathToCache string) (err error)

func (*GitlabProject) SetGitlab added in v0.31.0

func (p *GitlabProject) SetGitlab(gitlab *GitlabInstance) (err error)

func (*GitlabProject) SetId added in v0.31.0

func (p *GitlabProject) SetId(id int) (err error)

func (*GitlabProject) WriteFileContent added in v0.39.0

func (g *GitlabProject) WriteFileContent(options *GitlabWriteFileOptions) (gitlabRepsoitoryFile *GitlabRepositoryFile, err error)

type GitlabProjectDeployKey added in v0.31.0

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

func NewGitlabProjectDeployKey added in v0.31.0

func NewGitlabProjectDeployKey() (projectDeployKey *GitlabProjectDeployKey)

func (*GitlabProjectDeployKey) CreateDeployKey added in v0.31.0

func (k *GitlabProjectDeployKey) CreateDeployKey(createOptions *GitlabCreateDeployKeyOptions) (err error)

func (*GitlabProjectDeployKey) Delete added in v0.31.0

func (k *GitlabProjectDeployKey) Delete(verbose bool) (err error)

func (*GitlabProjectDeployKey) Exists added in v0.31.0

func (k *GitlabProjectDeployKey) Exists() (exists bool, err error)

func (*GitlabProjectDeployKey) GetGitlab added in v0.31.0

func (k *GitlabProjectDeployKey) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabProjectDeployKey) GetGitlabProject added in v0.31.0

func (k *GitlabProjectDeployKey) GetGitlabProject() (gitlabProject *GitlabProject, err error)

func (*GitlabProjectDeployKey) GetGitlabProjectDeployKeys added in v0.31.0

func (k *GitlabProjectDeployKey) GetGitlabProjectDeployKeys() (gitlabProjectProjectDeployKeys *GitlabProjectDeployKeys, err error)

func (*GitlabProjectDeployKey) GetId added in v0.31.0

func (k *GitlabProjectDeployKey) GetId() (id int, err error)

func (*GitlabProjectDeployKey) GetName added in v0.31.0

func (k *GitlabProjectDeployKey) GetName() (name string, err error)

func (*GitlabProjectDeployKey) GetNativeProjectDeployKeyService added in v0.31.0

func (k *GitlabProjectDeployKey) GetNativeProjectDeployKeyService() (nativeService *gitlab.DeployKeysService, err error)

func (*GitlabProjectDeployKey) GetProjectId added in v0.31.0

func (k *GitlabProjectDeployKey) GetProjectId() (id int, err error)

func (*GitlabProjectDeployKey) MustCreateDeployKey added in v0.31.0

func (g *GitlabProjectDeployKey) MustCreateDeployKey(createOptions *GitlabCreateDeployKeyOptions)

func (*GitlabProjectDeployKey) MustDelete added in v0.31.0

func (g *GitlabProjectDeployKey) MustDelete(verbose bool)

func (*GitlabProjectDeployKey) MustExists added in v0.31.0

func (g *GitlabProjectDeployKey) MustExists() (exists bool)

func (*GitlabProjectDeployKey) MustGetGitlab added in v0.31.0

func (g *GitlabProjectDeployKey) MustGetGitlab() (gitlab *GitlabInstance)

func (*GitlabProjectDeployKey) MustGetGitlabProject added in v0.31.0

func (g *GitlabProjectDeployKey) MustGetGitlabProject() (gitlabProject *GitlabProject)

func (*GitlabProjectDeployKey) MustGetGitlabProjectDeployKeys added in v0.31.0

func (g *GitlabProjectDeployKey) MustGetGitlabProjectDeployKeys() (gitlabProjectProjectDeployKeys *GitlabProjectDeployKeys)

func (*GitlabProjectDeployKey) MustGetId added in v0.31.0

func (g *GitlabProjectDeployKey) MustGetId() (id int)

func (*GitlabProjectDeployKey) MustGetName added in v0.31.0

func (g *GitlabProjectDeployKey) MustGetName() (name string)

func (*GitlabProjectDeployKey) MustGetNativeProjectDeployKeyService added in v0.31.0

func (g *GitlabProjectDeployKey) MustGetNativeProjectDeployKeyService() (nativeService *gitlab.DeployKeysService)

func (*GitlabProjectDeployKey) MustGetProjectId added in v0.31.0

func (g *GitlabProjectDeployKey) MustGetProjectId() (id int)

func (*GitlabProjectDeployKey) MustRecreateDeployKey added in v0.31.0

func (g *GitlabProjectDeployKey) MustRecreateDeployKey(createOptions *GitlabCreateDeployKeyOptions)

func (*GitlabProjectDeployKey) MustSetGitlabProjectDeployKeys added in v0.31.0

func (g *GitlabProjectDeployKey) MustSetGitlabProjectDeployKeys(gitlabProjectDeployKeys *GitlabProjectDeployKeys)

func (*GitlabProjectDeployKey) MustSetId added in v0.31.0

func (g *GitlabProjectDeployKey) MustSetId(id int)

func (*GitlabProjectDeployKey) MustSetName added in v0.31.0

func (g *GitlabProjectDeployKey) MustSetName(name string)

func (*GitlabProjectDeployKey) RecreateDeployKey added in v0.31.0

func (k *GitlabProjectDeployKey) RecreateDeployKey(createOptions *GitlabCreateDeployKeyOptions) (err error)

func (*GitlabProjectDeployKey) SetGitlabProjectDeployKeys added in v0.31.0

func (k *GitlabProjectDeployKey) SetGitlabProjectDeployKeys(gitlabProjectDeployKeys *GitlabProjectDeployKeys) (err error)

func (*GitlabProjectDeployKey) SetId added in v0.31.0

func (k *GitlabProjectDeployKey) SetId(id int) (err error)

func (*GitlabProjectDeployKey) SetName added in v0.31.0

func (k *GitlabProjectDeployKey) SetName(name string) (err error)

type GitlabProjectDeployKeys added in v0.31.0

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

func NewGitlabProjectDeployKeys added in v0.31.0

func NewGitlabProjectDeployKeys() (deployKeys *GitlabProjectDeployKeys)

func (*GitlabProjectDeployKeys) DeployKeyByNameExists added in v0.31.0

func (k *GitlabProjectDeployKeys) DeployKeyByNameExists(keyName string) (keyExists bool, err error)

func (*GitlabProjectDeployKeys) GetGitlab added in v0.31.0

func (k *GitlabProjectDeployKeys) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabProjectDeployKeys) GetGitlabProject added in v0.31.0

func (k *GitlabProjectDeployKeys) GetGitlabProject() (gitlabProject *GitlabProject, err error)

func (*GitlabProjectDeployKeys) GetGitlabProjectDeployKeyByName added in v0.31.0

func (k *GitlabProjectDeployKeys) GetGitlabProjectDeployKeyByName(keyName string) (deployKey *GitlabProjectDeployKey, err error)

func (*GitlabProjectDeployKeys) GetKeyIdByKeyName added in v0.31.0

func (k *GitlabProjectDeployKeys) GetKeyIdByKeyName(keyName string) (id int, err error)

func (*GitlabProjectDeployKeys) GetKeyNameList added in v0.31.0

func (k *GitlabProjectDeployKeys) GetKeyNameList() (keyNames []string, err error)

func (*GitlabProjectDeployKeys) GetKeysList added in v0.31.0

func (k *GitlabProjectDeployKeys) GetKeysList() (keys []*GitlabProjectDeployKey, err error)

func (*GitlabProjectDeployKeys) GetNativeGitlabClient added in v0.31.0

func (k *GitlabProjectDeployKeys) GetNativeGitlabClient() (nativeGitlabClient *gitlab.Client, err error)

func (*GitlabProjectDeployKeys) GetNativeProjectDeployKeyService added in v0.31.0

func (k *GitlabProjectDeployKeys) GetNativeProjectDeployKeyService() (nativeService *gitlab.DeployKeysService, err error)

func (*GitlabProjectDeployKeys) GetProjectId added in v0.31.0

func (k *GitlabProjectDeployKeys) GetProjectId() (id int, err error)

func (*GitlabProjectDeployKeys) MustDeployKeyByNameExists added in v0.31.0

func (g *GitlabProjectDeployKeys) MustDeployKeyByNameExists(keyName string) (keyExists bool)

func (*GitlabProjectDeployKeys) MustGetGitlab added in v0.31.0

func (g *GitlabProjectDeployKeys) MustGetGitlab() (gitlab *GitlabInstance)

func (*GitlabProjectDeployKeys) MustGetGitlabProject added in v0.31.0

func (g *GitlabProjectDeployKeys) MustGetGitlabProject() (gitlabProject *GitlabProject)

func (*GitlabProjectDeployKeys) MustGetGitlabProjectDeployKeyByName added in v0.31.0

func (g *GitlabProjectDeployKeys) MustGetGitlabProjectDeployKeyByName(keyName string) (deployKey *GitlabProjectDeployKey)

func (*GitlabProjectDeployKeys) MustGetKeyIdByKeyName added in v0.31.0

func (g *GitlabProjectDeployKeys) MustGetKeyIdByKeyName(keyName string) (id int)

func (*GitlabProjectDeployKeys) MustGetKeyNameList added in v0.31.0

func (g *GitlabProjectDeployKeys) MustGetKeyNameList() (keyNames []string)

func (*GitlabProjectDeployKeys) MustGetKeysList added in v0.31.0

func (g *GitlabProjectDeployKeys) MustGetKeysList() (keys []*GitlabProjectDeployKey)

func (*GitlabProjectDeployKeys) MustGetNativeGitlabClient added in v0.31.0

func (g *GitlabProjectDeployKeys) MustGetNativeGitlabClient() (nativeGitlabClient *gitlab.Client)

func (*GitlabProjectDeployKeys) MustGetNativeProjectDeployKeyService added in v0.31.0

func (g *GitlabProjectDeployKeys) MustGetNativeProjectDeployKeyService() (nativeService *gitlab.DeployKeysService)

func (*GitlabProjectDeployKeys) MustGetProjectId added in v0.31.0

func (g *GitlabProjectDeployKeys) MustGetProjectId() (id int)

func (*GitlabProjectDeployKeys) MustSetGitlabProject added in v0.31.0

func (g *GitlabProjectDeployKeys) MustSetGitlabProject(gitlabProject *GitlabProject)

func (*GitlabProjectDeployKeys) SetGitlabProject added in v0.31.0

func (k *GitlabProjectDeployKeys) SetGitlabProject(gitlabProject *GitlabProject) (err error)

type GitlabProjects added in v0.31.0

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

func NewGitlabProjects added in v0.31.0

func NewGitlabProjects() (gitlabProject *GitlabProjects)

func (*GitlabProjects) CreateProject added in v0.31.0

func (p *GitlabProjects) CreateProject(createOptions *GitlabCreateProjectOptions) (createdGitlabProject *GitlabProject, err error)

func (*GitlabProjects) GetFqdn added in v0.31.0

func (p *GitlabProjects) GetFqdn() (fqdn string, err error)

func (*GitlabProjects) GetGitlab added in v0.31.0

func (p *GitlabProjects) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabProjects) GetNativeClient added in v0.31.0

func (p *GitlabProjects) GetNativeClient() (nativeClient *gitlab.Client, err error)

func (*GitlabProjects) GetNativeProjectsService added in v0.31.0

func (p *GitlabProjects) GetNativeProjectsService() (nativeGitlabProject *gitlab.ProjectsService, err error)

func (*GitlabProjects) GetProjectById added in v0.37.0

func (g *GitlabProjects) GetProjectById(projectId int) (gitlabProject *GitlabProject, err error)

func (*GitlabProjects) GetProjectByNativeProject added in v0.37.0

func (g *GitlabProjects) GetProjectByNativeProject(nativeProject *gitlab.Project) (gitlabProject *GitlabProject, err error)

func (*GitlabProjects) GetProjectByProjectPath added in v0.31.0

func (g *GitlabProjects) GetProjectByProjectPath(projectPath string) (gitlabProject *GitlabProject, err error)

func (*GitlabProjects) GetProjectList added in v0.31.0

func (p *GitlabProjects) GetProjectList(verbose bool) (gitlabProjects []*GitlabProject, err error)

func (*GitlabProjects) GetProjectPathList added in v0.31.0

func (p *GitlabProjects) GetProjectPathList(verbose bool) (projectPaths []string, err error)

func (*GitlabProjects) MustCreateProject added in v0.31.0

func (g *GitlabProjects) MustCreateProject(createOptions *GitlabCreateProjectOptions) (createdGitlabProject *GitlabProject)

func (*GitlabProjects) MustGetFqdn added in v0.31.0

func (g *GitlabProjects) MustGetFqdn() (fqdn string)

func (*GitlabProjects) MustGetGitlab added in v0.31.0

func (g *GitlabProjects) MustGetGitlab() (gitlab *GitlabInstance)

func (*GitlabProjects) MustGetNativeClient added in v0.31.0

func (g *GitlabProjects) MustGetNativeClient() (nativeClient *gitlab.Client)

func (*GitlabProjects) MustGetNativeProjectsService added in v0.31.0

func (g *GitlabProjects) MustGetNativeProjectsService() (nativeGitlabProject *gitlab.ProjectsService)

func (*GitlabProjects) MustGetProjectById added in v0.37.0

func (g *GitlabProjects) MustGetProjectById(projectId int) (gitlabProject *GitlabProject)

func (*GitlabProjects) MustGetProjectByNativeProject added in v0.37.0

func (g *GitlabProjects) MustGetProjectByNativeProject(nativeProject *gitlab.Project) (gitlabProject *GitlabProject)

func (*GitlabProjects) MustGetProjectByProjectPath added in v0.31.0

func (g *GitlabProjects) MustGetProjectByProjectPath(projectPath string) (gitlabProject *GitlabProject)

func (*GitlabProjects) MustGetProjectList added in v0.31.0

func (g *GitlabProjects) MustGetProjectList(verbose bool) (gitlabProjects []*GitlabProject)

func (*GitlabProjects) MustGetProjectPathList added in v0.31.0

func (g *GitlabProjects) MustGetProjectPathList(verbose bool) (projectPaths []string)

func (*GitlabProjects) MustProjectByProjectIdExists added in v0.37.0

func (g *GitlabProjects) MustProjectByProjectIdExists(projectId int, verbose bool) (projectExists bool)

func (*GitlabProjects) MustProjectByProjectPathExists added in v0.31.0

func (g *GitlabProjects) MustProjectByProjectPathExists(projectPath string, verbose bool) (projectExists bool)

func (*GitlabProjects) MustSetGitlab added in v0.31.0

func (g *GitlabProjects) MustSetGitlab(gitlab *GitlabInstance)

func (*GitlabProjects) ProjectByProjectIdExists added in v0.37.0

func (g *GitlabProjects) ProjectByProjectIdExists(projectId int, verbose bool) (projectExists bool, err error)

func (*GitlabProjects) ProjectByProjectPathExists added in v0.31.0

func (p *GitlabProjects) ProjectByProjectPathExists(projectPath string, verbose bool) (projectExists bool, err error)

func (*GitlabProjects) SetGitlab added in v0.31.0

func (p *GitlabProjects) SetGitlab(gitlab *GitlabInstance) (err error)

type GitlabReadFileOptions added in v0.39.0

type GitlabReadFileOptions struct {
	Path       string
	BranchName string
	Verbose    bool
}

func NewGitlabReadFileOptions added in v0.39.0

func NewGitlabReadFileOptions() (g *GitlabReadFileOptions)

func (*GitlabReadFileOptions) GetBranchName added in v0.39.0

func (g *GitlabReadFileOptions) GetBranchName() (branchName string, err error)

func (*GitlabReadFileOptions) GetGitlabGetRepositoryFileOptions added in v0.39.0

func (g *GitlabReadFileOptions) GetGitlabGetRepositoryFileOptions() (getOptions *GitlabGetRepositoryFileOptions, err error)

func (*GitlabReadFileOptions) GetPath added in v0.39.0

func (g *GitlabReadFileOptions) GetPath() (path string, err error)

func (*GitlabReadFileOptions) GetVerbose added in v0.39.0

func (g *GitlabReadFileOptions) GetVerbose() (verbose bool)

func (*GitlabReadFileOptions) MustGetBranchName added in v0.39.0

func (g *GitlabReadFileOptions) MustGetBranchName() (branchName string)

func (*GitlabReadFileOptions) MustGetGitlabGetRepositoryFileOptions added in v0.39.0

func (g *GitlabReadFileOptions) MustGetGitlabGetRepositoryFileOptions() (getOptions *GitlabGetRepositoryFileOptions)

func (*GitlabReadFileOptions) MustGetPath added in v0.39.0

func (g *GitlabReadFileOptions) MustGetPath() (path string)

func (*GitlabReadFileOptions) MustSetBranchName added in v0.39.0

func (g *GitlabReadFileOptions) MustSetBranchName(branchName string)

func (*GitlabReadFileOptions) MustSetPath added in v0.39.0

func (g *GitlabReadFileOptions) MustSetPath(path string)

func (*GitlabReadFileOptions) SetBranchName added in v0.39.0

func (g *GitlabReadFileOptions) SetBranchName(branchName string) (err error)

func (*GitlabReadFileOptions) SetPath added in v0.39.0

func (g *GitlabReadFileOptions) SetPath(path string) (err error)

func (*GitlabReadFileOptions) SetVerbose added in v0.39.0

func (g *GitlabReadFileOptions) SetVerbose(verbose bool)

type GitlabRepositoryFile added in v0.39.0

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

func NewGitlabRepositoryFile added in v0.39.0

func NewGitlabRepositoryFile() (g *GitlabRepositoryFile)

func (*GitlabRepositoryFile) Exists added in v0.39.0

func (g *GitlabRepositoryFile) Exists() (fileExists bool, err error)

func (*GitlabRepositoryFile) GetBranchName added in v0.39.0

func (g *GitlabRepositoryFile) GetBranchName() (branchName string, err error)

func (*GitlabRepositoryFile) GetContentAsBytes added in v0.39.0

func (g *GitlabRepositoryFile) GetContentAsBytes(verbose bool) (content []byte, err error)

func (*GitlabRepositoryFile) GetContentAsString added in v0.39.0

func (g *GitlabRepositoryFile) GetContentAsString(verbose bool) (content string, err error)

func (*GitlabRepositoryFile) GetDefaultBranchName added in v0.39.0

func (g *GitlabRepositoryFile) GetDefaultBranchName() (defaultBranchName string, err error)

func (*GitlabRepositoryFile) GetGitlabProject added in v0.39.0

func (g *GitlabRepositoryFile) GetGitlabProject() (gitlabProject *GitlabProject, err error)

func (*GitlabRepositoryFile) GetNativeRepositoryFile added in v0.39.0

func (g *GitlabRepositoryFile) GetNativeRepositoryFile() (nativeFile *gitlab.File, err error)

func (*GitlabRepositoryFile) GetNativeRepositoryFilesClient added in v0.39.0

func (g *GitlabRepositoryFile) GetNativeRepositoryFilesClient() (nativeRepositoryFilesClient *gitlab.RepositoryFilesService, err error)

func (*GitlabRepositoryFile) GetPath added in v0.39.0

func (g *GitlabRepositoryFile) GetPath() (path string, err error)

func (*GitlabRepositoryFile) GetProjectId added in v0.39.0

func (g *GitlabRepositoryFile) GetProjectId() (projectId int, err error)

func (*GitlabRepositoryFile) GetProjectUrl added in v0.39.0

func (g *GitlabRepositoryFile) GetProjectUrl() (projectUrl string, err error)

func (*GitlabRepositoryFile) GetRepositoryFiles added in v0.39.0

func (g *GitlabRepositoryFile) GetRepositoryFiles() (repositoryFiles *GitlabRepositoryFiles, err error)

func (*GitlabRepositoryFile) IsBranchNameSet added in v0.39.0

func (g *GitlabRepositoryFile) IsBranchNameSet() (isSet bool)

func (*GitlabRepositoryFile) MustExists added in v0.39.0

func (g *GitlabRepositoryFile) MustExists() (fileExists bool)

func (*GitlabRepositoryFile) MustGetBranchName added in v0.39.0

func (g *GitlabRepositoryFile) MustGetBranchName() (branchName string)

func (*GitlabRepositoryFile) MustGetContentAsBytes added in v0.39.0

func (g *GitlabRepositoryFile) MustGetContentAsBytes(verbose bool) (content []byte)

func (*GitlabRepositoryFile) MustGetContentAsString added in v0.39.0

func (g *GitlabRepositoryFile) MustGetContentAsString(verbose bool) (content string)

func (*GitlabRepositoryFile) MustGetDefaultBranchName added in v0.39.0

func (g *GitlabRepositoryFile) MustGetDefaultBranchName() (defaultBranchName string)

func (*GitlabRepositoryFile) MustGetGitlabProject added in v0.39.0

func (g *GitlabRepositoryFile) MustGetGitlabProject() (gitlabProject *GitlabProject)

func (*GitlabRepositoryFile) MustGetNativeRepositoryFile added in v0.39.0

func (g *GitlabRepositoryFile) MustGetNativeRepositoryFile() (nativeFile *gitlab.File)

func (*GitlabRepositoryFile) MustGetNativeRepositoryFilesClient added in v0.39.0

func (g *GitlabRepositoryFile) MustGetNativeRepositoryFilesClient() (nativeRepositoryFilesClient *gitlab.RepositoryFilesService)

func (*GitlabRepositoryFile) MustGetPath added in v0.39.0

func (g *GitlabRepositoryFile) MustGetPath() (path string)

func (*GitlabRepositoryFile) MustGetProjectId added in v0.39.0

func (g *GitlabRepositoryFile) MustGetProjectId() (projectId int)

func (*GitlabRepositoryFile) MustGetProjectUrl added in v0.39.0

func (g *GitlabRepositoryFile) MustGetProjectUrl() (projectUrl string)

func (*GitlabRepositoryFile) MustGetRepositoryFiles added in v0.39.0

func (g *GitlabRepositoryFile) MustGetRepositoryFiles() (repositoryFiles *GitlabRepositoryFiles)

func (*GitlabRepositoryFile) MustSetBranchName added in v0.39.0

func (g *GitlabRepositoryFile) MustSetBranchName(branchName string)

func (*GitlabRepositoryFile) MustSetGitlabProject added in v0.39.0

func (g *GitlabRepositoryFile) MustSetGitlabProject(gitlabProject *GitlabProject)

func (*GitlabRepositoryFile) MustSetPath added in v0.39.0

func (g *GitlabRepositoryFile) MustSetPath(path string)

func (*GitlabRepositoryFile) MustWriteFileContentByBytes added in v0.39.0

func (g *GitlabRepositoryFile) MustWriteFileContentByBytes(content []byte, commitMessage string, verbose bool)

func (*GitlabRepositoryFile) MustWriteFileContentByString added in v0.39.0

func (g *GitlabRepositoryFile) MustWriteFileContentByString(content string, commitMessage string, verbose bool)

func (*GitlabRepositoryFile) SetBranchName added in v0.39.0

func (g *GitlabRepositoryFile) SetBranchName(branchName string) (err error)

func (*GitlabRepositoryFile) SetGitlabProject added in v0.39.0

func (g *GitlabRepositoryFile) SetGitlabProject(gitlabProject *GitlabProject) (err error)

func (*GitlabRepositoryFile) SetPath added in v0.39.0

func (g *GitlabRepositoryFile) SetPath(path string) (err error)

func (*GitlabRepositoryFile) WriteFileContentByBytes added in v0.39.0

func (g *GitlabRepositoryFile) WriteFileContentByBytes(content []byte, commitMessage string, verbose bool) (err error)

func (*GitlabRepositoryFile) WriteFileContentByString added in v0.39.0

func (g *GitlabRepositoryFile) WriteFileContentByString(content string, commitMessage string, verbose bool) (err error)

type GitlabRepositoryFiles added in v0.39.0

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

func NewGitlabRepositoryFiles added in v0.39.0

func NewGitlabRepositoryFiles() (g *GitlabRepositoryFiles)

func (*GitlabRepositoryFiles) GetGitlab added in v0.39.0

func (g *GitlabRepositoryFiles) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabRepositoryFiles) GetGitlabProject added in v0.39.0

func (g *GitlabRepositoryFiles) GetGitlabProject() (gitlabProject *GitlabProject, err error)

func (*GitlabRepositoryFiles) GetNativeRepositoryFilesClient added in v0.39.0

func (g *GitlabRepositoryFiles) GetNativeRepositoryFilesClient() (nativeRepositoryFilesClient *gitlab.RepositoryFilesService, err error)

func (*GitlabRepositoryFiles) GetRepositoryFile added in v0.39.0

func (g *GitlabRepositoryFiles) GetRepositoryFile(options *GitlabGetRepositoryFileOptions) (repositoryFile *GitlabRepositoryFile, err error)

func (*GitlabRepositoryFiles) MustGetGitlab added in v0.39.0

func (g *GitlabRepositoryFiles) MustGetGitlab() (gitlab *GitlabInstance)

func (*GitlabRepositoryFiles) MustGetGitlabProject added in v0.39.0

func (g *GitlabRepositoryFiles) MustGetGitlabProject() (gitlabProject *GitlabProject)

func (*GitlabRepositoryFiles) MustGetNativeRepositoryFilesClient added in v0.39.0

func (g *GitlabRepositoryFiles) MustGetNativeRepositoryFilesClient() (nativeRepositoryFilesClient *gitlab.RepositoryFilesService)

func (*GitlabRepositoryFiles) MustGetRepositoryFile added in v0.39.0

func (g *GitlabRepositoryFiles) MustGetRepositoryFile(options *GitlabGetRepositoryFileOptions) (repositoryFile *GitlabRepositoryFile)

func (*GitlabRepositoryFiles) MustReadFileContentAsString added in v0.39.0

func (g *GitlabRepositoryFiles) MustReadFileContentAsString(options *GitlabReadFileOptions) (content string)

func (*GitlabRepositoryFiles) MustSetGitlabProject added in v0.39.0

func (g *GitlabRepositoryFiles) MustSetGitlabProject(gitlabProject *GitlabProject)

func (*GitlabRepositoryFiles) MustWriteFileContent added in v0.39.0

func (g *GitlabRepositoryFiles) MustWriteFileContent(options *GitlabWriteFileOptions) (gitlabRepositoryFile *GitlabRepositoryFile)

func (*GitlabRepositoryFiles) ReadFileContentAsString added in v0.39.0

func (g *GitlabRepositoryFiles) ReadFileContentAsString(options *GitlabReadFileOptions) (content string, err error)

func (*GitlabRepositoryFiles) SetGitlabProject added in v0.39.0

func (g *GitlabRepositoryFiles) SetGitlabProject(gitlabProject *GitlabProject) (err error)

func (*GitlabRepositoryFiles) WriteFileContent added in v0.39.0

func (g *GitlabRepositoryFiles) WriteFileContent(options *GitlabWriteFileOptions) (gitlabRepositoryFile *GitlabRepositoryFile, err error)

type GitlabResetAccessTokenOptions added in v0.31.0

type GitlabResetAccessTokenOptions struct {
	Username                        string
	GopassPathToStoreNewToken       string
	GitlabContainerNameOnGitlabHost string
	SshUserNameForGitlabHost        string
	Verbose                         bool
}

func NewGitlabResetAccessTokenOptions added in v0.31.0

func NewGitlabResetAccessTokenOptions() (g *GitlabResetAccessTokenOptions)

func (*GitlabResetAccessTokenOptions) GetGitlabContainerNameOnGitlabHost added in v0.31.0

func (g *GitlabResetAccessTokenOptions) GetGitlabContainerNameOnGitlabHost() (gitlabContainerNameOnGitlabHost string, err error)

func (*GitlabResetAccessTokenOptions) GetGopassPathToStoreNewToken added in v0.31.0

func (g *GitlabResetAccessTokenOptions) GetGopassPathToStoreNewToken() (gopassPathToStoreNewToken string, err error)

func (*GitlabResetAccessTokenOptions) GetSshUserNameForGitlabHost added in v0.31.0

func (g *GitlabResetAccessTokenOptions) GetSshUserNameForGitlabHost() (sshUserNameForGitlabHost string, err error)

func (*GitlabResetAccessTokenOptions) GetUsername added in v0.31.0

func (o *GitlabResetAccessTokenOptions) GetUsername() (username string, err error)

func (*GitlabResetAccessTokenOptions) GetVerbose added in v0.31.0

func (g *GitlabResetAccessTokenOptions) GetVerbose() (verbose bool, err error)

func (*GitlabResetAccessTokenOptions) MustGetGitlabContainerNameOnGitlabHost added in v0.31.0

func (g *GitlabResetAccessTokenOptions) MustGetGitlabContainerNameOnGitlabHost() (gitlabContainerNameOnGitlabHost string)

func (*GitlabResetAccessTokenOptions) MustGetGopassPathToStoreNewToken added in v0.31.0

func (g *GitlabResetAccessTokenOptions) MustGetGopassPathToStoreNewToken() (gopassPathToStoreNewToken string)

func (*GitlabResetAccessTokenOptions) MustGetSshUserNameForGitlabHost added in v0.31.0

func (g *GitlabResetAccessTokenOptions) MustGetSshUserNameForGitlabHost() (sshUserNameForGitlabHost string)

func (*GitlabResetAccessTokenOptions) MustGetUsername added in v0.31.0

func (g *GitlabResetAccessTokenOptions) MustGetUsername() (username string)

func (*GitlabResetAccessTokenOptions) MustGetVerbose added in v0.31.0

func (g *GitlabResetAccessTokenOptions) MustGetVerbose() (verbose bool)

func (*GitlabResetAccessTokenOptions) MustSetGitlabContainerNameOnGitlabHost added in v0.31.0

func (g *GitlabResetAccessTokenOptions) MustSetGitlabContainerNameOnGitlabHost(gitlabContainerNameOnGitlabHost string)

func (*GitlabResetAccessTokenOptions) MustSetGopassPathToStoreNewToken added in v0.31.0

func (g *GitlabResetAccessTokenOptions) MustSetGopassPathToStoreNewToken(gopassPathToStoreNewToken string)

func (*GitlabResetAccessTokenOptions) MustSetSshUserNameForGitlabHost added in v0.31.0

func (g *GitlabResetAccessTokenOptions) MustSetSshUserNameForGitlabHost(sshUserNameForGitlabHost string)

func (*GitlabResetAccessTokenOptions) MustSetUsername added in v0.31.0

func (g *GitlabResetAccessTokenOptions) MustSetUsername(username string)

func (*GitlabResetAccessTokenOptions) MustSetVerbose added in v0.31.0

func (g *GitlabResetAccessTokenOptions) MustSetVerbose(verbose bool)

func (*GitlabResetAccessTokenOptions) SetGitlabContainerNameOnGitlabHost added in v0.31.0

func (g *GitlabResetAccessTokenOptions) SetGitlabContainerNameOnGitlabHost(gitlabContainerNameOnGitlabHost string) (err error)

func (*GitlabResetAccessTokenOptions) SetGopassPathToStoreNewToken added in v0.31.0

func (g *GitlabResetAccessTokenOptions) SetGopassPathToStoreNewToken(gopassPathToStoreNewToken string) (err error)

func (*GitlabResetAccessTokenOptions) SetSshUserNameForGitlabHost added in v0.31.0

func (g *GitlabResetAccessTokenOptions) SetSshUserNameForGitlabHost(sshUserNameForGitlabHost string) (err error)

func (*GitlabResetAccessTokenOptions) SetUsername added in v0.31.0

func (g *GitlabResetAccessTokenOptions) SetUsername(username string) (err error)

func (*GitlabResetAccessTokenOptions) SetVerbose added in v0.31.0

func (g *GitlabResetAccessTokenOptions) SetVerbose(verbose bool) (err error)

type GitlabResetPasswordOptions added in v0.31.0

type GitlabResetPasswordOptions struct {
	Username                        string
	GitlabContainerNameOnGitlabHost string
	GopassPathToStoreNewPassword    string
	SshUserNameForGitlabHost        string
	Verbose                         bool
}

func NewGitlabResetPasswordOptions added in v0.31.0

func NewGitlabResetPasswordOptions() (g *GitlabResetPasswordOptions)

func (*GitlabResetPasswordOptions) GetGitlabContainerNameOnGitlabHost added in v0.31.0

func (g *GitlabResetPasswordOptions) GetGitlabContainerNameOnGitlabHost() (gitlabContainerNameOnGitlabHost string, err error)

func (*GitlabResetPasswordOptions) GetGopassPathToStoreNewPassword added in v0.31.0

func (g *GitlabResetPasswordOptions) GetGopassPathToStoreNewPassword() (gopassPathToStoreNewPassword string, err error)

func (*GitlabResetPasswordOptions) GetSshUserNameForGitlabHost added in v0.31.0

func (o *GitlabResetPasswordOptions) GetSshUserNameForGitlabHost() (sshUserName string, err error)

func (*GitlabResetPasswordOptions) GetUsername added in v0.31.0

func (o *GitlabResetPasswordOptions) GetUsername() (username string, err error)

func (*GitlabResetPasswordOptions) GetVerbose added in v0.31.0

func (g *GitlabResetPasswordOptions) GetVerbose() (verbose bool, err error)

func (*GitlabResetPasswordOptions) IsSshUserNameForGitlabHostSet added in v0.31.0

func (o *GitlabResetPasswordOptions) IsSshUserNameForGitlabHostSet() (isSet bool)

func (*GitlabResetPasswordOptions) MustGetGitlabContainerNameOnGitlabHost added in v0.31.0

func (g *GitlabResetPasswordOptions) MustGetGitlabContainerNameOnGitlabHost() (gitlabContainerNameOnGitlabHost string)

func (*GitlabResetPasswordOptions) MustGetGopassPathToStoreNewPassword added in v0.31.0

func (g *GitlabResetPasswordOptions) MustGetGopassPathToStoreNewPassword() (gopassPathToStoreNewPassword string)

func (*GitlabResetPasswordOptions) MustGetSshUserNameForGitlabHost added in v0.31.0

func (g *GitlabResetPasswordOptions) MustGetSshUserNameForGitlabHost() (sshUserName string)

func (*GitlabResetPasswordOptions) MustGetUsername added in v0.31.0

func (g *GitlabResetPasswordOptions) MustGetUsername() (username string)

func (*GitlabResetPasswordOptions) MustGetVerbose added in v0.31.0

func (g *GitlabResetPasswordOptions) MustGetVerbose() (verbose bool)

func (*GitlabResetPasswordOptions) MustSetGitlabContainerNameOnGitlabHost added in v0.31.0

func (g *GitlabResetPasswordOptions) MustSetGitlabContainerNameOnGitlabHost(gitlabContainerNameOnGitlabHost string)

func (*GitlabResetPasswordOptions) MustSetGopassPathToStoreNewPassword added in v0.31.0

func (g *GitlabResetPasswordOptions) MustSetGopassPathToStoreNewPassword(gopassPathToStoreNewPassword string)

func (*GitlabResetPasswordOptions) MustSetSshUserNameForGitlabHost added in v0.31.0

func (g *GitlabResetPasswordOptions) MustSetSshUserNameForGitlabHost(sshUserNameForGitlabHost string)

func (*GitlabResetPasswordOptions) MustSetUsername added in v0.31.0

func (g *GitlabResetPasswordOptions) MustSetUsername(username string)

func (*GitlabResetPasswordOptions) MustSetVerbose added in v0.31.0

func (g *GitlabResetPasswordOptions) MustSetVerbose(verbose bool)

func (*GitlabResetPasswordOptions) SetGitlabContainerNameOnGitlabHost added in v0.31.0

func (g *GitlabResetPasswordOptions) SetGitlabContainerNameOnGitlabHost(gitlabContainerNameOnGitlabHost string) (err error)

func (*GitlabResetPasswordOptions) SetGopassPathToStoreNewPassword added in v0.31.0

func (g *GitlabResetPasswordOptions) SetGopassPathToStoreNewPassword(gopassPathToStoreNewPassword string) (err error)

func (*GitlabResetPasswordOptions) SetSshUserNameForGitlabHost added in v0.31.0

func (g *GitlabResetPasswordOptions) SetSshUserNameForGitlabHost(sshUserNameForGitlabHost string) (err error)

func (*GitlabResetPasswordOptions) SetUsername added in v0.31.0

func (g *GitlabResetPasswordOptions) SetUsername(username string) (err error)

func (*GitlabResetPasswordOptions) SetVerbose added in v0.31.0

func (g *GitlabResetPasswordOptions) SetVerbose(verbose bool) (err error)

type GitlabRunner added in v0.31.0

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

func NewGitlabRunner added in v0.31.0

func NewGitlabRunner() (gitlabRunner *GitlabRunner)

func (*GitlabRunner) GetCachedDescription added in v0.31.0

func (r *GitlabRunner) GetCachedDescription() (description string, err error)

func (*GitlabRunner) GetCachedName added in v0.31.0

func (r *GitlabRunner) GetCachedName() (name string, err error)

func (*GitlabRunner) GetCachedNameOrDescription added in v0.31.0

func (r *GitlabRunner) GetCachedNameOrDescription() (name string, err error)

func (*GitlabRunner) GetGitlab added in v0.31.0

func (s *GitlabRunner) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabRunner) GetGitlabRunners added in v0.31.0

func (r *GitlabRunner) GetGitlabRunners() (gitlabRunners *GitlabRunnersService, err error)

func (*GitlabRunner) GetId added in v0.31.0

func (s *GitlabRunner) GetId() (id int, err error)

func (*GitlabRunner) GetNativeRunnersService added in v0.31.0

func (r *GitlabRunner) GetNativeRunnersService() (nativeRunnersService *gitlab.RunnersService, err error)

func (*GitlabRunner) IsCachedDescriptionSet added in v0.31.0

func (r *GitlabRunner) IsCachedDescriptionSet() (isSet bool)

func (*GitlabRunner) IsCachedDescriptionUnset added in v0.31.0

func (r *GitlabRunner) IsCachedDescriptionUnset() (isUnset bool)

func (*GitlabRunner) IsCachedNameSet added in v0.31.0

func (r *GitlabRunner) IsCachedNameSet() (isCachedNameSet bool)

func (*GitlabRunner) IsCachedNameUnset added in v0.31.0

func (r *GitlabRunner) IsCachedNameUnset() (isCachedNameUnset bool)

func (*GitlabRunner) IsStatusOk added in v0.31.0

func (r *GitlabRunner) IsStatusOk() (isStatusOk bool, err error)

func (*GitlabRunner) MustGetCachedDescription added in v0.31.0

func (g *GitlabRunner) MustGetCachedDescription() (description string)

func (*GitlabRunner) MustGetCachedName added in v0.31.0

func (g *GitlabRunner) MustGetCachedName() (name string)

func (*GitlabRunner) MustGetCachedNameOrDescription added in v0.31.0

func (g *GitlabRunner) MustGetCachedNameOrDescription() (name string)

func (*GitlabRunner) MustGetGitlab added in v0.31.0

func (g *GitlabRunner) MustGetGitlab() (gitlab *GitlabInstance)

func (*GitlabRunner) MustGetGitlabRunners added in v0.31.0

func (g *GitlabRunner) MustGetGitlabRunners() (gitlabRunners *GitlabRunnersService)

func (*GitlabRunner) MustGetId added in v0.31.0

func (g *GitlabRunner) MustGetId() (id int)

func (*GitlabRunner) MustGetNativeRunnersService added in v0.31.0

func (g *GitlabRunner) MustGetNativeRunnersService() (nativeRunnersService *gitlab.RunnersService)

func (*GitlabRunner) MustIsStatusOk added in v0.31.0

func (g *GitlabRunner) MustIsStatusOk() (isStatusOk bool)

func (*GitlabRunner) MustRemove added in v0.31.0

func (g *GitlabRunner) MustRemove(verbose bool)

func (*GitlabRunner) MustResetRunnerToken added in v0.31.0

func (g *GitlabRunner) MustResetRunnerToken() (runnerToken string)

func (*GitlabRunner) MustSetCachedDescription added in v0.31.0

func (g *GitlabRunner) MustSetCachedDescription(description string)

func (*GitlabRunner) MustSetCachedName added in v0.31.0

func (g *GitlabRunner) MustSetCachedName(name string)

func (*GitlabRunner) MustSetGitlab added in v0.31.0

func (g *GitlabRunner) MustSetGitlab(gitlab *GitlabInstance)

func (*GitlabRunner) MustSetId added in v0.31.0

func (g *GitlabRunner) MustSetId(id int)

func (*GitlabRunner) Remove added in v0.31.0

func (r *GitlabRunner) Remove(verbose bool) (err error)

func (*GitlabRunner) ResetRunnerToken added in v0.31.0

func (r *GitlabRunner) ResetRunnerToken() (runnerToken string, err error)

func (*GitlabRunner) SetCachedDescription added in v0.31.0

func (r *GitlabRunner) SetCachedDescription(description string) (err error)

func (*GitlabRunner) SetCachedName added in v0.31.0

func (s *GitlabRunner) SetCachedName(name string) (err error)

func (*GitlabRunner) SetGitlab added in v0.31.0

func (s *GitlabRunner) SetGitlab(gitlab *GitlabInstance) (err error)

func (*GitlabRunner) SetId added in v0.31.0

func (s *GitlabRunner) SetId(id int) (err error)

type GitlabRunnersService added in v0.31.0

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

func NewGitlabRunners added in v0.31.0

func NewGitlabRunners() (gitlabRunners *GitlabRunnersService)

func NewGitlabRunnersService added in v0.31.0

func NewGitlabRunnersService() (g *GitlabRunnersService)

func (*GitlabRunnersService) AddRunner added in v0.31.0

func (s *GitlabRunnersService) AddRunner(newRunnerOptions *GitlabAddRunnerOptions) (createdRunner *GitlabRunner, err error)

func (*GitlabRunnersService) CheckRunnerStatusOk added in v0.31.0

func (s *GitlabRunnersService) CheckRunnerStatusOk(runnerName string, verbose bool) (isRunnerOk bool, err error)

func (*GitlabRunnersService) GetApiV4Url added in v0.31.0

func (s *GitlabRunnersService) GetApiV4Url() (apiV4Url string, err error)

func (*GitlabRunnersService) GetCurrentlyUsedAccessToken added in v0.31.0

func (s *GitlabRunnersService) GetCurrentlyUsedAccessToken() (gitlabAccessToken string, err error)

func (*GitlabRunnersService) GetFqdn added in v0.31.0

func (r *GitlabRunnersService) GetFqdn() (fqdn string, err error)

func (*GitlabRunnersService) GetGitlab added in v0.31.0

func (s *GitlabRunnersService) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabRunnersService) GetNativeClient added in v0.31.0

func (s *GitlabRunnersService) GetNativeClient() (nativeClient *gitlab.Client, err error)

func (*GitlabRunnersService) GetNativeRunnersService added in v0.31.0

func (s *GitlabRunnersService) GetNativeRunnersService() (nativeRunnersService *gitlab.RunnersService, err error)

func (*GitlabRunnersService) GetRunnerByName added in v0.31.0

func (s *GitlabRunnersService) GetRunnerByName(runnerName string) (runner *GitlabRunner, err error)

func (*GitlabRunnersService) GetRunnerList added in v0.31.0

func (s *GitlabRunnersService) GetRunnerList() (runners []*GitlabRunner, err error)

According to the documentation this only works when logged in as admin: https://github.com/xanzy/go-gitlab/blob/master/runners.go#L126

func (*GitlabRunnersService) GetRunnerNamesList added in v0.31.0

func (s *GitlabRunnersService) GetRunnerNamesList() (runnerNames []string, err error)

func (*GitlabRunnersService) IsRunnerStatusOk added in v0.31.0

func (s *GitlabRunnersService) IsRunnerStatusOk(runnerName string, verbose bool) (isStatusOk bool, err error)

func (*GitlabRunnersService) MustAddRunner added in v0.31.0

func (g *GitlabRunnersService) MustAddRunner(newRunnerOptions *GitlabAddRunnerOptions) (createdRunner *GitlabRunner)

func (*GitlabRunnersService) MustCheckRunnerStatusOk added in v0.31.0

func (g *GitlabRunnersService) MustCheckRunnerStatusOk(runnerName string, verbose bool) (isRunnerOk bool)

func (*GitlabRunnersService) MustGetApiV4Url added in v0.31.0

func (g *GitlabRunnersService) MustGetApiV4Url() (apiV4Url string)

func (*GitlabRunnersService) MustGetCurrentlyUsedAccessToken added in v0.31.0

func (g *GitlabRunnersService) MustGetCurrentlyUsedAccessToken() (gitlabAccessToken string)

func (*GitlabRunnersService) MustGetFqdn added in v0.31.0

func (g *GitlabRunnersService) MustGetFqdn() (fqdn string)

func (*GitlabRunnersService) MustGetGitlab added in v0.31.0

func (g *GitlabRunnersService) MustGetGitlab() (gitlab *GitlabInstance)

func (*GitlabRunnersService) MustGetNativeClient added in v0.31.0

func (g *GitlabRunnersService) MustGetNativeClient() (nativeClient *gitlab.Client)

func (*GitlabRunnersService) MustGetNativeRunnersService added in v0.31.0

func (g *GitlabRunnersService) MustGetNativeRunnersService() (nativeRunnersService *gitlab.RunnersService)

func (*GitlabRunnersService) MustGetRunnerByName added in v0.31.0

func (g *GitlabRunnersService) MustGetRunnerByName(runnerName string) (runner *GitlabRunner)

func (*GitlabRunnersService) MustGetRunnerList added in v0.31.0

func (g *GitlabRunnersService) MustGetRunnerList() (runners []*GitlabRunner)

func (*GitlabRunnersService) MustGetRunnerNamesList added in v0.31.0

func (g *GitlabRunnersService) MustGetRunnerNamesList() (runnerNames []string)

func (*GitlabRunnersService) MustIsRunnerStatusOk added in v0.31.0

func (g *GitlabRunnersService) MustIsRunnerStatusOk(runnerName string, verbose bool) (isStatusOk bool)

func (*GitlabRunnersService) MustRemoveAllRunners added in v0.31.0

func (g *GitlabRunnersService) MustRemoveAllRunners(verbose bool)

func (*GitlabRunnersService) MustRunnerByNameExists added in v0.31.0

func (g *GitlabRunnersService) MustRunnerByNameExists(runnerName string) (exists bool)

func (*GitlabRunnersService) MustSetGitlab added in v0.31.0

func (g *GitlabRunnersService) MustSetGitlab(gitlab *GitlabInstance)

func (*GitlabRunnersService) RemoveAllRunners added in v0.31.0

func (r *GitlabRunnersService) RemoveAllRunners(verbose bool) (err error)

func (*GitlabRunnersService) RunnerByNameExists added in v0.31.0

func (s *GitlabRunnersService) RunnerByNameExists(runnerName string) (exists bool, err error)

func (*GitlabRunnersService) SetGitlab added in v0.31.0

func (s *GitlabRunnersService) SetGitlab(gitlab *GitlabInstance) (err error)

type GitlabService added in v0.20.0

type GitlabService struct{}

func Gitlab added in v0.20.0

func Gitlab() (g *GitlabService)

func NewGitlabService added in v0.20.0

func NewGitlabService() (g *GitlabService)

func (*GitlabService) GetDefaultGitlabCiYamlFileName added in v0.20.0

func (g *GitlabService) GetDefaultGitlabCiYamlFileName() (fileName string)

type GitlabSettings added in v0.31.0

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

func NewGitlabSettings added in v0.31.0

func NewGitlabSettings() (gitlabSettings *GitlabSettings)

func (*GitlabSettings) DisableAutoDevops added in v0.31.0

func (s *GitlabSettings) DisableAutoDevops(verbose bool) (err error)

func (*GitlabSettings) DisableSignup added in v0.31.0

func (s *GitlabSettings) DisableSignup(verbose bool) (err error)

func (*GitlabSettings) GetCurrentSettingsNative added in v0.31.0

func (s *GitlabSettings) GetCurrentSettingsNative() (nativeSettings *gitlab.Settings, err error)

func (*GitlabSettings) GetFqdn added in v0.31.0

func (s *GitlabSettings) GetFqdn() (fqdn string, err error)

func (*GitlabSettings) GetGitlab added in v0.31.0

func (s *GitlabSettings) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabSettings) GetNativeClient added in v0.31.0

func (s *GitlabSettings) GetNativeClient() (nativeClient *gitlab.Client, err error)

func (*GitlabSettings) GetNativeSettingsService added in v0.31.0

func (s *GitlabSettings) GetNativeSettingsService() (nativeSettingsService *gitlab.SettingsService, err error)

func (*GitlabSettings) IsAutoDevopsEnabled added in v0.31.0

func (s *GitlabSettings) IsAutoDevopsEnabled() (isAutoDevopsEnabled bool, err error)

func (*GitlabSettings) IsSignupEnabled added in v0.31.0

func (s *GitlabSettings) IsSignupEnabled() (isSignupEnabled bool, err error)

func (*GitlabSettings) MustDisableAutoDevops added in v0.31.0

func (g *GitlabSettings) MustDisableAutoDevops(verbose bool)

func (*GitlabSettings) MustDisableAutoDevos added in v0.31.0

func (s *GitlabSettings) MustDisableAutoDevos(verbose bool)

func (*GitlabSettings) MustDisableSignup added in v0.31.0

func (g *GitlabSettings) MustDisableSignup(verbose bool)

func (*GitlabSettings) MustGetCurrentSettingsNative added in v0.31.0

func (g *GitlabSettings) MustGetCurrentSettingsNative() (nativeSettings *gitlab.Settings)

func (*GitlabSettings) MustGetFqdn added in v0.31.0

func (g *GitlabSettings) MustGetFqdn() (fqdn string)

func (*GitlabSettings) MustGetGitlab added in v0.31.0

func (g *GitlabSettings) MustGetGitlab() (gitlab *GitlabInstance)

func (*GitlabSettings) MustGetNativeClient added in v0.31.0

func (g *GitlabSettings) MustGetNativeClient() (nativeClient *gitlab.Client)

func (*GitlabSettings) MustGetNativeSettingsService added in v0.31.0

func (g *GitlabSettings) MustGetNativeSettingsService() (nativeSettingsService *gitlab.SettingsService)

func (*GitlabSettings) MustIsAutoDevopsEnabled added in v0.31.0

func (g *GitlabSettings) MustIsAutoDevopsEnabled() (isAutoDevopsEnabled bool)

func (*GitlabSettings) MustIsSignupEnabled added in v0.31.0

func (g *GitlabSettings) MustIsSignupEnabled() (isSignupEnabled bool)

func (*GitlabSettings) MustSetGitlab added in v0.31.0

func (g *GitlabSettings) MustSetGitlab(gitlab *GitlabInstance)

func (*GitlabSettings) SetGitlab added in v0.31.0

func (s *GitlabSettings) SetGitlab(gitlab *GitlabInstance) (err error)

type GitlabTag added in v0.31.0

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

func NewGitlabTag added in v0.31.0

func NewGitlabTag() (g *GitlabTag)

func (*GitlabTag) GetGitlabProject added in v0.31.0

func (g *GitlabTag) GetGitlabProject() (gitlabProject *GitlabProject, err error)

func (*GitlabTag) GetName added in v0.31.0

func (g *GitlabTag) GetName() (name string, err error)

func (*GitlabTag) IsVersionTag added in v0.31.0

func (g *GitlabTag) IsVersionTag() (isVersionTag bool, err error)

func (*GitlabTag) MustGetGitlabProject added in v0.31.0

func (g *GitlabTag) MustGetGitlabProject() (gitlabProject *GitlabProject)

func (*GitlabTag) MustGetName added in v0.31.0

func (g *GitlabTag) MustGetName() (name string)

func (*GitlabTag) MustIsVersionTag added in v0.31.0

func (g *GitlabTag) MustIsVersionTag() (isVersionTag bool)

func (*GitlabTag) MustSetGitlabProject added in v0.31.0

func (g *GitlabTag) MustSetGitlabProject(gitlabProject *GitlabProject)

func (*GitlabTag) MustSetName added in v0.31.0

func (g *GitlabTag) MustSetName(name string)

func (*GitlabTag) SetGitlabProject added in v0.31.0

func (g *GitlabTag) SetGitlabProject(gitlabProject *GitlabProject) (err error)

func (*GitlabTag) SetName added in v0.31.0

func (g *GitlabTag) SetName(name string) (err error)

type GitlabTags added in v0.31.0

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

func NewGitlabTags added in v0.31.0

func NewGitlabTags() (g *GitlabTags)

func (*GitlabTags) GetGitlab added in v0.31.0

func (g *GitlabTags) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabTags) GetGitlabProject added in v0.31.0

func (g *GitlabTags) GetGitlabProject() (gitlabProject *GitlabProject, err error)

func (*GitlabTags) GetNativeTagsService added in v0.31.0

func (g *GitlabTags) GetNativeTagsService() (nativeTagsService *gitlab.TagsService, err error)

func (*GitlabTags) GetProjectId added in v0.31.0

func (g *GitlabTags) GetProjectId() (projectId int, err error)

func (*GitlabTags) GetTagNames added in v0.31.0

func (g *GitlabTags) GetTagNames(verbose bool) (tagNames []string, err error)

func (*GitlabTags) GetTags added in v0.31.0

func (g *GitlabTags) GetTags(verbose bool) (gitlabTags []*GitlabTag, err error)

func (*GitlabTags) GetVersionTagNames added in v0.31.0

func (g *GitlabTags) GetVersionTagNames(verbose bool) (tagNames []string, err error)

func (*GitlabTags) GetVersionTags added in v0.31.0

func (g *GitlabTags) GetVersionTags(verbose bool) (versionTags []*GitlabTag, err error)

func (*GitlabTags) MustGetGitlab added in v0.31.0

func (g *GitlabTags) MustGetGitlab() (gitlab *GitlabInstance)

func (*GitlabTags) MustGetGitlabProject added in v0.31.0

func (g *GitlabTags) MustGetGitlabProject() (gitlabProject *GitlabProject)

func (*GitlabTags) MustGetNativeTagsService added in v0.31.0

func (g *GitlabTags) MustGetNativeTagsService() (nativeTagsService *gitlab.TagsService)

func (*GitlabTags) MustGetProjectId added in v0.31.0

func (g *GitlabTags) MustGetProjectId() (projectId int)

func (*GitlabTags) MustGetTagNames added in v0.31.0

func (g *GitlabTags) MustGetTagNames(verbose bool) (tagNames []string)

func (*GitlabTags) MustGetTags added in v0.31.0

func (g *GitlabTags) MustGetTags(verbose bool) (gitlabTags []*GitlabTag)

func (*GitlabTags) MustGetVersionTagNames added in v0.31.0

func (g *GitlabTags) MustGetVersionTagNames(verbose bool) (tagNames []string)

func (*GitlabTags) MustGetVersionTags added in v0.31.0

func (g *GitlabTags) MustGetVersionTags(verbose bool) (versionTags []*GitlabTag)

func (*GitlabTags) MustSetGitlabProject added in v0.31.0

func (g *GitlabTags) MustSetGitlabProject(gitlabProject *GitlabProject)

func (*GitlabTags) SetGitlabProject added in v0.31.0

func (g *GitlabTags) SetGitlabProject(gitlabProject *GitlabProject) (err error)

type GitlabUser added in v0.31.0

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

func NewGitlabUser added in v0.31.0

func NewGitlabUser() (gitlabUser *GitlabUser)

func (*GitlabUser) AddSshKey added in v0.31.0

func (u *GitlabUser) AddSshKey(sshKey *SSHPublicKey, verbose bool) (err error)

func (*GitlabUser) AddSshKeysFromFile added in v0.31.0

func (u *GitlabUser) AddSshKeysFromFile(sshKeysFile File, verbose bool) (err error)

func (*GitlabUser) AddSshKeysFromFilePath added in v0.31.0

func (u *GitlabUser) AddSshKeysFromFilePath(sshKeyFilePath string, verbose bool) (err error)

func (*GitlabUser) CreateAccessToken added in v0.31.0

func (u *GitlabUser) CreateAccessToken(options *GitlabCreateAccessTokenOptions) (newToken string, err error)

func (*GitlabUser) GetCachedEmail added in v0.31.0

func (g *GitlabUser) GetCachedEmail() (cachedEmail string, err error)

func (*GitlabUser) GetCachedName added in v0.31.0

func (u *GitlabUser) GetCachedName() (name string, err error)

func (*GitlabUser) GetCachedUsername added in v0.31.0

func (g *GitlabUser) GetCachedUsername() (cachedUsername string, err error)

func (*GitlabUser) GetChachedUsername added in v0.31.0

func (u *GitlabUser) GetChachedUsername() (username string, err error)

func (*GitlabUser) GetFqdn added in v0.31.0

func (u *GitlabUser) GetFqdn() (fqdn string, err error)

func (*GitlabUser) GetGitlab added in v0.31.0

func (u *GitlabUser) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabUser) GetGitlabUsers added in v0.31.0

func (u *GitlabUser) GetGitlabUsers() (gitlabUsers *GitlabUsers, err error)

func (*GitlabUser) GetId added in v0.31.0

func (u *GitlabUser) GetId() (id int, err error)

func (*GitlabUser) GetNativeUsersService added in v0.31.0

func (u *GitlabUser) GetNativeUsersService() (nativeUsersService *gitlab.UsersService, err error)

func (*GitlabUser) GetRawNativeUser added in v0.31.0

func (u *GitlabUser) GetRawNativeUser() (rawUser *gitlab.User, err error)

func (*GitlabUser) GetSshKeys added in v0.31.0

func (u *GitlabUser) GetSshKeys() (sshKeys []*SSHPublicKey, err error)

func (*GitlabUser) GetSshKeysAsString added in v0.31.0

func (u *GitlabUser) GetSshKeysAsString() (sshKeys []string, err error)

func (*GitlabUser) MustAddSshKey added in v0.31.0

func (g *GitlabUser) MustAddSshKey(sshKey *SSHPublicKey, verbose bool)

func (*GitlabUser) MustAddSshKeysFromFile added in v0.31.0

func (g *GitlabUser) MustAddSshKeysFromFile(sshKeysFile File, verbose bool)

func (*GitlabUser) MustAddSshKeysFromFilePath added in v0.31.0

func (g *GitlabUser) MustAddSshKeysFromFilePath(sshKeyFilePath string, verbose bool)

func (*GitlabUser) MustCreateAccessToken added in v0.31.0

func (g *GitlabUser) MustCreateAccessToken(options *GitlabCreateAccessTokenOptions) (newToken string)

func (*GitlabUser) MustGetCachedEmail added in v0.31.0

func (g *GitlabUser) MustGetCachedEmail() (cachedEmail string)

func (*GitlabUser) MustGetCachedName added in v0.31.0

func (g *GitlabUser) MustGetCachedName() (name string)

func (*GitlabUser) MustGetCachedUsername added in v0.31.0

func (g *GitlabUser) MustGetCachedUsername() (cachedUsername string)

func (*GitlabUser) MustGetChachedUsername added in v0.31.0

func (g *GitlabUser) MustGetChachedUsername() (username string)

func (*GitlabUser) MustGetFqdn added in v0.31.0

func (g *GitlabUser) MustGetFqdn() (fqdn string)

func (*GitlabUser) MustGetGitlab added in v0.31.0

func (g *GitlabUser) MustGetGitlab() (gitlab *GitlabInstance)

func (*GitlabUser) MustGetGitlabUsers added in v0.31.0

func (g *GitlabUser) MustGetGitlabUsers() (gitlabUsers *GitlabUsers)

func (*GitlabUser) MustGetId added in v0.31.0

func (g *GitlabUser) MustGetId() (id int)

func (*GitlabUser) MustGetNativeUsersService added in v0.31.0

func (g *GitlabUser) MustGetNativeUsersService() (nativeUsersService *gitlab.UsersService)

func (*GitlabUser) MustGetRawNativeUser added in v0.31.0

func (g *GitlabUser) MustGetRawNativeUser() (rawUser *gitlab.User)

func (*GitlabUser) MustGetSshKeys added in v0.31.0

func (g *GitlabUser) MustGetSshKeys() (sshKeys []*SSHPublicKey)

func (*GitlabUser) MustGetSshKeysAsString added in v0.31.0

func (g *GitlabUser) MustGetSshKeysAsString() (sshKeys []string)

func (*GitlabUser) MustSetCachedEmail added in v0.31.0

func (g *GitlabUser) MustSetCachedEmail(email string)

func (*GitlabUser) MustSetCachedName added in v0.31.0

func (g *GitlabUser) MustSetCachedName(name string)

func (*GitlabUser) MustSetCachedUsername added in v0.31.0

func (g *GitlabUser) MustSetCachedUsername(username string)

func (*GitlabUser) MustSetGitlab added in v0.31.0

func (g *GitlabUser) MustSetGitlab(gitlab *GitlabInstance)

func (*GitlabUser) MustSetId added in v0.31.0

func (g *GitlabUser) MustSetId(id int)

func (*GitlabUser) MustSshKeyExists added in v0.31.0

func (g *GitlabUser) MustSshKeyExists(sshKey *SSHPublicKey) (keyExistsForUser bool)

func (*GitlabUser) MustUpdatePassword added in v0.31.0

func (g *GitlabUser) MustUpdatePassword(newPassword string, verbose bool)

func (*GitlabUser) SetCachedEmail added in v0.31.0

func (u *GitlabUser) SetCachedEmail(email string) (err error)

func (*GitlabUser) SetCachedName added in v0.31.0

func (u *GitlabUser) SetCachedName(name string) (err error)

func (*GitlabUser) SetCachedUsername added in v0.31.0

func (u *GitlabUser) SetCachedUsername(username string) (err error)

func (*GitlabUser) SetGitlab added in v0.31.0

func (u *GitlabUser) SetGitlab(gitlab *GitlabInstance) (err error)

func (*GitlabUser) SetId added in v0.31.0

func (u *GitlabUser) SetId(id int) (err error)

func (*GitlabUser) SshKeyExists added in v0.31.0

func (u *GitlabUser) SshKeyExists(sshKey *SSHPublicKey) (keyExistsForUser bool, err error)

func (*GitlabUser) UpdatePassword added in v0.31.0

func (u *GitlabUser) UpdatePassword(newPassword string, verbose bool) (err error)

type GitlabUsers added in v0.31.0

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

func NewGitlabUsers added in v0.31.0

func NewGitlabUsers() (gitlabUsers *GitlabUsers)

func (*GitlabUsers) CreateAccessToken added in v0.31.0

func (u *GitlabUsers) CreateAccessToken(options *GitlabCreateAccessTokenOptions) (newToken string, err error)

func (*GitlabUsers) CreateUser added in v0.31.0

func (u *GitlabUsers) CreateUser(createUserOptions *GitlabCreateUserOptions) (createdUser *GitlabUser, err error)

func (*GitlabUsers) GetFqdn added in v0.31.0

func (u *GitlabUsers) GetFqdn() (fqdn string, err error)

func (*GitlabUsers) GetGitlab added in v0.31.0

func (u *GitlabUsers) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabUsers) GetNativeGitlabClient added in v0.31.0

func (u *GitlabUsers) GetNativeGitlabClient() (nativeGitlabClient *gitlab.Client, err error)

func (*GitlabUsers) GetNativeUsersService added in v0.31.0

func (u *GitlabUsers) GetNativeUsersService() (nativeUsersService *gitlab.UsersService, err error)

func (*GitlabUsers) GetUserByUsername added in v0.31.0

func (u *GitlabUsers) GetUserByUsername(username string) (gitlabUser *GitlabUser, err error)

func (*GitlabUsers) GetUserId added in v0.31.0

func (u *GitlabUsers) GetUserId() (userId int, err error)

func (*GitlabUsers) GetUserNames added in v0.31.0

func (u *GitlabUsers) GetUserNames() (userNames []string, err error)

func (*GitlabUsers) GetUsers added in v0.31.0

func (u *GitlabUsers) GetUsers() (users []*GitlabUser, err error)

func (*GitlabUsers) MustCreateAccessToken added in v0.31.0

func (g *GitlabUsers) MustCreateAccessToken(options *GitlabCreateAccessTokenOptions) (newToken string)

func (*GitlabUsers) MustCreateUser added in v0.31.0

func (g *GitlabUsers) MustCreateUser(createUserOptions *GitlabCreateUserOptions) (createdUser *GitlabUser)

func (*GitlabUsers) MustGetFqdn added in v0.31.0

func (g *GitlabUsers) MustGetFqdn() (fqdn string)

func (*GitlabUsers) MustGetGitlab added in v0.31.0

func (g *GitlabUsers) MustGetGitlab() (gitlab *GitlabInstance)

func (*GitlabUsers) MustGetNativeGitlabClient added in v0.31.0

func (g *GitlabUsers) MustGetNativeGitlabClient() (nativeGitlabClient *gitlab.Client)

func (*GitlabUsers) MustGetNativeUsersService added in v0.31.0

func (g *GitlabUsers) MustGetNativeUsersService() (nativeUsersService *gitlab.UsersService)

func (*GitlabUsers) MustGetUserByUsername added in v0.31.0

func (g *GitlabUsers) MustGetUserByUsername(username string) (gitlabUser *GitlabUser)

func (*GitlabUsers) MustGetUserId added in v0.31.0

func (g *GitlabUsers) MustGetUserId() (userId int)

func (*GitlabUsers) MustGetUserNames added in v0.31.0

func (g *GitlabUsers) MustGetUserNames() (userNames []string)

func (*GitlabUsers) MustGetUsers added in v0.31.0

func (g *GitlabUsers) MustGetUsers() (users []*GitlabUser)

func (*GitlabUsers) MustSetGitlab added in v0.31.0

func (g *GitlabUsers) MustSetGitlab(gitlab *GitlabInstance)

func (*GitlabUsers) MustUserByUserNameExists added in v0.31.0

func (g *GitlabUsers) MustUserByUserNameExists(username string) (userExists bool)

func (*GitlabUsers) SetGitlab added in v0.31.0

func (u *GitlabUsers) SetGitlab(gitlab *GitlabInstance) (err error)

func (*GitlabUsers) UserByUserNameExists added in v0.31.0

func (u *GitlabUsers) UserByUserNameExists(username string) (userExists bool, err error)

type GitlabWriteFileOptions added in v0.39.0

type GitlabWriteFileOptions struct {
	Path          string
	Content       []byte
	BranchName    string
	CommitMessage string
	Verbose       bool
}

func NewGitlabWriteFileOptions added in v0.39.0

func NewGitlabWriteFileOptions() (g *GitlabWriteFileOptions)

func (*GitlabWriteFileOptions) GetBranchName added in v0.39.0

func (g *GitlabWriteFileOptions) GetBranchName() (branchName string, err error)

func (*GitlabWriteFileOptions) GetCommitMessage added in v0.39.0

func (g *GitlabWriteFileOptions) GetCommitMessage() (commitMessage string, err error)

func (*GitlabWriteFileOptions) GetContent added in v0.39.0

func (g *GitlabWriteFileOptions) GetContent() (content []byte, err error)

func (*GitlabWriteFileOptions) GetGitlabGetRepositoryFileOptions added in v0.39.0

func (g *GitlabWriteFileOptions) GetGitlabGetRepositoryFileOptions() (getOptions *GitlabGetRepositoryFileOptions, err error)

func (*GitlabWriteFileOptions) GetPath added in v0.39.0

func (g *GitlabWriteFileOptions) GetPath() (path string, err error)

func (*GitlabWriteFileOptions) GetVerbose added in v0.39.0

func (g *GitlabWriteFileOptions) GetVerbose() (verbose bool)

func (*GitlabWriteFileOptions) MustGetBranchName added in v0.39.0

func (g *GitlabWriteFileOptions) MustGetBranchName() (branchName string)

func (*GitlabWriteFileOptions) MustGetCommitMessage added in v0.39.0

func (g *GitlabWriteFileOptions) MustGetCommitMessage() (commitMessage string)

func (*GitlabWriteFileOptions) MustGetContent added in v0.39.0

func (g *GitlabWriteFileOptions) MustGetContent() (content []byte)

func (*GitlabWriteFileOptions) MustGetGitlabGetRepositoryFileOptions added in v0.39.0

func (g *GitlabWriteFileOptions) MustGetGitlabGetRepositoryFileOptions() (getOptions *GitlabGetRepositoryFileOptions)

func (*GitlabWriteFileOptions) MustGetPath added in v0.39.0

func (g *GitlabWriteFileOptions) MustGetPath() (path string)

func (*GitlabWriteFileOptions) MustSetBranchName added in v0.39.0

func (g *GitlabWriteFileOptions) MustSetBranchName(branchName string)

func (*GitlabWriteFileOptions) MustSetCommitMessage added in v0.39.0

func (g *GitlabWriteFileOptions) MustSetCommitMessage(commitMessage string)

func (*GitlabWriteFileOptions) MustSetContent added in v0.39.0

func (g *GitlabWriteFileOptions) MustSetContent(content []byte)

func (*GitlabWriteFileOptions) MustSetPath added in v0.39.0

func (g *GitlabWriteFileOptions) MustSetPath(path string)

func (*GitlabWriteFileOptions) SetBranchName added in v0.39.0

func (g *GitlabWriteFileOptions) SetBranchName(branchName string) (err error)

func (*GitlabWriteFileOptions) SetCommitMessage added in v0.39.0

func (g *GitlabWriteFileOptions) SetCommitMessage(commitMessage string) (err error)

func (*GitlabWriteFileOptions) SetContent added in v0.39.0

func (g *GitlabWriteFileOptions) SetContent(content []byte) (err error)

func (*GitlabWriteFileOptions) SetPath added in v0.39.0

func (g *GitlabWriteFileOptions) SetPath(path string) (err error)

func (*GitlabWriteFileOptions) SetVerbose added in v0.39.0

func (g *GitlabWriteFileOptions) SetVerbose(verbose bool)

type GoogleStorageBucket added in v0.13.2

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

func GetGoogleStorageBucketByName added in v0.13.2

func GetGoogleStorageBucketByName(bucketName string) (g *GoogleStorageBucket, err error)

func MustGetGoogleStorageBucketByName added in v0.13.2

func MustGetGoogleStorageBucketByName(bucketName string) (g *GoogleStorageBucket)

func NewGoogleStorageBucket added in v0.13.2

func NewGoogleStorageBucket() (g *GoogleStorageBucket)

func (*GoogleStorageBucket) Exists added in v0.13.2

func (g *GoogleStorageBucket) Exists() (bucketExists bool, err error)

func (*GoogleStorageBucket) GetName added in v0.13.2

func (g *GoogleStorageBucket) GetName() (name string, err error)

func (*GoogleStorageBucket) GetNativeBucket added in v0.13.2

func (g *GoogleStorageBucket) GetNativeBucket() (nativeBucket *storage.BucketHandle, err error)

func (*GoogleStorageBucket) GetNativeClient added in v0.13.2

func (g *GoogleStorageBucket) GetNativeClient() (nativeClient *storage.Client, err error)

func (*GoogleStorageBucket) MustExists added in v0.13.2

func (g *GoogleStorageBucket) MustExists() (bucketExists bool)

func (*GoogleStorageBucket) MustGetName added in v0.13.2

func (g *GoogleStorageBucket) MustGetName() (name string)

func (*GoogleStorageBucket) MustGetNativeBucket added in v0.13.2

func (g *GoogleStorageBucket) MustGetNativeBucket() (nativeBucket *storage.BucketHandle)

func (*GoogleStorageBucket) MustGetNativeClient added in v0.13.2

func (g *GoogleStorageBucket) MustGetNativeClient() (nativeClient *storage.Client)

func (*GoogleStorageBucket) MustSetName added in v0.13.2

func (g *GoogleStorageBucket) MustSetName(name string)

func (*GoogleStorageBucket) MustSetNativeClient added in v0.13.2

func (g *GoogleStorageBucket) MustSetNativeClient(nativeClient *storage.Client)

func (*GoogleStorageBucket) SetName added in v0.13.2

func (g *GoogleStorageBucket) SetName(name string) (err error)

func (*GoogleStorageBucket) SetNativeClient added in v0.13.2

func (g *GoogleStorageBucket) SetNativeClient(nativeClient *storage.Client) (err error)

type GopassCredential added in v0.31.0

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

func GetGopassCredentialByName added in v0.31.0

func GetGopassCredentialByName(name string) (credential *GopassCredential, err error)

func MustGetGopassCredentialByName added in v0.31.0

func MustGetGopassCredentialByName(name string) (credential *GopassCredential)

func NewGopassCredential added in v0.31.0

func NewGopassCredential() (gopassCredential *GopassCredential)

func (*GopassCredential) Exists added in v0.31.0

func (c *GopassCredential) Exists() (exists bool, err error)

func (*GopassCredential) GetAsBytes added in v0.31.0

func (c *GopassCredential) GetAsBytes() (credential []byte, err error)

func (*GopassCredential) GetAsInt added in v0.31.0

func (c *GopassCredential) GetAsInt() (value int, err error)

func (*GopassCredential) GetAsString added in v0.31.0

func (c *GopassCredential) GetAsString() (credential string, err error)

func (*GopassCredential) GetName added in v0.31.0

func (c *GopassCredential) GetName() (name string, err error)

func (*GopassCredential) GetSslCertificate added in v0.31.0

func (c *GopassCredential) GetSslCertificate() (sslCert *X509Certificate, err error)

func (*GopassCredential) IncrementIntValue added in v0.31.0

func (c *GopassCredential) IncrementIntValue() (err error)

func (*GopassCredential) MustExists added in v0.31.0

func (g *GopassCredential) MustExists() (exists bool)

func (*GopassCredential) MustGetAsBytes added in v0.31.0

func (g *GopassCredential) MustGetAsBytes() (credential []byte)

func (*GopassCredential) MustGetAsInt added in v0.31.0

func (g *GopassCredential) MustGetAsInt() (value int)

func (*GopassCredential) MustGetAsString added in v0.31.0

func (g *GopassCredential) MustGetAsString() (credential string)

func (*GopassCredential) MustGetName added in v0.31.0

func (c *GopassCredential) MustGetName() (name string)

func (*GopassCredential) MustGetSslCertificate added in v0.31.0

func (g *GopassCredential) MustGetSslCertificate() (sslCert *X509Certificate)

func (*GopassCredential) MustIncrementIntValue added in v0.31.0

func (g *GopassCredential) MustIncrementIntValue()

func (*GopassCredential) MustSetByInt added in v0.31.0

func (g *GopassCredential) MustSetByInt(newValue int)

func (*GopassCredential) MustSetByString added in v0.31.0

func (g *GopassCredential) MustSetByString(newValue string)

func (*GopassCredential) MustSetName added in v0.31.0

func (g *GopassCredential) MustSetName(name string)

func (*GopassCredential) MustWriteIntoFile added in v0.31.0

func (g *GopassCredential) MustWriteIntoFile(outputFile File, verbose bool)

func (*GopassCredential) MustWriteIntoTemporaryFile added in v0.31.0

func (g *GopassCredential) MustWriteIntoTemporaryFile(verbose bool) (temporaryFile File)

func (*GopassCredential) SetByInt added in v0.31.0

func (c *GopassCredential) SetByInt(newValue int) (err error)

func (*GopassCredential) SetByString added in v0.31.0

func (c *GopassCredential) SetByString(newValue string) (err error)

func (*GopassCredential) SetName added in v0.31.0

func (c *GopassCredential) SetName(name string) (err error)

func (*GopassCredential) WriteIntoFile added in v0.31.0

func (c *GopassCredential) WriteIntoFile(outputFile File, verbose bool) (err error)

func (*GopassCredential) WriteIntoTemporaryFile added in v0.31.0

func (c *GopassCredential) WriteIntoTemporaryFile(verbose bool) (temporaryFile File, err error)

type GopassSecretOptions added in v0.31.0

type GopassSecretOptions struct {
	SecretRootDirectoryPath string
	SecretBasename          string

	Overwrite bool
	Verbose   bool
}

func NewGopassSecretOptions added in v0.31.0

func NewGopassSecretOptions() (gopassSecretOptions *GopassSecretOptions)

func (*GopassSecretOptions) GetDeepCopy added in v0.31.0

func (o *GopassSecretOptions) GetDeepCopy() (copy *GopassSecretOptions)

func (*GopassSecretOptions) GetGopassPath added in v0.31.0

func (o *GopassSecretOptions) GetGopassPath() (gopassPath string, err error)

func (*GopassSecretOptions) GetOverwrite added in v0.31.0

func (g *GopassSecretOptions) GetOverwrite() (overwrite bool, err error)

func (*GopassSecretOptions) GetSecretBasename added in v0.31.0

func (o *GopassSecretOptions) GetSecretBasename() (basename string, err error)

func (*GopassSecretOptions) GetSecretRootDirectoryPath added in v0.31.0

func (o *GopassSecretOptions) GetSecretRootDirectoryPath() (rootDirectoryPath string, err error)

func (*GopassSecretOptions) GetVerbose added in v0.31.0

func (g *GopassSecretOptions) GetVerbose() (verbose bool, err error)

func (*GopassSecretOptions) MustGetGopassPath added in v0.31.0

func (g *GopassSecretOptions) MustGetGopassPath() (gopassPath string)

func (*GopassSecretOptions) MustGetOverwrite added in v0.31.0

func (g *GopassSecretOptions) MustGetOverwrite() (overwrite bool)

func (*GopassSecretOptions) MustGetSecretBasename added in v0.31.0

func (g *GopassSecretOptions) MustGetSecretBasename() (basename string)

func (*GopassSecretOptions) MustGetSecretRootDirectoryPath added in v0.31.0

func (g *GopassSecretOptions) MustGetSecretRootDirectoryPath() (rootDirectoryPath string)

func (*GopassSecretOptions) MustGetVerbose added in v0.31.0

func (g *GopassSecretOptions) MustGetVerbose() (verbose bool)

func (*GopassSecretOptions) MustSetGopassPath added in v0.31.0

func (g *GopassSecretOptions) MustSetGopassPath(fullPath string)

func (*GopassSecretOptions) MustSetOverwrite added in v0.31.0

func (g *GopassSecretOptions) MustSetOverwrite(overwrite bool)

func (*GopassSecretOptions) MustSetSecretBasename added in v0.31.0

func (g *GopassSecretOptions) MustSetSecretBasename(secretBasename string)

func (*GopassSecretOptions) MustSetSecretRootDirectoryPath added in v0.31.0

func (g *GopassSecretOptions) MustSetSecretRootDirectoryPath(secretRootDirectoryPath string)

func (*GopassSecretOptions) MustSetVerbose added in v0.31.0

func (g *GopassSecretOptions) MustSetVerbose(verbose bool)

func (*GopassSecretOptions) SetGopassPath added in v0.31.0

func (o *GopassSecretOptions) SetGopassPath(fullPath string) (err error)

func (*GopassSecretOptions) SetOverwrite added in v0.31.0

func (g *GopassSecretOptions) SetOverwrite(overwrite bool) (err error)

func (*GopassSecretOptions) SetSecretBasename added in v0.31.0

func (g *GopassSecretOptions) SetSecretBasename(secretBasename string) (err error)

func (*GopassSecretOptions) SetSecretRootDirectoryPath added in v0.31.0

func (g *GopassSecretOptions) SetSecretRootDirectoryPath(secretRootDirectoryPath string) (err error)

func (*GopassSecretOptions) SetVerbose added in v0.31.0

func (g *GopassSecretOptions) SetVerbose(verbose bool) (err error)

type GopassService added in v0.31.0

type GopassService struct{}

func Gopass added in v0.31.0

func Gopass() (gopass *GopassService)

func NewGopassService added in v0.31.0

func NewGopassService() (g *GopassService)

func (*GopassService) CredentialExists added in v0.31.0

func (g *GopassService) CredentialExists(fullCredentialPath string) (credentialExists bool, err error)

func (*GopassService) Generate added in v0.31.0

func (g *GopassService) Generate(credentialName string, verbose bool) (generatedCredential *GopassCredential, err error)

func (*GopassService) GetCredential added in v0.31.0

func (g *GopassService) GetCredential(getOptions *GopassSecretOptions) (credential *GopassCredential, err error)

func (*GopassService) GetCredentialList added in v0.31.0

func (g *GopassService) GetCredentialList() (credentials []*GopassCredential, err error)

func (*GopassService) GetCredentialNameList added in v0.31.0

func (g *GopassService) GetCredentialNameList() (credentialNames []string, err error)

func (*GopassService) GetCredentialValueAsString added in v0.31.0

func (g *GopassService) GetCredentialValueAsString(getOptions *GopassSecretOptions) (credentialValue string, err error)

func (*GopassService) GetCredentialValueAsStringByPath added in v0.31.0

func (g *GopassService) GetCredentialValueAsStringByPath(secretPath string) (secretValue string, err error)

func (*GopassService) GetCredentialValueOrEmptyIfUnsetAsStringByPath added in v0.31.0

func (g *GopassService) GetCredentialValueOrEmptyIfUnsetAsStringByPath(secretPath string) (credentialValue string, err error)

func (*GopassService) GetGopassCredentialByName added in v0.31.0

func (g *GopassService) GetGopassCredentialByName(name string) (credential *GopassCredential, err error)

func (*GopassService) GetSslCertificate added in v0.31.0

func (g *GopassService) GetSslCertificate(getOptions *GopassSecretOptions) (cert *X509Certificate, err error)

func (*GopassService) InsertFile added in v0.31.0

func (g *GopassService) InsertFile(fileToInsert File, gopassOptions *GopassSecretOptions) (err error)

func (*GopassService) InsertSecret added in v0.31.0

func (g *GopassService) InsertSecret(secretToInsert string, gopassOptions *GopassSecretOptions) (err error)

func (*GopassService) MustCredentialExists added in v0.31.0

func (g *GopassService) MustCredentialExists(fullCredentialPath string) (credentialExists bool)

func (*GopassService) MustGenerate added in v0.31.0

func (g *GopassService) MustGenerate(credentialName string, verbose bool) (generatedCredential *GopassCredential)

func (*GopassService) MustGetCredential added in v0.31.0

func (g *GopassService) MustGetCredential(getOptions *GopassSecretOptions) (credential *GopassCredential)

func (*GopassService) MustGetCredentialList added in v0.31.0

func (g *GopassService) MustGetCredentialList() (credentials []*GopassCredential)

func (*GopassService) MustGetCredentialNameList added in v0.31.0

func (g *GopassService) MustGetCredentialNameList() (credentialNames []string)

func (*GopassService) MustGetCredentialValue added in v0.31.0

func (g *GopassService) MustGetCredentialValue(getOptions *GopassSecretOptions) (credentialValue string)

func (*GopassService) MustGetCredentialValueAsString added in v0.31.0

func (g *GopassService) MustGetCredentialValueAsString(getOptions *GopassSecretOptions) (credentialValue string)

func (*GopassService) MustGetCredentialValueAsStringByPath added in v0.31.0

func (g *GopassService) MustGetCredentialValueAsStringByPath(secretPath string) (secretValue string)

func (*GopassService) MustGetCredentialValueOrEmptyIfUnsetAsStringByPath added in v0.31.0

func (g *GopassService) MustGetCredentialValueOrEmptyIfUnsetAsStringByPath(secretPath string) (credentialValue string)

func (*GopassService) MustGetGopassCredentialByName added in v0.31.0

func (g *GopassService) MustGetGopassCredentialByName(name string) (credential *GopassCredential)

func (*GopassService) MustGetSslCertificate added in v0.31.0

func (g *GopassService) MustGetSslCertificate(getOptions *GopassSecretOptions) (cert *X509Certificate)

func (*GopassService) MustInsertFile added in v0.31.0

func (g *GopassService) MustInsertFile(fileToInsert File, gopassOptions *GopassSecretOptions)

func (*GopassService) MustInsertSecret added in v0.31.0

func (g *GopassService) MustInsertSecret(secretToInsert string, gopassOptions *GopassSecretOptions)

func (*GopassService) MustSecretNameExist added in v0.31.0

func (g *GopassService) MustSecretNameExist(secretName string) (secretExists bool)

func (*GopassService) MustSync added in v0.31.0

func (g *GopassService) MustSync(verbose bool)

func (*GopassService) MustWriteInfoToGopass added in v0.31.0

func (g *GopassService) MustWriteInfoToGopass(gopassPath string)

func (*GopassService) MustWriteSecretIntoTemporaryFile added in v0.31.0

func (g *GopassService) MustWriteSecretIntoTemporaryFile(getOptions *GopassSecretOptions) (temporaryFile File)

func (*GopassService) SecretNameExist added in v0.31.0

func (g *GopassService) SecretNameExist(secretName string) (secretExists bool, err error)

func (*GopassService) Sync added in v0.31.0

func (g *GopassService) Sync(verbose bool) (err error)

func (*GopassService) WriteInfoToGopass added in v0.31.0

func (g *GopassService) WriteInfoToGopass(gopassPath string) (err error)

func (*GopassService) WriteSecretIntoTemporaryFile added in v0.31.0

func (g *GopassService) WriteSecretIntoTemporaryFile(getOptions *GopassSecretOptions) (temporaryFile File, err error)

type Host added in v0.31.0

type Host struct {
	CommandExecutorBase

	Comment string
	// contains filtered or unexported fields
}

Host represents a classical host like a VM, Laptop, Desktop, Server.

func GetHostByHostname added in v0.31.0

func GetHostByHostname(hostname string) (host *Host, err error)

func MustGetHostByHostname added in v0.31.0

func MustGetHostByHostname(hostname string) (host *Host)

func NewHost added in v0.31.0

func NewHost() (host *Host)

func (*Host) AddSshHostKeyToKnownHosts added in v0.31.0

func (h *Host) AddSshHostKeyToKnownHosts(verbose bool) (err error)

func (*Host) CheckIsKubernetesControlplane added in v0.31.0

func (h *Host) CheckIsKubernetesControlplane(verbose bool) (isKubernetesControlplane bool, err error)

func (*Host) CheckIsKubernetesNode added in v0.31.0

func (h *Host) CheckIsKubernetesNode(verbose bool) (isKubernetesNode bool, err error)

func (*Host) CheckReachableBySsh added in v0.31.0

func (h *Host) CheckReachableBySsh(verbose bool) (err error)

func (*Host) GetAsKubernetesControlplaneHost added in v0.31.0

func (h *Host) GetAsKubernetesControlplaneHost() (kubernetesControlPlaneHost *KubernetesControlplaneHost, err error)

func (*Host) GetAsKubernetesNodeHost added in v0.31.0

func (h *Host) GetAsKubernetesNodeHost() (kubernetesNodeHost *KubernetesNodeHost, err error)

func (*Host) GetComment added in v0.31.0

func (h *Host) GetComment() (comment string, err error)

func (*Host) GetDockerContainerByName added in v0.31.0

func (h *Host) GetDockerContainerByName(containerName string) (dockerContainer *DockerContainer, err error)

func (*Host) GetDockerService added in v0.31.0

func (h *Host) GetDockerService() (dockerService *DockerService, err error)

func (*Host) GetHostname added in v0.31.0

func (h *Host) GetHostname() (hostname string, err error)

func (*Host) GetKvmHypervisor added in v0.31.0

func (h *Host) GetKvmHypervisor() (kvmHypervisor *KVMHypervisor, err error)

func (*Host) GetKvmStoragePoolNames added in v0.31.0

func (h *Host) GetKvmStoragePoolNames(verbose bool) (storagePoolNames []string, err error)

func (*Host) GetKvmVmsNames added in v0.31.0

func (h *Host) GetKvmVmsNames(verbose bool) (vmNames []string, err error)

func (*Host) GetKvmVolumeNames added in v0.31.0

func (h *Host) GetKvmVolumeNames(verbose bool) (volumeNames []string, err error)

func (*Host) GetSSHClient added in v0.31.0

func (h *Host) GetSSHClient() (sshClient *SSHClient, err error)

func (*Host) GetSshUserName added in v0.31.0

func (h *Host) GetSshUserName() (sshUserName string, err error)

func (*Host) GetSshUsername added in v0.31.0

func (h *Host) GetSshUsername() (sshUsername string, err error)

func (*Host) InstallBinary added in v0.31.0

func (h *Host) InstallBinary(installOptions *InstallOptions) (err error)

func (*Host) IsPingable added in v0.31.0

func (h *Host) IsPingable(verbose bool) (isPingable bool, err error)

func (*Host) IsReachableBySsh added in v0.31.0

func (h *Host) IsReachableBySsh(verbose bool) (isReachable bool, err error)

func (*Host) IsSshUserNameSet added in v0.31.0

func (h *Host) IsSshUserNameSet() (isSet bool)

func (*Host) IsTcpPortOpen added in v0.31.0

func (h *Host) IsTcpPortOpen(portNumber int, verbose bool) (isOpen bool, err error)

func (*Host) MustAddSshHostKeyToKnownHosts added in v0.31.0

func (h *Host) MustAddSshHostKeyToKnownHosts(verbose bool)

func (*Host) MustCheckIsKubernetesControlplane added in v0.31.0

func (h *Host) MustCheckIsKubernetesControlplane(verbose bool) (isKubernetesControlplane bool)

func (*Host) MustCheckIsKubernetesNode added in v0.31.0

func (h *Host) MustCheckIsKubernetesNode(verbose bool) (isKubernetesNode bool)

func (*Host) MustCheckReachableBySsh added in v0.31.0

func (h *Host) MustCheckReachableBySsh(verbose bool)

func (*Host) MustGetAsKubernetesControlplaneHost added in v0.31.0

func (h *Host) MustGetAsKubernetesControlplaneHost() (kubernetesControlPlaneHost *KubernetesControlplaneHost)

func (*Host) MustGetAsKubernetesNodeHost added in v0.31.0

func (h *Host) MustGetAsKubernetesNodeHost() (kubernetesNodeHost *KubernetesNodeHost)

func (*Host) MustGetComment added in v0.31.0

func (h *Host) MustGetComment() (comment string)

func (*Host) MustGetDockerContainerByName added in v0.31.0

func (h *Host) MustGetDockerContainerByName(containerName string) (dockerContainer *DockerContainer)

func (*Host) MustGetDockerService added in v0.31.0

func (h *Host) MustGetDockerService() (dockerService *DockerService)

func (*Host) MustGetHostname added in v0.31.0

func (h *Host) MustGetHostname() (hostname string)

func (*Host) MustGetKvmHypervisor added in v0.31.0

func (h *Host) MustGetKvmHypervisor() (kvmHypervisor *KVMHypervisor)

func (*Host) MustGetKvmStoraPoolNames added in v0.31.0

func (h *Host) MustGetKvmStoraPoolNames(verbose bool) (storagePoolNames []string)

func (*Host) MustGetKvmStoragePoolNames added in v0.31.0

func (h *Host) MustGetKvmStoragePoolNames(verbose bool) (storagePoolNames []string)

func (*Host) MustGetKvmVmsNames added in v0.31.0

func (h *Host) MustGetKvmVmsNames(verbose bool) (vmNames []string)

func (*Host) MustGetKvmVolumeNames added in v0.31.0

func (h *Host) MustGetKvmVolumeNames(verbose bool) (volumeNames []string)

func (*Host) MustGetSSHClient added in v0.31.0

func (h *Host) MustGetSSHClient() (sshClient *SSHClient)

func (*Host) MustGetSshUserName added in v0.31.0

func (h *Host) MustGetSshUserName() (sshUserName string)

func (*Host) MustGetSshUsername added in v0.31.0

func (h *Host) MustGetSshUsername() (sshUsername string)

func (*Host) MustInstallBinary added in v0.31.0

func (h *Host) MustInstallBinary(installOptions *InstallOptions)

func (*Host) MustIsPingable added in v0.31.0

func (h *Host) MustIsPingable(verbose bool) (isPingable bool)

func (*Host) MustIsReachableBySsh added in v0.31.0

func (h *Host) MustIsReachableBySsh(verbose bool) (isReachable bool)

func (*Host) MustIsTcpPortOpen added in v0.31.0

func (h *Host) MustIsTcpPortOpen(portNumber int, verbose bool) (isOpen bool)

func (*Host) MustRemoveKvmVm added in v0.31.0

func (h *Host) MustRemoveKvmVm(removeOptions *KvmRemoveVmOptions)

func (*Host) MustRemoveSshHostKeyFromKnownHosts added in v0.31.0

func (h *Host) MustRemoveSshHostKeyFromKnownHosts(verbose bool)

func (*Host) MustRenewSshHostKey added in v0.31.0

func (h *Host) MustRenewSshHostKey(verbose bool)

func (*Host) MustRunCommand added in v0.43.0

func (h *Host) MustRunCommand(options *RunCommandOptions) (commandOutput *CommandOutput)

func (*Host) MustSetComment added in v0.31.0

func (h *Host) MustSetComment(comment string)

func (*Host) MustSetHostname added in v0.31.0

func (h *Host) MustSetHostname(hostname string)

func (*Host) MustSetSshUserName added in v0.31.0

func (h *Host) MustSetSshUserName(username string)

func (*Host) MustSetSshUsername added in v0.31.0

func (h *Host) MustSetSshUsername(sshUsername string)

func (*Host) MustWaitUntilPingable added in v0.31.0

func (h *Host) MustWaitUntilPingable(verbose bool)

func (*Host) MustWaitUntilReachableBySsh added in v0.31.0

func (h *Host) MustWaitUntilReachableBySsh(renewHostKey bool, verbose bool)

func (*Host) RemoveKvmVm added in v0.31.0

func (h *Host) RemoveKvmVm(removeOptions *KvmRemoveVmOptions) (err error)

func (*Host) RemoveSshHostKeyFromKnownHosts added in v0.31.0

func (h *Host) RemoveSshHostKeyFromKnownHosts(verbose bool) (err error)

func (*Host) RenewSshHostKey added in v0.31.0

func (h *Host) RenewSshHostKey(verbose bool) (err error)

func (*Host) RunCommand added in v0.43.0

func (h *Host) RunCommand(options *RunCommandOptions) (commandOutput *CommandOutput, err error)

func (*Host) SetComment added in v0.31.0

func (h *Host) SetComment(comment string) (err error)

func (*Host) SetHostname added in v0.31.0

func (h *Host) SetHostname(hostname string) (err error)

func (*Host) SetSshUserName added in v0.31.0

func (h *Host) SetSshUserName(username string) (err error)

func (*Host) SetSshUsername added in v0.31.0

func (h *Host) SetSshUsername(sshUsername string) (err error)

func (*Host) WaitUntilPingable added in v0.31.0

func (h *Host) WaitUntilPingable(verbose bool) (err error)

func (*Host) WaitUntilReachableBySsh added in v0.31.0

func (h *Host) WaitUntilReachableBySsh(renewHostKey bool, verbose bool) (err error)

type HttpClientService added in v0.17.0

type HttpClientService struct{}

func HttpClient added in v0.17.0

func HttpClient() (httpClient *HttpClientService)

func NewHttpClientService added in v0.17.0

func NewHttpClientService() (h *HttpClientService)

func (*HttpClientService) DownloadAsFile added in v0.17.0

func (h *HttpClientService) DownloadAsFile(requestOptions *HttpRequestOptions) (downloadedFile File, err error)

func (*HttpClientService) DownloadAsTemporaryFile added in v0.17.0

func (h *HttpClientService) DownloadAsTemporaryFile(requestOptions *HttpRequestOptions) (downloadedFile File, err error)

func (*HttpClientService) MustDownloadAsFile added in v0.17.0

func (h *HttpClientService) MustDownloadAsFile(requestOptions *HttpRequestOptions) (downloadedFile File)

func (*HttpClientService) MustDownloadAsTemporaryFile added in v0.17.0

func (h *HttpClientService) MustDownloadAsTemporaryFile(requestOptions *HttpRequestOptions) (downloadedFile File)

type HttpRequestOptions added in v0.17.0

type HttpRequestOptions struct {
	URL               string
	Verbose           bool
	OutputPath        string
	OverwriteExisting bool
}

func NewHttpRequestOptions added in v0.17.0

func NewHttpRequestOptions() (h *HttpRequestOptions)

func (*HttpRequestOptions) GetDeepCopy added in v0.17.0

func (o *HttpRequestOptions) GetDeepCopy() (copy *HttpRequestOptions)

func (*HttpRequestOptions) GetOutputFile added in v0.17.0

func (o *HttpRequestOptions) GetOutputFile() (outputFile File, err error)

func (*HttpRequestOptions) GetOutputFilePath added in v0.17.0

func (o *HttpRequestOptions) GetOutputFilePath() (filePath string, err error)

func (*HttpRequestOptions) GetOutputPath added in v0.17.0

func (h *HttpRequestOptions) GetOutputPath() (outputPath string, err error)

func (*HttpRequestOptions) GetOverwriteExisting added in v0.17.0

func (h *HttpRequestOptions) GetOverwriteExisting() (overwriteExisting bool, err error)

func (*HttpRequestOptions) GetURL added in v0.17.0

func (h *HttpRequestOptions) GetURL() (uRL string, err error)

func (*HttpRequestOptions) GetUrl added in v0.17.0

func (o *HttpRequestOptions) GetUrl() (url *URL, err error)

func (*HttpRequestOptions) GetUrlAsString added in v0.17.0

func (o *HttpRequestOptions) GetUrlAsString() (url string, err error)

func (*HttpRequestOptions) GetVerbose added in v0.17.0

func (h *HttpRequestOptions) GetVerbose() (verbose bool, err error)

func (*HttpRequestOptions) MustGetOutputFile added in v0.17.0

func (h *HttpRequestOptions) MustGetOutputFile() (outputFile File)

func (*HttpRequestOptions) MustGetOutputFilePath added in v0.17.0

func (h *HttpRequestOptions) MustGetOutputFilePath() (filePath string)

func (*HttpRequestOptions) MustGetOutputPath added in v0.17.0

func (h *HttpRequestOptions) MustGetOutputPath() (outputPath string)

func (*HttpRequestOptions) MustGetOverwriteExisting added in v0.17.0

func (h *HttpRequestOptions) MustGetOverwriteExisting() (overwriteExisting bool)

func (*HttpRequestOptions) MustGetURL added in v0.17.0

func (h *HttpRequestOptions) MustGetURL() (uRL string)

func (*HttpRequestOptions) MustGetUrl added in v0.17.0

func (h *HttpRequestOptions) MustGetUrl() (url *URL)

func (*HttpRequestOptions) MustGetUrlAsString added in v0.17.0

func (h *HttpRequestOptions) MustGetUrlAsString() (url string)

func (*HttpRequestOptions) MustGetVerbose added in v0.17.0

func (h *HttpRequestOptions) MustGetVerbose() (verbose bool)

func (*HttpRequestOptions) MustSetOutputPath added in v0.17.0

func (h *HttpRequestOptions) MustSetOutputPath(outputPath string)

func (*HttpRequestOptions) MustSetOutputPathByFile added in v0.17.0

func (h *HttpRequestOptions) MustSetOutputPathByFile(file File)

func (*HttpRequestOptions) MustSetOverwriteExisting added in v0.17.0

func (h *HttpRequestOptions) MustSetOverwriteExisting(overwriteExisting bool)

func (*HttpRequestOptions) MustSetURL added in v0.17.0

func (h *HttpRequestOptions) MustSetURL(uRL string)

func (*HttpRequestOptions) MustSetVerbose added in v0.17.0

func (h *HttpRequestOptions) MustSetVerbose(verbose bool)

func (*HttpRequestOptions) SetOutputPath added in v0.17.0

func (h *HttpRequestOptions) SetOutputPath(outputPath string) (err error)

func (*HttpRequestOptions) SetOutputPathByFile added in v0.17.0

func (o *HttpRequestOptions) SetOutputPathByFile(file File) (err error)

func (*HttpRequestOptions) SetOverwriteExisting added in v0.17.0

func (h *HttpRequestOptions) SetOverwriteExisting(overwriteExisting bool) (err error)

func (*HttpRequestOptions) SetURL added in v0.17.0

func (h *HttpRequestOptions) SetURL(uRL string) (err error)

func (*HttpRequestOptions) SetVerbose added in v0.17.0

func (h *HttpRequestOptions) SetVerbose(verbose bool) (err error)

type InstallOptions added in v0.31.0

type InstallOptions struct {
	SourcePath            string
	BinaryName            string
	InstallationPath      string
	InstallBashCompletion bool
	UseSudoToInstall      bool
	Verbose               bool
}

func NewInstallOptions added in v0.31.0

func NewInstallOptions() (i *InstallOptions)

func (*InstallOptions) GetBinaryName added in v0.31.0

func (i *InstallOptions) GetBinaryName() (binaryName string, err error)

func (*InstallOptions) GetInstallBashCompletion added in v0.31.0

func (i *InstallOptions) GetInstallBashCompletion() (installBashCompletion bool)

func (*InstallOptions) GetInstallationPath added in v0.31.0

func (i *InstallOptions) GetInstallationPath() (installationPath string, err error)

func (*InstallOptions) GetInstallationPathOrDefaultIfUnset added in v0.31.0

func (i *InstallOptions) GetInstallationPathOrDefaultIfUnset() (installationPath string, err error)

func (*InstallOptions) GetSourceFile added in v0.31.0

func (i *InstallOptions) GetSourceFile() (sourceFile File, err error)

func (*InstallOptions) GetSourcePath added in v0.31.0

func (i *InstallOptions) GetSourcePath() (sourcePath string, err error)

func (*InstallOptions) GetUseSudoToInstall added in v0.31.0

func (i *InstallOptions) GetUseSudoToInstall() (useSudoToInstall bool)

func (*InstallOptions) GetVerbose added in v0.31.0

func (i *InstallOptions) GetVerbose() (verbose bool)

func (*InstallOptions) MustGetBinaryName added in v0.31.0

func (i *InstallOptions) MustGetBinaryName() (binaryName string)

func (*InstallOptions) MustGetInstallationPath added in v0.31.0

func (i *InstallOptions) MustGetInstallationPath() (installationPath string)

func (*InstallOptions) MustGetInstallationPathOrDefaultIfUnset added in v0.31.0

func (i *InstallOptions) MustGetInstallationPathOrDefaultIfUnset() (installationPath string)

func (*InstallOptions) MustGetSourceFile added in v0.31.0

func (i *InstallOptions) MustGetSourceFile() (sourceFile File)

func (*InstallOptions) MustGetSourcePath added in v0.31.0

func (i *InstallOptions) MustGetSourcePath() (sourcePath string)

func (*InstallOptions) MustSetBinaryName added in v0.31.0

func (i *InstallOptions) MustSetBinaryName(binaryName string)

func (*InstallOptions) MustSetInstallationPath added in v0.31.0

func (i *InstallOptions) MustSetInstallationPath(installationPath string)

func (*InstallOptions) MustSetSourcePath added in v0.31.0

func (i *InstallOptions) MustSetSourcePath(sourcePath string)

func (*InstallOptions) SetBinaryName added in v0.31.0

func (i *InstallOptions) SetBinaryName(binaryName string) (err error)

func (*InstallOptions) SetInstallBashCompletion added in v0.31.0

func (i *InstallOptions) SetInstallBashCompletion(installBashCompletion bool)

func (*InstallOptions) SetInstallationPath added in v0.31.0

func (i *InstallOptions) SetInstallationPath(installationPath string) (err error)

func (*InstallOptions) SetSourcePath added in v0.31.0

func (i *InstallOptions) SetSourcePath(sourcePath string) (err error)

func (*InstallOptions) SetUseSudoToInstall added in v0.31.0

func (i *InstallOptions) SetUseSudoToInstall(useSudoToInstall bool)

func (*InstallOptions) SetVerbose added in v0.31.0

func (i *InstallOptions) SetVerbose(verbose bool)

type JsonService added in v0.31.0

type JsonService struct {
}

func Json added in v0.31.0

func Json() (jsonService *JsonService)

func NewJsonService added in v0.31.0

func NewJsonService() (jsonService *JsonService)

func (*JsonService) LoadKeyValueInterfaceDictFromJsonFile added in v0.31.0

func (j *JsonService) LoadKeyValueInterfaceDictFromJsonFile(jsonFile File) (keyValues map[string]interface{}, err error)

func (*JsonService) LoadKeyValueInterfaceDictFromJsonString added in v0.31.0

func (j *JsonService) LoadKeyValueInterfaceDictFromJsonString(jsonString string) (keyValues map[string]interface{}, err error)

func (*JsonService) LoadKeyValueStringDictFromJsonString added in v0.31.0

func (j *JsonService) LoadKeyValueStringDictFromJsonString(jsonString string) (keyValues map[string]string, err error)

func (*JsonService) MustLoadKeyValueInterfaceDictFromJsonFile added in v0.31.0

func (j *JsonService) MustLoadKeyValueInterfaceDictFromJsonFile(jsonFile File) (keyValues map[string]interface{})

func (*JsonService) MustLoadKeyValueInterfaceDictFromJsonString added in v0.31.0

func (j *JsonService) MustLoadKeyValueInterfaceDictFromJsonString(jsonString string) (keyValues map[string]interface{})

func (*JsonService) MustLoadKeyValueStringDictFromJsonString added in v0.31.0

func (j *JsonService) MustLoadKeyValueStringDictFromJsonString(jsonString string) (keyValues map[string]string)

func (*JsonService) MustParseJsonString added in v0.31.0

func (j *JsonService) MustParseJsonString(jsonString string) (data interface{})

func (*JsonService) MustRunJqAgainstJsonStringAsInt added in v0.31.0

func (j *JsonService) MustRunJqAgainstJsonStringAsInt(jsonString string, query string) (result int)

func (*JsonService) MustRunJqAgainstJsonStringAsString added in v0.31.0

func (j *JsonService) MustRunJqAgainstJsonStringAsString(jsonString string, query string) (result string)

func (*JsonService) ParseJsonString added in v0.31.0

func (j *JsonService) ParseJsonString(jsonString string) (data interface{}, err error)

func (*JsonService) RunJqAgainstJsonStringAsInt added in v0.31.0

func (j *JsonService) RunJqAgainstJsonStringAsInt(jsonString string, query string) (result int, err error)

func (*JsonService) RunJqAgainstJsonStringAsString added in v0.31.0

func (j *JsonService) RunJqAgainstJsonStringAsString(jsonString string, query string) (result string, err error)

type KVMHypervisor added in v0.31.0

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

func GetKvmHypervisorByHost added in v0.31.0

func GetKvmHypervisorByHost(host *Host) (kvmHypervisor *KVMHypervisor, err error)

func GetKvmHypervisorOnLocalhost added in v0.31.0

func GetKvmHypervisorOnLocalhost() (kvmHypervisor *KVMHypervisor, err error)

func MustGetKvmHypervisorByHost added in v0.31.0

func MustGetKvmHypervisorByHost(host *Host) (kvmHypervisor *KVMHypervisor)

func MustGetKvmHypervisorOnLocalhost added in v0.31.0

func MustGetKvmHypervisorOnLocalhost() (kvmHypervisor *KVMHypervisor)

func NewKVMHypervisor added in v0.31.0

func NewKVMHypervisor() (kvmHypervisor *KVMHypervisor)

func (*KVMHypervisor) CreateVm added in v0.31.0

func (k *KVMHypervisor) CreateVm(createOptions *KvmCreateVmOptions) (createdVm *KvmVm, err error)

func (*KVMHypervisor) GetHost added in v0.31.0

func (k *KVMHypervisor) GetHost() (host *Host, err error)

func (*KVMHypervisor) GetHostName added in v0.31.0

func (k *KVMHypervisor) GetHostName() (hostname string, err error)

func (*KVMHypervisor) GetStoragePoolNames added in v0.31.0

func (k *KVMHypervisor) GetStoragePoolNames(verbose bool) (storagePoolNames []string, err error)

func (*KVMHypervisor) GetStoragePools added in v0.31.0

func (k *KVMHypervisor) GetStoragePools(verbose bool) (storagePools []*KvmStoragePool, err error)

func (*KVMHypervisor) GetUseLocalhost added in v0.31.0

func (k *KVMHypervisor) GetUseLocalhost() (useLocalhost bool, err error)

func (*KVMHypervisor) GetVmById added in v0.31.0

func (k *KVMHypervisor) GetVmById(vmId int) (vm *KvmVm, err error)

func (*KVMHypervisor) GetVmByName added in v0.31.0

func (k *KVMHypervisor) GetVmByName(vmName string, verbose bool) (vm *KvmVm, err error)

func (*KVMHypervisor) GetVmInfoList added in v0.31.0

func (k *KVMHypervisor) GetVmInfoList(verbose bool) (vmInfos []*KvmVmInfo, err error)

func (*KVMHypervisor) GetVmList added in v0.31.0

func (k *KVMHypervisor) GetVmList(verbose bool) (vms []*KvmVm, err error)

func (*KVMHypervisor) GetVmNames added in v0.31.0

func (k *KVMHypervisor) GetVmNames(verbose bool) (vmNames []string, err error)

func (*KVMHypervisor) GetVolumeByName added in v0.31.0

func (k *KVMHypervisor) GetVolumeByName(volumeName string) (volume *KvmVolume, err error)

func (*KVMHypervisor) GetVolumeNames added in v0.31.0

func (k *KVMHypervisor) GetVolumeNames(verbose bool) (volumeNames []string, err error)

func (*KVMHypervisor) GetVolumes added in v0.31.0

func (k *KVMHypervisor) GetVolumes(verbose bool) (volumes []*KvmVolume, err error)

func (*KVMHypervisor) MustCreateVm added in v0.31.0

func (k *KVMHypervisor) MustCreateVm(createOptions *KvmCreateVmOptions) (createdVm *KvmVm)

func (*KVMHypervisor) MustGetHost added in v0.31.0

func (k *KVMHypervisor) MustGetHost() (host *Host)

func (*KVMHypervisor) MustGetHostName added in v0.31.0

func (k *KVMHypervisor) MustGetHostName() (hostname string)

func (*KVMHypervisor) MustGetStoragePoolNames added in v0.31.0

func (k *KVMHypervisor) MustGetStoragePoolNames(verbose bool) (storagePoolNames []string)

func (*KVMHypervisor) MustGetStoragePools added in v0.31.0

func (k *KVMHypervisor) MustGetStoragePools(verbose bool) (storagePools []*KvmStoragePool)

func (*KVMHypervisor) MustGetUseLocalhost added in v0.31.0

func (k *KVMHypervisor) MustGetUseLocalhost() (useLocalhost bool)

func (*KVMHypervisor) MustGetVmById added in v0.31.0

func (k *KVMHypervisor) MustGetVmById(vmId int) (vm *KvmVm)

func (*KVMHypervisor) MustGetVmByName added in v0.31.0

func (k *KVMHypervisor) MustGetVmByName(vmName string, verbose bool) (vm *KvmVm)

func (*KVMHypervisor) MustGetVmInfoList added in v0.31.0

func (k *KVMHypervisor) MustGetVmInfoList(verbose bool) (vmInfos []*KvmVmInfo)

func (*KVMHypervisor) MustGetVmList added in v0.31.0

func (k *KVMHypervisor) MustGetVmList(verbose bool) (vms []*KvmVm)

func (*KVMHypervisor) MustGetVmNames added in v0.31.0

func (k *KVMHypervisor) MustGetVmNames(verbose bool) (vmNames []string)

func (*KVMHypervisor) MustGetVolumeByName added in v0.31.0

func (k *KVMHypervisor) MustGetVolumeByName(volumeName string) (volume *KvmVolume)

func (*KVMHypervisor) MustGetVolumeNames added in v0.31.0

func (k *KVMHypervisor) MustGetVolumeNames(verbose bool) (volumeNames []string)

func (*KVMHypervisor) MustGetVolumes added in v0.31.0

func (k *KVMHypervisor) MustGetVolumes(verbose bool) (volumes []*KvmVolume)

func (*KVMHypervisor) MustRemoveVm added in v0.31.0

func (k *KVMHypervisor) MustRemoveVm(removeOptions *KvmRemoveVmOptions)

func (*KVMHypervisor) MustRemoveVolumeByName added in v0.31.0

func (k *KVMHypervisor) MustRemoveVolumeByName(volumeName string, verbose bool)

func (*KVMHypervisor) MustRunKvmCommand added in v0.31.0

func (k *KVMHypervisor) MustRunKvmCommand(kvmCommand []string, verbose bool) (commandOutput *CommandOutput)

func (*KVMHypervisor) MustRunKvmCommandAndGetStdout added in v0.31.0

func (k *KVMHypervisor) MustRunKvmCommandAndGetStdout(kvmCommand []string, verbose bool) (stdout string)

func (*KVMHypervisor) MustSetHost added in v0.31.0

func (k *KVMHypervisor) MustSetHost(host *Host)

func (*KVMHypervisor) MustSetUseLocalhost added in v0.31.0

func (k *KVMHypervisor) MustSetUseLocalhost(useLocalhost bool)

func (*KVMHypervisor) MustVmByNameExists added in v0.31.0

func (k *KVMHypervisor) MustVmByNameExists(vmName string) (vmExists bool)

func (*KVMHypervisor) MustVolumeByNameExists added in v0.31.0

func (k *KVMHypervisor) MustVolumeByNameExists(volumeName string) (volumeExists bool)

func (*KVMHypervisor) RemoveVm added in v0.31.0

func (k *KVMHypervisor) RemoveVm(removeOptions *KvmRemoveVmOptions) (err error)

func (*KVMHypervisor) RemoveVolumeByName added in v0.31.0

func (k *KVMHypervisor) RemoveVolumeByName(volumeName string, verbose bool) (err error)

func (*KVMHypervisor) RunKvmCommand added in v0.31.0

func (k *KVMHypervisor) RunKvmCommand(kvmCommand []string, verbose bool) (commandOutput *CommandOutput, err error)

func (*KVMHypervisor) RunKvmCommandAndGetStdout added in v0.31.0

func (k *KVMHypervisor) RunKvmCommandAndGetStdout(kvmCommand []string, verbose bool) (stdout string, err error)

func (*KVMHypervisor) SetHost added in v0.31.0

func (k *KVMHypervisor) SetHost(host *Host) (err error)

func (*KVMHypervisor) SetUseLocalhost added in v0.31.0

func (k *KVMHypervisor) SetUseLocalhost(useLocalhost bool) (err error)

func (*KVMHypervisor) VmByNameExists added in v0.31.0

func (k *KVMHypervisor) VmByNameExists(vmName string) (vmExists bool, err error)

func (*KVMHypervisor) VolumeByNameExists added in v0.31.0

func (k *KVMHypervisor) VolumeByNameExists(volumeName string) (volumeExists bool, err error)

type KubernetesControlplaneHost added in v0.31.0

type KubernetesControlplaneHost struct {
	Host
}

func GetKubernetesControlplaneByHostname added in v0.31.0

func GetKubernetesControlplaneByHostname(hostname string) (kubernetesControlplaneHost *KubernetesControlplaneHost, err error)

func MustGetKubernetesControlplaneByHostname added in v0.31.0

func MustGetKubernetesControlplaneByHostname(hostname string) (kubernetesControlplaneHost *KubernetesControlplaneHost)

func NewKubernetesControlplaneHost added in v0.31.0

func NewKubernetesControlplaneHost() (kubernetesControlplaneHost *KubernetesControlplaneHost)

func (*KubernetesControlplaneHost) CheckIsKubernetesControlplane added in v0.31.0

func (n *KubernetesControlplaneHost) CheckIsKubernetesControlplane(verbose bool) (isKubernetesControlplane bool, err error)

func (*KubernetesControlplaneHost) GetJoinCommandAsString added in v0.31.0

func (n *KubernetesControlplaneHost) GetJoinCommandAsString(verbose bool) (joinCommand string, err error)

func (*KubernetesControlplaneHost) GetJoinCommandAsStringSlice added in v0.31.0

func (n *KubernetesControlplaneHost) GetJoinCommandAsStringSlice(verbose bool) (joinCommand []string, err error)

func (*KubernetesControlplaneHost) IsKubernetesControlplane added in v0.31.0

func (n *KubernetesControlplaneHost) IsKubernetesControlplane(verbose bool) (isKubernetesControlplane bool, err error)

func (*KubernetesControlplaneHost) MustCheckIsKubernetesControlplane added in v0.31.0

func (k *KubernetesControlplaneHost) MustCheckIsKubernetesControlplane(verbose bool) (isKubernetesControlplane bool)

func (*KubernetesControlplaneHost) MustGetJoinCommandAsString added in v0.31.0

func (k *KubernetesControlplaneHost) MustGetJoinCommandAsString(verbose bool) (joinCommand string)

func (*KubernetesControlplaneHost) MustGetJoinCommandAsStringSlice added in v0.31.0

func (k *KubernetesControlplaneHost) MustGetJoinCommandAsStringSlice(verbose bool) (joinCommand []string)

func (*KubernetesControlplaneHost) MustIsKubernetesControlplane added in v0.31.0

func (k *KubernetesControlplaneHost) MustIsKubernetesControlplane(verbose bool) (isKubernetesControlplane bool)

type KubernetesNodeHost added in v0.31.0

type KubernetesNodeHost struct {
	Host
}

func GetKubernetesNodeByHostname added in v0.31.0

func GetKubernetesNodeByHostname(hostname string) (kubernetesNodeHost *KubernetesNodeHost, err error)

func MustGetKubernetesNodeByHostname added in v0.31.0

func MustGetKubernetesNodeByHostname(hostname string) (kubernetesNodeHost *KubernetesNodeHost)

func NewKubernetesNodeHost added in v0.31.0

func NewKubernetesNodeHost() (kubernetesNodeHost *KubernetesNodeHost)

func (*KubernetesNodeHost) CheckIsKubernetesNode added in v0.31.0

func (n *KubernetesNodeHost) CheckIsKubernetesNode(verbose bool) (isKubernetesNode bool, err error)

func (*KubernetesNodeHost) IsKubernetesNode added in v0.31.0

func (n *KubernetesNodeHost) IsKubernetesNode(verbose bool) (isKubernetesNode bool, err error)

func (*KubernetesNodeHost) MustCheckIsKubernetesNode added in v0.31.0

func (k *KubernetesNodeHost) MustCheckIsKubernetesNode(verbose bool) (isKubernetesNode bool)

func (*KubernetesNodeHost) MustIsKubernetesNode added in v0.31.0

func (k *KubernetesNodeHost) MustIsKubernetesNode(verbose bool) (isKubernetesNode bool)

type KvmCreateVmOptions added in v0.31.0

type KvmCreateVmOptions struct {
	VmName     string
	DiskImage  File
	Verbose    bool
	MacAddress string
}

func NewKvmCreateVmOptions added in v0.31.0

func NewKvmCreateVmOptions() (k *KvmCreateVmOptions)

func (*KvmCreateVmOptions) GetDiskImage added in v0.31.0

func (k *KvmCreateVmOptions) GetDiskImage() (diskImage File, err error)

func (*KvmCreateVmOptions) GetDiskImagePath added in v0.31.0

func (k *KvmCreateVmOptions) GetDiskImagePath() (diskImagePath string, err error)

func (*KvmCreateVmOptions) GetMacAddress added in v0.31.0

func (k *KvmCreateVmOptions) GetMacAddress() (macAddress string, err error)

func (*KvmCreateVmOptions) GetVerbose added in v0.31.0

func (k *KvmCreateVmOptions) GetVerbose() (verbose bool, err error)

func (*KvmCreateVmOptions) GetVmName added in v0.31.0

func (k *KvmCreateVmOptions) GetVmName() (vmName string, err error)

func (*KvmCreateVmOptions) MustGetDiskImage added in v0.31.0

func (k *KvmCreateVmOptions) MustGetDiskImage() (diskImage File)

func (*KvmCreateVmOptions) MustGetDiskImagePath added in v0.31.0

func (k *KvmCreateVmOptions) MustGetDiskImagePath() (diskImagePath string)

func (*KvmCreateVmOptions) MustGetMacAddress added in v0.31.0

func (k *KvmCreateVmOptions) MustGetMacAddress() (macAddress string)

func (*KvmCreateVmOptions) MustGetVerbose added in v0.31.0

func (k *KvmCreateVmOptions) MustGetVerbose() (verbose bool)

func (*KvmCreateVmOptions) MustGetVmName added in v0.31.0

func (k *KvmCreateVmOptions) MustGetVmName() (vmName string)

func (*KvmCreateVmOptions) MustSetDiskImage added in v0.31.0

func (k *KvmCreateVmOptions) MustSetDiskImage(diskImage File)

func (*KvmCreateVmOptions) MustSetMacAddress added in v0.31.0

func (k *KvmCreateVmOptions) MustSetMacAddress(macAddress string)

func (*KvmCreateVmOptions) MustSetVerbose added in v0.31.0

func (k *KvmCreateVmOptions) MustSetVerbose(verbose bool)

func (*KvmCreateVmOptions) MustSetVmName added in v0.31.0

func (k *KvmCreateVmOptions) MustSetVmName(vmName string)

func (*KvmCreateVmOptions) SetDiskImage added in v0.31.0

func (k *KvmCreateVmOptions) SetDiskImage(diskImage File) (err error)

func (*KvmCreateVmOptions) SetMacAddress added in v0.31.0

func (k *KvmCreateVmOptions) SetMacAddress(macAddress string) (err error)

func (*KvmCreateVmOptions) SetVerbose added in v0.31.0

func (k *KvmCreateVmOptions) SetVerbose(verbose bool) (err error)

func (*KvmCreateVmOptions) SetVmName added in v0.31.0

func (k *KvmCreateVmOptions) SetVmName(vmName string) (err error)

type KvmRemoveVmOptions added in v0.31.0

type KvmRemoveVmOptions struct {
	VmName              string
	RemoveVolumes       bool
	Verbose             bool
	VolumeNamesToRemove []string
}

func NewKvmRemoveVmOptions added in v0.31.0

func NewKvmRemoveVmOptions() (k *KvmRemoveVmOptions)

func (*KvmRemoveVmOptions) GetRemoveVolumes added in v0.31.0

func (k *KvmRemoveVmOptions) GetRemoveVolumes() (removeVolumes bool, err error)

func (*KvmRemoveVmOptions) GetVerbose added in v0.31.0

func (k *KvmRemoveVmOptions) GetVerbose() (verbose bool, err error)

func (*KvmRemoveVmOptions) GetVmName added in v0.31.0

func (k *KvmRemoveVmOptions) GetVmName() (vmName string, err error)

func (*KvmRemoveVmOptions) GetVolumeNamesToRemove added in v0.31.0

func (k *KvmRemoveVmOptions) GetVolumeNamesToRemove() (volumeNamesToRemove []string, err error)

func (*KvmRemoveVmOptions) MustGetRemoveVolumes added in v0.31.0

func (k *KvmRemoveVmOptions) MustGetRemoveVolumes() (removeVolumes bool)

func (*KvmRemoveVmOptions) MustGetVerbose added in v0.31.0

func (k *KvmRemoveVmOptions) MustGetVerbose() (verbose bool)

func (*KvmRemoveVmOptions) MustGetVmName added in v0.31.0

func (k *KvmRemoveVmOptions) MustGetVmName() (vmName string)

func (*KvmRemoveVmOptions) MustGetVolumeNamesToRemove added in v0.31.0

func (k *KvmRemoveVmOptions) MustGetVolumeNamesToRemove() (volumeNamesToRemove []string)

func (*KvmRemoveVmOptions) MustSetRemoveVolumes added in v0.31.0

func (k *KvmRemoveVmOptions) MustSetRemoveVolumes(removeVolumes bool)

func (*KvmRemoveVmOptions) MustSetVerbose added in v0.31.0

func (k *KvmRemoveVmOptions) MustSetVerbose(verbose bool)

func (*KvmRemoveVmOptions) MustSetVmName added in v0.31.0

func (k *KvmRemoveVmOptions) MustSetVmName(vmName string)

func (*KvmRemoveVmOptions) MustSetVolumeNamesToRemove added in v0.31.0

func (k *KvmRemoveVmOptions) MustSetVolumeNamesToRemove(volumeNamesToRemove []string)

func (*KvmRemoveVmOptions) SetRemoveVolumes added in v0.31.0

func (k *KvmRemoveVmOptions) SetRemoveVolumes(removeVolumes bool) (err error)

func (*KvmRemoveVmOptions) SetVerbose added in v0.31.0

func (k *KvmRemoveVmOptions) SetVerbose(verbose bool) (err error)

func (*KvmRemoveVmOptions) SetVmName added in v0.31.0

func (k *KvmRemoveVmOptions) SetVmName(vmName string) (err error)

func (*KvmRemoveVmOptions) SetVolumeNamesToRemove added in v0.31.0

func (k *KvmRemoveVmOptions) SetVolumeNamesToRemove(volumeNamesToRemove []string) (err error)

type KvmStoragePool added in v0.31.0

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

func NewKvmStoragePool added in v0.31.0

func NewKvmStoragePool() (kvmStoragePool *KvmStoragePool)

func (*KvmStoragePool) GetHostName added in v0.31.0

func (k *KvmStoragePool) GetHostName() (hostname string, err error)

func (*KvmStoragePool) GetHypervisor added in v0.31.0

func (k *KvmStoragePool) GetHypervisor() (hypervisor *KVMHypervisor, err error)

func (*KvmStoragePool) GetName added in v0.31.0

func (k *KvmStoragePool) GetName() (name string, err error)

func (*KvmStoragePool) GetVolumes added in v0.31.0

func (k *KvmStoragePool) GetVolumes(verbose bool) (volumes []*KvmVolume, err error)

func (*KvmStoragePool) MustGetHostName added in v0.31.0

func (k *KvmStoragePool) MustGetHostName() (hostname string)

func (*KvmStoragePool) MustGetHypervisor added in v0.31.0

func (k *KvmStoragePool) MustGetHypervisor() (hypervisor *KVMHypervisor)

func (*KvmStoragePool) MustGetName added in v0.31.0

func (k *KvmStoragePool) MustGetName() (name string)

func (*KvmStoragePool) MustGetVolumes added in v0.31.0

func (k *KvmStoragePool) MustGetVolumes(verbose bool) (volumes []*KvmVolume)

func (*KvmStoragePool) MustSetHypervisor added in v0.31.0

func (k *KvmStoragePool) MustSetHypervisor(hypervisor *KVMHypervisor)

func (*KvmStoragePool) MustSetName added in v0.31.0

func (k *KvmStoragePool) MustSetName(name string)

func (*KvmStoragePool) SetHypervisor added in v0.31.0

func (k *KvmStoragePool) SetHypervisor(hypervisor *KVMHypervisor) (err error)

func (*KvmStoragePool) SetName added in v0.31.0

func (k *KvmStoragePool) SetName(name string) (err error)

type KvmVm added in v0.31.0

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

func NewKvmVm added in v0.31.0

func NewKvmVm() (kvmVm *KvmVm)

func (*KvmVm) GetCachedName added in v0.31.0

func (k *KvmVm) GetCachedName() (cachedName string, err error)

func (*KvmVm) GetDomainXmlAsString added in v0.31.0

func (k *KvmVm) GetDomainXmlAsString(verbose bool) (domainXml string, err error)

func (*KvmVm) GetHypervisor added in v0.31.0

func (k *KvmVm) GetHypervisor() (hypervisor *KVMHypervisor, err error)

func (*KvmVm) GetId added in v0.31.0

func (k *KvmVm) GetId() (id int, err error)

func (*KvmVm) GetInfo added in v0.31.0

func (k *KvmVm) GetInfo(verbose bool) (vmInfo *KvmVmInfo, err error)

func (*KvmVm) GetMacAddress added in v0.31.0

func (k *KvmVm) GetMacAddress(verbose bool) (macAddress string, err error)

func (*KvmVm) GetName added in v0.31.0

func (k *KvmVm) GetName() (name string, err error)

func (*KvmVm) GetVmId added in v0.31.0

func (k *KvmVm) GetVmId() (vmId *int, err error)

func (*KvmVm) MustGetCachedName added in v0.31.0

func (k *KvmVm) MustGetCachedName() (cachedName string)

func (*KvmVm) MustGetDomainXmlAsString added in v0.31.0

func (k *KvmVm) MustGetDomainXmlAsString(verbose bool) (domainXml string)

func (*KvmVm) MustGetHypervisor added in v0.31.0

func (k *KvmVm) MustGetHypervisor() (hypervisor *KVMHypervisor)

func (*KvmVm) MustGetId added in v0.31.0

func (k *KvmVm) MustGetId() (id int)

func (*KvmVm) MustGetInfo added in v0.31.0

func (k *KvmVm) MustGetInfo(verbose bool) (vmInfo *KvmVmInfo)

func (*KvmVm) MustGetMacAddress added in v0.31.0

func (k *KvmVm) MustGetMacAddress(verbose bool) (macAddress string)

func (*KvmVm) MustGetName added in v0.31.0

func (k *KvmVm) MustGetName() (name string)

func (*KvmVm) MustGetVmId added in v0.31.0

func (k *KvmVm) MustGetVmId() (vmId *int)

func (*KvmVm) MustSetCachedName added in v0.31.0

func (k *KvmVm) MustSetCachedName(cachedName string)

func (*KvmVm) MustSetHypervisor added in v0.31.0

func (k *KvmVm) MustSetHypervisor(hypervisor *KVMHypervisor)

func (*KvmVm) MustSetId added in v0.31.0

func (k *KvmVm) MustSetId(id int)

func (*KvmVm) MustSetVmId added in v0.31.0

func (k *KvmVm) MustSetVmId(vmId *int)

func (*KvmVm) SetCachedName added in v0.31.0

func (k *KvmVm) SetCachedName(cachedName string) (err error)

func (*KvmVm) SetHypervisor added in v0.31.0

func (k *KvmVm) SetHypervisor(hypervisor *KVMHypervisor) (err error)

func (*KvmVm) SetId added in v0.31.0

func (k *KvmVm) SetId(id int) (err error)

func (*KvmVm) SetVmId added in v0.31.0

func (k *KvmVm) SetVmId(vmId *int) (err error)

type KvmVmInfo added in v0.31.0

type KvmVmInfo struct {
	Name       string `json:"name"`
	MacAddress string `json:"mac_address"`
}

func NewKvmVmInfo added in v0.31.0

func NewKvmVmInfo() (k *KvmVmInfo)

func (*KvmVmInfo) GetMacAddress added in v0.31.0

func (k *KvmVmInfo) GetMacAddress() (macAddress string, err error)

func (*KvmVmInfo) GetName added in v0.31.0

func (k *KvmVmInfo) GetName() (name string, err error)

func (*KvmVmInfo) GetNameAndMacAddress added in v0.31.0

func (k *KvmVmInfo) GetNameAndMacAddress() (name string, macAddress string, err error)

func (*KvmVmInfo) MustGetMacAddress added in v0.31.0

func (k *KvmVmInfo) MustGetMacAddress() (macAddress string)

func (*KvmVmInfo) MustGetName added in v0.31.0

func (k *KvmVmInfo) MustGetName() (name string)

func (*KvmVmInfo) MustGetNameAndMacAddress added in v0.31.0

func (k *KvmVmInfo) MustGetNameAndMacAddress() (name string, macAddress string)

func (*KvmVmInfo) MustSetMacAddress added in v0.31.0

func (k *KvmVmInfo) MustSetMacAddress(macAddress string)

func (*KvmVmInfo) MustSetName added in v0.31.0

func (k *KvmVmInfo) MustSetName(name string)

func (*KvmVmInfo) SetMacAddress added in v0.31.0

func (k *KvmVmInfo) SetMacAddress(macAddress string) (err error)

func (*KvmVmInfo) SetName added in v0.31.0

func (k *KvmVmInfo) SetName(name string) (err error)

type KvmVolume added in v0.31.0

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

func NewKvmVolume added in v0.31.0

func NewKvmVolume() (kvmVolume *KvmVolume)

func (*KvmVolume) GetHostName added in v0.31.0

func (v *KvmVolume) GetHostName() (hostname string, err error)

func (*KvmVolume) GetHypervisor added in v0.31.0

func (v *KvmVolume) GetHypervisor() (hypervisor *KVMHypervisor, err error)

func (*KvmVolume) GetName added in v0.31.0

func (v *KvmVolume) GetName() (name string, err error)

func (*KvmVolume) GetStoragePool added in v0.31.0

func (v *KvmVolume) GetStoragePool() (storagePool *KvmStoragePool, err error)

func (*KvmVolume) GetStoragePoolName added in v0.31.0

func (v *KvmVolume) GetStoragePoolName() (storagePoolName string, err error)

func (*KvmVolume) MustGetHostName added in v0.31.0

func (k *KvmVolume) MustGetHostName() (hostname string)

func (*KvmVolume) MustGetHypervisor added in v0.31.0

func (k *KvmVolume) MustGetHypervisor() (hypervisor *KVMHypervisor)

func (*KvmVolume) MustGetName added in v0.31.0

func (k *KvmVolume) MustGetName() (name string)

func (*KvmVolume) MustGetStoragePool added in v0.31.0

func (k *KvmVolume) MustGetStoragePool() (storagePool *KvmStoragePool)

func (*KvmVolume) MustGetStoragePoolName added in v0.31.0

func (k *KvmVolume) MustGetStoragePoolName() (storagePoolName string)

func (*KvmVolume) MustRemove added in v0.31.0

func (k *KvmVolume) MustRemove(verbose bool)

func (*KvmVolume) MustSetName added in v0.31.0

func (k *KvmVolume) MustSetName(name string)

func (*KvmVolume) MustSetStoragePool added in v0.31.0

func (k *KvmVolume) MustSetStoragePool(storagePool *KvmStoragePool)

func (*KvmVolume) Remove added in v0.31.0

func (v *KvmVolume) Remove(verbose bool) (err error)

func (*KvmVolume) SetName added in v0.31.0

func (v *KvmVolume) SetName(name string) (err error)

func (*KvmVolume) SetStoragePool added in v0.31.0

func (v *KvmVolume) SetStoragePool(storagePool *KvmStoragePool) (err error)

type LibvirtXmlsService added in v0.31.0

type LibvirtXmlsService struct{}

func LibvirtXmls added in v0.31.0

func LibvirtXmls() (libvirtXmls *LibvirtXmlsService)

func NewLibvirtXmlsService added in v0.31.0

func NewLibvirtXmlsService() (libvirtXmls *LibvirtXmlsService)

func (*LibvirtXmlsService) CreateXmlForVmOnLatopAsString added in v0.31.0

func (l *LibvirtXmlsService) CreateXmlForVmOnLatopAsString(createOptions *KvmCreateVmOptions) (libvirtXml string, err error)

func (*LibvirtXmlsService) GetMacAddressFromXmlString added in v0.31.0

func (l *LibvirtXmlsService) GetMacAddressFromXmlString(libvirtXml string) (macAddress string, err error)

func (*LibvirtXmlsService) MustCreateXmlForVmOnLatopAsString added in v0.31.0

func (l *LibvirtXmlsService) MustCreateXmlForVmOnLatopAsString(createOptions *KvmCreateVmOptions) (libvirtXml string)

func (*LibvirtXmlsService) MustGetMacAddressFromXmlString added in v0.31.0

func (l *LibvirtXmlsService) MustGetMacAddressFromXmlString(libvirtXml string) (macAddress string)

func (*LibvirtXmlsService) MustWriteXmlForVmOnLatopToFile added in v0.31.0

func (l *LibvirtXmlsService) MustWriteXmlForVmOnLatopToFile(createOptions *KvmCreateVmOptions, outputFile File)

func (*LibvirtXmlsService) WriteXmlForVmOnLatopToFile added in v0.31.0

func (l *LibvirtXmlsService) WriteXmlForVmOnLatopToFile(createOptions *KvmCreateVmOptions, outputFile File) (err error)

type ListDirectoryOptions added in v0.17.3

type ListDirectoryOptions struct {
	// Enable recursive file and/or directory listing:
	Recursive bool

	// Return paths relative to the directory to list:
	ReturnRelativePaths bool

	// Enable verbose output
	Verbose bool
}

func NewListDirectoryOptions added in v0.17.3

func NewListDirectoryOptions() (l *ListDirectoryOptions)

func (*ListDirectoryOptions) GetRecursive added in v0.17.3

func (l *ListDirectoryOptions) GetRecursive() (recursive bool)

func (*ListDirectoryOptions) GetReturnRelativePaths added in v0.40.0

func (l *ListDirectoryOptions) GetReturnRelativePaths() (returnRelativePaths bool)

func (*ListDirectoryOptions) GetVerbose added in v0.39.1

func (l *ListDirectoryOptions) GetVerbose() (verbose bool)

func (*ListDirectoryOptions) SetRecursive added in v0.17.3

func (l *ListDirectoryOptions) SetRecursive(recursive bool)

func (*ListDirectoryOptions) SetReturnRelativePaths added in v0.40.0

func (l *ListDirectoryOptions) SetReturnRelativePaths(returnRelativePaths bool)

func (*ListDirectoryOptions) SetVerbose added in v0.39.1

func (l *ListDirectoryOptions) SetVerbose(verbose bool)

type LocalDirectory added in v0.6.0

type LocalDirectory struct {
	DirectoryBase
	// contains filtered or unexported fields
}

func GetLocalDirectoryByPath added in v0.6.0

func GetLocalDirectoryByPath(path string) (l *LocalDirectory, err error)

func MustGetLocalDirectoryByPath added in v0.6.0

func MustGetLocalDirectoryByPath(path string) (l *LocalDirectory)

func NewLocalDirectory added in v0.6.0

func NewLocalDirectory() (l *LocalDirectory)

func (*LocalDirectory) Create added in v0.6.0

func (l *LocalDirectory) Create(verbose bool) (err error)

func (*LocalDirectory) CreateFileInDirectory added in v0.11.0

func (l *LocalDirectory) CreateFileInDirectory(path ...string) (createdFile File, err error)

func (*LocalDirectory) CreateSubDirectory added in v0.17.3

func (l *LocalDirectory) CreateSubDirectory(subDirName string, verbose bool) (createdSubDir Directory, err error)

func (*LocalDirectory) Delete added in v0.6.0

func (l *LocalDirectory) Delete(verbose bool) (err error)

func (*LocalDirectory) Exists added in v0.6.0

func (l *LocalDirectory) Exists() (exists bool, err error)

func (*LocalDirectory) GetBaseName added in v0.17.3

func (l *LocalDirectory) GetBaseName() (baseName string, err error)

func (*LocalDirectory) GetDirName added in v0.17.3

func (l *LocalDirectory) GetDirName() (dirName string, err error)

func (*LocalDirectory) GetFileInDirectory added in v0.9.0

func (l *LocalDirectory) GetFileInDirectory(path ...string) (file File, err error)

func (*LocalDirectory) GetFileInDirectoryAsLocalFile added in v0.42.0

func (l *LocalDirectory) GetFileInDirectoryAsLocalFile(filePath ...string) (localFile *LocalFile, err error)

func (*LocalDirectory) GetGitRepositories added in v0.18.0

func (l *LocalDirectory) GetGitRepositories(verbose bool) (gitRepos []GitRepository, err error)

func (*LocalDirectory) GetGitRepositoriesAsLocalGitRepositories added in v0.18.0

func (l *LocalDirectory) GetGitRepositoriesAsLocalGitRepositories(verbose bool) (gitRepos []*LocalGitRepository, err error)

func (*LocalDirectory) GetLocalPath added in v0.6.0

func (l *LocalDirectory) GetLocalPath() (localPath string, err error)

func (*LocalDirectory) GetSubDirectories added in v0.17.3

func (l *LocalDirectory) GetSubDirectories(listDirectoryOptions *ListDirectoryOptions) (subDirectories []Directory, err error)

func (*LocalDirectory) GetSubDirectoriesAsAbsolutePaths added in v0.17.3

func (l *LocalDirectory) GetSubDirectoriesAsAbsolutePaths(listDirectoryOptions *ListDirectoryOptions) (subDirectoryPaths []string, err error)

func (*LocalDirectory) GetSubDirectory added in v0.9.0

func (l *LocalDirectory) GetSubDirectory(path ...string) (subDirectory Directory, err error)

func (*LocalDirectory) GetSubDirectoryAndLocalPath added in v0.17.3

func (l *LocalDirectory) GetSubDirectoryAndLocalPath(path ...string) (subDirectory Directory, subDirectoryPath string, err error)

func (*LocalDirectory) GetSubDirectoryPaths added in v0.40.0

func (l *LocalDirectory) GetSubDirectoryPaths(listOptions *ListDirectoryOptions) (paths []string, err error)

func (*LocalDirectory) IsLocalDirectory added in v0.13.1

func (l *LocalDirectory) IsLocalDirectory() (isLocalDirectory bool)

func (*LocalDirectory) MustCreate added in v0.6.0

func (l *LocalDirectory) MustCreate(verbose bool)

func (*LocalDirectory) MustCreateFileInDirectory added in v0.11.0

func (l *LocalDirectory) MustCreateFileInDirectory(path ...string) (createdFile File)

func (*LocalDirectory) MustCreateSubDirectory added in v0.17.3

func (l *LocalDirectory) MustCreateSubDirectory(subDirName string, verbose bool) (createdSubDir Directory)

func (*LocalDirectory) MustDelete added in v0.6.0

func (l *LocalDirectory) MustDelete(verbose bool)

func (*LocalDirectory) MustExists added in v0.6.0

func (l *LocalDirectory) MustExists() (exists bool)

func (*LocalDirectory) MustGetBaseName added in v0.17.3

func (l *LocalDirectory) MustGetBaseName() (baseName string)

func (*LocalDirectory) MustGetDirName added in v0.17.3

func (l *LocalDirectory) MustGetDirName() (dirName string)

func (*LocalDirectory) MustGetFileInDirectory added in v0.9.0

func (l *LocalDirectory) MustGetFileInDirectory(path ...string) (file File)

func (*LocalDirectory) MustGetFileInDirectoryAsLocalFile added in v0.42.0

func (l *LocalDirectory) MustGetFileInDirectoryAsLocalFile(filePath ...string) (localFile *LocalFile)

func (*LocalDirectory) MustGetGitRepositories added in v0.18.0

func (l *LocalDirectory) MustGetGitRepositories(verbose bool) (gitRepos []GitRepository)

func (*LocalDirectory) MustGetGitRepositoriesAsLocalGitRepositories added in v0.18.0

func (l *LocalDirectory) MustGetGitRepositoriesAsLocalGitRepositories(verbose bool) (gitRepos []*LocalGitRepository)

func (*LocalDirectory) MustGetLocalPath added in v0.6.0

func (l *LocalDirectory) MustGetLocalPath() (localPath string)

func (*LocalDirectory) MustGetSubDirectories added in v0.17.3

func (l *LocalDirectory) MustGetSubDirectories(listDirectoryOptions *ListDirectoryOptions) (subDirectories []Directory)

func (*LocalDirectory) MustGetSubDirectoriesAsAbsolutePaths added in v0.17.3

func (l *LocalDirectory) MustGetSubDirectoriesAsAbsolutePaths(listDirectoryOptions *ListDirectoryOptions) (subDirectoryPaths []string)

func (*LocalDirectory) MustGetSubDirectory added in v0.9.0

func (l *LocalDirectory) MustGetSubDirectory(path ...string) (subDirectory Directory)

func (*LocalDirectory) MustGetSubDirectoryAndLocalPath added in v0.17.3

func (l *LocalDirectory) MustGetSubDirectoryAndLocalPath(path ...string) (subDirectory Directory, subDirectoryPath string)

func (*LocalDirectory) MustGetSubDirectoryPaths added in v0.40.0

func (l *LocalDirectory) MustGetSubDirectoryPaths(listOptions *ListDirectoryOptions) (paths []string)

func (*LocalDirectory) MustSetLocalPath added in v0.6.0

func (l *LocalDirectory) MustSetLocalPath(localPath string)

func (*LocalDirectory) MustSubDirectoryExists added in v0.17.3

func (l *LocalDirectory) MustSubDirectoryExists(subDirName string, verbose bool) (subDirExists bool)

func (*LocalDirectory) MustWriteStringToFileInDirectory added in v0.42.0

func (l *LocalDirectory) MustWriteStringToFileInDirectory(content string, verbose bool, filePath ...string) (writtenFile *LocalFile)

func (*LocalDirectory) SetLocalPath added in v0.6.0

func (l *LocalDirectory) SetLocalPath(localPath string) (err error)

func (*LocalDirectory) SubDirectoryExists added in v0.17.3

func (l *LocalDirectory) SubDirectoryExists(subDirName string, verbose bool) (subDirExists bool, err error)

func (*LocalDirectory) WriteStringToFileInDirectory added in v0.42.0

func (l *LocalDirectory) WriteStringToFileInDirectory(content string, verbose bool, filePath ...string) (writtenFile *LocalFile, err error)

type LocalFile

type LocalFile struct {
	FileBase
	// contains filtered or unexported fields
}

A LocalFile represents a locally available file.

func GetLocalFileByFile added in v0.35.0

func GetLocalFileByFile(inputFile File) (localFile *LocalFile, err error)

func GetLocalFileByPath added in v0.5.5

func GetLocalFileByPath(localPath string) (l *LocalFile, err error)

func MustGetLocalFileByFile added in v0.35.0

func MustGetLocalFileByFile(inputFile File) (localFile *LocalFile)

func MustGetLocalFileByPath added in v0.5.5

func MustGetLocalFileByPath(localPath string) (l *LocalFile)

func MustNewLocalFileByPath

func MustNewLocalFileByPath(localPath string) (l *LocalFile)

func NewLocalFile

func NewLocalFile() (l *LocalFile)

func NewLocalFileByPath

func NewLocalFileByPath(localPath string) (l *LocalFile, err error)

func (*LocalFile) AppendBytes added in v0.27.0

func (l *LocalFile) AppendBytes(toWrite []byte, verbose bool) (err error)

func (*LocalFile) AppendString added in v0.27.0

func (l *LocalFile) AppendString(toWrite string, verbose bool) (err error)

func (*LocalFile) Create added in v0.11.0

func (l *LocalFile) Create(verbose bool) (err error)

func (*LocalFile) Delete added in v0.1.3

func (l *LocalFile) Delete(verbose bool) (err error)

Delete a file if it exists. If the file is already absent this function does nothing.

func (*LocalFile) Exists

func (l *LocalFile) Exists() (exists bool, err error)

func (*LocalFile) GetBaseName added in v0.14.2

func (l *LocalFile) GetBaseName() (baseName string, err error)

func (*LocalFile) GetDeepCopy added in v0.35.0

func (l *LocalFile) GetDeepCopy() (deepCopy File)

func (*LocalFile) GetLocalPath

func (l *LocalFile) GetLocalPath() (path string, err error)

func (*LocalFile) GetParentDirectory added in v0.14.6

func (l *LocalFile) GetParentDirectory() (parentDirectory Directory, err error)

func (*LocalFile) GetParentFileForBaseClassAsLocalFile added in v0.35.0

func (l *LocalFile) GetParentFileForBaseClassAsLocalFile() (parentAsLocalFile *LocalFile, err error)

func (*LocalFile) GetPath

func (l *LocalFile) GetPath() (path string, err error)

func (*LocalFile) GetUriAsString

func (l *LocalFile) GetUriAsString() (uri string, err error)

func (*LocalFile) IsPathSet

func (l *LocalFile) IsPathSet() (isSet bool)

func (*LocalFile) MustAppendBytes added in v0.27.0

func (l *LocalFile) MustAppendBytes(toWrite []byte, verbose bool)

func (*LocalFile) MustAppendString added in v0.27.0

func (l *LocalFile) MustAppendString(toWrite string, verbose bool)

func (*LocalFile) MustCreate added in v0.11.0

func (l *LocalFile) MustCreate(verbose bool)

func (*LocalFile) MustDelete added in v0.1.3

func (l *LocalFile) MustDelete(verbose bool)

func (*LocalFile) MustExists

func (l *LocalFile) MustExists() (exists bool)

func (*LocalFile) MustGetBaseName added in v0.14.2

func (l *LocalFile) MustGetBaseName() (baseName string)

func (*LocalFile) MustGetLocalPath

func (l *LocalFile) MustGetLocalPath() (path string)

func (*LocalFile) MustGetParentDirectory added in v0.14.6

func (l *LocalFile) MustGetParentDirectory() (parentDirectory Directory)

func (*LocalFile) MustGetParentFileForBaseClassAsLocalFile added in v0.35.0

func (l *LocalFile) MustGetParentFileForBaseClassAsLocalFile() (parentAsLocalFile *LocalFile)

func (*LocalFile) MustGetPath

func (l *LocalFile) MustGetPath() (path string)

func (*LocalFile) MustGetUriAsString

func (l *LocalFile) MustGetUriAsString() (uri string)

func (*LocalFile) MustReadAsBytes added in v0.1.3

func (l *LocalFile) MustReadAsBytes() (content []byte)

func (*LocalFile) MustSetPath

func (l *LocalFile) MustSetPath(path string)

func (*LocalFile) MustWriteBytes added in v0.1.3

func (l *LocalFile) MustWriteBytes(toWrite []byte, verbose bool)

func (*LocalFile) ReadAsBytes added in v0.1.3

func (l *LocalFile) ReadAsBytes() (content []byte, err error)

func (*LocalFile) SetPath

func (l *LocalFile) SetPath(path string) (err error)

func (*LocalFile) WriteBytes added in v0.1.3

func (l *LocalFile) WriteBytes(toWrite []byte, verbose bool) (err error)

type LocalGitRemote added in v0.14.1

type LocalGitRemote struct {
	Name      string
	RemoteUrl string
}

func MustNewLocalGitRemoteByNativeGoGitRemote added in v0.14.1

func MustNewLocalGitRemoteByNativeGoGitRemote(goGitRemote *git.Remote) (l *LocalGitRemote)

func NewLocalGitRemote added in v0.14.1

func NewLocalGitRemote() (l *LocalGitRemote)

func NewLocalGitRemoteByNativeGoGitRemote added in v0.14.1

func NewLocalGitRemoteByNativeGoGitRemote(goGitRemote *git.Remote) (l *LocalGitRemote, err error)

func (*LocalGitRemote) GetName added in v0.14.1

func (l *LocalGitRemote) GetName() (name string, err error)

func (*LocalGitRemote) GetRemoteUrl added in v0.14.1

func (l *LocalGitRemote) GetRemoteUrl() (remoteUrl string, err error)

func (*LocalGitRemote) MustGetName added in v0.14.1

func (l *LocalGitRemote) MustGetName() (name string)

func (*LocalGitRemote) MustGetRemoteUrl added in v0.14.1

func (l *LocalGitRemote) MustGetRemoteUrl() (remoteUrl string)

func (*LocalGitRemote) MustSetName added in v0.14.1

func (l *LocalGitRemote) MustSetName(name string)

func (*LocalGitRemote) MustSetRemoteUrl added in v0.14.1

func (l *LocalGitRemote) MustSetRemoteUrl(remoteUrl string)

func (*LocalGitRemote) SetName added in v0.14.1

func (l *LocalGitRemote) SetName(name string) (err error)

func (*LocalGitRemote) SetRemoteUrl added in v0.14.1

func (l *LocalGitRemote) SetRemoteUrl(remoteUrl string) (err error)

type LocalGitRepository added in v0.11.0

type LocalGitRepository struct {
	LocalDirectory
}

func GetLocalGitReposioryFromDirectory added in v0.13.1

func GetLocalGitReposioryFromDirectory(directory Directory) (l *LocalGitRepository, err error)

func GetLocalGitRepositoryByPath added in v0.11.0

func GetLocalGitRepositoryByPath(path string) (l *LocalGitRepository, err error)

func MustGetLocalGitReposioryFromDirectory added in v0.13.1

func MustGetLocalGitReposioryFromDirectory(directory Directory) (l *LocalGitRepository)

func MustGetLocalGitRepositoryByPath added in v0.11.0

func MustGetLocalGitRepositoryByPath(path string) (l *LocalGitRepository)

func NewLocalGitRepository added in v0.11.0

func NewLocalGitRepository() (l *LocalGitRepository)

func (*LocalGitRepository) Add added in v0.11.0

func (l *LocalGitRepository) Add(path string) (err error)

func (*LocalGitRepository) Commit added in v0.11.0

func (l *LocalGitRepository) Commit(commitOptions *GitCommitOptions) (createdCommit *GitCommit, err error)

func (*LocalGitRepository) CommitAndPush added in v0.14.1

func (l *LocalGitRepository) CommitAndPush(commitOptions *GitCommitOptions) (createdCommit *GitCommit, err error)

func (*LocalGitRepository) CommitHasParentCommitByCommitHash added in v0.34.0

func (l *LocalGitRepository) CommitHasParentCommitByCommitHash(hash string) (hasParentCommit bool, err error)

func (*LocalGitRepository) GetAsGoGitRepository added in v0.11.0

func (l *LocalGitRepository) GetAsGoGitRepository() (goGitRepository *git.Repository, err error)

func (*LocalGitRepository) GetAuthorEmailByCommitHash added in v0.33.0

func (l *LocalGitRepository) GetAuthorEmailByCommitHash(hash string) (authorEmail string, err error)

func (*LocalGitRepository) GetAuthorStringByCommitHash added in v0.33.0

func (l *LocalGitRepository) GetAuthorStringByCommitHash(hash string) (authorString string, err error)

func (*LocalGitRepository) GetCommitAgeDurationByCommitHash added in v0.33.0

func (l *LocalGitRepository) GetCommitAgeDurationByCommitHash(hash string) (ageDuration *time.Duration, err error)

func (*LocalGitRepository) GetCommitAgeSecondsByCommitHash added in v0.33.0

func (l *LocalGitRepository) GetCommitAgeSecondsByCommitHash(hash string) (ageSeconds float64, err error)

func (*LocalGitRepository) GetCommitByGoGitCommit added in v0.34.0

func (l *LocalGitRepository) GetCommitByGoGitCommit(goGitCommit *object.Commit) (gitCommit *GitCommit, err error)

func (*LocalGitRepository) GetCommitByGoGitHash added in v0.11.0

func (l *LocalGitRepository) GetCommitByGoGitHash(goGitHash *plumbing.Hash) (gitCommit *GitCommit, err error)

func (*LocalGitRepository) GetCommitByGoGitReference added in v0.11.0

func (l *LocalGitRepository) GetCommitByGoGitReference(goGitReference *plumbing.Reference) (gitCommit *GitCommit, err error)

func (*LocalGitRepository) GetCommitMessageByCommitHash added in v0.33.0

func (l *LocalGitRepository) GetCommitMessageByCommitHash(hash string) (commitMessage string, err error)

func (*LocalGitRepository) GetCommitParentsByCommitHash added in v0.34.0

func (l *LocalGitRepository) GetCommitParentsByCommitHash(hash string, options *GitCommitGetParentsOptions) (commitParents []*GitCommit, err error)

func (*LocalGitRepository) GetCommitTimeByCommitHash added in v0.33.0

func (l *LocalGitRepository) GetCommitTimeByCommitHash(hash string) (commitTime *time.Time, err error)

func (*LocalGitRepository) GetCurrentCommit added in v0.11.0

func (l *LocalGitRepository) GetCurrentCommit() (gitCommit *GitCommit, err error)

func (*LocalGitRepository) GetCurrentCommitHash added in v0.11.0

func (l *LocalGitRepository) GetCurrentCommitHash() (commitHash string, err error)

func (*LocalGitRepository) GetGitlabCiYamlFile added in v0.20.0

func (l *LocalGitRepository) GetGitlabCiYamlFile() (gitlabCiYamlFile *GitlabCiYamlFile, err error)

func (*LocalGitRepository) GetGoGitCommitByCommitHash added in v0.33.0

func (l *LocalGitRepository) GetGoGitCommitByCommitHash(hash string) (goGitCommit *object.Commit, err error)

func (*LocalGitRepository) GetGoGitConfig added in v0.11.0

func (l *LocalGitRepository) GetGoGitConfig() (config *config.Config, err error)

func (*LocalGitRepository) GetGoGitHead added in v0.11.0

func (l *LocalGitRepository) GetGoGitHead() (head *plumbing.Reference, err error)

func (*LocalGitRepository) GetGoGitWorktree added in v0.11.0

func (l *LocalGitRepository) GetGoGitWorktree() (worktree *git.Worktree, err error)

func (*LocalGitRepository) GetRootDirectory added in v0.18.0

func (l *LocalGitRepository) GetRootDirectory() (rootDirectory Directory, err error)

func (*LocalGitRepository) GetRootDirectoryPath added in v0.18.0

func (l *LocalGitRepository) GetRootDirectoryPath() (rootDirectoryPath string, err error)

func (*LocalGitRepository) GetTagByHash added in v0.34.2

func (l *LocalGitRepository) GetTagByHash(hash string) (gitTag *GitTag, err error)

func (*LocalGitRepository) GitlabCiYamlFileExists added in v0.24.0

func (l *LocalGitRepository) GitlabCiYamlFileExists() (gitlabCiYamlFileExists bool, err error)

func (*LocalGitRepository) HasNoUncommittedChanges added in v0.11.0

func (l *LocalGitRepository) HasNoUncommittedChanges() (hasUncommittedChanges bool, err error)

func (*LocalGitRepository) HasUncommittedChanges added in v0.11.0

func (l *LocalGitRepository) HasUncommittedChanges() (hasUncommittedChanges bool, err error)

func (*LocalGitRepository) Init added in v0.11.0

func (l *LocalGitRepository) Init(options *CreateRepositoryOptions) (err error)

func (*LocalGitRepository) IsBareRepository added in v0.14.1

func (l *LocalGitRepository) IsBareRepository(verbose bool) (isBareRepository bool, err error)

func (*LocalGitRepository) IsGitRepository added in v0.18.0

func (l *LocalGitRepository) IsGitRepository() (isGitRepository bool, err error)

func (*LocalGitRepository) IsInitialized added in v0.11.0

func (l *LocalGitRepository) IsInitialized() (isInitialized bool, err error)

func (*LocalGitRepository) MustAdd added in v0.11.0

func (l *LocalGitRepository) MustAdd(path string)

func (*LocalGitRepository) MustCommit added in v0.11.0

func (l *LocalGitRepository) MustCommit(commitOptions *GitCommitOptions) (createdCommit *GitCommit)

func (*LocalGitRepository) MustCommitAndPush added in v0.14.1

func (l *LocalGitRepository) MustCommitAndPush(commitOptions *GitCommitOptions) (createdCommit *GitCommit)

func (*LocalGitRepository) MustCommitHasParentCommitByCommitHash added in v0.34.0

func (l *LocalGitRepository) MustCommitHasParentCommitByCommitHash(hash string) (hasParentCommit bool)

func (*LocalGitRepository) MustGetAsGoGitRepository added in v0.11.0

func (l *LocalGitRepository) MustGetAsGoGitRepository() (goGitRepository *git.Repository)

func (*LocalGitRepository) MustGetAuthorEmailByCommitHash added in v0.33.0

func (l *LocalGitRepository) MustGetAuthorEmailByCommitHash(hash string) (authorEmail string)

func (*LocalGitRepository) MustGetAuthorStringByCommitHash added in v0.33.0

func (l *LocalGitRepository) MustGetAuthorStringByCommitHash(hash string) (authorString string)

func (*LocalGitRepository) MustGetCommitAgeDurationByCommitHash added in v0.33.0

func (l *LocalGitRepository) MustGetCommitAgeDurationByCommitHash(hash string) (ageDuration *time.Duration)

func (*LocalGitRepository) MustGetCommitAgeSecondsByCommitHash added in v0.33.0

func (l *LocalGitRepository) MustGetCommitAgeSecondsByCommitHash(hash string) (ageSeconds float64)

func (*LocalGitRepository) MustGetCommitByGoGitCommit added in v0.34.0

func (l *LocalGitRepository) MustGetCommitByGoGitCommit(goGitCommit *object.Commit) (gitCommit *GitCommit)

func (*LocalGitRepository) MustGetCommitByGoGitHash added in v0.11.0

func (l *LocalGitRepository) MustGetCommitByGoGitHash(goGitHash *plumbing.Hash) (gitCommit *GitCommit)

func (*LocalGitRepository) MustGetCommitByGoGitReference added in v0.11.0

func (l *LocalGitRepository) MustGetCommitByGoGitReference(goGitReference *plumbing.Reference) (gitCommit *GitCommit)

func (*LocalGitRepository) MustGetCommitMessageByCommitHash added in v0.33.0

func (l *LocalGitRepository) MustGetCommitMessageByCommitHash(hash string) (commitMessage string)

func (*LocalGitRepository) MustGetCommitParentsByCommitHash added in v0.34.0

func (l *LocalGitRepository) MustGetCommitParentsByCommitHash(hash string, options *GitCommitGetParentsOptions) (commitParents []*GitCommit)

func (*LocalGitRepository) MustGetCommitTimeByCommitHash added in v0.33.0

func (l *LocalGitRepository) MustGetCommitTimeByCommitHash(hash string) (commitTime *time.Time)

func (*LocalGitRepository) MustGetCurrentCommit added in v0.11.0

func (l *LocalGitRepository) MustGetCurrentCommit() (gitCommit *GitCommit)

func (*LocalGitRepository) MustGetCurrentCommitHash added in v0.11.0

func (l *LocalGitRepository) MustGetCurrentCommitHash() (commitHash string)

func (*LocalGitRepository) MustGetGitlabCiYamlFile added in v0.20.0

func (l *LocalGitRepository) MustGetGitlabCiYamlFile() (gitlabCiYamlFile *GitlabCiYamlFile)

func (*LocalGitRepository) MustGetGoGitCommitByCommitHash added in v0.33.0

func (l *LocalGitRepository) MustGetGoGitCommitByCommitHash(hash string) (goGitCommit *object.Commit)

func (*LocalGitRepository) MustGetGoGitConfig added in v0.11.0

func (l *LocalGitRepository) MustGetGoGitConfig() (config *config.Config)

func (*LocalGitRepository) MustGetGoGitHead added in v0.11.0

func (l *LocalGitRepository) MustGetGoGitHead() (head *plumbing.Reference)

func (*LocalGitRepository) MustGetGoGitWorktree added in v0.11.0

func (l *LocalGitRepository) MustGetGoGitWorktree() (worktree *git.Worktree)

func (*LocalGitRepository) MustGetRootDirectory added in v0.18.0

func (l *LocalGitRepository) MustGetRootDirectory() (rootDirectory Directory)

func (*LocalGitRepository) MustGetRootDirectoryPath added in v0.18.0

func (l *LocalGitRepository) MustGetRootDirectoryPath() (rootDirectoryPath string)

func (*LocalGitRepository) MustGetTagByHash added in v0.34.2

func (l *LocalGitRepository) MustGetTagByHash(hash string) (gitTag *GitTag)

func (*LocalGitRepository) MustGitlabCiYamlFileExists added in v0.24.0

func (l *LocalGitRepository) MustGitlabCiYamlFileExists() (gitlabCiYamlFileExists bool)

func (*LocalGitRepository) MustHasNoUncommittedChanges added in v0.11.0

func (l *LocalGitRepository) MustHasNoUncommittedChanges() (hasUncommittedChanges bool)

func (*LocalGitRepository) MustHasUncommittedChanges added in v0.11.0

func (l *LocalGitRepository) MustHasUncommittedChanges() (hasUncommittedChanges bool)

func (*LocalGitRepository) MustInit added in v0.11.0

func (l *LocalGitRepository) MustInit(options *CreateRepositoryOptions)

func (*LocalGitRepository) MustIsBareRepository added in v0.14.1

func (l *LocalGitRepository) MustIsBareRepository(verbose bool) (isBareRepository bool)

func (*LocalGitRepository) MustIsGitRepository added in v0.18.0

func (l *LocalGitRepository) MustIsGitRepository() (isGitRepository bool)

func (*LocalGitRepository) MustIsInitialized added in v0.11.0

func (l *LocalGitRepository) MustIsInitialized() (isInitialized bool)

func (*LocalGitRepository) MustPull added in v0.11.0

func (l *LocalGitRepository) MustPull(verbose bool)

func (*LocalGitRepository) MustPullUsingGitCli added in v0.30.0

func (l *LocalGitRepository) MustPullUsingGitCli(verbose bool)

func (*LocalGitRepository) MustPush added in v0.11.0

func (l *LocalGitRepository) MustPush(verbose bool)

func (*LocalGitRepository) MustRunGitCommand added in v0.22.0

func (l *LocalGitRepository) MustRunGitCommand(gitCommand string, verbose bool) (commandOutput *CommandOutput)

func (*LocalGitRepository) MustSetGitConfig added in v0.11.0

func (l *LocalGitRepository) MustSetGitConfig(options *GitConfigSetOptions)

func (*LocalGitRepository) MustSetGitConfigByGoGitConfig added in v0.11.0

func (l *LocalGitRepository) MustSetGitConfigByGoGitConfig(config *config.Config, verbose bool)

func (*LocalGitRepository) MustSetRemote added in v0.14.1

func (l *LocalGitRepository) MustSetRemote(remoteName string, remotUrl string, verbose bool) (remote *LocalGitRemote)

func (*LocalGitRepository) Pull added in v0.11.0

func (l *LocalGitRepository) Pull(verbose bool) (err error)

func (*LocalGitRepository) PullUsingGitCli added in v0.30.0

func (l *LocalGitRepository) PullUsingGitCli(verbose bool) (err error)

func (*LocalGitRepository) Push added in v0.11.0

func (l *LocalGitRepository) Push(verbose bool) (err error)

func (*LocalGitRepository) RunGitCommand added in v0.22.0

func (l *LocalGitRepository) RunGitCommand(gitCommand string, verbose bool) (commandOutput *CommandOutput, err error)

func (*LocalGitRepository) SetGitConfig added in v0.11.0

func (l *LocalGitRepository) SetGitConfig(options *GitConfigSetOptions) (err error)

func (*LocalGitRepository) SetGitConfigByGoGitConfig added in v0.11.0

func (l *LocalGitRepository) SetGitConfigByGoGitConfig(config *config.Config, verbose bool) (err error)

func (*LocalGitRepository) SetRemote added in v0.14.1

func (l *LocalGitRepository) SetRemote(remoteName string, remotUrl string, verbose bool) (remote *LocalGitRemote, err error)

type LogSettings added in v0.7.1

type LogSettings struct {
	ColorDisabled bool
}

func NewLogSettings added in v0.7.1

func NewLogSettings() (l *LogSettings)

func (*LogSettings) GetColorDisabled added in v0.7.1

func (l *LogSettings) GetColorDisabled() (colorDisabled bool)

func (*LogSettings) IsColorDisabled added in v0.7.1

func (l *LogSettings) IsColorDisabled() (colorDisabled bool)

func (*LogSettings) IsColorEnabled added in v0.7.1

func (l *LogSettings) IsColorEnabled() (colorEnabled bool)

func (*LogSettings) SetColorDisabled added in v0.7.1

func (l *LogSettings) SetColorDisabled(colorDisabled bool)

func (*LogSettings) SetColorEnabled added in v0.7.1

func (l *LogSettings) SetColorEnabled(colorEnabled bool)

type MacAddressesService added in v0.31.0

type MacAddressesService struct{}

func MacAddresses added in v0.31.0

func MacAddresses() (m *MacAddressesService)

func NewMacAddressesService added in v0.31.0

func NewMacAddressesService() (m *MacAddressesService)

func (*MacAddressesService) CheckStringIsAMacAddress added in v0.31.0

func (m *MacAddressesService) CheckStringIsAMacAddress(input string) (isMacAddress bool, err error)

func (*MacAddressesService) IsStringAMacAddress added in v0.31.0

func (m *MacAddressesService) IsStringAMacAddress(input string) (isMacAddress bool)

func (*MacAddressesService) MustCheckStringIsAMacAddress added in v0.31.0

func (m *MacAddressesService) MustCheckStringIsAMacAddress(input string) (isMacAddress bool)

type MathService added in v0.3.0

type MathService struct{}

func Math added in v0.3.0

func Math() (m *MathService)

func NewMathService added in v0.3.0

func NewMathService() (m *MathService)

func (*MathService) MaxInt added in v0.3.0

func (m *MathService) MaxInt(integers ...int) (maxValue int)

type ObjectStoreBucket added in v0.13.2

type ObjectStoreBucket interface {
	Exists() (exists bool, err error)
	MustExists() (exists bool)
}

type OsService added in v0.5.0

type OsService struct{}

func NewOsService added in v0.5.0

func NewOsService() (o *OsService)

func OS added in v0.5.0

func OS() (o *OsService)

func (*OsService) GetCurrentWorkingDirectory added in v0.16.0

func (o *OsService) GetCurrentWorkingDirectory() (workingDirectory *LocalDirectory, err error)

func (*OsService) GetCurrentWorkingDirectoryAsString added in v0.16.0

func (o *OsService) GetCurrentWorkingDirectoryAsString() (workingDirPath string, err error)

func (*OsService) IsRunningOnWindows added in v0.5.0

func (o *OsService) IsRunningOnWindows() (isRunningOnWindows bool)

func (*OsService) MustGetCurrentWorkingDirectory added in v0.16.0

func (o *OsService) MustGetCurrentWorkingDirectory() (workingDirectory *LocalDirectory)

func (*OsService) MustGetCurrentWorkingDirectoryAsString added in v0.16.0

func (o *OsService) MustGetCurrentWorkingDirectoryAsString() (workingDirPath string)

type PathsService

type PathsService struct{}

func NewPathsService

func NewPathsService() (p *PathsService)

func Paths

func Paths() (p *PathsService)

func (*PathsService) GetAbsolutePath added in v0.16.0

func (p *PathsService) GetAbsolutePath(path string) (absolutePath string, err error)

func (*PathsService) IsAbsolutePath

func (p *PathsService) IsAbsolutePath(path string) (isAbsolute bool)

Returns true if path is an absolute path. An empty string as path will always be false.

func (*PathsService) IsRelativePath

func (p *PathsService) IsRelativePath(path string) (isRelative bool)

Returns true if path is a relative path. An empty string as path will always be false.

func (*PathsService) MustGetAbsolutePath added in v0.16.0

func (p *PathsService) MustGetAbsolutePath(path string) (absolutePath string)

type PointersService

type PointersService struct{}

func NewPointersService

func NewPointersService() (p *PointersService)

func Pointers

func Pointers() (pointers *PointersService)

func (*PointersService) CheckIsPointer added in v0.35.0

func (p *PointersService) CheckIsPointer(objectToTest interface{}) (err error)

func (*PointersService) GetMemoryAddressAsHexString added in v0.35.0

func (p *PointersService) GetMemoryAddressAsHexString(input interface{}) (memoryAddress string, err error)

func (*PointersService) GetMemoryAddressAsUInt64 added in v0.35.0

func (p *PointersService) GetMemoryAddressAsUInt64(input interface{}) (memoryAddress uint64, err error)

func (*PointersService) GetMemoryAddressAsUIntPtr added in v0.35.0

func (p *PointersService) GetMemoryAddressAsUIntPtr(input interface{}) (memoryAddress uintptr, err error)

func (*PointersService) IsPointer

func (p *PointersService) IsPointer(objectToTest interface{}) (isPointer bool)

func (*PointersService) MustCheckIsPointer added in v0.35.0

func (p *PointersService) MustCheckIsPointer(objectToTest interface{})

func (*PointersService) MustGetMemoryAddressAsHexString added in v0.35.0

func (p *PointersService) MustGetMemoryAddressAsHexString(input interface{}) (memoryAddress string)

func (*PointersService) MustGetMemoryAddressAsUInt64 added in v0.35.0

func (p *PointersService) MustGetMemoryAddressAsUInt64(input interface{}) (memoryAddress uint64)

func (*PointersService) MustGetMemoryAddressAsUIntPtr added in v0.35.0

func (p *PointersService) MustGetMemoryAddressAsUIntPtr(input interface{}) (memoryAddress uintptr)

func (*PointersService) MustPointersEqual added in v0.35.0

func (p *PointersService) MustPointersEqual(ptr1 interface{}, ptr2 interface{}) (addressEqual bool)

func (*PointersService) PointersEqual added in v0.35.0

func (p *PointersService) PointersEqual(ptr1 interface{}, ptr2 interface{}) (addressEqual bool, err error)

type PowerShellService added in v0.7.0

type PowerShellService struct {
	CommandExecutorBase
}

func NewPowerShell added in v0.7.0

func NewPowerShell() (p *PowerShellService)

func NewPowerShellService added in v0.7.0

func NewPowerShellService() (p *PowerShellService)

func PowerShell added in v0.7.0

func PowerShell() (p *PowerShellService)

func (*PowerShellService) MustRunCommand added in v0.7.0

func (p *PowerShellService) MustRunCommand(options *RunCommandOptions) (commandOutput *CommandOutput)

func (*PowerShellService) MustRunOneLiner added in v0.10.0

func (p *PowerShellService) MustRunOneLiner(oneLiner string, verbose bool) (output *CommandOutput)

func (*PowerShellService) MustRunOneLinerAndGetStdoutAsString added in v0.10.0

func (p *PowerShellService) MustRunOneLinerAndGetStdoutAsString(oneLiner string, verbose bool) (stdout string)

func (*PowerShellService) RunCommand added in v0.7.0

func (b *PowerShellService) RunCommand(options *RunCommandOptions) (commandOutput *CommandOutput, err error)

func (*PowerShellService) RunOneLiner added in v0.10.0

func (p *PowerShellService) RunOneLiner(oneLiner string, verbose bool) (output *CommandOutput, err error)

func (*PowerShellService) RunOneLinerAndGetStdoutAsString added in v0.10.0

func (p *PowerShellService) RunOneLinerAndGetStdoutAsString(oneLiner string, verbose bool) (stdout string, err error)

type RandomGeneratorService added in v0.31.0

type RandomGeneratorService struct{}

func NewRandomGeneratorService added in v0.31.0

func NewRandomGeneratorService() (randomGenerator *RandomGeneratorService)

func RandomGenerator added in v0.31.0

func RandomGenerator() (randomGenerator *RandomGeneratorService)

func (*RandomGeneratorService) GetRandomString added in v0.31.0

func (r *RandomGeneratorService) GetRandomString(lenght int) (random string, err error)

func (*RandomGeneratorService) MustGetRandomString added in v0.31.0

func (r *RandomGeneratorService) MustGetRandomString(length int) (random string)

type RunCommandOptions added in v0.4.0

type RunCommandOptions struct {
	Command            []string
	TimeoutString      string
	Verbose            bool
	AllowAllExitCodes  bool
	LiveOutputOnStdout bool

	// Run as "root" user (or Administrator on Windows):
	RunAsRoot bool
}

func NewRunCommandOptions added in v0.4.0

func NewRunCommandOptions() (runCommandOptions *RunCommandOptions)

func (*RunCommandOptions) GetAllowAllExitCodes added in v0.4.0

func (r *RunCommandOptions) GetAllowAllExitCodes() (allowAllExitCodes bool, err error)

func (*RunCommandOptions) GetCommand added in v0.4.0

func (o *RunCommandOptions) GetCommand() (command []string, err error)

func (*RunCommandOptions) GetDeepCopy added in v0.4.0

func (o *RunCommandOptions) GetDeepCopy() (deepCopy *RunCommandOptions)

func (*RunCommandOptions) GetJoinedCommand added in v0.4.0

func (o *RunCommandOptions) GetJoinedCommand() (joinedCommand string, err error)

func (*RunCommandOptions) GetLiveOutputOnStdout added in v0.4.0

func (r *RunCommandOptions) GetLiveOutputOnStdout() (liveOutputOnStdout bool, err error)

func (*RunCommandOptions) GetRunAsRoot added in v0.7.0

func (r *RunCommandOptions) GetRunAsRoot() (runAsRoot bool)

func (*RunCommandOptions) GetTimeoutSecondsAsString added in v0.4.0

func (o *RunCommandOptions) GetTimeoutSecondsAsString() (timeoutSeconds string, err error)

func (*RunCommandOptions) GetTimeoutString added in v0.4.0

func (r *RunCommandOptions) GetTimeoutString() (timeoutString string, err error)

func (*RunCommandOptions) GetVerbose added in v0.4.0

func (r *RunCommandOptions) GetVerbose() (verbose bool, err error)

func (*RunCommandOptions) IsTimeoutSet added in v0.4.0

func (o *RunCommandOptions) IsTimeoutSet() (isSet bool)

func (*RunCommandOptions) MustGetAllowAllExitCodes added in v0.4.0

func (r *RunCommandOptions) MustGetAllowAllExitCodes() (allowAllExitCodes bool)

func (*RunCommandOptions) MustGetCommand added in v0.4.0

func (r *RunCommandOptions) MustGetCommand() (command []string)

func (*RunCommandOptions) MustGetJoinedCommand added in v0.4.0

func (r *RunCommandOptions) MustGetJoinedCommand() (joinedCommand string)

func (*RunCommandOptions) MustGetLiveOutputOnStdout added in v0.4.0

func (r *RunCommandOptions) MustGetLiveOutputOnStdout() (liveOutputOnStdout bool)

func (*RunCommandOptions) MustGetTimeoutSecondsAsString added in v0.4.0

func (r *RunCommandOptions) MustGetTimeoutSecondsAsString() (timeoutSeconds string)

func (*RunCommandOptions) MustGetTimeoutString added in v0.4.0

func (r *RunCommandOptions) MustGetTimeoutString() (timeoutString string)

func (*RunCommandOptions) MustGetVerbose added in v0.4.0

func (r *RunCommandOptions) MustGetVerbose() (verbose bool)

func (*RunCommandOptions) MustSetAllowAllExitCodes added in v0.4.0

func (r *RunCommandOptions) MustSetAllowAllExitCodes(allowAllExitCodes bool)

func (*RunCommandOptions) MustSetCommand added in v0.4.0

func (r *RunCommandOptions) MustSetCommand(command []string)

func (*RunCommandOptions) MustSetLiveOutputOnStdout added in v0.4.0

func (r *RunCommandOptions) MustSetLiveOutputOnStdout(liveOutputOnStdout bool)

func (*RunCommandOptions) MustSetTimeoutString added in v0.4.0

func (r *RunCommandOptions) MustSetTimeoutString(timeoutString string)

func (*RunCommandOptions) MustSetVerbose added in v0.4.0

func (r *RunCommandOptions) MustSetVerbose(verbose bool)

func (*RunCommandOptions) SetAllowAllExitCodes added in v0.4.0

func (r *RunCommandOptions) SetAllowAllExitCodes(allowAllExitCodes bool) (err error)

func (*RunCommandOptions) SetCommand added in v0.4.0

func (r *RunCommandOptions) SetCommand(command []string) (err error)

func (*RunCommandOptions) SetLiveOutputOnStdout added in v0.4.0

func (r *RunCommandOptions) SetLiveOutputOnStdout(liveOutputOnStdout bool) (err error)

func (*RunCommandOptions) SetRunAsRoot added in v0.7.0

func (r *RunCommandOptions) SetRunAsRoot(runAsRoot bool)

func (*RunCommandOptions) SetTimeoutString added in v0.4.0

func (r *RunCommandOptions) SetTimeoutString(timeoutString string) (err error)

func (*RunCommandOptions) SetVerbose added in v0.4.0

func (r *RunCommandOptions) SetVerbose(verbose bool) (err error)

type SSHClient added in v0.31.0

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

func NewSSHClient added in v0.31.0

func NewSSHClient() (s *SSHClient)

func (*SSHClient) CheckReachable added in v0.31.0

func (s *SSHClient) CheckReachable(verbose bool) (isReachable bool, err error)

func (*SSHClient) GetHost added in v0.31.0

func (s *SSHClient) GetHost() (host *Host, err error)

func (*SSHClient) GetHostName added in v0.31.0

func (s *SSHClient) GetHostName() (hostname string, err error)

func (*SSHClient) GetSshUserName added in v0.31.0

func (s *SSHClient) GetSshUserName() (sshUserName string, err error)

func (*SSHClient) IsReachable added in v0.31.0

func (s *SSHClient) IsReachable(verbose bool) (isReachable bool, err error)

func (*SSHClient) IsSshUserNameSet added in v0.31.0

func (s *SSHClient) IsSshUserNameSet() (isSet bool)

func (*SSHClient) MustCheckReachable added in v0.31.0

func (s *SSHClient) MustCheckReachable(verbose bool) (isReachable bool)

func (*SSHClient) MustGetHost added in v0.31.0

func (s *SSHClient) MustGetHost() (host *Host)

func (*SSHClient) MustGetHostName added in v0.31.0

func (s *SSHClient) MustGetHostName() (hostname string)

func (*SSHClient) MustGetSshUserName added in v0.31.0

func (s *SSHClient) MustGetSshUserName() (sshUserName string)

func (*SSHClient) MustIsReachable added in v0.31.0

func (s *SSHClient) MustIsReachable(verbose bool) (isReachavble bool)

func (*SSHClient) MustRunCommand added in v0.31.0

func (s *SSHClient) MustRunCommand(options *RunCommandOptions) (commandOutput *CommandOutput)

func (*SSHClient) MustSetHost added in v0.31.0

func (s *SSHClient) MustSetHost(host *Host)

func (*SSHClient) MustSetSshUserName added in v0.31.0

func (s *SSHClient) MustSetSshUserName(sshUserName string)

func (*SSHClient) RunCommand added in v0.31.0

func (s *SSHClient) RunCommand(options *RunCommandOptions) (commandOutput *CommandOutput, err error)

func (*SSHClient) SetHost added in v0.31.0

func (s *SSHClient) SetHost(host *Host) (err error)

func (*SSHClient) SetSshUserName added in v0.31.0

func (s *SSHClient) SetSshUserName(sshUserName string) (err error)

type SSHPublicKey added in v0.31.0

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

func NewSSHPublicKey added in v0.31.0

func NewSSHPublicKey() (sshPublicKey *SSHPublicKey)

func (*SSHPublicKey) Equals added in v0.31.0

func (k *SSHPublicKey) Equals(other *SSHPublicKey) (isEqual bool)

func (*SSHPublicKey) GetAsPublicKeyLine added in v0.31.0

func (k *SSHPublicKey) GetAsPublicKeyLine() (publicKeyLine string, err error)

func (*SSHPublicKey) GetKeyHostName added in v0.31.0

func (k *SSHPublicKey) GetKeyHostName() (hostName string, err error)

func (*SSHPublicKey) GetKeyMaterial added in v0.31.0

func (s *SSHPublicKey) GetKeyMaterial() (keyMaterial string, err error)

func (*SSHPublicKey) GetKeyMaterialAsString added in v0.31.0

func (k *SSHPublicKey) GetKeyMaterialAsString() (keyMaterial string, err error)

func (*SSHPublicKey) GetKeyUserAtHost added in v0.31.0

func (k *SSHPublicKey) GetKeyUserAtHost() (userAtHost string, err error)

func (*SSHPublicKey) GetKeyUserHost added in v0.31.0

func (s *SSHPublicKey) GetKeyUserHost() (keyUserHost string, err error)

func (*SSHPublicKey) GetKeyUserName added in v0.31.0

func (k *SSHPublicKey) GetKeyUserName() (keyUserName string, err error)

func (*SSHPublicKey) LoadFromSshDir added in v0.31.0

func (k *SSHPublicKey) LoadFromSshDir(sshDirectory Directory, verbose bool) (err error)

func (*SSHPublicKey) MustGetAsPublicKeyLine added in v0.31.0

func (s *SSHPublicKey) MustGetAsPublicKeyLine() (publicKeyLine string)

func (*SSHPublicKey) MustGetKeyHostName added in v0.31.0

func (k *SSHPublicKey) MustGetKeyHostName() (hostName string)

func (*SSHPublicKey) MustGetKeyMaterial added in v0.31.0

func (s *SSHPublicKey) MustGetKeyMaterial() (keyMaterial string)

func (*SSHPublicKey) MustGetKeyMaterialAsString added in v0.31.0

func (k *SSHPublicKey) MustGetKeyMaterialAsString() (keyMaterial string)

func (*SSHPublicKey) MustGetKeyUserAtHost added in v0.31.0

func (s *SSHPublicKey) MustGetKeyUserAtHost() (userAtHost string)

func (*SSHPublicKey) MustGetKeyUserHost added in v0.31.0

func (s *SSHPublicKey) MustGetKeyUserHost() (keyUserHost string)

func (*SSHPublicKey) MustGetKeyUserName added in v0.31.0

func (k *SSHPublicKey) MustGetKeyUserName() (keyUserName string)

func (*SSHPublicKey) MustLoadFromSshDir added in v0.31.0

func (s *SSHPublicKey) MustLoadFromSshDir(sshDirectory Directory, verbose bool)

func (*SSHPublicKey) MustSetFromString added in v0.31.0

func (k *SSHPublicKey) MustSetFromString(keyMaterial string)

func (*SSHPublicKey) MustSetKeyMaterial added in v0.31.0

func (s *SSHPublicKey) MustSetKeyMaterial(keyMaterial string)

func (*SSHPublicKey) MustSetKeyUserHost added in v0.31.0

func (s *SSHPublicKey) MustSetKeyUserHost(keyUserHost string)

func (*SSHPublicKey) MustSetKeyUserName added in v0.31.0

func (s *SSHPublicKey) MustSetKeyUserName(keyUserName string)

func (*SSHPublicKey) MustWriteToFile added in v0.31.0

func (s *SSHPublicKey) MustWriteToFile(outputFile File, verbose bool)

func (*SSHPublicKey) SetFromString added in v0.31.0

func (k *SSHPublicKey) SetFromString(keyMaterial string) (err error)

func (*SSHPublicKey) SetKeyMaterial added in v0.31.0

func (s *SSHPublicKey) SetKeyMaterial(keyMaterial string) (err error)

func (*SSHPublicKey) SetKeyUserHost added in v0.31.0

func (s *SSHPublicKey) SetKeyUserHost(keyUserHost string) (err error)

func (*SSHPublicKey) SetKeyUserName added in v0.31.0

func (s *SSHPublicKey) SetKeyUserName(keyUserName string) (err error)

func (*SSHPublicKey) WriteToFile added in v0.31.0

func (k *SSHPublicKey) WriteToFile(outputFile File, verbose bool) (err error)

type SSHPublicKeysService added in v0.31.0

type SSHPublicKeysService struct{}

func NewSSHPublicKeysService added in v0.31.0

func NewSSHPublicKeysService() (sshPublicKeys *SSHPublicKeysService)

func SSHPublicKeys added in v0.31.0

func SSHPublicKeys() (sshPublicKeys *SSHPublicKeysService)

func (*SSHPublicKeysService) LoadKeysFromFile added in v0.31.0

func (s *SSHPublicKeysService) LoadKeysFromFile(sshKeysFile File, verbose bool) (sshKeys []*SSHPublicKey, err error)

func (*SSHPublicKeysService) MustLoadKeysFromFile added in v0.31.0

func (s *SSHPublicKeysService) MustLoadKeysFromFile(sshKeysFile File, verbose bool) (sshKeys []*SSHPublicKey)

type ShellLineHandlerService added in v0.4.0

type ShellLineHandlerService struct {
}

func NewShellLineHandlerService added in v0.4.0

func NewShellLineHandlerService() (s *ShellLineHandlerService)

func ShellLineHandler added in v0.4.0

func ShellLineHandler() (shellLineHandler *ShellLineHandlerService)

func (*ShellLineHandlerService) Join added in v0.4.0

func (s *ShellLineHandlerService) Join(command []string) (joinedCommand string, err error)

func (*ShellLineHandlerService) MustJoin added in v0.4.0

func (s *ShellLineHandlerService) MustJoin(command []string) (joinedCommand string)

func (*ShellLineHandlerService) MustSplit added in v0.4.0

func (s *ShellLineHandlerService) MustSplit(command string) (splittedCommand []string)

func (*ShellLineHandlerService) Split added in v0.4.0

func (s *ShellLineHandlerService) Split(command string) (splittedCommand []string, err error)

type SlicesService added in v0.3.0

type SlicesService struct {
}

func NewSlicesService added in v0.3.0

func NewSlicesService() (s *SlicesService)

func Slices added in v0.3.0

func Slices() (slices *SlicesService)

func (*SlicesService) AddPrefixToEachString added in v0.3.0

func (s *SlicesService) AddPrefixToEachString(stringSlices []string, prefix string) (output []string)

func (*SlicesService) AddSuffixToEachString added in v0.3.0

func (s *SlicesService) AddSuffixToEachString(stringSlices []string, suffix string) (output []string)

func (*SlicesService) ByteSlicesEqual added in v0.39.0

func (o *SlicesService) ByteSlicesEqual(input1 []byte, input2 []byte) (slicesEqual bool)

func (*SlicesService) ContainsInt added in v0.3.0

func (s *SlicesService) ContainsInt(intSlice []int, intToSearch int) (containsInt bool)

func (*SlicesService) ContainsSshPublicKeyWithSameKeyMaterial added in v0.31.0

func (s *SlicesService) ContainsSshPublicKeyWithSameKeyMaterial(sshKeys []*SSHPublicKey, keyToSearch *SSHPublicKey) (contains bool)

func (*SlicesService) ContainsString added in v0.3.0

func (s *SlicesService) ContainsString(sliceOfStrings []string, toCheck string) (contains bool)

func (*SlicesService) GetDeepCopyOfStringsSlice added in v0.3.0

func (s *SlicesService) GetDeepCopyOfStringsSlice(sliceOfStrings []string) (deepCopy []string)

func (*SlicesService) GetIntSliceInitialized added in v0.3.0

func (s *SlicesService) GetIntSliceInitialized(nValues int, initValue int) (initializedSlice []int)

func (*SlicesService) GetIntSliceInitializedWithZeros added in v0.3.0

func (s *SlicesService) GetIntSliceInitializedWithZeros(nValues int) (initializedSlice []int)

func (*SlicesService) GetStringElementsNotInOtherSlice added in v0.3.0

func (s *SlicesService) GetStringElementsNotInOtherSlice(toCheck []string, other []string) (elementsNotInOther []string)

func (*SlicesService) MaxIntValuePerIndex added in v0.3.0

func (s *SlicesService) MaxIntValuePerIndex(intSlice1 []int, intSlice2 []int) (maxValues []int)

func (*SlicesService) MustRemoveStringsWhichContains added in v0.3.0

func (s *SlicesService) MustRemoveStringsWhichContains(sliceToRemoveStringsWhichContains []string, searchString string) (cleanedUpSlice []string)

func (*SlicesService) RemoveDuplicatedStrings added in v0.21.3

func (o *SlicesService) RemoveDuplicatedStrings(sliceOfStrings []string) (cleaned []string)

func (*SlicesService) RemoveEmptyStrings added in v0.3.0

func (s *SlicesService) RemoveEmptyStrings(sliceOfStrings []string) (sliceOfStringsWithoutEmptyStrings []string)

func (*SlicesService) RemoveLastElementIfEmptyString added in v0.4.0

func (o *SlicesService) RemoveLastElementIfEmptyString(sliceOfStrings []string) (cleanedUp []string)

func (*SlicesService) RemoveMatchingStrings added in v0.3.0

func (s *SlicesService) RemoveMatchingStrings(sliceToRemoveMatching []string, matchingStringToRemove string) (cleanedUpSlice []string)

func (*SlicesService) RemoveStringEntryAtIndex added in v0.3.0

func (s *SlicesService) RemoveStringEntryAtIndex(elements []string, indexToRemove int) (elementsWithIndexRemoved []string)

func (*SlicesService) RemoveStringsWhichContains added in v0.3.0

func (s *SlicesService) RemoveStringsWhichContains(sliceToRemoveStringsWhichContains []string, searchString string) (cleanedUpSlice []string, err error)

func (*SlicesService) SortStringSlice added in v0.3.0

func (s *SlicesService) SortStringSlice(sliceOfStrings []string) (sorted []string)

func (*SlicesService) SortStringSliceAndRemoveEmpty added in v0.3.0

func (s *SlicesService) SortStringSliceAndRemoveEmpty(input []string) (sortedAndWithoutEmptyStrings []string)

func (*SlicesService) SortVersionStringSlice added in v0.3.0

func (s *SlicesService) SortVersionStringSlice(input []string) (sorted []string)

func (*SlicesService) SplitStrings added in v0.3.0

func (s *SlicesService) SplitStrings(input []string, splitAt string) (splitted []string)

func (*SlicesService) SplitStringsAndRemoveEmpty added in v0.3.0

func (s *SlicesService) SplitStringsAndRemoveEmpty(input []string, splitAt string) (splitted []string)

func (*SlicesService) StringSlicesEqual added in v0.36.0

func (o *SlicesService) StringSlicesEqual(input1 []string, input2 []string) (slicesEqual bool)

func (*SlicesService) ToLower added in v0.3.0

func (s *SlicesService) ToLower(input []string) (lower []string)

func (*SlicesService) TrimAllPrefix added in v0.3.0

func (o *SlicesService) TrimAllPrefix(sliceOfStrings []string, prefixToRemove string) (sliceOfStringsWithPrefixRemoved []string)

func (*SlicesService) TrimPrefix added in v0.3.0

func (s *SlicesService) TrimPrefix(sliceOfStrings []string, prefixToRemove string) (sliceOfStringsWithPrefixRemoved []string)

func (*SlicesService) TrimSpace added in v0.3.0

func (s *SlicesService) TrimSpace(toTrim []string) (trimmed []string)

type SpreadSheet added in v0.14.0

type SpreadSheet struct {
	TitleRow *SpreadSheetRow
	// contains filtered or unexported fields
}

func GetSpreadsheetWithNColumns added in v0.14.0

func GetSpreadsheetWithNColumns(nColumns int) (s *SpreadSheet, err error)

func MustGetSpreadsheetWithNColumns added in v0.14.0

func MustGetSpreadsheetWithNColumns(nColumns int) (s *SpreadSheet)

func NewSpreadSheet added in v0.14.0

func NewSpreadSheet() (s *SpreadSheet)

func (*SpreadSheet) AddRow added in v0.14.0

func (s *SpreadSheet) AddRow(rowEntries []string) (err error)

func (*SpreadSheet) GetCellValueAsString added in v0.14.0

func (s *SpreadSheet) GetCellValueAsString(rowIndex int, columnIndex int) (cellValue string, err error)

func (*SpreadSheet) GetColumnIndexByName added in v0.14.0

func (s *SpreadSheet) GetColumnIndexByName(columnName string) (columnIndex int, err error)

func (*SpreadSheet) GetColumnTitleAtIndexAsString added in v0.14.0

func (s *SpreadSheet) GetColumnTitleAtIndexAsString(index int) (title string, err error)

func (*SpreadSheet) GetColumnTitlesAsStringSlice added in v0.14.0

func (s *SpreadSheet) GetColumnTitlesAsStringSlice() (titles []string, err error)

func (*SpreadSheet) GetMaxColumnWidths added in v0.14.0

func (s *SpreadSheet) GetMaxColumnWidths() (columnWitdhs []int, err error)

func (*SpreadSheet) GetMinColumnWithsAsSelectedInOptions added in v0.14.0

func (s *SpreadSheet) GetMinColumnWithsAsSelectedInOptions(options *SpreadSheetRenderOptions) (columnWidths []int, err error)

func (*SpreadSheet) GetNumberOfColumns added in v0.14.0

func (s *SpreadSheet) GetNumberOfColumns() (nColumns int, err error)

func (*SpreadSheet) GetNumberOfRows added in v0.14.0

func (s *SpreadSheet) GetNumberOfRows() (nRows int, err error)

func (*SpreadSheet) GetRowByIndex added in v0.14.0

func (s *SpreadSheet) GetRowByIndex(rowIndex int) (row *SpreadSheetRow, err error)

func (*SpreadSheet) GetRows added in v0.14.0

func (s *SpreadSheet) GetRows() (rows []*SpreadSheetRow, err error)

func (*SpreadSheet) GetTitleRow added in v0.14.0

func (s *SpreadSheet) GetTitleRow() (TitleRow *SpreadSheetRow, err error)

func (*SpreadSheet) MustAddRow added in v0.14.0

func (s *SpreadSheet) MustAddRow(rowEntries []string)

func (*SpreadSheet) MustGetCellValueAsString added in v0.14.0

func (s *SpreadSheet) MustGetCellValueAsString(rowIndex int, columnIndex int) (cellValue string)

func (*SpreadSheet) MustGetColumnIndexByName added in v0.14.0

func (s *SpreadSheet) MustGetColumnIndexByName(columnName string) (columnIndex int)

func (*SpreadSheet) MustGetColumnTitleAtIndexAsString added in v0.14.0

func (s *SpreadSheet) MustGetColumnTitleAtIndexAsString(index int) (title string)

func (*SpreadSheet) MustGetColumnTitlesAsStringSlice added in v0.14.0

func (s *SpreadSheet) MustGetColumnTitlesAsStringSlice() (titles []string)

func (*SpreadSheet) MustGetMaxColumnWidths added in v0.14.0

func (s *SpreadSheet) MustGetMaxColumnWidths() (columnWitdhs []int)

func (*SpreadSheet) MustGetMinColumnWithsAsSelectedInOptions added in v0.14.0

func (s *SpreadSheet) MustGetMinColumnWithsAsSelectedInOptions(options *SpreadSheetRenderOptions) (columnWidths []int)

func (*SpreadSheet) MustGetNumberOfColumns added in v0.14.0

func (s *SpreadSheet) MustGetNumberOfColumns() (nColumns int)

func (*SpreadSheet) MustGetNumberOfRows added in v0.14.0

func (s *SpreadSheet) MustGetNumberOfRows() (nRows int)

func (*SpreadSheet) MustGetRowByIndex added in v0.14.0

func (s *SpreadSheet) MustGetRowByIndex(rowIndex int) (row *SpreadSheetRow)

func (*SpreadSheet) MustGetRows added in v0.14.0

func (s *SpreadSheet) MustGetRows() (rows []*SpreadSheetRow)

func (*SpreadSheet) MustGetTitleRow added in v0.14.0

func (s *SpreadSheet) MustGetTitleRow() (TitleRow *SpreadSheetRow)

func (*SpreadSheet) MustPrintAsString added in v0.14.0

func (s *SpreadSheet) MustPrintAsString(options *SpreadSheetRenderOptions)

func (*SpreadSheet) MustRemoveColumnByIndex added in v0.14.0

func (s *SpreadSheet) MustRemoveColumnByIndex(columnIndex int)

func (*SpreadSheet) MustRemoveColumnByName added in v0.14.0

func (s *SpreadSheet) MustRemoveColumnByName(columnName string)

func (*SpreadSheet) MustRenderAsString added in v0.14.0

func (s *SpreadSheet) MustRenderAsString(options *SpreadSheetRenderOptions) (rendered string)

func (*SpreadSheet) MustRenderTitleRowAsString added in v0.14.0

func (s *SpreadSheet) MustRenderTitleRowAsString(options *SpreadSheetRenderRowOptions) (rendered string)

func (*SpreadSheet) MustRenderToStdout added in v0.14.5

func (s *SpreadSheet) MustRenderToStdout(options *SpreadSheetRenderOptions)

func (*SpreadSheet) MustSetColumnTitles added in v0.14.0

func (s *SpreadSheet) MustSetColumnTitles(titles []string)

func (*SpreadSheet) MustSetRows added in v0.14.0

func (s *SpreadSheet) MustSetRows(rows []*SpreadSheetRow)

func (*SpreadSheet) MustSetTitleRow added in v0.14.0

func (s *SpreadSheet) MustSetTitleRow(TitleRow *SpreadSheetRow)

func (*SpreadSheet) MustSortByColumnByName added in v0.14.0

func (s *SpreadSheet) MustSortByColumnByName(columnName string)

func (*SpreadSheet) PrintAsString added in v0.14.0

func (s *SpreadSheet) PrintAsString(options *SpreadSheetRenderOptions) (err error)

func (*SpreadSheet) RemoveColumnByIndex added in v0.14.0

func (s *SpreadSheet) RemoveColumnByIndex(columnIndex int) (err error)

func (*SpreadSheet) RemoveColumnByName added in v0.14.0

func (s *SpreadSheet) RemoveColumnByName(columnName string) (err error)

func (*SpreadSheet) RenderAsString added in v0.14.0

func (s *SpreadSheet) RenderAsString(options *SpreadSheetRenderOptions) (rendered string, err error)

func (*SpreadSheet) RenderTitleRowAsString added in v0.14.0

func (s *SpreadSheet) RenderTitleRowAsString(options *SpreadSheetRenderRowOptions) (rendered string, err error)

func (*SpreadSheet) RenderToStdout added in v0.14.5

func (s *SpreadSheet) RenderToStdout(options *SpreadSheetRenderOptions) (err error)

func (*SpreadSheet) SetColumnTitles added in v0.14.0

func (s *SpreadSheet) SetColumnTitles(titles []string) (err error)

func (*SpreadSheet) SetRows added in v0.14.0

func (s *SpreadSheet) SetRows(rows []*SpreadSheetRow) (err error)

func (*SpreadSheet) SetTitleRow added in v0.14.0

func (s *SpreadSheet) SetTitleRow(TitleRow *SpreadSheetRow) (err error)

func (*SpreadSheet) SortByColumnByName added in v0.14.0

func (s *SpreadSheet) SortByColumnByName(columnName string) (err error)

type SpreadSheetRenderOptions added in v0.14.0

type SpreadSheetRenderOptions struct {
	SkipTitle                 bool
	StringDelimiter           string
	Verbose                   bool
	SameColumnWidthForAllRows bool
}

func NewSpreadSheetRenderOptions added in v0.14.0

func NewSpreadSheetRenderOptions() (s *SpreadSheetRenderOptions)

func (*SpreadSheetRenderOptions) GetSameColumnWidthForAllRows added in v0.14.0

func (s *SpreadSheetRenderOptions) GetSameColumnWidthForAllRows() (sameColumnWidthForAllRows bool, err error)

func (*SpreadSheetRenderOptions) GetSkipTitle added in v0.14.0

func (s *SpreadSheetRenderOptions) GetSkipTitle() (skipTitle bool, err error)

func (*SpreadSheetRenderOptions) GetStringDelimiter added in v0.14.0

func (s *SpreadSheetRenderOptions) GetStringDelimiter() (stringDelimiter string, err error)

func (*SpreadSheetRenderOptions) GetVerbose added in v0.14.0

func (s *SpreadSheetRenderOptions) GetVerbose() (verbose bool, err error)

func (*SpreadSheetRenderOptions) MustGetSameColumnWidthForAllRows added in v0.14.0

func (s *SpreadSheetRenderOptions) MustGetSameColumnWidthForAllRows() (sameColumnWidthForAllRows bool)

func (*SpreadSheetRenderOptions) MustGetSkipTitle added in v0.14.0

func (s *SpreadSheetRenderOptions) MustGetSkipTitle() (skipTitle bool)

func (*SpreadSheetRenderOptions) MustGetStringDelimiter added in v0.14.0

func (s *SpreadSheetRenderOptions) MustGetStringDelimiter() (stringDelimiter string)

func (*SpreadSheetRenderOptions) MustGetVerbose added in v0.14.0

func (s *SpreadSheetRenderOptions) MustGetVerbose() (verbose bool)

func (*SpreadSheetRenderOptions) MustSetSameColumnWidthForAllRows added in v0.14.0

func (s *SpreadSheetRenderOptions) MustSetSameColumnWidthForAllRows(sameColumnWidthForAllRows bool)

func (*SpreadSheetRenderOptions) MustSetSkipTitle added in v0.14.0

func (s *SpreadSheetRenderOptions) MustSetSkipTitle(skipTitle bool)

func (*SpreadSheetRenderOptions) MustSetStringDelimiter added in v0.14.0

func (s *SpreadSheetRenderOptions) MustSetStringDelimiter(stringDelimiter string)

func (*SpreadSheetRenderOptions) MustSetVerbose added in v0.14.0

func (s *SpreadSheetRenderOptions) MustSetVerbose(verbose bool)

func (*SpreadSheetRenderOptions) SetSameColumnWidthForAllRows added in v0.14.0

func (s *SpreadSheetRenderOptions) SetSameColumnWidthForAllRows(sameColumnWidthForAllRows bool) (err error)

func (*SpreadSheetRenderOptions) SetSkipTitle added in v0.14.0

func (s *SpreadSheetRenderOptions) SetSkipTitle(skipTitle bool) (err error)

func (*SpreadSheetRenderOptions) SetStringDelimiter added in v0.14.0

func (s *SpreadSheetRenderOptions) SetStringDelimiter(stringDelimiter string) (err error)

func (*SpreadSheetRenderOptions) SetVerbose added in v0.14.0

func (s *SpreadSheetRenderOptions) SetVerbose(verbose bool) (err error)

type SpreadSheetRenderRowOptions added in v0.14.0

type SpreadSheetRenderRowOptions struct {
	MinColumnWidths []int
	StringDelimiter string
	Verbose         bool
}

func NewSpreadSheetRenderRowOptions added in v0.14.0

func NewSpreadSheetRenderRowOptions() (s *SpreadSheetRenderRowOptions)

func (*SpreadSheetRenderRowOptions) GetMinColumnWidths added in v0.14.0

func (s *SpreadSheetRenderRowOptions) GetMinColumnWidths() (minColumnWidths []int, err error)

func (*SpreadSheetRenderRowOptions) GetStringDelimiter added in v0.14.0

func (s *SpreadSheetRenderRowOptions) GetStringDelimiter() (stringDelimiter string, err error)

func (*SpreadSheetRenderRowOptions) GetVerbose added in v0.14.0

func (s *SpreadSheetRenderRowOptions) GetVerbose() (verbose bool, err error)

func (*SpreadSheetRenderRowOptions) IsMinColumnWidthsSet added in v0.14.0

func (s *SpreadSheetRenderRowOptions) IsMinColumnWidthsSet() (isSet bool)

func (*SpreadSheetRenderRowOptions) IsStringDelimiterSet added in v0.14.0

func (s *SpreadSheetRenderRowOptions) IsStringDelimiterSet() (isSet bool)

func (*SpreadSheetRenderRowOptions) MustGetMinColumnWidths added in v0.14.0

func (s *SpreadSheetRenderRowOptions) MustGetMinColumnWidths() (minColumnWidths []int)

func (*SpreadSheetRenderRowOptions) MustGetStringDelimiter added in v0.14.0

func (s *SpreadSheetRenderRowOptions) MustGetStringDelimiter() (stringDelimiter string)

func (*SpreadSheetRenderRowOptions) MustGetVerbose added in v0.14.0

func (s *SpreadSheetRenderRowOptions) MustGetVerbose() (verbose bool)

func (*SpreadSheetRenderRowOptions) MustSetMinColumnWidths added in v0.14.0

func (s *SpreadSheetRenderRowOptions) MustSetMinColumnWidths(minColumnWidths []int)

func (*SpreadSheetRenderRowOptions) MustSetStringDelimiter added in v0.14.0

func (s *SpreadSheetRenderRowOptions) MustSetStringDelimiter(stringDelimiter string)

func (*SpreadSheetRenderRowOptions) MustSetVerbose added in v0.14.0

func (s *SpreadSheetRenderRowOptions) MustSetVerbose(verbose bool)

func (*SpreadSheetRenderRowOptions) SetMinColumnWidths added in v0.14.0

func (s *SpreadSheetRenderRowOptions) SetMinColumnWidths(minColumnWidths []int) (err error)

func (*SpreadSheetRenderRowOptions) SetStringDelimiter added in v0.14.0

func (s *SpreadSheetRenderRowOptions) SetStringDelimiter(stringDelimiter string) (err error)

func (*SpreadSheetRenderRowOptions) SetVerbose added in v0.14.0

func (s *SpreadSheetRenderRowOptions) SetVerbose(verbose bool) (err error)

type SpreadSheetRow added in v0.14.0

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

func NewSpreadSheetRow added in v0.14.0

func NewSpreadSheetRow() (s *SpreadSheetRow)

func (*SpreadSheetRow) GetColumnValueAsString added in v0.14.0

func (s *SpreadSheetRow) GetColumnValueAsString(columnIndex int) (columnValue string, err error)

func (*SpreadSheetRow) GetColumnWidths added in v0.14.0

func (s *SpreadSheetRow) GetColumnWidths() (columnWidths []int, err error)

func (*SpreadSheetRow) GetEntries added in v0.14.0

func (s *SpreadSheetRow) GetEntries() (entries []string, err error)

func (*SpreadSheetRow) GetNumberOfEntries added in v0.14.0

func (s *SpreadSheetRow) GetNumberOfEntries() (nEntries int, err error)

func (*SpreadSheetRow) MustGetColumnValueAsString added in v0.14.0

func (s *SpreadSheetRow) MustGetColumnValueAsString(columnIndex int) (columnValue string)

func (*SpreadSheetRow) MustGetColumnWidths added in v0.14.0

func (s *SpreadSheetRow) MustGetColumnWidths() (columnWidths []int)

func (*SpreadSheetRow) MustGetEntries added in v0.14.0

func (s *SpreadSheetRow) MustGetEntries() (entries []string)

func (*SpreadSheetRow) MustGetNumberOfEntries added in v0.14.0

func (s *SpreadSheetRow) MustGetNumberOfEntries() (nEntries int)

func (*SpreadSheetRow) MustRemoveElementAtIndex added in v0.14.0

func (s *SpreadSheetRow) MustRemoveElementAtIndex(index int)

func (*SpreadSheetRow) MustRenderAsString added in v0.14.0

func (s *SpreadSheetRow) MustRenderAsString(options *SpreadSheetRenderRowOptions) (rendered string)

func (*SpreadSheetRow) MustSetEntries added in v0.14.0

func (s *SpreadSheetRow) MustSetEntries(entries []string)

func (*SpreadSheetRow) RemoveElementAtIndex added in v0.14.0

func (s *SpreadSheetRow) RemoveElementAtIndex(index int) (err error)

func (*SpreadSheetRow) RenderAsString added in v0.14.0

func (s *SpreadSheetRow) RenderAsString(options *SpreadSheetRenderRowOptions) (rendered string, err error)

func (*SpreadSheetRow) SetEntries added in v0.14.0

func (s *SpreadSheetRow) SetEntries(entries []string) (err error)

type StringsService added in v0.3.0

type StringsService struct{}

func NewStringsService added in v0.3.0

func NewStringsService() (s *StringsService)

func Strings added in v0.3.0

func Strings() (stringsService *StringsService)

func (*StringsService) ContainsAtLeastOneSubstring added in v0.3.0

func (s *StringsService) ContainsAtLeastOneSubstring(input string, substrings []string) (atLeastOneSubstringFound bool)

func (*StringsService) ContainsAtLeastOneSubstringIgnoreCase added in v0.3.0

func (s *StringsService) ContainsAtLeastOneSubstringIgnoreCase(input string, substring []string) (atLeastOneSubstringFound bool)

func (*StringsService) ContainsCommentOnly added in v0.3.0

func (s *StringsService) ContainsCommentOnly(input string) (containsCommentOnly bool)

func (*StringsService) ContainsIgnoreCase added in v0.12.0

func (s *StringsService) ContainsIgnoreCase(input string, substring string) (contains bool)

func (*StringsService) CountLines added in v0.3.0

func (s *StringsService) CountLines(input string) (nLines int)

func (*StringsService) EnsureEndsWithExactlyOneLineBreak added in v0.3.0

func (s *StringsService) EnsureEndsWithExactlyOneLineBreak(input string) (ensuredLineBreak string)

func (*StringsService) EnsureEndsWithLineBreak added in v0.3.0

func (s *StringsService) EnsureEndsWithLineBreak(input string) (ensuredLineBreak string)

func (*StringsService) EnsureFirstCharLowercase added in v0.3.0

func (s *StringsService) EnsureFirstCharLowercase(input string) (firstCharUppercase string)

func (*StringsService) EnsureFirstCharUppercase added in v0.3.0

func (s *StringsService) EnsureFirstCharUppercase(input string) (firstCharUppercase string)

func (*StringsService) EnsureSuffix added in v0.3.0

func (s *StringsService) EnsureSuffix(input string, suffix string) (ensuredSuffix string)

func (*StringsService) FirstCharToUpper added in v0.3.0

func (s *StringsService) FirstCharToUpper(input string) (output string)

func (*StringsService) GetFirstLine added in v0.3.0

func (s *StringsService) GetFirstLine(input string) (firstLine string)

func (*StringsService) GetFirstLineAndTrimSpace added in v0.3.0

func (s *StringsService) GetFirstLineAndTrimSpace(input string) (firstLine string)

func (*StringsService) GetFirstLineWithoutCommentAndTrimSpace added in v0.3.0

func (s *StringsService) GetFirstLineWithoutCommentAndTrimSpace(input string) (firstLine string)

func (*StringsService) GetNumberOfLinesWithPrefix added in v0.3.0

func (s *StringsService) GetNumberOfLinesWithPrefix(content string, prefix string, trimLines bool) (numberOfLinesWithPrefix int)

func (*StringsService) HasAtLeastOnePrefix added in v0.3.0

func (s *StringsService) HasAtLeastOnePrefix(toCheck string, prefixes []string) (hasPrefix bool)

func (*StringsService) HasPrefixIgnoreCase added in v0.3.0

func (s *StringsService) HasPrefixIgnoreCase(input string, prefix string) (hasPrefix bool)

func (*StringsService) IsComment added in v0.3.0

func (s *StringsService) IsComment(input string) (isComment bool)

func (*StringsService) IsFirstCharLowerCase added in v0.3.0

func (s *StringsService) IsFirstCharLowerCase(input string) (isFirstCharLowerCase bool)

func (*StringsService) IsFirstCharUpperCase added in v0.3.0

func (s *StringsService) IsFirstCharUpperCase(input string) (isFirstCharUpperCase bool)

func (*StringsService) RemoveCommentMarkers added in v0.3.0

func (s *StringsService) RemoveCommentMarkers(input string) (commentContent string)

func (*StringsService) RemoveCommentMarkersAndTrimSpace added in v0.3.0

func (s *StringsService) RemoveCommentMarkersAndTrimSpace(input string) (commentContent string)

func (*StringsService) RemoveComments added in v0.3.0

func (s *StringsService) RemoveComments(input string) (contentWithoutComments string)

func (*StringsService) RemoveCommentsAndTrimSpace added in v0.3.0

func (s *StringsService) RemoveCommentsAndTrimSpace(input string) (output string)

func (*StringsService) RemoveSurroundingQuotationMarks added in v0.3.0

func (s *StringsService) RemoveSurroundingQuotationMarks(input string) (output string)

func (*StringsService) RemoveTailingNewline added in v0.3.0

func (s *StringsService) RemoveTailingNewline(input string) (cleaned string)

func (*StringsService) RepeatReplaceAll added in v0.3.0

func (s *StringsService) RepeatReplaceAll(input string, search string, replaceWith string) (replaced string)

func (*StringsService) RightFillWithSpaces added in v0.3.0

func (s *StringsService) RightFillWithSpaces(input string, fillLength int) (filled string)

func (*StringsService) SplitAtSpacesAndRemoveEmptyStrings added in v0.3.0

func (s *StringsService) SplitAtSpacesAndRemoveEmptyStrings(input string) (splitted []string)

func (*StringsService) SplitFirstLineAndContent added in v0.3.0

func (s *StringsService) SplitFirstLineAndContent(input string) (firstLine string, contentWithoutFirstLine string)

func (*StringsService) SplitLines added in v0.3.0

func (s *StringsService) SplitLines(input string) (splittedLines []string)

func (*StringsService) SplitWords added in v0.3.0

func (s *StringsService) SplitWords(input string) (words []string)

func (*StringsService) ToPascalCase added in v0.3.0

func (s *StringsService) ToPascalCase(input string) (pascalCase string)

func (*StringsService) ToSnakeCase added in v0.3.0

func (s *StringsService) ToSnakeCase(input string) (snakeCase string)

func (*StringsService) TrimAllPrefix added in v0.3.0

func (s *StringsService) TrimAllPrefix(stringToCheck string, prefixToRemove string) (trimmedString string)

func (*StringsService) TrimAllSuffix added in v0.3.0

func (s *StringsService) TrimAllSuffix(stringToCheck string, suffixToRemove string) (trimmedString string)

func (*StringsService) TrimPrefixIgnoreCase added in v0.3.0

func (s *StringsService) TrimPrefixIgnoreCase(input string, prefix string) (trimmed string)

func (*StringsService) TrimSpaceForEveryLine added in v0.3.0

func (s *StringsService) TrimSpaceForEveryLine(input string) (trimmedForEveryLine string)

func (*StringsService) TrimSpacesLeft added in v0.3.0

func (s *StringsService) TrimSpacesLeft(input string) (trimmedLeft string)

func (*StringsService) TrimSuffixAndSpace added in v0.3.0

func (s *StringsService) TrimSuffixAndSpace(input string, suffix string) (output string)

func (*StringsService) TrimSuffixUntilAbsent added in v0.3.0

func (s *StringsService) TrimSuffixUntilAbsent(input string, suffixToRemove string) (withoutSuffix string)

type StructsService

type StructsService struct{}

func NewStructsService

func NewStructsService() (s *StructsService)

func Structs

func Structs() (structs *StructsService)

func (*StructsService) GetFieldValuesAsString

func (s *StructsService) GetFieldValuesAsString(structToGetFieldsFrom interface{}) (values []string, err error)

func (*StructsService) IsPointerToStruct

func (s *StructsService) IsPointerToStruct(objectToTest interface{}) (isStruct bool)

func (*StructsService) IsStruct

func (s *StructsService) IsStruct(objectToTest interface{}) (isStruct bool)

func (*StructsService) IsStructOrPointerToStruct

func (s *StructsService) IsStructOrPointerToStruct(objectToTest interface{}) (isStruct bool)

func (*StructsService) MustGetFieldValuesAsString

func (s *StructsService) MustGetFieldValuesAsString(structToGetFieldsFrom interface{}) (values []string)

type TcpPortsService added in v0.8.0

type TcpPortsService struct{}

func NewTcpPortsService added in v0.8.0

func NewTcpPortsService() (t *TcpPortsService)

func TcpPorts added in v0.8.0

func TcpPorts() (t *TcpPortsService)

func (*TcpPortsService) IsPortOpen added in v0.8.0

func (t *TcpPortsService) IsPortOpen(hostnameOrIp string, port int, verbose bool) (isOpen bool, err error)

Check if a TCP port on the given hostnameOrIp with given portNumber is open. The evaluation is done by opening a TCP socket and close it again.

func (*TcpPortsService) MustIsPortOpen added in v0.8.0

func (t *TcpPortsService) MustIsPortOpen(hostnameOrIp string, port int, verbose bool) (isOpen bool)

type TemporaryDirectoriesService added in v0.6.0

type TemporaryDirectoriesService struct {
}

func NewTemporaryDirectoriesService added in v0.6.0

func NewTemporaryDirectoriesService() (t *TemporaryDirectoriesService)

func TemporaryDirectories added in v0.6.0

func TemporaryDirectories() (TemporaryDirectorys *TemporaryDirectoriesService)

func (*TemporaryDirectoriesService) CreateEmptyTemporaryDirectory added in v0.6.0

func (t *TemporaryDirectoriesService) CreateEmptyTemporaryDirectory(verbose bool) (temporaryDirectory *LocalDirectory, err error)

func (*TemporaryDirectoriesService) CreateEmptyTemporaryDirectoryAndGetPath added in v0.6.0

func (t *TemporaryDirectoriesService) CreateEmptyTemporaryDirectoryAndGetPath(verbose bool) (TemporaryDirectoryPath string, err error)

func (*TemporaryDirectoriesService) CreateEmptyTemporaryGitRepository added in v0.18.0

func (t *TemporaryDirectoriesService) CreateEmptyTemporaryGitRepository(createRepoOptions *CreateRepositoryOptions) (temporaryGitRepository *LocalGitRepository, err error)

func (*TemporaryDirectoriesService) MustCreateEmptyTemporaryDirectory added in v0.6.0

func (t *TemporaryDirectoriesService) MustCreateEmptyTemporaryDirectory(verbose bool) (temporaryDirectory *LocalDirectory)

func (*TemporaryDirectoriesService) MustCreateEmptyTemporaryDirectoryAndGetPath added in v0.6.0

func (t *TemporaryDirectoriesService) MustCreateEmptyTemporaryDirectoryAndGetPath(verbose bool) (TemporaryDirectoryPath string)

func (*TemporaryDirectoriesService) MustCreateEmptyTemporaryGitRepository added in v0.18.0

func (t *TemporaryDirectoriesService) MustCreateEmptyTemporaryGitRepository(createRepoOptions *CreateRepositoryOptions) (temporaryGitRepository *LocalGitRepository)

type TemporaryFilesService added in v0.1.3

type TemporaryFilesService struct {
}

func NewTemporaryFilesService added in v0.1.3

func NewTemporaryFilesService() (t *TemporaryFilesService)

func TemporaryFiles added in v0.1.3

func TemporaryFiles() (temporaryFiles *TemporaryFilesService)

func (*TemporaryFilesService) CreateEmptyTemporaryFile added in v0.1.3

func (t *TemporaryFilesService) CreateEmptyTemporaryFile(verbose bool) (temporaryfile File, err error)

func (*TemporaryFilesService) CreateEmptyTemporaryFileAndGetPath added in v0.1.3

func (t *TemporaryFilesService) CreateEmptyTemporaryFileAndGetPath(verbose bool) (temporaryFilePath string, err error)

func (*TemporaryFilesService) CreateFromString added in v0.1.3

func (t *TemporaryFilesService) CreateFromString(content string, verbose bool) (temporaryFile File, err error)

func (*TemporaryFilesService) CreateNamedTemporaryFile added in v0.14.8

func (t *TemporaryFilesService) CreateNamedTemporaryFile(fileName string, verbose bool) (temporaryfile File, err error)

func (*TemporaryFilesService) CreateTemporaryFileFromBytes added in v0.14.8

func (t *TemporaryFilesService) CreateTemporaryFileFromBytes(content []byte, verbose bool) (temporaryFile File, err error)

func (*TemporaryFilesService) CreateTemporaryFileFromFile added in v0.14.8

func (t *TemporaryFilesService) CreateTemporaryFileFromFile(fileToCopyAsTemporaryFile File, verbose bool) (temporaryFile File, err error)

func (*TemporaryFilesService) CreateTemporaryFileFromString added in v0.14.8

func (t *TemporaryFilesService) CreateTemporaryFileFromString(content string, verbose bool) (temporaryFile File, err error)

func (*TemporaryFilesService) MustCreateEmptyTemporaryFile added in v0.1.3

func (t *TemporaryFilesService) MustCreateEmptyTemporaryFile(verbose bool) (temporaryfile File)

func (*TemporaryFilesService) MustCreateEmptyTemporaryFileAndGetPath added in v0.1.3

func (t *TemporaryFilesService) MustCreateEmptyTemporaryFileAndGetPath(verbose bool) (temporaryFilePath string)

func (*TemporaryFilesService) MustCreateFromString added in v0.1.3

func (t *TemporaryFilesService) MustCreateFromString(content string, verbose bool) (temporaryFile File)

func (*TemporaryFilesService) MustCreateNamedTemporaryFile added in v0.14.8

func (t *TemporaryFilesService) MustCreateNamedTemporaryFile(fileName string, verbose bool) (temporaryfile File)

func (*TemporaryFilesService) MustCreateTemporaryFileFromBytes added in v0.14.8

func (t *TemporaryFilesService) MustCreateTemporaryFileFromBytes(content []byte, verbose bool) (temporaryFile File)

func (*TemporaryFilesService) MustCreateTemporaryFileFromFile added in v0.14.8

func (t *TemporaryFilesService) MustCreateTemporaryFileFromFile(fileToCopyAsTemporaryFile File, verbose bool) (temporaryFile File)

func (*TemporaryFilesService) MustCreateTemporaryFileFromString added in v0.14.8

func (t *TemporaryFilesService) MustCreateTemporaryFileFromString(content string, verbose bool) (temporaryFile File)

type TerminalColorsService

type TerminalColorsService struct{}

func NewTerminalColorsService

func NewTerminalColorsService() (t *TerminalColorsService)

func TerminalColors

func TerminalColors() (terminalColors *TerminalColorsService)

func (*TerminalColorsService) GetCodeBlack

func (t *TerminalColorsService) GetCodeBlack() (code string)

func (*TerminalColorsService) GetCodeBlue

func (t *TerminalColorsService) GetCodeBlue() (code string)

func (*TerminalColorsService) GetCodeBrightBlack

func (t *TerminalColorsService) GetCodeBrightBlack() (code string)

func (*TerminalColorsService) GetCodeBrightBlue

func (t *TerminalColorsService) GetCodeBrightBlue() (code string)

func (*TerminalColorsService) GetCodeBrightCyan

func (t *TerminalColorsService) GetCodeBrightCyan() (code string)

func (*TerminalColorsService) GetCodeBrightGreen

func (t *TerminalColorsService) GetCodeBrightGreen() (code string)

func (*TerminalColorsService) GetCodeBrightMagenta

func (t *TerminalColorsService) GetCodeBrightMagenta() (code string)

func (*TerminalColorsService) GetCodeBrightRed

func (t *TerminalColorsService) GetCodeBrightRed() (code string)

func (*TerminalColorsService) GetCodeBrightWhite

func (t *TerminalColorsService) GetCodeBrightWhite() (code string)

func (*TerminalColorsService) GetCodeBrightYellow

func (t *TerminalColorsService) GetCodeBrightYellow() (code string)

func (*TerminalColorsService) GetCodeCyan

func (t *TerminalColorsService) GetCodeCyan() (code string)

func (*TerminalColorsService) GetCodeGray

func (t *TerminalColorsService) GetCodeGray() (code string)

func (*TerminalColorsService) GetCodeGreen

func (t *TerminalColorsService) GetCodeGreen() (code string)

func (*TerminalColorsService) GetCodeMangenta

func (t *TerminalColorsService) GetCodeMangenta() (code string)

func (*TerminalColorsService) GetCodeNoColor

func (t *TerminalColorsService) GetCodeNoColor() (code string)

func (*TerminalColorsService) GetCodeRed

func (t *TerminalColorsService) GetCodeRed() (code string)

func (*TerminalColorsService) GetCodeWhite

func (t *TerminalColorsService) GetCodeWhite() (code string)

func (*TerminalColorsService) GetCodeYellow

func (t *TerminalColorsService) GetCodeYellow() (code string)

type TestsService

type TestsService struct{}

func NewTestsService

func NewTestsService() (t *TestsService)

func Tests

func Tests() (tests *TestsService)

func (*TestsService) FormatAsTestname

func (t *TestsService) FormatAsTestname(objectToFormat interface{}) (testname string, err error)

func (*TestsService) MustFormatAsTestname

func (t *TestsService) MustFormatAsTestname(objectToFormat interface{}) (testname string)

type TicToc added in v0.2.0

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

func MustTic added in v0.2.0

func MustTic(title string, verbose bool) (t *TicToc)

func NewTicToc added in v0.2.0

func NewTicToc() (t *TicToc)

func Tic added in v0.2.0

func Tic(title string, verbose bool) (t *TicToc, err error)

func TicWithoutTitle added in v0.2.0

func TicWithoutTitle(verbose bool) (t *TicToc)

func (*TicToc) GetTStart added in v0.2.0

func (t *TicToc) GetTStart() (tStart *time.Time, err error)

func (*TicToc) GetTitle added in v0.2.0

func (t *TicToc) GetTitle() (title string, err error)

func (*TicToc) GetTitleOrDefaultIfUnset added in v0.2.0

func (t *TicToc) GetTitleOrDefaultIfUnset() (title string)

func (*TicToc) MustGetTStart added in v0.2.0

func (t *TicToc) MustGetTStart() (tStart *time.Time)

func (*TicToc) MustGetTitle added in v0.2.0

func (t *TicToc) MustGetTitle() (title string)

func (*TicToc) MustSetTStart added in v0.2.0

func (t *TicToc) MustSetTStart(tStart *time.Time)

func (*TicToc) MustSetTitle added in v0.2.0

func (t *TicToc) MustSetTitle(title string)

func (*TicToc) MustToc added in v0.2.0

func (t *TicToc) MustToc(verbose bool) (elapsedTime *time.Duration)

func (*TicToc) SetTStart added in v0.2.0

func (t *TicToc) SetTStart(tStart *time.Time) (err error)

func (*TicToc) SetTitle added in v0.2.0

func (t *TicToc) SetTitle(title string) (err error)

func (*TicToc) Start added in v0.2.0

func (t *TicToc) Start(verbose bool)

func (*TicToc) Toc added in v0.2.0

func (t *TicToc) Toc(verbose bool) (elapsedTime *time.Duration, err error)

type TimeService added in v0.9.0

type TimeService struct{}

func NewTimeService added in v0.9.0

func NewTimeService() (t *TimeService)

func Time added in v0.9.0

func Time() (t *TimeService)

func (*TimeService) GetCurrentTimeAsSortableString added in v0.9.0

func (t *TimeService) GetCurrentTimeAsSortableString() (currentTime string)

type TracedErrorType

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

func NewTracedErrorType

func NewTracedErrorType() (t *TracedErrorType)

func (TracedErrorType) Error

func (t TracedErrorType) Error() (errorMessage string)

func (*TracedErrorType) GetErrorMessage added in v0.28.0

func (t *TracedErrorType) GetErrorMessage() (errorMessage string, err error)

func (*TracedErrorType) GetErrorsToUnwrap

func (t *TracedErrorType) GetErrorsToUnwrap() (errorsToUnwrap []error, err error)

func (*TracedErrorType) GetFormattedError

func (t *TracedErrorType) GetFormattedError() (formattedError error, err error)

func (*TracedErrorType) GetFunctionCalls

func (t *TracedErrorType) GetFunctionCalls() (functionCalls []string, err error)

func (*TracedErrorType) MustGetErrorMessage added in v0.28.0

func (t *TracedErrorType) MustGetErrorMessage() (errorMessage string)

func (*TracedErrorType) MustGetErrorsToUnwrap

func (t *TracedErrorType) MustGetErrorsToUnwrap() (errorsToUnwrap []error)

func (*TracedErrorType) MustGetFormattedError

func (t *TracedErrorType) MustGetFormattedError() (formattedError error)

func (*TracedErrorType) MustGetFunctionCalls

func (t *TracedErrorType) MustGetFunctionCalls() (functionCalls []string)

func (*TracedErrorType) MustSetErrorsToUnwrap

func (t *TracedErrorType) MustSetErrorsToUnwrap(errorsToUnwrap []error)

func (*TracedErrorType) MustSetFormattedError

func (t *TracedErrorType) MustSetFormattedError(formattedError error)

func (*TracedErrorType) MustSetFunctionCalls

func (t *TracedErrorType) MustSetFunctionCalls(functionCalls []string)

func (*TracedErrorType) SetErrorsToUnwrap

func (t *TracedErrorType) SetErrorsToUnwrap(errorsToUnwrap []error) (err error)

func (*TracedErrorType) SetFormattedError

func (t *TracedErrorType) SetFormattedError(formattedError error) (err error)

func (*TracedErrorType) SetFunctionCalls

func (t *TracedErrorType) SetFunctionCalls(functionCalls []string) (err error)

func (TracedErrorType) Unwrap

func (t TracedErrorType) Unwrap() (errors []error)

type URL added in v0.17.0

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

func GetUrlFromString added in v0.17.0

func GetUrlFromString(urlString string) (url *URL, err error)

func MustGetUrlFromString added in v0.17.0

func MustGetUrlFromString(urlString string) (url *URL)

func NewURL added in v0.17.0

func NewURL() (u *URL)

func NewUrl added in v0.17.0

func NewUrl() (url *URL)

func (*URL) GetAsString added in v0.17.0

func (u *URL) GetAsString() (urlString string, err error)

func (*URL) GetFqdnAsString added in v0.17.0

func (u *URL) GetFqdnAsString() (fqdn string, err error)

func (*URL) GetFqdnWitShemeAndPathAsString added in v0.17.0

func (u *URL) GetFqdnWitShemeAndPathAsString() (fqdnWithSheme string, path string, err error)

func (*URL) GetFqdnWithShemeAsString added in v0.17.0

func (u *URL) GetFqdnWithShemeAsString() (fqdnWithSheme string, err error)

func (*URL) GetPathAsString added in v0.17.0

func (u *URL) GetPathAsString() (urlPath string, err error)

func (*URL) GetPathBasename added in v0.17.0

func (u *URL) GetPathBasename() (basename string, err error)

func (*URL) GetSheme added in v0.17.0

func (u *URL) GetSheme() (sheme string, err error)

func (*URL) GetUrlString added in v0.17.0

func (u *URL) GetUrlString() (urlString string, err error)

func (*URL) GetWithoutShemeAsString added in v0.17.0

func (u *URL) GetWithoutShemeAsString() (urlWithoutSheme string, err error)

func (*URL) MustGetAsString added in v0.17.0

func (u *URL) MustGetAsString() (urlString string)

func (*URL) MustGetFqdnAsString added in v0.17.0

func (u *URL) MustGetFqdnAsString() (fqdn string)

func (*URL) MustGetFqdnWitShemeAndPathAsString added in v0.17.0

func (u *URL) MustGetFqdnWitShemeAndPathAsString() (fqdnWithSheme string, path string)

func (*URL) MustGetFqdnWithShemeAsString added in v0.17.0

func (u *URL) MustGetFqdnWithShemeAsString() (fqdnWithSheme string)

func (*URL) MustGetPathAsString added in v0.17.0

func (u *URL) MustGetPathAsString() (urlPath string)

func (*URL) MustGetPathBasename added in v0.17.0

func (u *URL) MustGetPathBasename() (basename string)

func (*URL) MustGetSheme added in v0.17.0

func (u *URL) MustGetSheme() (sheme string)

func (*URL) MustGetUrlString added in v0.17.0

func (u *URL) MustGetUrlString() (urlString string)

func (*URL) MustGetWithoutShemeAsString added in v0.17.0

func (u *URL) MustGetWithoutShemeAsString() (urlWithoutSheme string)

func (*URL) MustSetByString added in v0.17.0

func (u *URL) MustSetByString(urlString string)

func (*URL) MustSetUrlString added in v0.17.0

func (u *URL) MustSetUrlString(urlString string)

func (*URL) SetByString added in v0.17.0

func (u *URL) SetByString(urlString string) (err error)

func (*URL) SetUrlString added in v0.17.0

func (u *URL) SetUrlString(urlString string) (err error)

type UTF16Service added in v0.5.0

type UTF16Service struct{}

func NewUTF16Service added in v0.5.0

func NewUTF16Service() (u *UTF16Service)

func UTF16 added in v0.5.0

func UTF16() (u *UTF16Service)

func (*UTF16Service) DecodeAsBytes added in v0.5.0

func (u *UTF16Service) DecodeAsBytes(utf16 []byte) (decoded []byte, err error)

func (*UTF16Service) DecodeAsString added in v0.5.0

func (u *UTF16Service) DecodeAsString(utf16 []byte) (decoded string, err error)

func (*UTF16Service) MustDecodeAsBytes added in v0.5.0

func (u *UTF16Service) MustDecodeAsBytes(utf16 []byte) (decoded []byte)

func (*UTF16Service) MustDecodeAsString added in v0.5.0

func (u *UTF16Service) MustDecodeAsString(utf16 []byte) (decoded string)

type UrlsService added in v0.17.0

type UrlsService struct{}

func NewUrlsService added in v0.17.0

func NewUrlsService() (service *UrlsService)

func Urls added in v0.17.0

func Urls() (urlService *UrlsService)

func (*UrlsService) CheckIsUrl added in v0.17.0

func (u *UrlsService) CheckIsUrl(url string) (isUrl bool, err error)

func (*UrlsService) IsUrl added in v0.17.0

func (u *UrlsService) IsUrl(url string) (isUrl bool)

func (*UrlsService) MustCheckIsUrl added in v0.17.0

func (u *UrlsService) MustCheckIsUrl(url string) (isUrl bool)

type UsersService added in v0.9.0

type UsersService struct {
}

func NewUsersService added in v0.9.0

func NewUsersService() (u *UsersService)

func Users added in v0.9.0

func Users() (u *UsersService)

func (*UsersService) GetDirectoryInHomeDirectory added in v0.19.0

func (u *UsersService) GetDirectoryInHomeDirectory(path ...string) (fileInUnsersHome Directory, err error)

func (*UsersService) GetFileInHomeDirectory added in v0.19.0

func (u *UsersService) GetFileInHomeDirectory(path ...string) (fileInUnsersHome File, err error)

func (*UsersService) GetFileInHomeDirectoryAsLocalFile added in v0.26.0

func (u *UsersService) GetFileInHomeDirectoryAsLocalFile(path ...string) (localFile *LocalFile, err error)

func (*UsersService) GetHomeDirectory added in v0.9.0

func (u *UsersService) GetHomeDirectory() (homeDir Directory, err error)

func (*UsersService) GetHomeDirectoryAsString added in v0.9.0

func (u *UsersService) GetHomeDirectoryAsString() (homeDirPath string, err error)

func (*UsersService) MustGetDirectoryInHomeDirectory added in v0.19.0

func (u *UsersService) MustGetDirectoryInHomeDirectory(path ...string) (fileInUnsersHome Directory)

func (*UsersService) MustGetFileInHomeDirectory added in v0.19.0

func (u *UsersService) MustGetFileInHomeDirectory(path ...string) (fileInUnsersHome File)

func (*UsersService) MustGetFileInHomeDirectoryAsLocalFile added in v0.26.0

func (u *UsersService) MustGetFileInHomeDirectoryAsLocalFile(path ...string) (localFile *LocalFile)

func (*UsersService) MustGetHomeDirectory added in v0.9.0

func (u *UsersService) MustGetHomeDirectory() (homeDir Directory)

func (*UsersService) MustGetHomeDirectoryAsString added in v0.9.0

func (u *UsersService) MustGetHomeDirectoryAsString() (homeDirPath string)

type Version added in v0.31.0

type Version interface {
	Equals(other Version) (isEqual bool)
	IsSemanticVersion() (isSemanticVersion bool)
	IsNewerThan(other Version) (isNewerThan bool, err error)
	GetAsString() (version string, err error)
	GetNextVersion(versionType string) (version Version, err error)
	MustGetAsString() (version string)
	MustGetNextVersion(versionType string) (version Version)
}

func GetVersionByString added in v0.31.0

func GetVersionByString(versionString string) (version Version, err error)

func MustGetVersionByString added in v0.31.0

func MustGetVersionByString(versionString string) (version Version)

type VersionDateVersion added in v0.31.0

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

func NewVersionDateVersion added in v0.31.0

func NewVersionDateVersion() (v *VersionDateVersion)

func (VersionDateVersion) Equals added in v0.31.0

func (v VersionDateVersion) Equals(other Version) (isEqual bool)

func (VersionDateVersion) GetAsString added in v0.31.0

func (v VersionDateVersion) GetAsString() (version string, err error)

func (*VersionDateVersion) GetNextVersion added in v0.31.0

func (v *VersionDateVersion) GetNextVersion(versionType string) (nextVersion Version, err error)

func (*VersionDateVersion) GetVersion added in v0.31.0

func (v *VersionDateVersion) GetVersion() (version string, err error)

func (VersionDateVersion) IsNewerThan added in v0.31.0

func (v VersionDateVersion) IsNewerThan(other Version) (isNewerThan bool, err error)

func (VersionDateVersion) IsSemanticVersion added in v0.31.0

func (v VersionDateVersion) IsSemanticVersion() (isSemanticVersion bool)

func (VersionDateVersion) MustGetAsString added in v0.31.0

func (v VersionDateVersion) MustGetAsString() (version string)

func (*VersionDateVersion) MustGetNextVersion added in v0.31.0

func (v *VersionDateVersion) MustGetNextVersion(versionType string) (nextVersion Version)

func (*VersionDateVersion) MustGetVersion added in v0.31.0

func (v *VersionDateVersion) MustGetVersion() (version string)

func (*VersionDateVersion) MustIsNewerThan added in v0.31.0

func (v *VersionDateVersion) MustIsNewerThan(other Version) (isNewerThan bool)

func (*VersionDateVersion) MustSetVersion added in v0.31.0

func (v *VersionDateVersion) MustSetVersion(version string)

func (*VersionDateVersion) SetVersion added in v0.31.0

func (v *VersionDateVersion) SetVersion(version string) (err error)

type VersionSemanticVersion added in v0.31.0

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

func NewVersionSemanticVersion added in v0.31.0

func NewVersionSemanticVersion() (v *VersionSemanticVersion)

func (*VersionSemanticVersion) Equals added in v0.31.0

func (v *VersionSemanticVersion) Equals(other Version) (isEqual bool)

func (*VersionSemanticVersion) GetAsString added in v0.31.0

func (v *VersionSemanticVersion) GetAsString() (versionString string, err error)

func (*VersionSemanticVersion) GetAsStringWithoutLeadingV added in v0.31.0

func (v *VersionSemanticVersion) GetAsStringWithoutLeadingV() (versionString string, err error)

func (*VersionSemanticVersion) GetMajor added in v0.31.0

func (v *VersionSemanticVersion) GetMajor() (major int, err error)

func (*VersionSemanticVersion) GetMajorMinorPatch added in v0.31.0

func (v *VersionSemanticVersion) GetMajorMinorPatch() (major int, minor int, patch int, err error)

func (*VersionSemanticVersion) GetMinor added in v0.31.0

func (v *VersionSemanticVersion) GetMinor() (minor int, err error)

func (*VersionSemanticVersion) GetNextVersion added in v0.31.0

func (v *VersionSemanticVersion) GetNextVersion(versionType string) (nextVersion Version, err error)

func (*VersionSemanticVersion) GetPatch added in v0.31.0

func (v *VersionSemanticVersion) GetPatch() (patch int, err error)

func (*VersionSemanticVersion) IsNewerThan added in v0.31.0

func (v *VersionSemanticVersion) IsNewerThan(other Version) (isNewerThan bool, err error)

func (*VersionSemanticVersion) IsSemanticVersion added in v0.31.0

func (v *VersionSemanticVersion) IsSemanticVersion() (isSemanticVersion bool)

func (*VersionSemanticVersion) MustGetAsString added in v0.31.0

func (v *VersionSemanticVersion) MustGetAsString() (versionString string)

func (*VersionSemanticVersion) MustGetAsStringWithoutLeadingV added in v0.31.0

func (v *VersionSemanticVersion) MustGetAsStringWithoutLeadingV() (versionString string)

func (*VersionSemanticVersion) MustGetMajor added in v0.31.0

func (v *VersionSemanticVersion) MustGetMajor() (major int)

func (*VersionSemanticVersion) MustGetMajorMinorPatch added in v0.31.0

func (v *VersionSemanticVersion) MustGetMajorMinorPatch() (major int, minor int, patch int)

func (*VersionSemanticVersion) MustGetMinor added in v0.31.0

func (v *VersionSemanticVersion) MustGetMinor() (minor int)

func (*VersionSemanticVersion) MustGetNextVersion added in v0.31.0

func (v *VersionSemanticVersion) MustGetNextVersion(versionType string) (nextVersion Version)

func (*VersionSemanticVersion) MustGetPatch added in v0.31.0

func (v *VersionSemanticVersion) MustGetPatch() (patch int)

func (*VersionSemanticVersion) MustIsNewerThan added in v0.31.0

func (v *VersionSemanticVersion) MustIsNewerThan(other Version) (isNewerThan bool)

func (*VersionSemanticVersion) MustSet added in v0.31.0

func (v *VersionSemanticVersion) MustSet(major int, minor int, patch int)

func (*VersionSemanticVersion) MustSetMajor added in v0.31.0

func (v *VersionSemanticVersion) MustSetMajor(major int)

func (*VersionSemanticVersion) MustSetMajorMinorPatch added in v0.31.0

func (v *VersionSemanticVersion) MustSetMajorMinorPatch(major int, minor int, patch int)

func (*VersionSemanticVersion) MustSetMinor added in v0.31.0

func (v *VersionSemanticVersion) MustSetMinor(minor int)

func (*VersionSemanticVersion) MustSetPatch added in v0.31.0

func (v *VersionSemanticVersion) MustSetPatch(patch int)

func (*VersionSemanticVersion) MustSetVersionByString added in v0.31.0

func (v *VersionSemanticVersion) MustSetVersionByString(version string)

func (*VersionSemanticVersion) Set added in v0.31.0

func (v *VersionSemanticVersion) Set(major int, minor int, patch int) (err error)

func (*VersionSemanticVersion) SetMajor added in v0.31.0

func (v *VersionSemanticVersion) SetMajor(major int) (err error)

func (*VersionSemanticVersion) SetMajorMinorPatch added in v0.31.0

func (v *VersionSemanticVersion) SetMajorMinorPatch(major int, minor int, patch int) (err error)

func (*VersionSemanticVersion) SetMinor added in v0.31.0

func (v *VersionSemanticVersion) SetMinor(minor int) (err error)

func (*VersionSemanticVersion) SetPatch added in v0.31.0

func (v *VersionSemanticVersion) SetPatch(patch int) (err error)

func (*VersionSemanticVersion) SetVersionByString added in v0.31.0

func (v *VersionSemanticVersion) SetVersionByString(version string) (err error)

type VersionsService added in v0.31.0

type VersionsService struct {
}

func NewVersionsService added in v0.31.0

func NewVersionsService() (v *VersionsService)

func Versions added in v0.31.0

func Versions() (v *VersionsService)

func (*VersionsService) CheckDateVersionString added in v0.31.0

func (v *VersionsService) CheckDateVersionString(versionString string) (isVersionString bool, err error)

func (*VersionsService) GetLatestVersionFromSlice added in v0.31.0

func (v *VersionsService) GetLatestVersionFromSlice(versions []Version) (latestVersion Version, err error)

func (*VersionsService) GetNewDateVersion added in v0.31.0

func (v *VersionsService) GetNewDateVersion() (version Version, err error)

func (*VersionsService) GetNewDateVersionString added in v0.31.0

func (v *VersionsService) GetNewDateVersionString() (versionString string, err error)

func (*VersionsService) GetNewVersionByString added in v0.31.0

func (v *VersionsService) GetNewVersionByString(versionString string) (version Version, err error)

func (*VersionsService) GetSoftwareVersionEnvVarName added in v0.31.0

func (v *VersionsService) GetSoftwareVersionEnvVarName() (envVarName string)

func (*VersionsService) GetSoftwareVersionFromEnvVarOrEmptyStringIfUnset added in v0.31.0

func (v *VersionsService) GetSoftwareVersionFromEnvVarOrEmptyStringIfUnset(verbose bool) (softwareVersion string)

func (*VersionsService) GetVersionStringsFromStringSlice added in v0.31.0

func (v *VersionsService) GetVersionStringsFromStringSlice(input []string) (versionStrings []string)

func (*VersionsService) GetVersionsFromStringSlice added in v0.31.0

func (v *VersionsService) GetVersionsFromStringSlice(stringSlice []string) (versions []Version, err error)

func (*VersionsService) IsDateVersionString added in v0.31.0

func (v *VersionsService) IsDateVersionString(versionString string) (isVersionString bool)

func (*VersionsService) IsSemanticVersionString added in v0.31.0

func (v *VersionsService) IsSemanticVersionString(versionString string) (isSemanticVersionString bool)

func (*VersionsService) IsVersionString added in v0.31.0

func (v *VersionsService) IsVersionString(versionString string) (isVersionString bool)

func (*VersionsService) MustCheckDateVersionString added in v0.31.0

func (v *VersionsService) MustCheckDateVersionString(versionString string) (isVersionString bool)

func (*VersionsService) MustGetLatestVersionFromSlice added in v0.31.0

func (v *VersionsService) MustGetLatestVersionFromSlice(versions []Version) (latestVersion Version)

func (*VersionsService) MustGetNewDateVersion added in v0.31.0

func (v *VersionsService) MustGetNewDateVersion() (version Version)

func (*VersionsService) MustGetNewDateVersionString added in v0.31.0

func (v *VersionsService) MustGetNewDateVersionString() (versionString string)

func (*VersionsService) MustGetNewVersionByString added in v0.31.0

func (v *VersionsService) MustGetNewVersionByString(versionString string) (version Version)

func (*VersionsService) MustGetVersionsFromStringSlice added in v0.31.0

func (v *VersionsService) MustGetVersionsFromStringSlice(stringSlice []string) (versions []Version)

type WindowsService added in v0.5.0

type WindowsService struct{}

func NewWindowsService added in v0.5.0

func NewWindowsService() (w *WindowsService)

func Windows added in v0.5.0

func Windows() (w *WindowsService)

Provides Windows (the operating system) related functions.

func (*WindowsService) DecodeAsBytes added in v0.5.0

func (w *WindowsService) DecodeAsBytes(windowsUtf16 []byte) (decoded []byte, err error)

func (*WindowsService) DecodeAsString added in v0.5.0

func (w *WindowsService) DecodeAsString(windowsUtf16 []byte) (decoded string, err error)

func (*WindowsService) DecodeStringAsString added in v0.5.0

func (w *WindowsService) DecodeStringAsString(windowsUtf16 string) (decoded string, err error)

func (*WindowsService) IsRunningOnWindows added in v0.5.0

func (w *WindowsService) IsRunningOnWindows() (isRunningOnWindows bool)

func (*WindowsService) MustDecodeAsBytes added in v0.5.0

func (w *WindowsService) MustDecodeAsBytes(windowsUtf16 []byte) (decoded []byte)

func (*WindowsService) MustDecodeAsString added in v0.5.0

func (w *WindowsService) MustDecodeAsString(windowsUtf16 []byte) (decoded string)

func (*WindowsService) MustDecodeStringAsString added in v0.5.0

func (w *WindowsService) MustDecodeStringAsString(windowsUtf16 string) (decoded string)

type X509Certificate added in v0.31.0

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

func GetX509CertificateFromFile added in v0.31.0

func GetX509CertificateFromFile(certFile File) (cert *X509Certificate, err error)

func GetX509CertificateFromFilePath added in v0.31.0

func GetX509CertificateFromFilePath(certFilePath string) (cert *X509Certificate, err error)

func MustGetX509CertificateFromFilePath added in v0.31.0

func MustGetX509CertificateFromFilePath(certFilePath string) (cert *X509Certificate)

func NewX509Certificate added in v0.31.0

func NewX509Certificate() (cert *X509Certificate)

func (*X509Certificate) GetAsPemBytes added in v0.31.0

func (c *X509Certificate) GetAsPemBytes() (pemBytes []byte, err error)

func (*X509Certificate) GetAsPemString added in v0.31.0

func (c *X509Certificate) GetAsPemString() (pemString string, err error)

func (*X509Certificate) GetIssuerString added in v0.31.0

func (c *X509Certificate) GetIssuerString() (issuerString string, err error)

func (*X509Certificate) GetNativeCertificate added in v0.31.0

func (c *X509Certificate) GetNativeCertificate() (nativeCertificate *x509.Certificate, err error)

func (*X509Certificate) GetNativeX509Certificate added in v0.31.0

func (x *X509Certificate) GetNativeX509Certificate() (nativeX509Certificate *x509.Certificate, err error)

func (*X509Certificate) GetSubjectString added in v0.31.0

func (c *X509Certificate) GetSubjectString() (subject string, err error)

func (*X509Certificate) GetVersion added in v0.31.0

func (c *X509Certificate) GetVersion() (version int, err error)

func (*X509Certificate) IsIntermediateCertificate added in v0.31.0

func (c *X509Certificate) IsIntermediateCertificate() (isIntermediateCertificate bool, err error)

func (*X509Certificate) IsRootCa added in v0.31.0

func (c *X509Certificate) IsRootCa(verbose bool) (isRootCa bool, err error)

func (*X509Certificate) IsSignedByCertificateFile added in v0.31.0

func (c *X509Certificate) IsSignedByCertificateFile(signingCertificate File, verbose bool) (isSignedBy bool, err error)

func (*X509Certificate) IsV1 added in v0.31.0

func (c *X509Certificate) IsV1() (isV1 bool, err error)

func (*X509Certificate) IsV3 added in v0.31.0

func (c *X509Certificate) IsV3() (isV3 bool, err error)

func (*X509Certificate) LoadFromBytes added in v0.31.0

func (c *X509Certificate) LoadFromBytes(certBytes []byte) (err error)

func (*X509Certificate) LoadFromFile added in v0.31.0

func (c *X509Certificate) LoadFromFile(loadFile File) (err error)

func (*X509Certificate) LoadFromFilePath added in v0.31.0

func (c *X509Certificate) LoadFromFilePath(loadPath string) (err error)

func (*X509Certificate) LoadFromString added in v0.31.0

func (c *X509Certificate) LoadFromString(certString string) (err error)

func (*X509Certificate) MustGetAsPemBytes added in v0.31.0

func (x *X509Certificate) MustGetAsPemBytes() (pemBytes []byte)

func (*X509Certificate) MustGetAsPemString added in v0.31.0

func (x *X509Certificate) MustGetAsPemString() (pemString string)

func (*X509Certificate) MustGetIssuerString added in v0.31.0

func (x *X509Certificate) MustGetIssuerString() (issuerString string)

func (*X509Certificate) MustGetNativeCertificate added in v0.31.0

func (x *X509Certificate) MustGetNativeCertificate() (nativeCertificate *x509.Certificate)

func (*X509Certificate) MustGetNativeX509Certificate added in v0.31.0

func (x *X509Certificate) MustGetNativeX509Certificate() (nativeX509Certificate *x509.Certificate)

func (*X509Certificate) MustGetSubjectString added in v0.31.0

func (x *X509Certificate) MustGetSubjectString() (subject string)

func (*X509Certificate) MustGetVersion added in v0.31.0

func (x *X509Certificate) MustGetVersion() (version int)

func (*X509Certificate) MustIsIntermediateCertificate added in v0.31.0

func (x *X509Certificate) MustIsIntermediateCertificate() (isIntermediateCertificate bool)

func (*X509Certificate) MustIsRootCa added in v0.31.0

func (x *X509Certificate) MustIsRootCa(verbose bool) (isRootCa bool)

func (*X509Certificate) MustIsSignedByCertificateFile added in v0.31.0

func (x *X509Certificate) MustIsSignedByCertificateFile(signingCertificate File, verbose bool) (isSignedBy bool)

func (*X509Certificate) MustIsV1 added in v0.31.0

func (x *X509Certificate) MustIsV1() (isV1 bool)

func (*X509Certificate) MustIsV3 added in v0.31.0

func (x *X509Certificate) MustIsV3() (isV3 bool)

func (*X509Certificate) MustLoadFromBytes added in v0.31.0

func (x *X509Certificate) MustLoadFromBytes(certBytes []byte)

func (*X509Certificate) MustLoadFromFile added in v0.31.0

func (x *X509Certificate) MustLoadFromFile(loadFile File)

func (*X509Certificate) MustLoadFromFilePath added in v0.31.0

func (x *X509Certificate) MustLoadFromFilePath(loadPath string)

func (*X509Certificate) MustLoadFromString added in v0.31.0

func (x *X509Certificate) MustLoadFromString(certString string)

func (*X509Certificate) MustSetNativeX509Certificate added in v0.31.0

func (x *X509Certificate) MustSetNativeX509Certificate(nativeX509Certificate *x509.Certificate)

func (*X509Certificate) MustWritePemToFile added in v0.31.0

func (x *X509Certificate) MustWritePemToFile(outputFile File, verbose bool)

func (*X509Certificate) MustWritePemToFilePath added in v0.31.0

func (x *X509Certificate) MustWritePemToFilePath(filePath string, verbose bool)

func (*X509Certificate) SetNativeX509Certificate added in v0.31.0

func (x *X509Certificate) SetNativeX509Certificate(nativeX509Certificate *x509.Certificate) (err error)

func (*X509Certificate) WritePemToFile added in v0.31.0

func (c *X509Certificate) WritePemToFile(outputFile File, verbose bool) (err error)

func (*X509Certificate) WritePemToFilePath added in v0.31.0

func (c *X509Certificate) WritePemToFilePath(filePath string, verbose bool) (err error)

Source Files

Jump to

Keyboard shortcuts

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