asciichgolangpublic

package module
v0.207.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 50 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.

Design choices, principles and background information

  • Design choices:
    • Function which return an error must not panic.
    • Use Set and Get functions which allows to validate input and output on every access:
      • Especially when using the provided functions to quickly automatize some stuff validating all inputs as a first step in every function helps to avoid unwanted side effects.
    • Provide MustAbc functions which call Abc but exit fatal if Abc is not sucessfull. This allows to write every line a new instruction what to do without dealing with errors which is useful for CLI's:
      • For CLI's most of the time he only option in case of an error is to abort the execution.
      • In case you want/ can handle the error on your own just use the Abc function directly and you get the error returned.
    • CheckAbc functions evaluate if Abc is given. If given nil, otherwise an error is returned.
    • Silent/ no log output by default but provide verbose boolean to most functions to change this behavior. Silent CLI's are easier to handle if glued together e.g. in Bash scripts.
    • Short cuts and code hacks are not nice but still better than doing things by hand. They are at least a good starting point of what functionality is needed and can be improved over time.
  • Releasing:
    • Release often: Every (small) improvement is an improvemnt and will be released as soon as possible.
    • This repository will never reach v1: There will be always be breaking changes if needed to improve the code.
    • Everytime the code base is touched it should look better than before.
  • Readability:
    • An end user of this repository should be able to write readable code.
  • Background information:
    • Currently this is a one man show.
    • It bases purely on some code I wrote at home in my free time used for automating my personal homelab.
  • Multiple levels of automation implementation and where this library can help:
    1. Knowledge in the head of the develpers (worst case):
      • In worst case not even documented at all.
      • Very error prone and a huge truck factor.
      • This library is no help here!
    2. Documented instructions:
      • Idealy step-by-step instructions.
      • This approach is also called Wiki-Ops.
      • This library is no help here!
    3. Scripting (Bash, Python, Ansible...):
      • Better than any documentation since the steps are reproducible and complete (otherwise it would not run successfully).
      • Often hard to (unit-)test.
      • While Python is a fully fledged programming language able to handle complex things the amount of complexity and reuseabilty is in Bash is limited.
      • Bash scripting reflects the way system administrators work interactively with the systems and is therefore often easy to understand for other team members.
      • External interpreters and tools are needed.
      • Interpreted languages are error prone and often easy to exploid using code injection
      • While orchestrating Bash commands or python one liners is not how programming works it is often the first starting point and still way better than wiki-ops. This library offers an easy to use interaction with the CLI using Bash() or CommandExecutors in general. But keep in mind: It's a starting point and sometimes needed to get things up and running in time but must be migrated towards native implementations on the long run.
    4. High level programming languages enriched with convenince functions and shortcuts allowed:
      • Reusable code.
      • Easy to automated new task by combining existing convenience functions.
      • Checking of inputs at every function call already detects malformed input at an early state.
      • A lot of boilerplate code.
      • Unit- and integration tests possible and useful.
      • Still some external dependencies, especially when calling other binaries to achive a shortcut.
      • Putting convenience functions together often leads to inefficient algorithms (e.g. more API requests than needed.).
      • The programming style gives some guard rails which can make it easier for other system administrators to start implementing their own stuff.
      • Easier to debug crashes since full stack trace is provided in errors (see section errors) but can also lead to security issues by exposing internal information.
      • Most of this library is written this way. Not bad as a starting point and usable on a high level so implementing new tasks is easy but still a lot of improvmentes towards an idiomatic golang codebase.
    5. Idiomatic Golang code (best case):
      • Reusable code.
      • Unit- and integration tests possible and useful.
      • No external dependencies since everything is natively implemneted.
      • Fastest execution time.
      • While this library is currently far away from idiomatic go the aim is to move towards idiomatic code in the implementation.

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 ErrGitRepositoryDoesNotExist = errors.New("gitRepository does not exist")
View Source
var ErrGitRepositoryHeadNotFound = errors.New("gitRepository head not found")
View Source
var ErrGitlabGroupNotFoundError = errors.New("Gitlab group not found")
View Source
var ErrGitlabProjectNotFound = errors.New("Gitlab project not found")
View Source
var ErrGitlabReleaseNotFound = errors.New("gitlab release not found")
View Source
var ErrGitlabRepositoryFileDoesNotExist = errors.New("Gitlab repository file does not exist")
View Source
var ErrGitlabTagNotFound = errors.New("gitlab tag not found")
View Source
var ErrNoMergeRequestWithSourceAndTargetBranchFound = errors.New("no merge request with given source and target branch found")
View Source
var ErrNoMergeRequestWithTitleFound = errors.New("no merge request with given title found")
View Source
var ErrTmuxWindowCliPromptNotReady = errors.New("tmux window CLI promptnot ready")
View Source
var ErrorPreCommitConfigFileContentLoad = errors.New("failed to load preCommitConfigFileContent")

Functions

func GetGitignoreDefaultBaseName added in v0.163.0

func GetGitignoreDefaultBaseName() (defaultBaseName string)

func GetGitlabCiYamlDefaultBaseName added in v0.176.0

func GetGitlabCiYamlDefaultBaseName() (defaultBaseName string)

func GetSoftwareNameString added in v0.31.0

func GetSoftwareNameString() (name string)

func GetSoftwareVersionString added in v0.31.0

func GetSoftwareVersionString() (version string)

func GitRepositoryDefaultCommitMessageForInitializeWithEmptyCommit added in v0.120.0

func GitRepositoryDefaultCommitMessageForInitializeWithEmptyCommit() (msg string)

func GitRepositryDefaultAuthorEmail added in v0.165.0

func GitRepositryDefaultAuthorEmail() (email string)

func GitRepositryDefaultAuthorName added in v0.165.0

func GitRepositryDefaultAuthorName() (name string)

func IsRunningAsRoot added in v0.63.0

func IsRunningAsRoot(verbose bool) (isRunningAsRoot bool, err error)

func LogVersion added in v0.31.0

func LogVersion()

func MustIsRunningAsRoot added in v0.63.0

func MustIsRunningAsRoot(verbose bool) (isRunningAsRoot bool)

func MustReadFileAsString added in v0.89.0

func MustReadFileAsString(path string) (content string)

func MustWhoAmI added in v0.63.0

func MustWhoAmI(verbose bool) (userName string)

func MustWriteStringToFile added in v0.89.0

func MustWriteStringToFile(path string, content string, verbose bool)

func ReadFileAsString added in v0.89.0

func ReadFileAsString(path string) (content string, err error)

func WhoAmI added in v0.63.0

func WhoAmI(verbose bool) (userName string, err error)

func WriteStringToFile added in v0.89.0

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

Types

type ArtifactDownloadOptions added in v0.51.0

type ArtifactDownloadOptions struct {
	ArtifactName      string
	OutputPath        string
	VersionToDownload string
	OverwriteExisting bool
	Verbose           bool
}

func NewArtifactDownloadOptions added in v0.51.0

func NewArtifactDownloadOptions() (a *ArtifactDownloadOptions)

func NewAsciichArtifactDownloadOptions added in v0.51.0

func NewAsciichArtifactDownloadOptions() (a *ArtifactDownloadOptions)

func (*ArtifactDownloadOptions) GetArtifactName added in v0.51.0

func (a *ArtifactDownloadOptions) GetArtifactName() (artifactName string, err error)

func (*ArtifactDownloadOptions) GetOutputPath added in v0.51.0

func (a *ArtifactDownloadOptions) GetOutputPath() (outputPath string, err error)

func (*ArtifactDownloadOptions) GetOverwriteExisting added in v0.51.0

func (a *ArtifactDownloadOptions) GetOverwriteExisting() (overwriteExisting bool, err error)

func (*ArtifactDownloadOptions) GetVerbose added in v0.51.0

func (a *ArtifactDownloadOptions) GetVerbose() (verbose bool, err error)

func (*ArtifactDownloadOptions) GetVersionToDownload added in v0.51.0

func (a *ArtifactDownloadOptions) GetVersionToDownload() (versionToDownload string, err error)

func (*ArtifactDownloadOptions) IsOutputPathSet added in v0.51.0

func (a *ArtifactDownloadOptions) IsOutputPathSet() (isSet bool)

func (*ArtifactDownloadOptions) IsVersionToDownloadSet added in v0.51.0

func (a *ArtifactDownloadOptions) IsVersionToDownloadSet() (isSet bool)

func (*ArtifactDownloadOptions) MustGetArtifactName added in v0.51.0

func (a *ArtifactDownloadOptions) MustGetArtifactName() (artifactName string)

func (*ArtifactDownloadOptions) MustGetOutputPath added in v0.51.0

func (a *ArtifactDownloadOptions) MustGetOutputPath() (outputPath string)

func (*ArtifactDownloadOptions) MustGetOverwriteExisting added in v0.51.0

func (a *ArtifactDownloadOptions) MustGetOverwriteExisting() (overwriteExisting bool)

func (*ArtifactDownloadOptions) MustGetVerbose added in v0.51.0

func (a *ArtifactDownloadOptions) MustGetVerbose() (verbose bool)

func (*ArtifactDownloadOptions) MustGetVersionToDownload added in v0.51.0

func (a *ArtifactDownloadOptions) MustGetVersionToDownload() (versionToDownload string)

func (*ArtifactDownloadOptions) MustSetArtifactName added in v0.51.0

func (a *ArtifactDownloadOptions) MustSetArtifactName(artifactName string)

func (*ArtifactDownloadOptions) MustSetOutputPath added in v0.51.0

func (a *ArtifactDownloadOptions) MustSetOutputPath(outputPath string)

func (*ArtifactDownloadOptions) MustSetOverwriteExisting added in v0.51.0

func (a *ArtifactDownloadOptions) MustSetOverwriteExisting(overwriteExisting bool)

func (*ArtifactDownloadOptions) MustSetVerbose added in v0.51.0

func (a *ArtifactDownloadOptions) MustSetVerbose(verbose bool)

func (*ArtifactDownloadOptions) MustSetVersionToDownload added in v0.51.0

func (a *ArtifactDownloadOptions) MustSetVersionToDownload(versionToDownload string)

func (*ArtifactDownloadOptions) SetArtifactName added in v0.51.0

func (a *ArtifactDownloadOptions) SetArtifactName(artifactName string) (err error)

func (*ArtifactDownloadOptions) SetOutputPath added in v0.51.0

func (a *ArtifactDownloadOptions) SetOutputPath(outputPath string) (err error)

func (*ArtifactDownloadOptions) SetOverwriteExisting added in v0.51.0

func (a *ArtifactDownloadOptions) SetOverwriteExisting(overwriteExisting bool) (err error)

func (*ArtifactDownloadOptions) SetVerbose added in v0.51.0

func (a *ArtifactDownloadOptions) SetVerbose(verbose bool) (err error)

func (*ArtifactDownloadOptions) SetVersionToDownload added in v0.51.0

func (a *ArtifactDownloadOptions) SetVersionToDownload(versionToDownload string) (err error)

type ArtifactHandler added in v0.51.0

type ArtifactHandler interface {
	DownloadAndValidateArtifact(downloadOptions *ArtifactDownloadOptions) (downloadedArtifact File, err error)
	MustDownloadAndValidateArtifact(downloadOptions *ArtifactDownloadOptions) (downloadedArtifact File)
	GetLatestArtifactVersionAsString(artifactName string, verbose bool) (latestVersion string, err error)
	IsHandlingArtifactByName(artifactName string) (isHandlingArtifactByName bool, err error)
	UploadBinaryArtifact(uploadOptions *UploadArtifactOptions) (err error)
}

An artifact handler is used to download or update artifacts. While artifacts could be some compiled binaries, docker images, vm images...

type ArtifactHandlersService added in v0.51.0

type ArtifactHandlersService struct{}

func ArtifactHandlers added in v0.51.0

func ArtifactHandlers() (a *ArtifactHandlersService)

func NewArtifactHandlersService added in v0.51.0

func NewArtifactHandlersService() (a *ArtifactHandlersService)

func (*ArtifactHandlersService) GetArtifactHandlerForArtifact added in v0.51.0

func (a *ArtifactHandlersService) GetArtifactHandlerForArtifact(artifactHandlers []ArtifactHandler, artifactName string) (handler ArtifactHandler, err error)

func (*ArtifactHandlersService) MustGetArtifactHandlerForArtifact added in v0.51.0

func (a *ArtifactHandlersService) MustGetArtifactHandlerForArtifact(artifactHandlers []ArtifactHandler, artifactName string) (handler ArtifactHandler)

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 BashService added in v0.4.0

type BashService struct {
	CommandExecutorBase
}

func Bash added in v0.4.0

func Bash() (b *BashService)

Can be used to run commands in bash on localhost.

func NewBashService added in v0.4.0

func NewBashService() (b *BashService)

func (*BashService) GetDeepCopy added in v0.94.0

func (b *BashService) GetDeepCopy() (deepCopy CommandExecutor)

func (*BashService) GetHostDescription added in v0.94.0

func (b *BashService) GetHostDescription() (hostDescription string, err error)

func (*BashService) MustGetHostDescription added in v0.94.0

func (b *BashService) MustGetHostDescription() (hostDescription string)

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) MustRunOneLinerAndGetStdoutAsLines added in v0.50.0

func (b *BashService) MustRunOneLinerAndGetStdoutAsLines(oneLiner string, verbose bool) (stdoutLines []string)

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) RunOneLinerAndGetStdoutAsLines added in v0.50.0

func (b *BashService) RunOneLinerAndGetStdoutAsLines(oneLiner string, verbose bool) (stdoutLines []string, 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 ChmodOptions added in v0.92.0

type ChmodOptions struct {
	// Set permissions using string like "u=rwx,g=r,o="
	PermissionsString string

	// Use sudo to perform changemod with root priviledges.
	UseSudo bool

	// Enable verbose output
	Verbose bool
}

func NewChmodOptions added in v0.92.0

func NewChmodOptions() (c *ChmodOptions)

func (*ChmodOptions) GetPermissionsString added in v0.92.0

func (c *ChmodOptions) GetPermissionsString() (permissionsString string, err error)

func (*ChmodOptions) GetUseSudo added in v0.92.0

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

func (*ChmodOptions) GetVerbose added in v0.92.0

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

func (*ChmodOptions) MustGetPermissionsString added in v0.92.0

func (c *ChmodOptions) MustGetPermissionsString() (permissionsString string)

func (*ChmodOptions) MustSetPermissionsString added in v0.92.0

func (c *ChmodOptions) MustSetPermissionsString(permissionsString string)

func (*ChmodOptions) SetPermissionsString added in v0.92.0

func (c *ChmodOptions) SetPermissionsString(permissionsString string) (err error)

func (*ChmodOptions) SetUseSudo added in v0.92.0

func (c *ChmodOptions) SetUseSudo(useSudo bool)

func (*ChmodOptions) SetVerbose added in v0.92.0

func (c *ChmodOptions) SetVerbose(verbose bool)

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) IsGroupNameSet added in v0.186.0

func (c *ChownOptions) IsGroupNameSet() (isSet 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 {
	GetHostDescription() (hostDescription string, err error)
	RunCommand(options *RunCommandOptions) (commandOutput *CommandOutput, err error)
	MustGetHostDescription() (hostDescription string)
	MustRunCommand(options *RunCommandOptions) (commandOutput *CommandOutput)

	// These Commands can be implemented by embedding the `CommandExecutorBase` struct:
	IsRunningOnLocalhost() (isRunningOnLocalhost bool, err error)
	MustIsRunningOnLocalhost() (isRunningOnLocalhost bool)
	MustRunCommandAndGetStdoutAsBytes(options *RunCommandOptions) (stdout []byte)
	MustRunCommandAndGetStdoutAsFloat64(options *RunCommandOptions) (stdout float64)
	MustRunCommandAndGetStdoutAsInt64(options *RunCommandOptions) (stdout int64)
	MustRunCommandAndGetStdoutAsLines(options *RunCommandOptions) (stdoutLines []string)
	MustRunCommandAndGetStdoutAsString(options *RunCommandOptions) (stdout string)
	RunCommandAndGetStdoutAsBytes(options *RunCommandOptions) (stdout []byte, err error)
	RunCommandAndGetStdoutAsFloat64(options *RunCommandOptions) (stdout float64, err error)
	RunCommandAndGetStdoutAsInt64(options *RunCommandOptions) (stdout int64, 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 does.

func GetDeepCopyOfCommandExecutor added in v0.191.0

func GetDeepCopyOfCommandExecutor(commandExectuor CommandExecutor) (copy CommandExecutor, err error)

func MustGetDeepCopyOfCommandExecutor added in v0.191.0

func MustGetDeepCopyOfCommandExecutor(commandExectuor CommandExecutor) (copy CommandExecutor)

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) IsRunningOnLocalhost added in v0.191.0

func (c *CommandExecutorBase) IsRunningOnLocalhost() (isRunningOnLocalhost bool, err error)

func (*CommandExecutorBase) MustGetParentCommandExecutorForBaseClass added in v0.4.0

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

func (*CommandExecutorBase) MustIsRunningOnLocalhost added in v0.191.0

func (c *CommandExecutorBase) MustIsRunningOnLocalhost() (isRunningOnLocalhost bool)

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) MustRunCommandAndGetStdoutAsInt64 added in v0.94.0

func (c *CommandExecutorBase) MustRunCommandAndGetStdoutAsInt64(options *RunCommandOptions) (stdout int64)

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) RunCommandAndGetStdoutAsInt64 added in v0.94.0

func (c *CommandExecutorBase) RunCommandAndGetStdoutAsInt64(options *RunCommandOptions) (stdout int64, 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 CommandExecutorDirectory added in v0.94.0

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

A CommandExecutorDirectory implements the functionality of a `Directory` by executing commands (like: test, stat, cat...).

The benefit of this apporach is an easy way to access directories on any remote system like VMs, Containers, Hosts... while it easy to chain like inside Container on VM behind Jumphost...

The downside of this is the poor performance and the possiblity to see in the process table which operations where done.

func GetCommandExecutorDirectoryByPath added in v0.122.0

func GetCommandExecutorDirectoryByPath(commandExecutor CommandExecutor, path string) (c *CommandExecutorDirectory, err error)

func GetLocalCommandExecutorDirectoryByPath added in v0.116.0

func GetLocalCommandExecutorDirectoryByPath(path string) (c *CommandExecutorDirectory, err error)

func MustGetCommandExecutorDirectoryByPath added in v0.122.0

func MustGetCommandExecutorDirectoryByPath(commandExecutor CommandExecutor, path string) (c *CommandExecutorDirectory)

func MustGetLocalCommandExecutorDirectoryByPath added in v0.116.0

func MustGetLocalCommandExecutorDirectoryByPath(path string) (c *CommandExecutorDirectory)

func MustNewCommandExecutorDirectory added in v0.116.0

func MustNewCommandExecutorDirectory(commandExecutor CommandExecutor) (c *CommandExecutorDirectory)

func NewCommandExecutorDirectory added in v0.94.0

func NewCommandExecutorDirectory(commandExecutor CommandExecutor) (c *CommandExecutorDirectory, err error)

func (*CommandExecutorDirectory) Chmod added in v0.94.0

func (c *CommandExecutorDirectory) Chmod(chmodOptions *ChmodOptions) (err error)

func (*CommandExecutorDirectory) CopyContentToDirectory added in v0.94.0

func (c *CommandExecutorDirectory) CopyContentToDirectory(destinationDir Directory, verbose bool) (err error)

func (*CommandExecutorDirectory) Create added in v0.94.0

func (c *CommandExecutorDirectory) Create(verbose bool) (err error)

func (*CommandExecutorDirectory) CreateSubDirectory added in v0.94.0

func (c *CommandExecutorDirectory) CreateSubDirectory(subDirectoryName string, verbose bool) (createdSubDirectory Directory, err error)

func (*CommandExecutorDirectory) Delete added in v0.94.0

func (c *CommandExecutorDirectory) Delete(verbose bool) (err error)

func (*CommandExecutorDirectory) Exists added in v0.94.0

func (c *CommandExecutorDirectory) Exists(verbose bool) (exists bool, err error)

func (*CommandExecutorDirectory) GetBaseName added in v0.94.0

func (c *CommandExecutorDirectory) GetBaseName() (baseName string, err error)

func (*CommandExecutorDirectory) GetCommandExecutor added in v0.94.0

func (c *CommandExecutorDirectory) GetCommandExecutor() (commandExecutor CommandExecutor, err error)

func (*CommandExecutorDirectory) GetCommandExecutorAndDirPath added in v0.94.0

func (c *CommandExecutorDirectory) GetCommandExecutorAndDirPath() (commandExecutor CommandExecutor, dirPath string, err error)

func (*CommandExecutorDirectory) GetCommandExecutorAndDirPathAndHostDescription added in v0.94.0

func (c *CommandExecutorDirectory) GetCommandExecutorAndDirPathAndHostDescription() (commandExecutor CommandExecutor, dirPath string, hostDescription string, err error)

func (*CommandExecutorDirectory) GetDirName added in v0.94.0

func (c *CommandExecutorDirectory) GetDirName() (parentPath string, err error)

func (*CommandExecutorDirectory) GetDirPath added in v0.94.0

func (c *CommandExecutorDirectory) GetDirPath() (dirPath string, err error)

func (*CommandExecutorDirectory) GetFileInDirectory added in v0.94.0

func (c *CommandExecutorDirectory) GetFileInDirectory(pathToFile ...string) (file File, err error)

func (*CommandExecutorDirectory) GetHostDescription added in v0.94.0

func (c *CommandExecutorDirectory) GetHostDescription() (hostDescription string, err error)

func (*CommandExecutorDirectory) GetLocalPath added in v0.94.0

func (c *CommandExecutorDirectory) GetLocalPath() (localPath string, err error)

func (*CommandExecutorDirectory) GetParentDirectory added in v0.122.0

func (c *CommandExecutorDirectory) GetParentDirectory() (parent Directory, err error)

func (*CommandExecutorDirectory) GetPath added in v0.94.0

func (c *CommandExecutorDirectory) GetPath() (path string, err error)

func (*CommandExecutorDirectory) GetSubDirectory added in v0.94.0

func (c *CommandExecutorDirectory) GetSubDirectory(path ...string) (subDirectory Directory, err error)

func (*CommandExecutorDirectory) IsLocalDirectory added in v0.94.0

func (c *CommandExecutorDirectory) IsLocalDirectory() (isLocalDirectory bool, err error)

func (*CommandExecutorDirectory) ListFilePaths added in v0.116.0

func (c *CommandExecutorDirectory) ListFilePaths(listFileOptions *parameteroptions.ListFileOptions) (filePaths []string, err error)

func (*CommandExecutorDirectory) ListFiles added in v0.116.0

func (c *CommandExecutorDirectory) ListFiles(listFileOptions *parameteroptions.ListFileOptions) (files []File, err error)

func (*CommandExecutorDirectory) ListSubDirectories added in v0.111.0

func (c *CommandExecutorDirectory) ListSubDirectories(options *parameteroptions.ListDirectoryOptions) (subDirectories []Directory, err error)

func (*CommandExecutorDirectory) MustChmod added in v0.94.0

func (c *CommandExecutorDirectory) MustChmod(chmodOptions *ChmodOptions)

func (*CommandExecutorDirectory) MustCopyContentToDirectory added in v0.94.0

func (c *CommandExecutorDirectory) MustCopyContentToDirectory(destinationDir Directory, verbose bool)

func (*CommandExecutorDirectory) MustCreate added in v0.94.0

func (c *CommandExecutorDirectory) MustCreate(verbose bool)

func (*CommandExecutorDirectory) MustCreateSubDirectory added in v0.94.0

func (c *CommandExecutorDirectory) MustCreateSubDirectory(subDirectoryName string, verbose bool) (createdSubDirectory Directory)

func (*CommandExecutorDirectory) MustDelete added in v0.94.0

func (c *CommandExecutorDirectory) MustDelete(verbose bool)

func (*CommandExecutorDirectory) MustExists added in v0.94.0

func (c *CommandExecutorDirectory) MustExists(verbose bool) (exists bool)

func (*CommandExecutorDirectory) MustGetBaseName added in v0.94.0

func (c *CommandExecutorDirectory) MustGetBaseName() (baseName string)

func (*CommandExecutorDirectory) MustGetCommandExecutor added in v0.94.0

func (c *CommandExecutorDirectory) MustGetCommandExecutor() (commandExecutor CommandExecutor)

func (*CommandExecutorDirectory) MustGetCommandExecutorAndDirPath added in v0.94.0

func (c *CommandExecutorDirectory) MustGetCommandExecutorAndDirPath() (commandExecutor CommandExecutor, dirPath string)

func (*CommandExecutorDirectory) MustGetCommandExecutorAndDirPathAndHostDescription added in v0.94.0

func (c *CommandExecutorDirectory) MustGetCommandExecutorAndDirPathAndHostDescription() (commandExecutor CommandExecutor, dirPath string, hostDescription string)

func (*CommandExecutorDirectory) MustGetDirName added in v0.94.0

func (c *CommandExecutorDirectory) MustGetDirName() (dirName string)

func (*CommandExecutorDirectory) MustGetDirPath added in v0.94.0

func (c *CommandExecutorDirectory) MustGetDirPath() (dirPath string)

func (*CommandExecutorDirectory) MustGetFileInDirectory added in v0.94.0

func (c *CommandExecutorDirectory) MustGetFileInDirectory(pathToFile ...string) (file File)

func (*CommandExecutorDirectory) MustGetHostDescription added in v0.94.0

func (c *CommandExecutorDirectory) MustGetHostDescription() (hostDescription string)

func (*CommandExecutorDirectory) MustGetLocalPath added in v0.94.0

func (c *CommandExecutorDirectory) MustGetLocalPath() (localPath string)

func (*CommandExecutorDirectory) MustGetParentDirectory added in v0.122.0

func (c *CommandExecutorDirectory) MustGetParentDirectory() (parent Directory)

func (*CommandExecutorDirectory) MustGetPath added in v0.94.0

func (c *CommandExecutorDirectory) MustGetPath() (path string)

func (*CommandExecutorDirectory) MustGetSubDirectory added in v0.94.0

func (c *CommandExecutorDirectory) MustGetSubDirectory(path ...string) (subDirectory Directory)

func (*CommandExecutorDirectory) MustIsLocalDirectory added in v0.94.0

func (c *CommandExecutorDirectory) MustIsLocalDirectory() (isLocalDirectory bool)

func (*CommandExecutorDirectory) MustListFilePaths added in v0.116.0

func (c *CommandExecutorDirectory) MustListFilePaths(listFileOptions *parameteroptions.ListFileOptions) (filePaths []string)

func (*CommandExecutorDirectory) MustListFiles added in v0.116.0

func (c *CommandExecutorDirectory) MustListFiles(listFileOptions *parameteroptions.ListFileOptions) (files []File)

func (*CommandExecutorDirectory) MustListSubDirectories added in v0.111.0

func (c *CommandExecutorDirectory) MustListSubDirectories(options *parameteroptions.ListDirectoryOptions) (subDirectories []Directory)

func (*CommandExecutorDirectory) MustSetCommandExecutor added in v0.94.0

func (c *CommandExecutorDirectory) MustSetCommandExecutor(commandExecutor CommandExecutor)

func (*CommandExecutorDirectory) MustSetDirPath added in v0.94.0

func (c *CommandExecutorDirectory) MustSetDirPath(dirPath string)

func (*CommandExecutorDirectory) SetCommandExecutor added in v0.94.0

func (c *CommandExecutorDirectory) SetCommandExecutor(commandExecutor CommandExecutor) (err error)

func (*CommandExecutorDirectory) SetDirPath added in v0.94.0

func (c *CommandExecutorDirectory) SetDirPath(dirPath string) (err error)

type CommandExecutorFile added in v0.94.0

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

A CommandExecutorFile implements the functionality of a `File` by executing commands (like: test, stat, cat...).

The benefit of this apporach is an easy way to access files on any remote system like VMs, Containers, Hosts... while it easy to chain like inside Container on VM behind Jumphost...

The downside of this is the poor performance and the possiblity to see in the process table which operations where done.

func GetCommandExecutorFileByPath added in v0.128.0

func GetCommandExecutorFileByPath(commandExector CommandExecutor, path string) (commandExecutorFile *CommandExecutorFile, err error)

func GetLocalCommandExecutorFileByFile added in v0.103.3

func GetLocalCommandExecutorFileByFile(file File, verbose bool) (commandExecutorFile *CommandExecutorFile, err error)

func GetLocalCommandExecutorFileByPath added in v0.94.0

func GetLocalCommandExecutorFileByPath(localPath string) (commandExecutorFile *CommandExecutorFile, err error)

func MustGetCommandExecutorFileByPath added in v0.128.0

func MustGetCommandExecutorFileByPath(commandExector CommandExecutor, path string) (commandExecutorFile *CommandExecutorFile)

func MustGetLocalCommandExecutorFileByFile added in v0.103.3

func MustGetLocalCommandExecutorFileByFile(file File, verbose bool) (commandExecutorFile *CommandExecutorFile)

func MustGetLocalCommandExecutorFileByPath added in v0.94.0

func MustGetLocalCommandExecutorFileByPath(localPath string) (commandExecutorFile *CommandExecutorFile)

func NewCommandExecutorFile added in v0.94.0

func NewCommandExecutorFile() (c *CommandExecutorFile)

func (*CommandExecutorFile) AppendBytes added in v0.94.0

func (c *CommandExecutorFile) AppendBytes(toWrite []byte, verbose bool) (err error)

func (*CommandExecutorFile) AppendString added in v0.94.0

func (c *CommandExecutorFile) AppendString(toWrite string, verbose bool) (err error)

func (*CommandExecutorFile) Chmod added in v0.94.0

func (c *CommandExecutorFile) Chmod(chmodOptions *ChmodOptions) (err error)

func (*CommandExecutorFile) Chown added in v0.186.0

func (c *CommandExecutorFile) Chown(options *ChownOptions) (err error)

func (*CommandExecutorFile) CopyToFile added in v0.94.0

func (c *CommandExecutorFile) CopyToFile(destFile File, verbose bool) (err error)

func (*CommandExecutorFile) Create added in v0.94.0

func (c *CommandExecutorFile) Create(verbose bool) (err error)

func (*CommandExecutorFile) Delete added in v0.94.0

func (c *CommandExecutorFile) Delete(verbose bool) (err error)

func (*CommandExecutorFile) Exists added in v0.94.0

func (c *CommandExecutorFile) Exists(verbose bool) (exists bool, err error)

func (*CommandExecutorFile) GetBaseName added in v0.94.0

func (c *CommandExecutorFile) GetBaseName() (baseName string, err error)

func (*CommandExecutorFile) GetCommandExecutor added in v0.94.0

func (c *CommandExecutorFile) GetCommandExecutor() (commandExecutor CommandExecutor, err error)

func (*CommandExecutorFile) GetCommandExecutorAndFilePath added in v0.94.0

func (c *CommandExecutorFile) GetCommandExecutorAndFilePath() (commandExecutor CommandExecutor, filePath string, err error)

func (*CommandExecutorFile) GetCommandExecutorAndFilePathAndHostDescription added in v0.94.0

func (c *CommandExecutorFile) GetCommandExecutorAndFilePathAndHostDescription() (commandExecutor CommandExecutor, filePath string, hostDescription string, err error)

func (*CommandExecutorFile) GetDeepCopy added in v0.94.0

func (c *CommandExecutorFile) GetDeepCopy() (deepCopy File)

func (*CommandExecutorFile) GetFilePath added in v0.94.0

func (c *CommandExecutorFile) GetFilePath() (filePath string, err error)

func (*CommandExecutorFile) GetHostDescription added in v0.94.0

func (c *CommandExecutorFile) GetHostDescription() (hostDescription string, err error)

func (*CommandExecutorFile) GetLocalPath added in v0.94.0

func (c *CommandExecutorFile) GetLocalPath() (localPath string, err error)

func (*CommandExecutorFile) GetLocalPathOrEmptyStringIfUnset added in v0.94.0

func (c *CommandExecutorFile) GetLocalPathOrEmptyStringIfUnset() (localPath string, err error)

func (*CommandExecutorFile) GetParentDirectory added in v0.94.0

func (c *CommandExecutorFile) GetParentDirectory() (parentDirectory Directory, err error)

func (*CommandExecutorFile) GetPath added in v0.115.0

func (c *CommandExecutorFile) GetPath() (path string, err error)

func (*CommandExecutorFile) GetPathAndHostDescription added in v0.131.0

func (c *CommandExecutorFile) GetPathAndHostDescription() (path string, hostDescription string, err error)

func (*CommandExecutorFile) GetSizeBytes added in v0.94.0

func (c *CommandExecutorFile) GetSizeBytes() (fileSize int64, err error)

func (*CommandExecutorFile) GetUriAsString added in v0.94.0

func (c *CommandExecutorFile) GetUriAsString() (uri string, err error)

func (*CommandExecutorFile) IsRunningOnLocalhost added in v0.94.0

func (c *CommandExecutorFile) IsRunningOnLocalhost() (isRunningOnLocalhost bool, err error)

func (*CommandExecutorFile) MoveToPath added in v0.186.0

func (c *CommandExecutorFile) MoveToPath(path string, useSudo bool, verbose bool) (movedFile File, err error)

func (*CommandExecutorFile) MustAppendBytes added in v0.94.0

func (c *CommandExecutorFile) MustAppendBytes(toWrite []byte, verbose bool)

func (*CommandExecutorFile) MustAppendString added in v0.94.0

func (c *CommandExecutorFile) MustAppendString(toWrite string, verbose bool)

func (*CommandExecutorFile) MustChmod added in v0.94.0

func (c *CommandExecutorFile) MustChmod(chmodOptions *ChmodOptions)

func (*CommandExecutorFile) MustChown added in v0.186.0

func (c *CommandExecutorFile) MustChown(options *ChownOptions)

func (*CommandExecutorFile) MustCopyToFile added in v0.94.0

func (c *CommandExecutorFile) MustCopyToFile(destFile File, verbose bool)

func (*CommandExecutorFile) MustCreate added in v0.94.0

func (c *CommandExecutorFile) MustCreate(verbose bool)

func (*CommandExecutorFile) MustDelete added in v0.94.0

func (c *CommandExecutorFile) MustDelete(verbose bool)

func (*CommandExecutorFile) MustExists added in v0.94.0

func (c *CommandExecutorFile) MustExists(verbose bool) (exist bool)

func (*CommandExecutorFile) MustGetBaseName added in v0.94.0

func (c *CommandExecutorFile) MustGetBaseName() (baseName string)

func (*CommandExecutorFile) MustGetCommandExecutor added in v0.94.0

func (c *CommandExecutorFile) MustGetCommandExecutor() (commandExecutor CommandExecutor)

func (*CommandExecutorFile) MustGetCommandExecutorAndFilePath added in v0.94.0

func (c *CommandExecutorFile) MustGetCommandExecutorAndFilePath() (commandExecutor CommandExecutor, filePath string)

func (*CommandExecutorFile) MustGetCommandExecutorAndFilePathAndHostDescription added in v0.94.0

func (c *CommandExecutorFile) MustGetCommandExecutorAndFilePathAndHostDescription() (commandExecutor CommandExecutor, filePath string, hostDescription string)

func (*CommandExecutorFile) MustGetFilePath added in v0.94.0

func (c *CommandExecutorFile) MustGetFilePath() (filePath string)

func (*CommandExecutorFile) MustGetHostDescription added in v0.94.0

func (c *CommandExecutorFile) MustGetHostDescription() (hostDescription string)

func (*CommandExecutorFile) MustGetLocalPath added in v0.94.0

func (c *CommandExecutorFile) MustGetLocalPath() (localPath string)

func (*CommandExecutorFile) MustGetLocalPathOrEmptyStringIfUnset added in v0.94.0

func (c *CommandExecutorFile) MustGetLocalPathOrEmptyStringIfUnset() (localPath string)

func (*CommandExecutorFile) MustGetParentDirectory added in v0.94.0

func (c *CommandExecutorFile) MustGetParentDirectory() (parentDirectory Directory)

func (*CommandExecutorFile) MustGetPath added in v0.115.0

func (c *CommandExecutorFile) MustGetPath() (path string)

func (*CommandExecutorFile) MustGetPathAndHostDescription added in v0.131.0

func (c *CommandExecutorFile) MustGetPathAndHostDescription() (path string, hostDescription string)

func (*CommandExecutorFile) MustGetSizeBytes added in v0.94.0

func (c *CommandExecutorFile) MustGetSizeBytes() (fileSize int64)

func (*CommandExecutorFile) MustGetUriAsString added in v0.94.0

func (c *CommandExecutorFile) MustGetUriAsString() (uri string)

func (*CommandExecutorFile) MustIsRunningOnLocalhost added in v0.94.0

func (c *CommandExecutorFile) MustIsRunningOnLocalhost() (isRunningOnLocalhost bool)

func (*CommandExecutorFile) MustMoveToPath added in v0.186.0

func (c *CommandExecutorFile) MustMoveToPath(path string, useSudo bool, verbose bool) (movedFile File)

func (*CommandExecutorFile) MustReadAsBytes added in v0.94.0

func (c *CommandExecutorFile) MustReadAsBytes() (content []byte)

func (*CommandExecutorFile) MustReadFirstNBytes added in v0.94.0

func (c *CommandExecutorFile) MustReadFirstNBytes(numberOfBytesToRead int) (firstBytes []byte)

func (*CommandExecutorFile) MustSecurelyDelete added in v0.94.0

func (c *CommandExecutorFile) MustSecurelyDelete(verbose bool)

func (*CommandExecutorFile) MustSetCommandExecutor added in v0.94.0

func (c *CommandExecutorFile) MustSetCommandExecutor(commandExecutor CommandExecutor)

func (*CommandExecutorFile) MustSetFilePath added in v0.94.0

func (c *CommandExecutorFile) MustSetFilePath(filePath string)

func (*CommandExecutorFile) MustTruncate added in v0.131.0

func (c *CommandExecutorFile) MustTruncate(newSizeBytes int64, verbose bool)

func (*CommandExecutorFile) MustWriteBytes added in v0.94.0

func (c *CommandExecutorFile) MustWriteBytes(toWrite []byte, verbose bool)

func (*CommandExecutorFile) ReadAsBytes added in v0.94.0

func (c *CommandExecutorFile) ReadAsBytes() (content []byte, err error)

func (*CommandExecutorFile) ReadFirstNBytes added in v0.94.0

func (c *CommandExecutorFile) ReadFirstNBytes(numberOfBytesToRead int) (firstBytes []byte, err error)

func (*CommandExecutorFile) SecurelyDelete added in v0.94.0

func (c *CommandExecutorFile) SecurelyDelete(verbose bool) (err error)

func (*CommandExecutorFile) SetCommandExecutor added in v0.94.0

func (c *CommandExecutorFile) SetCommandExecutor(commandExecutor CommandExecutor) (err error)

func (*CommandExecutorFile) SetFilePath added in v0.94.0

func (c *CommandExecutorFile) SetFilePath(filePath string) (err error)

func (*CommandExecutorFile) Truncate added in v0.131.0

func (c *CommandExecutorFile) Truncate(newSizeBytes int64, verbose bool) (err error)

func (*CommandExecutorFile) WriteBytes added in v0.94.0

func (c *CommandExecutorFile) WriteBytes(toWrite []byte, verbose bool) (err error)

type CommandExecutorGitRepository added in v0.120.0

type CommandExecutorGitRepository struct {
	CommandExecutorDirectory
	GitRepositoryBase
}

This is the GitRepository implementation based on a CommandExecutor (e.g. Bash, SSH...). This means it's a wrapper around the "git" binary which needs to be available. While very inefficient this solution can manage git repository on remote hosts, inside containers... which makes it very flexible.

When dealing with locally available repositories it's recommended to use the LocalGitRepository implementation which uses go build in git functionality instead.

func GetCommandExecutorGitRepositoryByPath added in v0.122.0

func GetCommandExecutorGitRepositoryByPath(commandExecutor CommandExecutor, path string) (gitRepo *CommandExecutorGitRepository, err error)

func GetCommandExecutorGitRepositoryFromDirectory added in v0.122.0

func GetCommandExecutorGitRepositoryFromDirectory(directory Directory) (c *CommandExecutorGitRepository, err error)

func GetLocalCommandExecutorGitRepositoryByDirectory added in v0.120.0

func GetLocalCommandExecutorGitRepositoryByDirectory(directory Directory) (gitRepo *CommandExecutorGitRepository, err error)

func GetLocalCommandExecutorGitRepositoryByPath added in v0.120.0

func GetLocalCommandExecutorGitRepositoryByPath(path string) (gitRepo *CommandExecutorGitRepository, err error)

func MustGetCommandExecutorGitRepositoryByPath added in v0.122.0

func MustGetCommandExecutorGitRepositoryByPath(commandExecutor CommandExecutor, path string) (gitRepo *CommandExecutorGitRepository)

func MustGetCommandExecutorGitRepositoryFromDirectory added in v0.122.0

func MustGetCommandExecutorGitRepositoryFromDirectory(directory Directory) (c *CommandExecutorGitRepository)

func MustGetLocalCommandExecutorGitRepositoryByDirectory added in v0.120.0

func MustGetLocalCommandExecutorGitRepositoryByDirectory(directory Directory) (gitRepo *CommandExecutorGitRepository)

func MustGetLocalCommandExecutorGitRepositoryByPath added in v0.120.0

func MustGetLocalCommandExecutorGitRepositoryByPath(path string) (gitRepo *CommandExecutorGitRepository)

func MustNewCommandExecutorGitRepository added in v0.120.0

func MustNewCommandExecutorGitRepository(commandExecutor CommandExecutor) (c *CommandExecutorGitRepository)

func NewCommandExecutorGitRepository added in v0.120.0

func NewCommandExecutorGitRepository(commandExecutor CommandExecutor) (c *CommandExecutorGitRepository, err error)

func (*CommandExecutorGitRepository) AddFileByPath added in v0.124.0

func (c *CommandExecutorGitRepository) AddFileByPath(pathToAdd string, verbose bool) (err error)

func (*CommandExecutorGitRepository) AddRemote added in v0.171.0

func (c *CommandExecutorGitRepository) AddRemote(remoteOptions *GitRemoteAddOptions) (err error)

func (*CommandExecutorGitRepository) CheckoutBranchByName added in v0.166.0

func (c *CommandExecutorGitRepository) CheckoutBranchByName(name string, verbose bool) (err error)

func (*CommandExecutorGitRepository) CloneRepository added in v0.123.0

func (c *CommandExecutorGitRepository) CloneRepository(repository GitRepository, verbose bool) (err error)

func (*CommandExecutorGitRepository) CloneRepositoryByPathOrUrl added in v0.123.0

func (c *CommandExecutorGitRepository) CloneRepositoryByPathOrUrl(pathOrUrlToClone string, verbose bool) (err error)

func (*CommandExecutorGitRepository) Commit added in v0.120.0

func (c *CommandExecutorGitRepository) Commit(commitOptions *GitCommitOptions) (createdCommit *GitCommit, err error)

func (*CommandExecutorGitRepository) CommitHasParentCommitByCommitHash added in v0.120.0

func (c *CommandExecutorGitRepository) CommitHasParentCommitByCommitHash(hash string) (hasParentCommit bool, err error)

func (*CommandExecutorGitRepository) CreateBranch added in v0.166.0

func (c *CommandExecutorGitRepository) CreateBranch(createOptions *CreateBranchOptions) (err error)

func (*CommandExecutorGitRepository) CreateTag added in v0.135.0

func (c *CommandExecutorGitRepository) CreateTag(options *GitRepositoryCreateTagOptions) (createdTag GitTag, err error)

func (*CommandExecutorGitRepository) DeleteBranchByName added in v0.166.0

func (c *CommandExecutorGitRepository) DeleteBranchByName(name string, verbose bool) (err error)

func (*CommandExecutorGitRepository) Fetch added in v0.167.0

func (c *CommandExecutorGitRepository) Fetch(verbose bool) (err error)

func (*CommandExecutorGitRepository) FileByPathExists added in v0.132.0

func (c *CommandExecutorGitRepository) FileByPathExists(path string, verbose bool) (exists bool, err error)

func (*CommandExecutorGitRepository) GetAsLocalDirectory added in v0.120.0

func (c *CommandExecutorGitRepository) GetAsLocalDirectory() (l *LocalDirectory, err error)

This function was only added to fulfil the current interface. On the long run this method has to be removed.

func (*CommandExecutorGitRepository) GetAsLocalGitRepository added in v0.120.0

func (c *CommandExecutorGitRepository) GetAsLocalGitRepository() (l *LocalGitRepository, err error)

This function was only added to fulfil the current interface. On the long run this method has to be removed.

func (*CommandExecutorGitRepository) GetAuthorEmailByCommitHash added in v0.120.0

func (c *CommandExecutorGitRepository) GetAuthorEmailByCommitHash(hash string) (authorEmail string, err error)

func (*CommandExecutorGitRepository) GetAuthorStringByCommitHash added in v0.120.0

func (c *CommandExecutorGitRepository) GetAuthorStringByCommitHash(hash string) (authorEmail string, err error)

func (*CommandExecutorGitRepository) GetCommitAgeDurationByCommitHash added in v0.120.0

func (c *CommandExecutorGitRepository) GetCommitAgeDurationByCommitHash(hash string) (ageDuration *time.Duration, err error)

func (*CommandExecutorGitRepository) GetCommitAgeSecondsByCommitHash added in v0.120.0

func (c *CommandExecutorGitRepository) GetCommitAgeSecondsByCommitHash(hash string) (ageSeconds float64, err error)

func (*CommandExecutorGitRepository) GetCommitByHash added in v0.120.0

func (c *CommandExecutorGitRepository) GetCommitByHash(hash string) (gitCommit *GitCommit, err error)

func (*CommandExecutorGitRepository) GetCommitMessageByCommitHash added in v0.120.0

func (c *CommandExecutorGitRepository) GetCommitMessageByCommitHash(hash string) (commitMessage string, err error)

func (*CommandExecutorGitRepository) GetCommitParentsByCommitHash added in v0.120.0

func (c *CommandExecutorGitRepository) GetCommitParentsByCommitHash(hash string, options *GitCommitGetParentsOptions) (commitParents []*GitCommit, err error)

func (*CommandExecutorGitRepository) GetCommitTimeByCommitHash added in v0.120.0

func (c *CommandExecutorGitRepository) GetCommitTimeByCommitHash(hash string) (commitTime *time.Time, err error)

func (*CommandExecutorGitRepository) GetCurrentBranchName added in v0.166.0

func (c *CommandExecutorGitRepository) GetCurrentBranchName(verbose bool) (branchName string, err error)

func (*CommandExecutorGitRepository) GetCurrentCommit added in v0.120.0

func (c *CommandExecutorGitRepository) GetCurrentCommit(verbose bool) (currentCommit *GitCommit, err error)

func (*CommandExecutorGitRepository) GetCurrentCommitHash added in v0.120.0

func (c *CommandExecutorGitRepository) GetCurrentCommitHash(verbose bool) (currentCommitHash string, err error)

func (*CommandExecutorGitRepository) GetDirectoryByPath added in v0.178.0

func (c *CommandExecutorGitRepository) GetDirectoryByPath(pathToSubDir ...string) (subDir Directory, err error)

func (*CommandExecutorGitRepository) GetGitStatusOutput added in v0.120.0

func (c *CommandExecutorGitRepository) GetGitStatusOutput(verbose bool) (output string, err error)

func (*CommandExecutorGitRepository) GetHashByTagName added in v0.142.0

func (c *CommandExecutorGitRepository) GetHashByTagName(tagName string) (hash string, err error)

func (*CommandExecutorGitRepository) GetRemoteConfigs added in v0.171.0

func (c *CommandExecutorGitRepository) GetRemoteConfigs(verbose bool) (remoteConfigs []*GitRemoteConfig, err error)

func (*CommandExecutorGitRepository) GetRootDirectory added in v0.129.0

func (c *CommandExecutorGitRepository) GetRootDirectory(verbose bool) (rootDirectory Directory, err error)

func (*CommandExecutorGitRepository) GetRootDirectoryPath added in v0.122.0

func (c *CommandExecutorGitRepository) GetRootDirectoryPath(verbose bool) (rootDirectoryPath string, err error)

func (*CommandExecutorGitRepository) GetTagByName added in v0.135.0

func (c *CommandExecutorGitRepository) GetTagByName(name string) (tag GitTag, err error)

func (*CommandExecutorGitRepository) HasInitialCommit added in v0.120.0

func (c *CommandExecutorGitRepository) HasInitialCommit(verbose bool) (hasInitialCommit bool, err error)

func (*CommandExecutorGitRepository) HasUncommittedChanges added in v0.121.0

func (c *CommandExecutorGitRepository) HasUncommittedChanges(verbose bool) (hasUncommitedChanges bool, err error)

func (*CommandExecutorGitRepository) Init added in v0.120.0

func (*CommandExecutorGitRepository) IsBareRepository added in v0.120.0

func (c *CommandExecutorGitRepository) IsBareRepository(verbose bool) (isBare bool, err error)

func (*CommandExecutorGitRepository) IsGitRepository added in v0.126.0

func (c *CommandExecutorGitRepository) IsGitRepository(verbose bool) (isRepository bool, err error)

func (*CommandExecutorGitRepository) IsInitialized added in v0.120.0

func (c *CommandExecutorGitRepository) IsInitialized(verbose bool) (isInitialited bool, err error)

func (*CommandExecutorGitRepository) ListBranchNames added in v0.166.0

func (c *CommandExecutorGitRepository) ListBranchNames(verbose bool) (branchNames []string, err error)

func (*CommandExecutorGitRepository) ListTagNames added in v0.135.0

func (c *CommandExecutorGitRepository) ListTagNames(verbose bool) (tagNames []string, err error)

func (*CommandExecutorGitRepository) ListTags added in v0.138.0

func (c *CommandExecutorGitRepository) ListTags(verbose bool) (tags []GitTag, err error)

func (*CommandExecutorGitRepository) ListTagsForCommitHash added in v0.142.0

func (c *CommandExecutorGitRepository) ListTagsForCommitHash(hash string, verbose bool) (tags []GitTag, err error)

func (*CommandExecutorGitRepository) MustAddFileByPath added in v0.124.0

func (c *CommandExecutorGitRepository) MustAddFileByPath(pathToAdd string, verbose bool)

func (*CommandExecutorGitRepository) MustAddRemote added in v0.171.0

func (c *CommandExecutorGitRepository) MustAddRemote(remoteOptions *GitRemoteAddOptions)

func (*CommandExecutorGitRepository) MustCheckoutBranchByName added in v0.166.0

func (c *CommandExecutorGitRepository) MustCheckoutBranchByName(name string, verbose bool)

func (*CommandExecutorGitRepository) MustCloneRepository added in v0.123.0

func (c *CommandExecutorGitRepository) MustCloneRepository(repository GitRepository, verbose bool)

func (*CommandExecutorGitRepository) MustCloneRepositoryByPathOrUrl added in v0.123.0

func (c *CommandExecutorGitRepository) MustCloneRepositoryByPathOrUrl(pathOrUrlToClone string, verbose bool)

func (*CommandExecutorGitRepository) MustCommit added in v0.120.0

func (c *CommandExecutorGitRepository) MustCommit(commitOptions *GitCommitOptions) (createdCommit *GitCommit)

func (*CommandExecutorGitRepository) MustCommitHasParentCommitByCommitHash added in v0.120.0

func (c *CommandExecutorGitRepository) MustCommitHasParentCommitByCommitHash(hash string) (hasParentCommit bool)

func (*CommandExecutorGitRepository) MustCreateBranch added in v0.166.0

func (c *CommandExecutorGitRepository) MustCreateBranch(createOptions *CreateBranchOptions)

func (*CommandExecutorGitRepository) MustCreateTag added in v0.135.0

func (c *CommandExecutorGitRepository) MustCreateTag(options *GitRepositoryCreateTagOptions) (createdTag GitTag)

func (*CommandExecutorGitRepository) MustDeleteBranchByName added in v0.166.0

func (c *CommandExecutorGitRepository) MustDeleteBranchByName(name string, verbose bool)

func (*CommandExecutorGitRepository) MustFetch added in v0.167.0

func (c *CommandExecutorGitRepository) MustFetch(verbose bool)

func (*CommandExecutorGitRepository) MustFileByPathExists added in v0.132.0

func (c *CommandExecutorGitRepository) MustFileByPathExists(path string, verbose bool) (exists bool)

func (*CommandExecutorGitRepository) MustGetAsLocalDirectory added in v0.120.0

func (c *CommandExecutorGitRepository) MustGetAsLocalDirectory() (l *LocalDirectory)

func (*CommandExecutorGitRepository) MustGetAsLocalGitRepository added in v0.120.0

func (c *CommandExecutorGitRepository) MustGetAsLocalGitRepository() (l *LocalGitRepository)

func (*CommandExecutorGitRepository) MustGetAuthorEmailByCommitHash added in v0.120.0

func (c *CommandExecutorGitRepository) MustGetAuthorEmailByCommitHash(hash string) (authorEmail string)

func (*CommandExecutorGitRepository) MustGetAuthorStringByCommitHash added in v0.120.0

func (c *CommandExecutorGitRepository) MustGetAuthorStringByCommitHash(hash string) (authorEmail string)

func (*CommandExecutorGitRepository) MustGetCommitAgeDurationByCommitHash added in v0.120.0

func (c *CommandExecutorGitRepository) MustGetCommitAgeDurationByCommitHash(hash string) (ageDuration *time.Duration)

func (*CommandExecutorGitRepository) MustGetCommitAgeSecondsByCommitHash added in v0.120.0

func (c *CommandExecutorGitRepository) MustGetCommitAgeSecondsByCommitHash(hash string) (ageSeconds float64)

func (*CommandExecutorGitRepository) MustGetCommitByHash added in v0.120.0

func (c *CommandExecutorGitRepository) MustGetCommitByHash(hash string) (gitCommit *GitCommit)

func (*CommandExecutorGitRepository) MustGetCommitMessageByCommitHash added in v0.120.0

func (c *CommandExecutorGitRepository) MustGetCommitMessageByCommitHash(hash string) (commitMessage string)

func (*CommandExecutorGitRepository) MustGetCommitParentsByCommitHash added in v0.120.0

func (c *CommandExecutorGitRepository) MustGetCommitParentsByCommitHash(hash string, options *GitCommitGetParentsOptions) (commitParents []*GitCommit)

func (*CommandExecutorGitRepository) MustGetCommitTimeByCommitHash added in v0.120.0

func (c *CommandExecutorGitRepository) MustGetCommitTimeByCommitHash(hash string) (commitTime *time.Time)

func (*CommandExecutorGitRepository) MustGetCurrentBranchName added in v0.166.0

func (c *CommandExecutorGitRepository) MustGetCurrentBranchName(verbose bool) (branchName string)

func (*CommandExecutorGitRepository) MustGetCurrentCommit added in v0.120.0

func (c *CommandExecutorGitRepository) MustGetCurrentCommit(verbose bool) (currentCommit *GitCommit)

func (*CommandExecutorGitRepository) MustGetCurrentCommitHash added in v0.120.0

func (c *CommandExecutorGitRepository) MustGetCurrentCommitHash(verbose bool) (currentCommitHash string)

func (*CommandExecutorGitRepository) MustGetDirectoryByPath added in v0.178.0

func (c *CommandExecutorGitRepository) MustGetDirectoryByPath(pathToSubDir ...string) (subDir Directory)

func (*CommandExecutorGitRepository) MustGetGitStatusOutput added in v0.120.0

func (c *CommandExecutorGitRepository) MustGetGitStatusOutput(verbose bool) (output string)

func (*CommandExecutorGitRepository) MustGetHashByTagName added in v0.142.0

func (c *CommandExecutorGitRepository) MustGetHashByTagName(tagName string) (hash string)

func (*CommandExecutorGitRepository) MustGetRemoteConfigs added in v0.171.0

func (c *CommandExecutorGitRepository) MustGetRemoteConfigs(verbose bool) (remoteConfigs []*GitRemoteConfig)

func (*CommandExecutorGitRepository) MustGetRootDirectory added in v0.129.0

func (c *CommandExecutorGitRepository) MustGetRootDirectory(verbose bool) (rootDirectory Directory)

func (*CommandExecutorGitRepository) MustGetRootDirectoryPath added in v0.122.0

func (c *CommandExecutorGitRepository) MustGetRootDirectoryPath(verbose bool) (rootDirectoryPath string)

func (*CommandExecutorGitRepository) MustGetTagByName added in v0.135.0

func (c *CommandExecutorGitRepository) MustGetTagByName(name string) (tag GitTag)

func (*CommandExecutorGitRepository) MustHasInitialCommit added in v0.120.0

func (c *CommandExecutorGitRepository) MustHasInitialCommit(verbose bool) (hasInitialCommit bool)

func (*CommandExecutorGitRepository) MustHasUncommittedChanges added in v0.121.0

func (c *CommandExecutorGitRepository) MustHasUncommittedChanges(verbose bool) (hasUncommitedChanges bool)

func (*CommandExecutorGitRepository) MustInit added in v0.120.0

func (*CommandExecutorGitRepository) MustIsBareRepository added in v0.120.0

func (c *CommandExecutorGitRepository) MustIsBareRepository(verbose bool) (isBare bool)

func (*CommandExecutorGitRepository) MustIsGitRepository added in v0.126.0

func (c *CommandExecutorGitRepository) MustIsGitRepository(verbose bool) (isRepository bool)

func (*CommandExecutorGitRepository) MustIsInitialized added in v0.120.0

func (c *CommandExecutorGitRepository) MustIsInitialized(verbose bool) (isInitialited bool)

func (*CommandExecutorGitRepository) MustListBranchNames added in v0.166.0

func (c *CommandExecutorGitRepository) MustListBranchNames(verbose bool) (branchNames []string)

func (*CommandExecutorGitRepository) MustListTagNames added in v0.135.0

func (c *CommandExecutorGitRepository) MustListTagNames(verbose bool) (tagNames []string)

func (*CommandExecutorGitRepository) MustListTags added in v0.138.0

func (c *CommandExecutorGitRepository) MustListTags(verbose bool) (tags []GitTag)

func (*CommandExecutorGitRepository) MustListTagsForCommitHash added in v0.142.0

func (c *CommandExecutorGitRepository) MustListTagsForCommitHash(hash string, verbose bool) (tags []GitTag)

func (*CommandExecutorGitRepository) MustPull added in v0.125.0

func (c *CommandExecutorGitRepository) MustPull(verbose bool)

func (*CommandExecutorGitRepository) MustPullFromRemote added in v0.174.0

func (c *CommandExecutorGitRepository) MustPullFromRemote(pullOptions *GitPullFromRemoteOptions)

func (*CommandExecutorGitRepository) MustPush added in v0.123.0

func (c *CommandExecutorGitRepository) MustPush(verbose bool)

func (*CommandExecutorGitRepository) MustPushTagsToRemote added in v0.175.0

func (c *CommandExecutorGitRepository) MustPushTagsToRemote(remoteName string, verbose bool)

func (*CommandExecutorGitRepository) MustPushToRemote added in v0.173.0

func (c *CommandExecutorGitRepository) MustPushToRemote(remoteName string, verbose bool)

func (*CommandExecutorGitRepository) MustRemoteByNameExists added in v0.171.0

func (c *CommandExecutorGitRepository) MustRemoteByNameExists(remoteName string, verbose bool) (remoteExists bool)

func (*CommandExecutorGitRepository) MustRemoteConfigurationExists added in v0.171.0

func (c *CommandExecutorGitRepository) MustRemoteConfigurationExists(config *GitRemoteConfig, verbose bool) (exists bool)

func (*CommandExecutorGitRepository) MustRemoveRemoteByName added in v0.171.0

func (c *CommandExecutorGitRepository) MustRemoveRemoteByName(remoteNameToRemove string, verbose bool)

func (*CommandExecutorGitRepository) MustRunGitCommand added in v0.120.0

func (c *CommandExecutorGitRepository) MustRunGitCommand(gitCommand []string, verbose bool) (commandOutput *CommandOutput)

func (*CommandExecutorGitRepository) MustRunGitCommandAndGetStdoutAsLines added in v0.135.0

func (c *CommandExecutorGitRepository) MustRunGitCommandAndGetStdoutAsLines(command []string, verbose bool) (lines []string)

func (*CommandExecutorGitRepository) MustRunGitCommandAndGetStdoutAsString added in v0.120.0

func (c *CommandExecutorGitRepository) MustRunGitCommandAndGetStdoutAsString(command []string, verbose bool) (stdout string)

func (*CommandExecutorGitRepository) MustSetDefaultAuthor added in v0.125.0

func (c *CommandExecutorGitRepository) MustSetDefaultAuthor(verbose bool)

func (*CommandExecutorGitRepository) MustSetGitConfig added in v0.123.0

func (c *CommandExecutorGitRepository) MustSetGitConfig(options *GitConfigSetOptions)

func (*CommandExecutorGitRepository) MustSetRemoteUrl added in v0.172.0

func (c *CommandExecutorGitRepository) MustSetRemoteUrl(remoteUrl string, verbose bool)

func (*CommandExecutorGitRepository) MustSetUserEmail added in v0.123.0

func (c *CommandExecutorGitRepository) MustSetUserEmail(email string, verbose bool)

func (*CommandExecutorGitRepository) MustSetUserName added in v0.123.0

func (c *CommandExecutorGitRepository) MustSetUserName(name string, verbose bool)

func (*CommandExecutorGitRepository) Pull added in v0.125.0

func (c *CommandExecutorGitRepository) Pull(verbose bool) (err error)

func (*CommandExecutorGitRepository) PullFromRemote added in v0.174.0

func (c *CommandExecutorGitRepository) PullFromRemote(pullOptions *GitPullFromRemoteOptions) (err error)

func (*CommandExecutorGitRepository) Push added in v0.123.0

func (c *CommandExecutorGitRepository) Push(verbose bool) (err error)

func (*CommandExecutorGitRepository) PushTagsToRemote added in v0.175.0

func (c *CommandExecutorGitRepository) PushTagsToRemote(remoteName string, verbose bool) (err error)

func (*CommandExecutorGitRepository) PushToRemote added in v0.173.0

func (c *CommandExecutorGitRepository) PushToRemote(remoteName string, verbose bool) (err error)

func (*CommandExecutorGitRepository) RemoteByNameExists added in v0.171.0

func (c *CommandExecutorGitRepository) RemoteByNameExists(remoteName string, verbose bool) (remoteExists bool, err error)

func (*CommandExecutorGitRepository) RemoteConfigurationExists added in v0.171.0

func (c *CommandExecutorGitRepository) RemoteConfigurationExists(config *GitRemoteConfig, verbose bool) (exists bool, err error)

func (*CommandExecutorGitRepository) RemoveRemoteByName added in v0.171.0

func (c *CommandExecutorGitRepository) RemoveRemoteByName(remoteNameToRemove string, verbose bool) (err error)

func (*CommandExecutorGitRepository) RunGitCommand added in v0.120.0

func (c *CommandExecutorGitRepository) RunGitCommand(gitCommand []string, verbose bool) (commandOutput *CommandOutput, err error)

func (*CommandExecutorGitRepository) RunGitCommandAndGetStdoutAsLines added in v0.135.0

func (c *CommandExecutorGitRepository) RunGitCommandAndGetStdoutAsLines(command []string, verbose bool) (lines []string, err error)

func (*CommandExecutorGitRepository) RunGitCommandAndGetStdoutAsString added in v0.120.0

func (c *CommandExecutorGitRepository) RunGitCommandAndGetStdoutAsString(command []string, verbose bool) (stdout string, err error)

func (*CommandExecutorGitRepository) SetDefaultAuthor added in v0.125.0

func (c *CommandExecutorGitRepository) SetDefaultAuthor(verbose bool) (err error)

func (*CommandExecutorGitRepository) SetGitConfig added in v0.123.0

func (c *CommandExecutorGitRepository) SetGitConfig(options *GitConfigSetOptions) (err error)

func (*CommandExecutorGitRepository) SetRemoteUrl added in v0.172.0

func (c *CommandExecutorGitRepository) SetRemoteUrl(remoteUrl string, verbose bool) (err error)

func (*CommandExecutorGitRepository) SetUserEmail added in v0.123.0

func (c *CommandExecutorGitRepository) SetUserEmail(email string, verbose bool) (err error)

func (*CommandExecutorGitRepository) SetUserName added in v0.123.0

func (c *CommandExecutorGitRepository) SetUserName(name string, verbose bool) (err error)

type CommandLineInterfaceService added in v0.105.0

type CommandLineInterfaceService struct {
}

func CommandLineInterface added in v0.105.0

func CommandLineInterface() (cli *CommandLineInterfaceService)

func NewCommandLineInterfaceService added in v0.105.0

func NewCommandLineInterfaceService() (c *CommandLineInterfaceService)

func (*CommandLineInterfaceService) IsLinePromptOnly added in v0.105.0

func (c *CommandLineInterfaceService) IsLinePromptOnly(line string) (isPromptOnly bool)

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) CheckExitSuccess added in v0.106.0

func (o *CommandOutput) CheckExitSuccess(verbose bool) (err error)

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(removeLastLineIfEmpty bool) (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) IsStderrEmpty added in v0.121.0

func (c *CommandOutput) IsStderrEmpty() (isEmpty bool, err error)

func (*CommandOutput) IsStdoutAndStderrEmpty added in v0.121.0

func (c *CommandOutput) IsStdoutAndStderrEmpty() (isEmpty bool, err error)

func (*CommandOutput) IsStdoutEmpty added in v0.121.0

func (c *CommandOutput) IsStdoutEmpty() (isEmpty bool, err error)

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) MustCheckExitSuccess added in v0.106.0

func (c *CommandOutput) MustCheckExitSuccess(verbose bool)

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(removeLastLineIfEmpty bool) (stdoutLines []string)

func (*CommandOutput) MustGetStdoutAsString added in v0.4.0

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

func (*CommandOutput) MustIsStderrEmpty added in v0.121.0

func (c *CommandOutput) MustIsStderrEmpty() (isEmpty bool)

func (*CommandOutput) MustIsStdoutAndStderrEmpty added in v0.121.0

func (c *CommandOutput) MustIsStdoutAndStderrEmpty() (isEmpty bool)

func (*CommandOutput) MustIsStdoutEmpty added in v0.121.0

func (c *CommandOutput) MustIsStdoutEmpty() (isEmpty bool)

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) MustSetStderrByString added in v0.106.0

func (c *CommandOutput) MustSetStderrByString(stderr string)

func (*CommandOutput) MustSetStdout added in v0.4.0

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

func (*CommandOutput) MustSetStdoutByString added in v0.106.0

func (c *CommandOutput) MustSetStdoutByString(stdout string)

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) SetStderrByString added in v0.106.0

func (o *CommandOutput) SetStderrByString(stderr string) (err error)

func (*CommandOutput) SetStdout added in v0.4.0

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

func (*CommandOutput) SetStdoutByString added in v0.106.0

func (o *CommandOutput) SetStdoutByString(stdout string) (err error)

type CreateBranchOptions added in v0.166.0

type CreateBranchOptions struct {
	// Name of the branch to create:
	Name string

	// Enable verbose output:
	Verbose bool
}

TODO: This should become the generic "CreateBranchOptions" to use everywhere. It then should replace GitlabCreateBranchOptions.

func NewCreateBranchOptions added in v0.166.0

func NewCreateBranchOptions() (c *CreateBranchOptions)

func (*CreateBranchOptions) GetName added in v0.166.0

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

func (*CreateBranchOptions) GetVerbose added in v0.166.0

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

func (*CreateBranchOptions) MustGetName added in v0.166.0

func (c *CreateBranchOptions) MustGetName() (name string)

func (*CreateBranchOptions) MustSetName added in v0.166.0

func (c *CreateBranchOptions) MustSetName(name string)

func (*CreateBranchOptions) SetName added in v0.166.0

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

func (*CreateBranchOptions) SetVerbose added in v0.166.0

func (c *CreateBranchOptions) SetVerbose(verbose 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) GetInitializeWithDefaultAuthor added in v0.105.0

func (c *CreateRepositoryOptions) GetInitializeWithDefaultAuthor() (initializeWithDefaultAuthor 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) SetInitializeWithDefaultAuthor added in v0.105.0

func (c *CreateRepositoryOptions) SetInitializeWithDefaultAuthor(initializeWithDefaultAuthor 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 DependenciesSliceService added in v0.51.0

type DependenciesSliceService struct{}

func DependenciesSlice added in v0.51.0

func DependenciesSlice() (d *DependenciesSliceService)

func NewDependenciesSliceService added in v0.51.0

func NewDependenciesSliceService() (d *DependenciesSliceService)

func (*DependenciesSliceService) AddSourceFileForEveryEntry added in v0.51.0

func (d *DependenciesSliceService) AddSourceFileForEveryEntry(dependencies []Dependency, sourceFile File) (err error)

func (*DependenciesSliceService) GetDependencyNames added in v0.51.0

func (d *DependenciesSliceService) GetDependencyNames(dependencies []Dependency) (dependencyNames []string, err error)

func (*DependenciesSliceService) MustAddSourceFileForEveryEntry added in v0.51.0

func (d *DependenciesSliceService) MustAddSourceFileForEveryEntry(dependencies []Dependency, sourceFile File)

func (*DependenciesSliceService) MustGetDependencyNames added in v0.51.0

func (d *DependenciesSliceService) MustGetDependencyNames(dependencies []Dependency) (dependencyNames []string)

type Dependency added in v0.51.0

type Dependency interface {
	AddSourceFile(File) (err error)
	GetName() (name string, err error)
	GetNewestVersionAsString(authOptions []AuthenticationOption, verbose bool) (newestVersion string, err error)
	IsUpdateAvailable(authOptions []AuthenticationOption, verbose bool) (isUpdateAvailable bool, err error)
	Update(options *UpdateDependenciesOptions) (changeSummary *changesummary.ChangeSummary, err error)
}

A Dependency is used to implement software and other dependencies like container images...

type DependencyGitRepository added in v0.51.0

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

Represents a dependency to (another) git repository.

func NewDependencyGitRepository added in v0.51.0

func NewDependencyGitRepository() (d *DependencyGitRepository)

func (*DependencyGitRepository) AddSourceFile added in v0.51.0

func (d *DependencyGitRepository) AddSourceFile(sourceFile File) (err error)

func (*DependencyGitRepository) GetName added in v0.51.0

func (d *DependencyGitRepository) GetName() (name string, err error)

func (*DependencyGitRepository) GetNewestVersion added in v0.51.0

func (d *DependencyGitRepository) GetNewestVersion(authOptions []AuthenticationOption, verbose bool) (newestVersion Version, err error)

func (*DependencyGitRepository) GetNewestVersionAsString added in v0.51.0

func (d *DependencyGitRepository) GetNewestVersionAsString(authOptions []AuthenticationOption, verbose bool) (newestVersionString string, err error)

func (*DependencyGitRepository) GetSourceFiles added in v0.51.0

func (d *DependencyGitRepository) GetSourceFiles() (sourceFiles []File, err error)

func (*DependencyGitRepository) GetTargetVersion added in v0.51.0

func (d *DependencyGitRepository) GetTargetVersion() (targetVersion Version, err error)

func (*DependencyGitRepository) GetTargetVersionString added in v0.51.0

func (d *DependencyGitRepository) GetTargetVersionString() (targetVersionString string, err error)

func (*DependencyGitRepository) GetUrl added in v0.51.0

func (d *DependencyGitRepository) GetUrl() (url string, err error)

func (*DependencyGitRepository) GetVersion added in v0.51.0

func (d *DependencyGitRepository) GetVersion() (version Version, err error)

func (*DependencyGitRepository) GetVersionString added in v0.51.0

func (d *DependencyGitRepository) GetVersionString() (versionString string, err error)

func (*DependencyGitRepository) IsAtLeastOneSourceFileSet added in v0.51.0

func (d *DependencyGitRepository) IsAtLeastOneSourceFileSet() (isSet bool)

func (*DependencyGitRepository) IsTargetVersionSet added in v0.51.0

func (d *DependencyGitRepository) IsTargetVersionSet() (isSet bool)

func (*DependencyGitRepository) IsUpdateAvailable added in v0.51.0

func (d *DependencyGitRepository) IsUpdateAvailable(authOptions []AuthenticationOption, verbose bool) (isUpdateAvailable bool, err error)

func (*DependencyGitRepository) IsVersionStringUnset added in v0.51.0

func (d *DependencyGitRepository) IsVersionStringUnset() (isUnset bool)

func (*DependencyGitRepository) MustAddSourceFile added in v0.51.0

func (d *DependencyGitRepository) MustAddSourceFile(sourceFile File)

func (*DependencyGitRepository) MustGetName added in v0.51.0

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

func (*DependencyGitRepository) MustGetNewestVersion added in v0.51.0

func (d *DependencyGitRepository) MustGetNewestVersion(authOptions []AuthenticationOption, verbose bool) (newestVersion Version)

func (*DependencyGitRepository) MustGetNewestVersionAsString added in v0.51.0

func (d *DependencyGitRepository) MustGetNewestVersionAsString(authOptions []AuthenticationOption, verbose bool) (newestVersion string)

func (*DependencyGitRepository) MustGetSourceFiles added in v0.51.0

func (d *DependencyGitRepository) MustGetSourceFiles() (sourceFiles []File)

func (*DependencyGitRepository) MustGetTargetVersion added in v0.51.0

func (d *DependencyGitRepository) MustGetTargetVersion() (targeVersion Version)

func (*DependencyGitRepository) MustGetTargetVersionString added in v0.51.0

func (d *DependencyGitRepository) MustGetTargetVersionString() (targetVersionString string)

func (*DependencyGitRepository) MustGetUrl added in v0.51.0

func (d *DependencyGitRepository) MustGetUrl() (url string)

func (*DependencyGitRepository) MustGetVersion added in v0.51.0

func (d *DependencyGitRepository) MustGetVersion() (version Version)

func (*DependencyGitRepository) MustGetVersionString added in v0.51.0

func (d *DependencyGitRepository) MustGetVersionString() (versionString string)

func (*DependencyGitRepository) MustIsUpdateAvailable added in v0.51.0

func (d *DependencyGitRepository) MustIsUpdateAvailable(authOptions []AuthenticationOption, verbose bool) (isUpdateAvailable bool)

func (*DependencyGitRepository) MustSetSourceFiles added in v0.51.0

func (d *DependencyGitRepository) MustSetSourceFiles(sourceFiles []File)

func (*DependencyGitRepository) MustSetTargetVersionString added in v0.51.0

func (d *DependencyGitRepository) MustSetTargetVersionString(targetVersionString string)

func (*DependencyGitRepository) MustSetUrl added in v0.51.0

func (d *DependencyGitRepository) MustSetUrl(url string)

func (*DependencyGitRepository) MustSetVersionString added in v0.51.0

func (d *DependencyGitRepository) MustSetVersionString(versionString string)

func (*DependencyGitRepository) MustUpdate added in v0.51.0

func (d *DependencyGitRepository) MustUpdate(options *UpdateDependenciesOptions) (changeSummary *changesummary.ChangeSummary)

func (*DependencyGitRepository) MustUpdateVersionByStringInSourceFile added in v0.51.0

func (d *DependencyGitRepository) MustUpdateVersionByStringInSourceFile(version string, sourceFile File, options *UpdateDependenciesOptions) (changeSummary *changesummary.ChangeSummary)

func (*DependencyGitRepository) SetSourceFiles added in v0.51.0

func (d *DependencyGitRepository) SetSourceFiles(sourceFiles []File) (err error)

func (*DependencyGitRepository) SetTargetVersionString added in v0.51.0

func (d *DependencyGitRepository) SetTargetVersionString(targetVersionString string) (err error)

func (*DependencyGitRepository) SetUrl added in v0.51.0

func (d *DependencyGitRepository) SetUrl(url string) (err error)

func (*DependencyGitRepository) SetVersionString added in v0.51.0

func (d *DependencyGitRepository) SetVersionString(versionString string) (err error)

func (*DependencyGitRepository) Update added in v0.51.0

func (d *DependencyGitRepository) Update(options *UpdateDependenciesOptions) (changeSummary *changesummary.ChangeSummary, err error)

func (*DependencyGitRepository) UpdateVersionByStringInSourceFile added in v0.51.0

func (d *DependencyGitRepository) UpdateVersionByStringInSourceFile(version string, sourceFile File, options *UpdateDependenciesOptions) (changeSummary *changesummary.ChangeSummary, err error)

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 {
	Chmod(chmodOptions *ChmodOptions) (err error)
	CopyContentToDirectory(destinationDir Directory, verbose bool) (err error)
	Create(verbose bool) (err error)
	CreateSubDirectory(subDirectoryName string, verbose bool) (createdSubDirectory Directory, err error)
	Delete(verbose bool) (err error)
	Exists(verbose bool) (exists bool, err error)
	GetBaseName() (baseName string, err error)
	GetDirName() (dirName string, err error)
	GetFileInDirectory(pathToFile ...string) (file File, err error)
	GetHostDescription() (hostDescription string, err error)
	// Returns the path on the local machine. If the path is not available locally an error is returned.
	GetLocalPath() (localPath string, err error)
	GetParentDirectory() (parentDirectory Directory, err error)
	// Returns the absolute path to the file without any indication of the host.
	GetPath() (dirPath string, err error)
	// TODO rename GetSubDirectory with GetDirectoryByPath to make it consistent.
	GetSubDirectory(path ...string) (subDirectory Directory, err error)
	IsLocalDirectory() (isLocalDirectory bool, err error)
	ListFiles(listFileOptions *parameteroptions.ListFileOptions) (files []File, err error)
	ListSubDirectories(options *parameteroptions.ListDirectoryOptions) (subDirectories []Directory, err error)
	MustChmod(chmodOptions *ChmodOptions)
	MustCopyContentToDirectory(destinationDir Directory, verbose bool)
	MustCreate(verbose bool)
	MustCreateSubDirectory(subDirectoryName string, verbose bool) (createdSubDirectory Directory)
	MustDelete(verbose bool)
	MustExists(verbose bool) (exists bool)
	MustGetBaseName() (baseName string)
	MustGetDirName() (dirName string)
	MustGetFileInDirectory(pathToFile ...string) (file File)
	MustGetHostDescription() (hostDescription string)
	// Returns the path on the local machine. If the path is not available locally an error is returned.
	MustGetLocalPath() (localPath string)
	MustGetParentDirectory() (parentDirectory Directory)
	// Returns the absolute path to the file without any indication of the host.
	MustGetPath() (dirPath string)
	MustGetSubDirectory(path ...string) (subDirectory Directory)
	MustIsLocalDirectory() (isLocalDirectory bool)
	MustListFiles(listFileOptions *parameteroptions.ListFileOptions) (files []File)
	MustListSubDirectories(options *parameteroptions.ListDirectoryOptions) (subDirectories []Directory)

	// All methods below this line can be implemented by embedding the `DirectoryBase` struct:
	CheckExists(verbose bool) (err error)
	CreateFileInDirectory(verbose bool, path ...string) (createdFile File, err error)
	GetFilePathInDirectory(path ...string) (filePath string, err error)
	GetPathAndHostDescription() (dirPath string, hostDescription string, err error)
	DeleteFilesMatching(listFileOptons *parameteroptions.ListFileOptions) (err error)
	FileInDirectoryExists(verbose bool, path ...string) (exists bool, err error)
	ListFilePaths(listFileOptions *parameteroptions.ListFileOptions) (filePaths []string, err error)
	ListSubDirectoryPaths(options *parameteroptions.ListDirectoryOptions) (subDirectoryPaths []string, err error)
	MustCheckExists(verbose bool)
	MustCreateFileInDirectory(verbose bool, path ...string) (createdFile File)
	MustDeleteFilesMatching(listFileOptons *parameteroptions.ListFileOptions)
	MustGetFilePathInDirectory(path ...string) (filePath string)
	MustGetPathAndHostDescription() (pathString string, hostDescription string)
	MustFileInDirectoryExists(verbose bool, path ...string) (exists bool)
	MustListFilePaths(listFileOptions *parameteroptions.ListFileOptions) (filePaths []string)
	MustListSubDirectoryPaths(options *parameteroptions.ListDirectoryOptions) (subDirectoryPaths []string)
	MustReadFileInDirectoryAsInt64(path ...string) (content int64)
	MustReadFileInDirectoryAsLines(path ...string) (content []string)
	MustReadFileInDirectoryAsString(path ...string) (content string)
	MustReadFirstLineOfFileInDirectoryAsString(path ...string) (firstLine string)
	MustWriteStringToFileInDirectory(content string, verbose bool, path ...string) (writtenFile File)
	ReadFileInDirectoryAsInt64(path ...string) (content int64, err error)
	ReadFileInDirectoryAsLines(path ...string) (content []string, err error)
	ReadFileInDirectoryAsString(path ...string) (content string, err error)
	ReadFirstLineOfFileInDirectoryAsString(path ...string) (firstLine string, err error)
	WriteStringToFileInDirectory(content string, verbose bool, path ...string) (writtenFile File, err error)
}

func GetDirectoryInHomeDirectory added in v0.72.0

func GetDirectoryInHomeDirectory(path ...string) (directoryInHome Directory, err error)

func MustGetDirectoryInHomeDirectory added in v0.72.0

func MustGetDirectoryInHomeDirectory(path ...string) (directoryInHome Directory)

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) CheckExists added in v0.114.0

func (d *DirectoryBase) CheckExists(verbose bool) (err error)

func (*DirectoryBase) CreateFileInDirectory added in v0.116.0

func (d *DirectoryBase) CreateFileInDirectory(verbose bool, path ...string) (createdFile File, err error)

func (*DirectoryBase) CreateFileInDirectoryFromString added in v0.14.7

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

func (*DirectoryBase) DeleteFilesMatching added in v0.116.0

func (d *DirectoryBase) DeleteFilesMatching(listFileOptions *parameteroptions.ListFileOptions) (err error)

func (*DirectoryBase) FileInDirectoryExists added in v0.23.0

func (d *DirectoryBase) FileInDirectoryExists(verbose bool, 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) GetPathAndHostDescription added in v0.120.0

func (d *DirectoryBase) GetPathAndHostDescription() (path string, hostDescription string, err error)

func (*DirectoryBase) ListFilePaths added in v0.116.0

func (d *DirectoryBase) ListFilePaths(listFileOptions *parameteroptions.ListFileOptions) (filePaths []string, err error)

func (*DirectoryBase) ListSubDirectoryPaths added in v0.168.0

func (d *DirectoryBase) ListSubDirectoryPaths(options *parameteroptions.ListDirectoryOptions) (subDirectoryPaths []string, err error)

func (*DirectoryBase) MustCheckExists added in v0.114.0

func (d *DirectoryBase) MustCheckExists(verbose bool)

func (*DirectoryBase) MustCreateFileInDirectory added in v0.116.0

func (d *DirectoryBase) MustCreateFileInDirectory(verbose bool, path ...string) (createdFile File)

func (*DirectoryBase) MustCreateFileInDirectoryFromString added in v0.14.7

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

func (*DirectoryBase) MustDeleteFilesMatching added in v0.116.0

func (d *DirectoryBase) MustDeleteFilesMatching(listFileOptions *parameteroptions.ListFileOptions)

func (*DirectoryBase) MustFileInDirectoryExists added in v0.23.0

func (d *DirectoryBase) MustFileInDirectoryExists(verbose bool, 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) MustGetPathAndHostDescription added in v0.120.0

func (d *DirectoryBase) MustGetPathAndHostDescription() (path string, hostDescription string)

func (*DirectoryBase) MustListFilePaths added in v0.116.0

func (d *DirectoryBase) MustListFilePaths(listFileOptions *parameteroptions.ListFileOptions) (filePaths []string)

func (*DirectoryBase) MustListSubDirectoryPaths added in v0.168.0

func (d *DirectoryBase) MustListSubDirectoryPaths(options *parameteroptions.ListDirectoryOptions) (subDirectoryPaths []string)

func (*DirectoryBase) MustReadFileInDirectoryAsInt64 added in v0.127.0

func (d *DirectoryBase) MustReadFileInDirectoryAsInt64(path ...string) (value int64)

func (*DirectoryBase) MustReadFileInDirectoryAsLines added in v0.44.0

func (d *DirectoryBase) MustReadFileInDirectoryAsLines(path ...string) (content []string)

func (*DirectoryBase) MustReadFileInDirectoryAsString added in v0.31.0

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

func (*DirectoryBase) MustReadFirstLineOfFileInDirectoryAsString added in v0.148.0

func (d *DirectoryBase) MustReadFirstLineOfFileInDirectoryAsString(path ...string) (firstLine string)

func (*DirectoryBase) MustSetParentDirectoryForBaseClass added in v0.9.0

func (d *DirectoryBase) MustSetParentDirectoryForBaseClass(parentDirectoryForBaseClass Directory)

func (*DirectoryBase) MustWriteBytesToFile added in v0.150.0

func (d *DirectoryBase) MustWriteBytesToFile(content []byte, verbose bool, path ...string) (writtenFile File)

func (*DirectoryBase) MustWriteStringToFileInDirectory added in v0.93.0

func (d *DirectoryBase) MustWriteStringToFileInDirectory(content string, verbose bool, path ...string) (writtenFile File)

func (*DirectoryBase) ReadFileInDirectoryAsInt64 added in v0.127.0

func (d *DirectoryBase) ReadFileInDirectoryAsInt64(path ...string) (value int64, err error)

func (*DirectoryBase) ReadFileInDirectoryAsLines added in v0.44.0

func (d *DirectoryBase) ReadFileInDirectoryAsLines(path ...string) (content []string, err error)

func (*DirectoryBase) ReadFileInDirectoryAsString added in v0.31.0

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

func (*DirectoryBase) ReadFirstLineOfFileInDirectoryAsString added in v0.148.0

func (d *DirectoryBase) ReadFirstLineOfFileInDirectoryAsString(path ...string) (firstLine string, err error)

func (*DirectoryBase) SetParentDirectoryForBaseClass added in v0.9.0

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

func (*DirectoryBase) WriteBytesToFile added in v0.150.0

func (c *DirectoryBase) WriteBytesToFile(content []byte, verbose bool, path ...string) (writtenFile File, err error)

func (*DirectoryBase) WriteStringToFileInDirectory added in v0.93.0

func (d *DirectoryBase) WriteStringToFileInDirectory(content string, verbose bool, path ...string) (writtenFile File, err error)

TODO: Rename to WriteStringtoFile( to make it more generic. This renaming is needed to bring GitRepository and Directory together.

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 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) GetDeepCopy added in v0.94.0

func (e *ExecService) GetDeepCopy() (deepCopy CommandExecutor)

func (*ExecService) GetHostDescription added in v0.94.0

func (e *ExecService) GetHostDescription() (hostDescription string, err error)

func (*ExecService) MustGetHostDescription added in v0.94.0

func (e *ExecService) MustGetHostDescription() (hostDescription string)

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 FTPService added in v0.48.0

type FTPService struct{}

func FTP added in v0.48.0

func FTP() (f *FTPService)

func NewFTPService added in v0.48.0

func NewFTPService() (f *FTPService)

func (*FTPService) GetDefaultPort added in v0.48.0

func (f *FTPService) GetDefaultPort() (defaultPort int)

type File

type File interface {
	AppendBytes(toWrite []byte, verbose bool) (err error)
	AppendString(toWrite string, verbose bool) (err error)
	Chmod(options *ChmodOptions) (err error)
	Chown(options *ChownOptions) (err error)
	CopyToFile(destFile File, verbose bool) (err error)
	Create(verbose bool) (err error)
	Delete(verbose bool) (err error)
	Exists(verbose bool) (exists bool, err error)
	GetBaseName() (baseName string, err error)
	GetDeepCopy() (deepCopy File)
	GetHostDescription() (hostDescription string, err error)
	GetLocalPath() (localPath string, err error)
	GetLocalPathOrEmptyStringIfUnset() (localPath string, err error)
	GetParentDirectory() (parentDirectory Directory, err error)
	GetPath() (path string, err error)
	GetSizeBytes() (fileSize int64, err error)
	GetUriAsString() (uri string, err error)
	MoveToPath(destPath string, useSudo bool, verbose bool) (movedFile File, err error)
	MustAppendBytes(toWrtie []byte, verbose bool)
	MustAppendString(toWrtie string, verbose bool)
	MustChmod(options *ChmodOptions)
	MustChown(options *ChownOptions)
	MustCopyToFile(destFile File, verbose bool)
	MustCreate(verbose bool)
	MustDelete(verbose bool)
	MustExists(verbose bool) (exists bool)
	MustGetBaseName() (baseName string)
	MustGetHostDescription() (hostDescription string)
	MustGetLocalPath() (localPath string)
	MustGetLocalPathOrEmptyStringIfUnset() (localPath string)
	MustGetPath() (path string)
	MustGetParentDirectory() (parentDirectory Directory)
	MustGetSizeBytes() (fileSize int64)
	MustGetUriAsString() (uri string)
	MustMoveToPath(destPath string, useSudo bool, verbose bool) (movedFile File)
	MustReadAsBytes() (content []byte)
	MustSecurelyDelete(verbose bool)
	MustTruncate(newSizeBytes int64, verbose bool)
	MustWriteBytes(toWrite []byte, verbose bool)
	ReadAsBytes() (content []byte, err error)
	SecurelyDelete(verbose bool) (err error)
	Truncate(newSizeBytes int64, verbose bool) (err error)
	WriteBytes(toWrite []byte, verbose bool) (err error)

	// All methods below this line can be implemented by embedding the `FileBase` struct:
	AppendLine(line string, verbose bool) (err error)
	CheckIsLocalFile(verbose bool) (err error)
	ContainsLine(line string) (containsLine bool, err error)
	CreateParentDirectory(verbose bool) (err error)
	EnsureLineInFile(line string, verbose bool) (err error)
	EnsureEndsWithLineBreak(verbose bool) (err error)
	GetCreationDateByFileName(verbose bool) (creationDate *time.Time, err error)
	GetFileTypeDescription(verbose bool) (fileTypeDescription string, err error)
	GetMimeType(verbose bool) (mimeType string, err error)
	GetNumberOfLinesWithPrefix(prefix string, trimLines bool) (nLines int, err error)
	GetNumberOfNonEmptyLines() (nLines int, err error)
	GetParentDirectoryPath() (parentDirectoryPath string, err error)
	GetPathAndHostDescription() (path string, hostDescription string, err error)
	GetSha256Sum() (sha256sum string, err error)
	GetTextBlocks(verbose bool) (textBlocks []string, err error)
	GetValueAsInt(key string) (value int, err error)
	GetValueAsString(key string) (value string, err error)
	IsContentEqualByComparingSha256Sum(other File, verbose bool) (isMatching bool, err error)
	IsEmptyFile() (isEmpty bool, err error)
	IsLocalFile(verbose bool) (isLocalFile bool, err error)
	IsMatchingSha256Sum(sha256sum string) (isMatching bool, err error)
	IsPgpEncrypted(verbose bool) (isPgpEncrypted bool, err error)
	IsYYYYmmdd_HHMMSSPrefix() (hasDatePrefix bool, err error)
	MustAppendLine(line string, verbose bool)
	MustCheckIsLocalFile(verbose bool)
	MustContainsLine(line string) (containsLine bool)
	MustCreateParentDirectory(verbose bool)
	MustEnsureEndsWithLineBreak(verbose bool)
	MustEnsureLineInFile(line string, verbose bool)
	MustGetCreationDateByFileName(verbose bool) (creationDate *time.Time)
	MustGetFileTypeDescription(verbose bool) (fileTypeDescription string)
	MustGetMimeType(verbose bool) (mimeType string)
	MustGetNumberOfLinesWithPrefix(prefix string, trimLines bool) (nLines int)
	MustGetNumberOfNonEmptyLines() (nLines int)
	MustGetParentDirectoryPath() (parentDirectoryPath string)
	MustGetPathAndHostDescription() (path string, hostDescription string)
	MustGetSha256Sum() (sha256sum string)
	MustGetTextBlocks(verbose bool) (textBlocks []string)
	MustGetValueAsInt(key string) (value int)
	MustGetValueAsString(key string) (value string)
	MustIsContentEqualByComparingSha256Sum(other File, verbose bool) (isMatching bool)
	MustIsEmptyFile() (isEmpty bool)
	MustIsLocalFile(verbose bool) (isLocalFile bool)
	MustIsMatchingSha256Sum(sha256sum string) (isMatching bool)
	MustIsPgpEncrypted(verbose bool) (isPgpEncrypted bool)
	MustIsYYYYmmdd_HHMMSSPrefix() (hasDatePrefix bool)
	MustPrintContentOnStdout()
	MustReadAsBool() (content bool)
	MustReadAsFloat64() (content float64)
	MustReadAsInt() (content int)
	MustReadAsInt64() (content int64)
	MustReadAsLines() (contentLines []string)
	MustReadAsLinesWithoutComments() (contentLines []string)
	MustReadAsTimeTime() (time *time.Time)
	MustReadAsString() (content string)
	MustReadFirstLine() (firstLine string)
	MustReadFirstLineAndTrimSpace() (firstLine string)
	MustReadLastCharAsString() (lastChar string)
	MustReadFirstNBytes(numberOfBytesToRead int) (firstBytes []byte)
	MustRemoveLinesWithPrefix(prefix string, verbose bool)
	MustReplaceBetweenMarkers(verbose bool)
	MustReplaceLineAfterLine(lineToFind string, replaceLineAfterWith string, verbose bool) (changeSummary *changesummary.ChangeSummary)
	MustSortBlocksInFile(verbose bool)
	MustTrimSpacesAtBeginningOfFile(verbose bool)
	MustWriteInt64(toWrite int64, verbose bool)
	MustWriteLines(linesToWrite []string, verbose bool)
	MustWriteString(content string, verbose bool)
	MustWriteTextBlocks(textBlocks []string, verose bool)
	PrintContentOnStdout() (err error)
	ReadAsBool() (content bool, err error)
	ReadAsFloat64() (content float64, err error)
	ReadAsInt() (content int, err error)
	ReadAsInt64() (content int64, err error)
	ReadAsLines() (contentLines []string, err error)
	ReadAsLinesWithoutComments() (contentLines []string, err error)
	ReadAsString() (content string, err error)
	ReadAsTimeTime() (time *time.Time, err error)
	ReadFirstLine() (firstLine string, err error)
	ReadFirstNBytes(numberOfBytesToRead int) (firstBytes []byte, err error)
	ReadFirstLineAndTrimSpace() (firstLine string, err error)
	ReadLastCharAsString() (lastChar string, err error)
	RemoveLinesWithPrefix(prefix string, verbose bool) (err error)
	ReplaceBetweenMarkers(verbose bool) (err error)
	ReplaceLineAfterLine(lineToFind string, replaceLineAfterWith string, verbose bool) (changeSummary *changesummary.ChangeSummary, err error)
	SortBlocksInFile(verbose bool) (err error)
	TrimSpacesAtBeginningOfFile(verbose bool) (err error)
	WriteInt64(toWrite int64, verboe bool) (err error)
	WriteLines(linesToWrite []string, 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 GetFileByOsFile added in v0.1.3

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

func GetFileInHomeDirectory added in v0.72.0

func GetFileInHomeDirectory(path ...string) (fileInHome File, err error)

func MustGetFileByOsFile added in v0.1.3

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

func MustGetFileInHomeDirectory added in v0.72.0

func MustGetFileInHomeDirectory(path ...string) (fileInHome 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) AppendLine added in v0.74.0

func (f *FileBase) AppendLine(line string, verbose bool) (err error)

func (*FileBase) CheckIsLocalFile added in v0.103.3

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

func (*FileBase) ContainsLine added in v0.134.0

func (f *FileBase) ContainsLine(line string) (containsLine bool, err error)

func (*FileBase) CreateParentDirectory added in v0.103.0

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

func (*FileBase) EnsureEndsWithLineBreak added in v0.52.0

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

func (*FileBase) EnsureLineInFile added in v0.74.0

func (f *FileBase) EnsureLineInFile(line string, verbose bool) (err error)

func (*FileBase) GetCreationDateByFileName added in v0.52.0

func (xxx *FileBase) GetCreationDateByFileName(verbose bool) (creationDate *time.Time, err error)

func (*FileBase) GetFileTypeDescription added in v0.52.0

func (f *FileBase) GetFileTypeDescription(verbose bool) (fileTypeDescription string, err error)

func (*FileBase) GetMimeType added in v0.52.0

func (f *FileBase) GetMimeType(verbose bool) (mimeType string, err error)

func (*FileBase) GetNumberOfLinesWithPrefix added in v0.76.0

func (f *FileBase) GetNumberOfLinesWithPrefix(prefix string, trimLines bool) (nLines int, err error)

func (*FileBase) GetNumberOfNonEmptyLines added in v0.83.0

func (f *FileBase) GetNumberOfNonEmptyLines() (nLines int, err error)

func (*FileBase) GetParentDirectoryPath added in v0.52.0

func (f *FileBase) GetParentDirectoryPath() (parentDirectoryPath string, err error)

func (*FileBase) GetParentFileForBaseClass added in v0.1.3

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

func (*FileBase) GetPathAndHostDescription added in v0.151.0

func (f *FileBase) GetPathAndHostDescription() (path string, hostDescription string, 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) GetValueAsInt added in v0.137.0

func (f *FileBase) GetValueAsInt(key string) (value int, err error)

func (*FileBase) GetValueAsString added in v0.137.0

func (f *FileBase) GetValueAsString(key string) (value 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) IsEmptyFile added in v0.52.0

func (f *FileBase) IsEmptyFile() (isEmtpyFile bool, err error)

func (*FileBase) IsLocalFile added in v0.103.3

func (f *FileBase) IsLocalFile(verbose bool) (isLocalFile bool, err error)

Returns true if the file is a file on the local host.

If a file can return a local path the assumption is it is a local file.

func (*FileBase) IsMatchingSha256Sum added in v0.14.3

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

func (*FileBase) IsPgpEncrypted added in v0.52.0

func (f *FileBase) IsPgpEncrypted(verbose bool) (isEncrypted bool, err error)

func (*FileBase) IsYYYYmmdd_HHMMSSPrefix added in v0.52.0

func (f *FileBase) IsYYYYmmdd_HHMMSSPrefix() (hasDatePrefix bool, err error)

func (*FileBase) MustAppendLine added in v0.74.0

func (f *FileBase) MustAppendLine(line string, verbose bool)

func (*FileBase) MustCheckIsLocalFile added in v0.103.3

func (f *FileBase) MustCheckIsLocalFile(verbose bool)

func (*FileBase) MustContainsLine added in v0.134.0

func (f *FileBase) MustContainsLine(line string) (containsLine bool)

func (*FileBase) MustCreateParentDirectory added in v0.103.0

func (f *FileBase) MustCreateParentDirectory(verbose bool)

func (*FileBase) MustEnsureEndsWithLineBreak added in v0.52.0

func (f *FileBase) MustEnsureEndsWithLineBreak(verbose bool)

func (*FileBase) MustEnsureLineInFile added in v0.74.0

func (f *FileBase) MustEnsureLineInFile(line string, verbose bool)

func (*FileBase) MustGetCreationDateByFileName added in v0.52.0

func (f *FileBase) MustGetCreationDateByFileName(verbose bool) (creationDate *time.Time)

func (*FileBase) MustGetFileTypeDescription added in v0.52.0

func (f *FileBase) MustGetFileTypeDescription(verbose bool) (fileTypeDescription string)

func (*FileBase) MustGetMimeType added in v0.52.0

func (f *FileBase) MustGetMimeType(verbose bool) (mimeType string)

func (*FileBase) MustGetNumberOfLinesWithPrefix added in v0.76.0

func (f *FileBase) MustGetNumberOfLinesWithPrefix(prefix string, trimLines bool) (nLines int)

func (*FileBase) MustGetNumberOfNonEmptyLines added in v0.83.0

func (f *FileBase) MustGetNumberOfNonEmptyLines() (nLines int)

func (*FileBase) MustGetParentDirectoryPath added in v0.52.0

func (f *FileBase) MustGetParentDirectoryPath() (parentDirectoryPath string)

func (*FileBase) MustGetParentFileForBaseClass added in v0.1.3

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

func (*FileBase) MustGetPathAndHostDescription added in v0.151.0

func (f *FileBase) MustGetPathAndHostDescription() (path string, hostDescription string)

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) MustGetValueAsInt added in v0.137.0

func (f *FileBase) MustGetValueAsInt(key string) (value int)

func (*FileBase) MustGetValueAsString added in v0.137.0

func (f *FileBase) MustGetValueAsString(key string) (value string)

func (*FileBase) MustIsContentEqualByComparingSha256Sum added in v0.15.0

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

func (*FileBase) MustIsEmptyFile added in v0.52.0

func (f *FileBase) MustIsEmptyFile() (isEmtpyFile bool)

func (*FileBase) MustIsLocalFile added in v0.103.3

func (f *FileBase) MustIsLocalFile(verbose bool) (isLocalFile bool)

func (*FileBase) MustIsMatchingSha256Sum added in v0.14.3

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

func (*FileBase) MustIsPgpEncrypted added in v0.52.0

func (f *FileBase) MustIsPgpEncrypted(verbose bool) (isEncrypted bool)

func (*FileBase) MustIsYYYYmmdd_HHMMSSPrefix added in v0.52.0

func (f *FileBase) MustIsYYYYmmdd_HHMMSSPrefix() (hasDatePrefix bool)

func (*FileBase) MustPrintContentOnStdout added in v0.94.0

func (f *FileBase) MustPrintContentOnStdout()

func (*FileBase) MustReadAsBool added in v0.50.0

func (f *FileBase) MustReadAsBool() (boolValue bool)

func (*FileBase) MustReadAsFloat64 added in v0.52.0

func (f *FileBase) MustReadAsFloat64() (content float64)

func (*FileBase) MustReadAsInt added in v0.75.0

func (f *FileBase) MustReadAsInt() (readValue int)

func (*FileBase) MustReadAsInt64 added in v0.49.0

func (f *FileBase) MustReadAsInt64() (readValue int64)

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) MustReadAsTimeTime added in v0.87.0

func (f *FileBase) MustReadAsTimeTime() (date *time.Time)

func (*FileBase) MustReadFirstLine added in v0.50.0

func (f *FileBase) MustReadFirstLine() (firstLine string)

func (*FileBase) MustReadFirstLineAndTrimSpace added in v0.50.0

func (f *FileBase) MustReadFirstLineAndTrimSpace() (firstLine string)

func (*FileBase) MustReadLastCharAsString added in v0.52.0

func (f *FileBase) MustReadLastCharAsString() (lastChar string)

func (*FileBase) MustRemoveLinesWithPrefix added in v0.117.0

func (f *FileBase) MustRemoveLinesWithPrefix(prefix string, verbose bool)

func (*FileBase) MustReplaceBetweenMarkers added in v0.52.0

func (f *FileBase) MustReplaceBetweenMarkers(verbose bool)

func (*FileBase) MustReplaceLineAfterLine added in v0.51.0

func (f *FileBase) MustReplaceLineAfterLine(lineToFind string, replaceLineAfterWith string, verbose bool) (changeSummary *changesummary.ChangeSummary)

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) MustTrimSpacesAtBeginningOfFile added in v0.52.0

func (f *FileBase) MustTrimSpacesAtBeginningOfFile(verbose bool)

func (*FileBase) MustWriteInt64 added in v0.49.0

func (f *FileBase) MustWriteInt64(toWrite int64, verbose bool)

func (*FileBase) MustWriteLines added in v0.51.0

func (f *FileBase) MustWriteLines(linesToWrite []string, 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) PrintContentOnStdout added in v0.94.0

func (f *FileBase) PrintContentOnStdout() (err error)

func (*FileBase) ReadAsBool added in v0.50.0

func (f *FileBase) ReadAsBool() (boolValue bool, err error)

func (*FileBase) ReadAsFloat64 added in v0.52.0

func (f *FileBase) ReadAsFloat64() (content float64, err error)

func (*FileBase) ReadAsInt added in v0.75.0

func (f *FileBase) ReadAsInt() (readValue int, err error)

func (*FileBase) ReadAsInt64 added in v0.49.0

func (f *FileBase) ReadAsInt64() (readValue int64, err error)

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) ReadAsTimeTime added in v0.87.0

func (f *FileBase) ReadAsTimeTime() (date *time.Time, err error)

func (*FileBase) ReadFirstLine added in v0.50.0

func (f *FileBase) ReadFirstLine() (firstLine string, err error)

func (*FileBase) ReadFirstLineAndTrimSpace added in v0.50.0

func (f *FileBase) ReadFirstLineAndTrimSpace() (firstLine string, err error)

func (*FileBase) ReadLastCharAsString added in v0.52.0

func (f *FileBase) ReadLastCharAsString() (lastChar string, err error)

func (*FileBase) RemoveLinesWithPrefix added in v0.117.0

func (f *FileBase) RemoveLinesWithPrefix(prefix string, verbose bool) (err error)

func (*FileBase) ReplaceBetweenMarkers added in v0.52.0

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

func (*FileBase) ReplaceLineAfterLine added in v0.51.0

func (f *FileBase) ReplaceLineAfterLine(lineToFind string, replaceLineAfterWith string, verbose bool) (changeSummary *changesummary.ChangeSummary, 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) TrimSpacesAtBeginningOfFile added in v0.52.0

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

func (*FileBase) WriteInt64 added in v0.49.0

func (f *FileBase) WriteInt64(toWrite int64, verbose bool) (err error)

func (*FileBase) WriteLines added in v0.51.0

func (f *FileBase) WriteLines(linesToWrite []string, 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 FileInfo added in v0.83.0

type FileInfo struct {
	Path      string
	SizeBytes int64
}

func NewFileInfo added in v0.83.0

func NewFileInfo() (f *FileInfo)

func (*FileInfo) GetPath added in v0.83.0

func (f *FileInfo) GetPath() (path string, err error)

func (*FileInfo) GetPathAndSizeBytes added in v0.83.0

func (f *FileInfo) GetPathAndSizeBytes() (path string, sizeBytes int64, err error)

func (*FileInfo) GetSizeBytes added in v0.83.0

func (f *FileInfo) GetSizeBytes() (sizeBytes int64, err error)

func (*FileInfo) MustGetPath added in v0.83.0

func (f *FileInfo) MustGetPath() (path string)

func (*FileInfo) MustGetPathAndSizeBytes added in v0.83.0

func (f *FileInfo) MustGetPathAndSizeBytes() (path string, sizeBytes int64)

func (*FileInfo) MustGetSizeBytes added in v0.83.0

func (f *FileInfo) MustGetSizeBytes() (sizeBytes int64)

func (*FileInfo) MustSetPath added in v0.83.0

func (f *FileInfo) MustSetPath(path string)

func (*FileInfo) MustSetSizeBytes added in v0.83.0

func (f *FileInfo) MustSetSizeBytes(sizeBytes int64)

func (*FileInfo) SetPath added in v0.83.0

func (f *FileInfo) SetPath(path string) (err error)

func (*FileInfo) SetSizeBytes added in v0.83.0

func (f *FileInfo) SetSizeBytes(sizeBytes int64) (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) MustReadAsString added in v0.89.0

func (f *FilesService) MustReadAsString(path string) (content string)

func (*FilesService) MustWriteStringToFile added in v0.21.2

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

func (*FilesService) ReadAsString added in v0.89.0

func (f *FilesService) ReadAsString(path string) (content string, err error)

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) CreateTag added in v0.142.0

func (g *GitCommit) CreateTag(options *GitRepositoryCreateTagOptions) (createdTag GitTag, err error)

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) GetNewestTagVersion added in v0.144.0

func (g *GitCommit) GetNewestTagVersion(verbose bool) (newestVersion Version, err error)

func (*GitCommit) GetNewestTagVersionOrNilIfUnset added in v0.145.0

func (g *GitCommit) GetNewestTagVersionOrNilIfUnset(verbose bool) (newestVersion Version, err error)

func (*GitCommit) GetParentCommits added in v0.34.0

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

func (*GitCommit) GetRepoRootPathAndHostDescription added in v0.145.0

func (g *GitCommit) GetRepoRootPathAndHostDescription() (repoRootPath string, hostDescription string, err error)

func (*GitCommit) HasParentCommit added in v0.34.0

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

func (*GitCommit) HasVersionTag added in v0.153.0

func (g *GitCommit) HasVersionTag(verbose bool) (hasVersionTag bool, err error)

func (*GitCommit) ListTagNames added in v0.143.0

func (g *GitCommit) ListTagNames(verbose bool) (tagNames []string, err error)

func (*GitCommit) ListTags added in v0.142.0

func (g *GitCommit) ListTags(verbose bool) (tags []GitTag, err error)

func (*GitCommit) ListVersionTagNames added in v0.143.0

func (g *GitCommit) ListVersionTagNames(verbose bool) (tagNames []string, err error)

func (*GitCommit) ListVersionTagVersions added in v0.144.0

func (g *GitCommit) ListVersionTagVersions(verbose bool) (versions []Version, err error)

func (*GitCommit) ListVersionTags added in v0.143.0

func (g *GitCommit) ListVersionTags(verbose bool) (tags []GitTag, err error)

func (*GitCommit) MustCreateTag added in v0.142.0

func (g *GitCommit) MustCreateTag(options *GitRepositoryCreateTagOptions) (createdTag GitTag)

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) MustGetNewestTagVersion added in v0.144.0

func (g *GitCommit) MustGetNewestTagVersion(verbose bool) (newestVersion Version)

func (*GitCommit) MustGetNewestTagVersionOrNilIfUnset added in v0.145.0

func (g *GitCommit) MustGetNewestTagVersionOrNilIfUnset(verbose bool) (newestVersion Version)

func (*GitCommit) MustGetParentCommits added in v0.34.0

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

func (*GitCommit) MustGetRepoRootPathAndHostDescription added in v0.145.0

func (g *GitCommit) MustGetRepoRootPathAndHostDescription() (repoRootPath string, hostDescription string)

func (*GitCommit) MustHasParentCommit added in v0.34.0

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

func (*GitCommit) MustHasVersionTag added in v0.153.0

func (g *GitCommit) MustHasVersionTag(verbose bool) (hasVersionTag bool)

func (*GitCommit) MustListTagNames added in v0.143.0

func (g *GitCommit) MustListTagNames(verbose bool) (tagNames []string)

func (*GitCommit) MustListTags added in v0.142.0

func (g *GitCommit) MustListTags(verbose bool) (tags []GitTag)

func (*GitCommit) MustListVersionTagNames added in v0.143.0

func (g *GitCommit) MustListVersionTagNames(verbose bool) (tagNames []string)

func (*GitCommit) MustListVersionTagVersions added in v0.144.0

func (g *GitCommit) MustListVersionTagVersions(verbose bool) (versions []Version)

func (*GitCommit) MustListVersionTags added in v0.143.0

func (g *GitCommit) MustListVersionTags(verbose bool) (tags []GitTag)

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
}

func NewGitCommitGetParentsOptions added in v0.100.0

func NewGitCommitGetParentsOptions() (g *GitCommitGetParentsOptions)

func (*GitCommitGetParentsOptions) GetIncludeParentsOfParents added in v0.100.0

func (g *GitCommitGetParentsOptions) GetIncludeParentsOfParents() (includeParentsOfParents bool)

func (*GitCommitGetParentsOptions) GetVerbose added in v0.100.0

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

func (*GitCommitGetParentsOptions) SetIncludeParentsOfParents added in v0.100.0

func (g *GitCommitGetParentsOptions) SetIncludeParentsOfParents(includeParentsOfParents bool)

func (*GitCommitGetParentsOptions) SetVerbose added in v0.100.0

func (g *GitCommitGetParentsOptions) SetVerbose(verbose bool)

type GitCommitOptions added in v0.11.0

type GitCommitOptions struct {
	// Message of the commit:
	Message string

	// Allow empty commit:
	AllowEmpty bool

	// Commit all changes, not only the added ones:
	CommitAllChanges bool

	// Enable verbose output
	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) GetCommitAllChanges added in v0.170.0

func (g *GitCommitOptions) GetCommitAllChanges() (commitAllChanges bool)

func (*GitCommitOptions) GetDeepCopy added in v0.170.0

func (g *GitCommitOptions) GetDeepCopy() (deepCopy *GitCommitOptions)

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) SetCommitAllChanges added in v0.170.0

func (g *GitCommitOptions) SetCommitAllChanges(commitAllChanges 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 GitPullFromRemoteOptions added in v0.174.0

type GitPullFromRemoteOptions struct {
	RemoteName string
	BranchName string
	Verbose    bool
}

func NewGitPullFromRemoteOptions added in v0.174.0

func NewGitPullFromRemoteOptions() (g *GitPullFromRemoteOptions)

func (*GitPullFromRemoteOptions) GetBranchName added in v0.174.0

func (o *GitPullFromRemoteOptions) GetBranchName() (branchName string, err error)

func (*GitPullFromRemoteOptions) GetRemoteName added in v0.174.0

func (o *GitPullFromRemoteOptions) GetRemoteName() (remoteName string, err error)

func (*GitPullFromRemoteOptions) GetVerbose added in v0.174.0

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

func (*GitPullFromRemoteOptions) MustGetBranchName added in v0.174.0

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

func (*GitPullFromRemoteOptions) MustGetRemoteName added in v0.174.0

func (g *GitPullFromRemoteOptions) MustGetRemoteName() (remoteName string)

func (*GitPullFromRemoteOptions) MustGetVerbose added in v0.174.0

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

func (*GitPullFromRemoteOptions) MustSetBranchName added in v0.174.0

func (g *GitPullFromRemoteOptions) MustSetBranchName(branchName string)

func (*GitPullFromRemoteOptions) MustSetRemoteName added in v0.174.0

func (g *GitPullFromRemoteOptions) MustSetRemoteName(remoteName string)

func (*GitPullFromRemoteOptions) MustSetVerbose added in v0.174.0

func (g *GitPullFromRemoteOptions) MustSetVerbose(verbose bool)

func (*GitPullFromRemoteOptions) SetBranchName added in v0.174.0

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

func (*GitPullFromRemoteOptions) SetRemoteName added in v0.174.0

func (g *GitPullFromRemoteOptions) SetRemoteName(remoteName string) (err error)

func (*GitPullFromRemoteOptions) SetVerbose added in v0.174.0

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

type GitRemoteAddOptions added in v0.171.0

type GitRemoteAddOptions struct {
	RemoteName string
	RemoteUrl  string
	Verbose    bool
}

func NewGitRemoteAddOptions added in v0.171.0

func NewGitRemoteAddOptions() (g *GitRemoteAddOptions)

func (*GitRemoteAddOptions) GetRemoteName added in v0.171.0

func (o *GitRemoteAddOptions) GetRemoteName() (remoteName string, err error)

func (*GitRemoteAddOptions) GetRemoteUrl added in v0.171.0

func (o *GitRemoteAddOptions) GetRemoteUrl() (remoteUrl string, err error)

func (*GitRemoteAddOptions) GetVerbose added in v0.171.0

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

func (*GitRemoteAddOptions) MustGetRemoteName added in v0.171.0

func (g *GitRemoteAddOptions) MustGetRemoteName() (remoteName string)

func (*GitRemoteAddOptions) MustGetRemoteUrl added in v0.171.0

func (g *GitRemoteAddOptions) MustGetRemoteUrl() (remoteUrl string)

func (*GitRemoteAddOptions) MustGetVerbose added in v0.171.0

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

func (*GitRemoteAddOptions) MustSetRemoteName added in v0.171.0

func (g *GitRemoteAddOptions) MustSetRemoteName(remoteName string)

func (*GitRemoteAddOptions) MustSetRemoteUrl added in v0.171.0

func (g *GitRemoteAddOptions) MustSetRemoteUrl(remoteUrl string)

func (*GitRemoteAddOptions) MustSetVerbose added in v0.171.0

func (g *GitRemoteAddOptions) MustSetVerbose(verbose bool)

func (*GitRemoteAddOptions) SetRemoteName added in v0.171.0

func (g *GitRemoteAddOptions) SetRemoteName(remoteName string) (err error)

func (*GitRemoteAddOptions) SetRemoteUrl added in v0.171.0

func (g *GitRemoteAddOptions) SetRemoteUrl(remoteUrl string) (err error)

func (*GitRemoteAddOptions) SetVerbose added in v0.171.0

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

type GitRemoteConfig added in v0.171.0

type GitRemoteConfig struct {
	RemoteName string
	UrlFetch   string
	UrlPush    string
}

func NewGitRemoteConfig added in v0.171.0

func NewGitRemoteConfig() (gitRemoteConfig *GitRemoteConfig)

func (*GitRemoteConfig) Equals added in v0.171.0

func (c *GitRemoteConfig) Equals(other *GitRemoteConfig) (equals bool)

func (*GitRemoteConfig) GetRemoteName added in v0.171.0

func (g *GitRemoteConfig) GetRemoteName() (remoteName string, err error)

func (*GitRemoteConfig) GetUrlFetch added in v0.171.0

func (g *GitRemoteConfig) GetUrlFetch() (urlFetch string, err error)

func (*GitRemoteConfig) GetUrlPush added in v0.171.0

func (g *GitRemoteConfig) GetUrlPush() (urlPush string, err error)

func (*GitRemoteConfig) MustGetRemoteName added in v0.171.0

func (g *GitRemoteConfig) MustGetRemoteName() (remoteName string)

func (*GitRemoteConfig) MustGetUrlFetch added in v0.171.0

func (g *GitRemoteConfig) MustGetUrlFetch() (urlFetch string)

func (*GitRemoteConfig) MustGetUrlPush added in v0.171.0

func (g *GitRemoteConfig) MustGetUrlPush() (urlPush string)

func (*GitRemoteConfig) MustSetRemoteName added in v0.171.0

func (g *GitRemoteConfig) MustSetRemoteName(remoteName string)

func (*GitRemoteConfig) MustSetUrlFetch added in v0.171.0

func (g *GitRemoteConfig) MustSetUrlFetch(urlFetch string)

func (*GitRemoteConfig) MustSetUrlPush added in v0.171.0

func (g *GitRemoteConfig) MustSetUrlPush(urlPush string)

func (*GitRemoteConfig) SetRemoteName added in v0.171.0

func (g *GitRemoteConfig) SetRemoteName(remoteName string) (err error)

func (*GitRemoteConfig) SetUrlFetch added in v0.171.0

func (g *GitRemoteConfig) SetUrlFetch(urlFetch string) (err error)

func (*GitRemoteConfig) SetUrlPush added in v0.171.0

func (g *GitRemoteConfig) SetUrlPush(urlPush string) (err error)

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 GitRepository, err error)

func (*GitRepositoriesService) CloneGitRepositoryToTemporaryDirectory added in v0.14.1

func (g *GitRepositoriesService) CloneGitRepositoryToTemporaryDirectory(toClone GitRepository, verbose bool) (repo GitRepository, 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 GitRepository, err error)

func (*GitRepositoriesService) CreateTemporaryInitializedRepository added in v0.11.0

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

func (*GitRepositoriesService) MustCloneGitRepositoryToDirectory added in v0.14.1

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

func (*GitRepositoriesService) MustCloneGitRepositoryToTemporaryDirectory added in v0.14.1

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

func (*GitRepositoriesService) MustCloneToDirectoryByPath added in v0.11.0

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

func (*GitRepositoriesService) MustCloneToTemporaryDirectory added in v0.11.0

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

func (*GitRepositoriesService) MustCreateTemporaryInitializedRepository added in v0.11.0

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

type GitRepository added in v0.11.0

type GitRepository interface {
	AddRemote(options *GitRemoteAddOptions) (err error)
	AddFileByPath(pathToAdd string, verbose bool) (err error)
	CheckoutBranchByName(name string, verbose bool) (err error)
	CloneRepository(repository GitRepository, verbose bool) (err error)
	CloneRepositoryByPathOrUrl(pathOrUrl string, verbose bool) (err error)
	Commit(commitOptions *GitCommitOptions) (createdCommit *GitCommit, err error)
	CommitHasParentCommitByCommitHash(hash string) (hasParentCommit bool, err error)
	CreateBranch(createOptions *CreateBranchOptions) (err error)
	Create(verbose bool) (err error)
	CreateFileInDirectory(verbose bool, filePath ...string) (createdFile File, err error)
	CreateSubDirectory(subDirectoryName string, verbose bool) (createdSubDirectory Directory, err error)
	CreateTag(createOptions *GitRepositoryCreateTagOptions) (createdTag GitTag, err error)
	Delete(verbose bool) (err error)
	DeleteBranchByName(name string, verbose bool) (err error)
	DirectoryByPathExists(verbose bool, path ...string) (exists bool, err error)
	Exists(verbose bool) (exists bool, err error)
	Fetch(verbose bool) (err error)
	FileByPathExists(path string, verbose bool) (exists bool, err error)
	// TODO: Will be removed as there should be no need to explitly get as local Directory:
	GetAsLocalDirectory() (localDirectory *LocalDirectory, err error)
	// TODO: Will be removed as there should be no need to explitly get as local GitRepository:
	GetAsLocalGitRepository() (localGitRepository *LocalGitRepository, err error)
	GetAuthorEmailByCommitHash(hash string) (authorEmail string, err error)
	GetAuthorStringByCommitHash(hash string) (authorString string, err error)
	GetDirectoryByPath(pathToSubDir ...string) (subDir Directory, 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)
	GetCurrentBranchName(verbose bool) (branchName string, err error)
	GetCurrentCommit(verbose bool) (commit *GitCommit, err error)
	GetCurrentCommitHash(verbose bool) (currentCommitHash string, err error)
	GetGitStatusOutput(verbose bool) (output string, err error)
	GetHashByTagName(tagName string) (hash string, err error)
	GetHostDescription() (hostDescription string, err error)
	GetPath() (path string, err error)
	GetRemoteConfigs(verbose bool) (remoteConfigs []*GitRemoteConfig, err error)
	GetRootDirectory(verbose bool) (directory Directory, err error)
	GetRootDirectoryPath(verbose bool) (path string, err error)
	HasInitialCommit(verbose bool) (hasInitialCommit bool, err error)
	HasUncommittedChanges(verbose bool) (hasUncommitedChanges bool, err error)
	Init(options *CreateRepositoryOptions) (err error)
	IsBareRepository(verbose bool) (isBareRepository bool, err error)
	// Returns true if pointing to an existing git repository, false otherwise
	IsGitRepository(verbose bool) (isRepository bool, err error)
	IsInitialized(verbose bool) (isInitialited bool, err error)
	ListBranchNames(verbose bool) (branchNames []string, err error)
	ListFilePaths(listFileOptions *parameteroptions.ListFileOptions) (filePaths []string, err error)
	ListFiles(listFileOptions *parameteroptions.ListFileOptions) (files []File, err error)
	ListTagNames(verbose bool) (tagNames []string, err error)
	ListTags(verbose bool) (tags []GitTag, err error)
	ListTagsForCommitHash(hash string, verbose bool) (tags []GitTag, err error)
	MustAddRemote(options *GitRemoteAddOptions)
	MustAddFileByPath(pathToAdd string, verbose bool)
	MustCheckoutBranchByName(name string, verbose bool)
	MustCloneRepository(repository GitRepository, verbose bool)
	MustCloneRepositoryByPathOrUrl(pathOrUrl string, verbose bool)
	MustCommit(commitOptions *GitCommitOptions) (createdCommit *GitCommit)
	MustCommitHasParentCommitByCommitHash(hash string) (hasParentCommit bool)
	MustCreate(verbose bool)
	MustCreateBranch(createOptions *CreateBranchOptions)
	MustCreateFileInDirectory(verbose bool, filePath ...string) (createdFile File)
	MustCreateSubDirectory(subDirectoryName string, verbose bool) (createdSubDirectory Directory)
	MustCreateTag(createOptions *GitRepositoryCreateTagOptions) (createdTag GitTag)
	MustDelete(verbose bool)
	MustDeleteBranchByName(name string, verbose bool)
	MustDirectoryByPathExists(verbose bool, path ...string) (exists bool)
	MustExists(verbose bool) (exists bool)
	MustFetch(verbose bool)
	MustFileByPathExists(path string, verbose bool) (exists bool)
	// TODO: Will be removed as there should be no need to explitly get a local Directory:
	MustGetAsLocalDirectory() (localDirectory *LocalDirectory)
	// TODO: Will be removed as there should be no need to explitly get as local GitRepository:
	MustGetAsLocalGitRepository() (localGitRepository *LocalGitRepository)
	MustGetDirectoryByPath(pathToSubDir ...string) (subDir Directory)
	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)
	MustGetCurrentBranchName(verbose bool) (branchName string)
	MustGetCurrentCommit(verbose bool) (commit *GitCommit)
	MustGetCurrentCommitHash(verbose bool) (currentCommitHash string)
	MustGetGitStatusOutput(verbose bool) (output string)
	MustGetHashByTagName(tagName string) (hash string)
	MustGetHostDescription() (hostDescription string)
	MustGetPath() (path string)
	MustGetRemoteConfigs(verbose bool) (remoteConfigs []*GitRemoteConfig)
	MustGetRootDirectory(verbose bool) (directory Directory)
	MustGetRootDirectoryPath(verbose bool) (path string)
	MustHasInitialCommit(verbose bool) (hasInitialCommit bool)
	MustHasUncommittedChanges(verbose bool) (hasUncommitedChanges bool)
	MustInit(options *CreateRepositoryOptions)
	MustIsBareRepository(verbose bool) (isBareRepository bool)
	MustIsGitRepository(verbose bool) (isRepository bool)
	MustIsInitialized(verbose bool) (isInitialited bool)
	MustListBranchNames(verbose bool) (branchNames []string)
	MustListFilePaths(listFileOptions *parameteroptions.ListFileOptions) (filePaths []string)
	MustListFiles(listFileOptions *parameteroptions.ListFileOptions) (files []File)
	MustListTagNames(verbose bool) (tagNames []string)
	MustListTags(verbose bool) (tags []GitTag)
	MustListTagsForCommitHash(hash string, verbose bool) (tags []GitTag)
	MustRemoteByNameExists(remoteName string, verbose bool) (remoteExists bool)
	MustRemoteConfigurationExists(config *GitRemoteConfig, verbose bool) (exists bool)
	MustRemoveRemoteByName(remoteName string, verbose bool)
	MustPull(verbose bool)
	MustPullFromRemote(pullOptions *GitPullFromRemoteOptions)
	MustPush(verbose bool)
	MustPushTagsToRemote(remoteName string, verbose bool)
	MustPushToRemote(remoteName string, verbose bool)
	MustSetGitConfig(options *GitConfigSetOptions)
	MustSetRemoteUrl(remoteUrl string, verbose bool)
	RemoteByNameExists(remoteName string, verbose bool) (remoteExists bool, err error)
	RemoteConfigurationExists(config *GitRemoteConfig, verbose bool) (exists bool, err error)
	RemoveRemoteByName(remoteName string, verbose bool) (err error)
	Pull(verbose bool) (err error)
	PullFromRemote(pullOptions *GitPullFromRemoteOptions) (err error)
	Push(verbose bool) (err error)
	PushTagsToRemote(remoteName string, verbose bool) (err error)
	PushToRemote(remoteName string, verbose bool) (err error)
	SetGitConfig(options *GitConfigSetOptions) (err error)
	SetRemoteUrl(remoteUrl string, verbose bool) (err error)

	// All methods below this line can be implemented by embedding the `GitRepositoryBase` struct:
	AddFilesByPath(pathsToAdd []string, verbose bool) (err error)
	BranchByNameExists(branchName string, verbose bool) (branchExists bool, err error)
	CheckHasNoUncommittedChanges(verbose bool) (err error)
	CheckIsGolangApplication(verbose bool) (err error)
	CheckIsGolangPackage(verbose bool) (err error)
	CheckIsOnLocalhost(verbose bool) (err error)
	CheckIsPreCommitRepository(verbose bool) (err error)
	CommitAndPush(commitOptions *GitCommitOptions) (createdCommit *GitCommit, err error)
	CommitIfUncommittedChanges(commitOptions *GitCommitOptions) (createdCommit *GitCommit, err error)
	CreateAndInit(options *CreateRepositoryOptions) (err error)
	EnsureMainReadmeMdExists(verbose bool) (err error)
	GetCurrentCommitMessage(verbose bool) (currentCommitMessage string, err error)
	GetCurrentCommitsNewestVersion(verbose bool) (newestVersion Version, err error)
	GetCurrentCommitsNewestVersionOrNilIfNotPresent(verbose bool) (newestVersion Version, err error)
	GetFileByPath(path ...string) (fileInRepo File, err error)
	GetLatestTagVersion(verbose bool) (latestTagVersion Version, err error)
	GetLatestTagVersionAsString(verbose bool) (latestTagVersion string, err error)
	GetLatestTagVersionOrNilIfNotFound(verbose bool) (latestTagVersion Version, err error)
	GetPathAndHostDescription() (path string, hostDescription string, err error)
	HasNoUncommittedChanges(verbose bool) (noUncommitedChnages bool, err error)
	IsGolangApplication(verbose bool) (isGolangApplication bool, err error)
	IsGolangPackage(verbose bool) (isGolangPackage bool, err error)
	IsOnLocalhost(verbose bool) (isOnLocalhost bool, err error)
	IsPreCommitRepository(verbose bool) (isPreCommitRepository bool, err error)
	ListVersionTags(verbose bool) (versionTags []GitTag, err error)
	MustAddFilesByPath(pathsToAdd []string, verbose bool)
	MustBranchByNameExists(branchName string, verbose bool) (branchExists bool)
	MustCheckHasNoUncommittedChanges(verbose bool)
	MustCheckIsGolangApplication(verbose bool)
	MustCheckIsGolangPackage(verbose bool)
	MustCheckIsOnLocalhost(verbose bool)
	MustCheckIsPreCommitRepository(verbose bool)
	MustCommitAndPush(commitOptions *GitCommitOptions) (createdCommit *GitCommit)
	MustCommitIfUncommittedChanges(commitOptions *GitCommitOptions) (createdCommit *GitCommit)
	MustCreateAndInit(options *CreateRepositoryOptions)
	MustEnsureMainReadmeMdExists(verbose bool)
	MustGetCurrentCommitMessage(verbose bool) (currentCommitMessage string)
	MustGetCurrentCommitsNewestVersion(verbose bool) (newestVersion Version)
	MustGetCurrentCommitsNewestVersionOrNilIfNotPresent(verbose bool) (newestVersion Version)
	MustGetFileByPath(path ...string) (fileInRepo File)
	MustGetLatestTagVersion(verbose bool) (latestTagVersion Version)
	MustGetLatestTagVersionAsString(verbose bool) (latestTagVersion string)
	MustGetLatestTagVersionOrNilIfNotFound(verbose bool) (latestTagVersion Version)
	MustGetPathAndHostDescription() (path string, hostDescription string)
	MustHasNoUncommittedChanges(verbose bool) (noUncommitedChnages bool)
	MustIsGolangApplication(verbose bool) (isGolangApplication bool)
	MustIsGolangPackage(verbose bool) (isGolangPackage bool)
	MustIsOnLocalhost(verbose bool) (isOnLocalhost bool)
	MustIsPreCommitRepository(verbose bool) (isPreCommitRepository bool)
	MustListVersionTags(verbose bool) (versionTags []GitTag)
	MustWriteBytesToFile(content []byte, verbose bool, path ...string) (writtenFile File)
	MustWriteStringToFile(content string, verbose bool, path ...string) (writtenFile File)
	WriteBytesToFile(content []byte, verbose bool, path ...string) (writtenFile File, err error)
	WriteStringToFile(content string, verbose bool, path ...string) (writtenFile File, err error)
}

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

func GetGitRepositoryByDirectory added in v0.165.0

func GetGitRepositoryByDirectory(directory Directory) (repository GitRepository, err error)

func GetLocalGitReposioryFromDirectory added in v0.13.1

func GetLocalGitReposioryFromDirectory(directory Directory) (repo GitRepository, err error)

func MustGetGitRepositoryByDirectory added in v0.165.0

func MustGetGitRepositoryByDirectory(directory Directory) (repository GitRepository)

func MustGetLocalGitReposioryFromDirectory added in v0.13.1

func MustGetLocalGitReposioryFromDirectory(directory Directory) (repo GitRepository)

type GitRepositoryBase added in v0.120.0

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

func NewGitRepositoryBase added in v0.120.0

func NewGitRepositoryBase() (g *GitRepositoryBase)

func (*GitRepositoryBase) AddFilesByPath added in v0.160.0

func (g *GitRepositoryBase) AddFilesByPath(pathsToAdd []string, verbose bool) (err error)

func (*GitRepositoryBase) BranchByNameExists added in v0.166.0

func (g *GitRepositoryBase) BranchByNameExists(branchName string, verbose bool) (branchExists bool, err error)

func (*GitRepositoryBase) CheckHasNoUncommittedChanges added in v0.155.0

func (g *GitRepositoryBase) CheckHasNoUncommittedChanges(verbose bool) (err error)

func (*GitRepositoryBase) CheckIsGolangApplication added in v0.151.0

func (g *GitRepositoryBase) CheckIsGolangApplication(verbose bool) (err error)

func (*GitRepositoryBase) CheckIsGolangPackage added in v0.157.0

func (g *GitRepositoryBase) CheckIsGolangPackage(verbose bool) (err error)

func (*GitRepositoryBase) CheckIsOnLocalhost added in v0.158.0

func (g *GitRepositoryBase) CheckIsOnLocalhost(verbose bool) (err error)

func (*GitRepositoryBase) CheckIsPreCommitRepository added in v0.179.0

func (g *GitRepositoryBase) CheckIsPreCommitRepository(verbose bool) (err error)

func (*GitRepositoryBase) CommitAndPush added in v0.123.0

func (g *GitRepositoryBase) CommitAndPush(commitOptions *GitCommitOptions) (createdCommit *GitCommit, err error)

func (*GitRepositoryBase) CommitIfUncommittedChanges added in v0.170.0

func (g *GitRepositoryBase) CommitIfUncommittedChanges(commitOptions *GitCommitOptions) (createdCommit *GitCommit, err error)

func (*GitRepositoryBase) ContainsGoSourceFileOfMainPackageWithMainFunction added in v0.150.0

func (g *GitRepositoryBase) ContainsGoSourceFileOfMainPackageWithMainFunction(verbose bool) (mainFound bool, err error)

func (*GitRepositoryBase) CreateAndInit added in v0.120.0

func (g *GitRepositoryBase) CreateAndInit(createOptions *CreateRepositoryOptions) (err error)

func (*GitRepositoryBase) DirectoryByPathExists added in v0.178.0

func (g *GitRepositoryBase) DirectoryByPathExists(verbose bool, path ...string) (exists bool, err error)

func (*GitRepositoryBase) EnsureMainReadmeMdExists added in v0.177.0

func (g *GitRepositoryBase) EnsureMainReadmeMdExists(verbose bool) (err error)

func (*GitRepositoryBase) GetCurrentCommitMessage added in v0.169.0

func (g *GitRepositoryBase) GetCurrentCommitMessage(verbose bool) (currentCommitMessage string, err error)

func (*GitRepositoryBase) GetCurrentCommitsNewestVersion added in v0.146.0

func (g *GitRepositoryBase) GetCurrentCommitsNewestVersion(verbose bool) (newestVersion Version, err error)

func (*GitRepositoryBase) GetCurrentCommitsNewestVersionOrNilIfNotPresent added in v0.146.0

func (g *GitRepositoryBase) GetCurrentCommitsNewestVersionOrNilIfNotPresent(verbose bool) (newestVersion Version, err error)

func (*GitRepositoryBase) GetFileByPath added in v0.152.0

func (g *GitRepositoryBase) GetFileByPath(path ...string) (file File, err error)

func (*GitRepositoryBase) GetLatestTagVersion added in v0.140.0

func (g *GitRepositoryBase) GetLatestTagVersion(verbose bool) (latestTagVersion Version, err error)

func (*GitRepositoryBase) GetLatestTagVersionAsString added in v0.141.1

func (g *GitRepositoryBase) GetLatestTagVersionAsString(verbose bool) (latestTagVersion string, err error)

func (*GitRepositoryBase) GetLatestTagVersionOrNilIfNotFound added in v0.159.0

func (g *GitRepositoryBase) GetLatestTagVersionOrNilIfNotFound(verbose bool) (latestTagVersion Version, err error)

func (*GitRepositoryBase) GetParentRepositoryForBaseClass added in v0.120.0

func (g *GitRepositoryBase) GetParentRepositoryForBaseClass() (parentRepositoryForBaseClass GitRepository, err error)

func (*GitRepositoryBase) GetPathAndHostDescription added in v0.151.0

func (g *GitRepositoryBase) GetPathAndHostDescription() (path string, hostDescription string, err error)

func (*GitRepositoryBase) HasNoUncommittedChanges added in v0.154.0

func (g *GitRepositoryBase) HasNoUncommittedChanges(verbose bool) (hasNoUncommittedChanges bool, err error)

func (*GitRepositoryBase) IsGolangApplication added in v0.150.0

func (g *GitRepositoryBase) IsGolangApplication(verbose bool) (isGolangApplication bool, err error)

func (*GitRepositoryBase) IsGolangPackage added in v0.156.0

func (g *GitRepositoryBase) IsGolangPackage(verbose bool) (isGolangPackage bool, err error)

func (*GitRepositoryBase) IsOnLocalhost added in v0.158.0

func (g *GitRepositoryBase) IsOnLocalhost(verbose bool) (isOnLocalhost bool, err error)

func (*GitRepositoryBase) IsPreCommitRepository added in v0.178.0

func (g *GitRepositoryBase) IsPreCommitRepository(verbose bool) (isPreCommitRepository bool, err error)

func (*GitRepositoryBase) ListVersionTags added in v0.139.0

func (g *GitRepositoryBase) ListVersionTags(verbose bool) (versionTags []GitTag, err error)

func (*GitRepositoryBase) MustAddFilesByPath added in v0.160.0

func (g *GitRepositoryBase) MustAddFilesByPath(pathsToAdd []string, verbose bool)

func (*GitRepositoryBase) MustBranchByNameExists added in v0.166.0

func (g *GitRepositoryBase) MustBranchByNameExists(branchName string, verbose bool) (branchExists bool)

func (*GitRepositoryBase) MustCheckHasNoUncommittedChanges added in v0.155.0

func (g *GitRepositoryBase) MustCheckHasNoUncommittedChanges(verbose bool)

func (*GitRepositoryBase) MustCheckIsGolangApplication added in v0.151.0

func (g *GitRepositoryBase) MustCheckIsGolangApplication(verbose bool)

func (*GitRepositoryBase) MustCheckIsGolangPackage added in v0.157.0

func (g *GitRepositoryBase) MustCheckIsGolangPackage(verbose bool)

func (*GitRepositoryBase) MustCheckIsOnLocalhost added in v0.158.0

func (g *GitRepositoryBase) MustCheckIsOnLocalhost(verbose bool)

func (*GitRepositoryBase) MustCheckIsPreCommitRepository added in v0.179.0

func (g *GitRepositoryBase) MustCheckIsPreCommitRepository(verbose bool)

func (*GitRepositoryBase) MustCommitAndPush added in v0.123.0

func (g *GitRepositoryBase) MustCommitAndPush(commitOptions *GitCommitOptions) (createdCommit *GitCommit)

func (*GitRepositoryBase) MustCommitIfUncommittedChanges added in v0.170.0

func (g *GitRepositoryBase) MustCommitIfUncommittedChanges(commitOptions *GitCommitOptions) (createdCommit *GitCommit)

func (*GitRepositoryBase) MustContainsGoSourceFileOfMainPackageWithMainFunction added in v0.150.0

func (g *GitRepositoryBase) MustContainsGoSourceFileOfMainPackageWithMainFunction(verbose bool) (mainFound bool)

func (*GitRepositoryBase) MustCreateAndInit added in v0.120.0

func (g *GitRepositoryBase) MustCreateAndInit(createOptions *CreateRepositoryOptions)

func (*GitRepositoryBase) MustDirectoryByPathExists added in v0.178.0

func (g *GitRepositoryBase) MustDirectoryByPathExists(verbose bool, path ...string) (exists bool)

func (*GitRepositoryBase) MustEnsureMainReadmeMdExists added in v0.177.0

func (g *GitRepositoryBase) MustEnsureMainReadmeMdExists(verbose bool)

func (*GitRepositoryBase) MustGetCurrentCommitMessage added in v0.169.0

func (g *GitRepositoryBase) MustGetCurrentCommitMessage(verbose bool) (currentCommitMessage string)

func (*GitRepositoryBase) MustGetCurrentCommitsNewestVersion added in v0.146.0

func (g *GitRepositoryBase) MustGetCurrentCommitsNewestVersion(verbose bool) (newestVersion Version)

func (*GitRepositoryBase) MustGetCurrentCommitsNewestVersionOrNilIfNotPresent added in v0.146.0

func (g *GitRepositoryBase) MustGetCurrentCommitsNewestVersionOrNilIfNotPresent(verbose bool) (newestVersion Version)

func (*GitRepositoryBase) MustGetFileByPath added in v0.152.0

func (g *GitRepositoryBase) MustGetFileByPath(path ...string) (file File)

func (*GitRepositoryBase) MustGetLatestTagVersion added in v0.140.0

func (g *GitRepositoryBase) MustGetLatestTagVersion(verbose bool) (latestTagVersion Version)

func (*GitRepositoryBase) MustGetLatestTagVersionAsString added in v0.141.1

func (g *GitRepositoryBase) MustGetLatestTagVersionAsString(verbose bool) (latestTagVersion string)

func (*GitRepositoryBase) MustGetLatestTagVersionOrNilIfNotFound added in v0.159.0

func (g *GitRepositoryBase) MustGetLatestTagVersionOrNilIfNotFound(verbose bool) (latestTagVersion Version)

func (*GitRepositoryBase) MustGetParentRepositoryForBaseClass added in v0.120.0

func (g *GitRepositoryBase) MustGetParentRepositoryForBaseClass() (parentRepositoryForBaseClass GitRepository)

func (*GitRepositoryBase) MustGetPathAndHostDescription added in v0.151.0

func (g *GitRepositoryBase) MustGetPathAndHostDescription() (path string, hostDescription string)

func (*GitRepositoryBase) MustHasNoUncommittedChanges added in v0.154.0

func (g *GitRepositoryBase) MustHasNoUncommittedChanges(verbose bool) (hasNoUncommittedChanges bool)

func (*GitRepositoryBase) MustIsGolangApplication added in v0.150.0

func (g *GitRepositoryBase) MustIsGolangApplication(verbose bool) (isGolangApplication bool)

func (*GitRepositoryBase) MustIsGolangPackage added in v0.156.0

func (g *GitRepositoryBase) MustIsGolangPackage(verbose bool) (isGolangPackage bool)

func (*GitRepositoryBase) MustIsOnLocalhost added in v0.158.0

func (g *GitRepositoryBase) MustIsOnLocalhost(verbose bool) (isOnLocalhost bool)

func (*GitRepositoryBase) MustIsPreCommitRepository added in v0.178.0

func (g *GitRepositoryBase) MustIsPreCommitRepository(verbose bool) (isPreCommitRepository bool)

func (*GitRepositoryBase) MustListVersionTags added in v0.140.0

func (g *GitRepositoryBase) MustListVersionTags(verbose bool) (versionTags []GitTag)

func (*GitRepositoryBase) MustSetParentRepositoryForBaseClass added in v0.120.0

func (g *GitRepositoryBase) MustSetParentRepositoryForBaseClass(parentRepositoryForBaseClass GitRepository)

func (*GitRepositoryBase) MustWriteStringToFile added in v0.150.0

func (g *GitRepositoryBase) MustWriteStringToFile(content string, verbose bool, path ...string) (writtenFile File)

func (*GitRepositoryBase) SetParentRepositoryForBaseClass added in v0.120.0

func (g *GitRepositoryBase) SetParentRepositoryForBaseClass(parentRepositoryForBaseClass GitRepository) (err error)

func (*GitRepositoryBase) WriteStringToFile added in v0.150.0

func (g *GitRepositoryBase) WriteStringToFile(content string, verbose bool, path ...string) (writtenFile File, err error)

type GitRepositoryCreateTagOptions added in v0.135.0

type GitRepositoryCreateTagOptions struct {
	// Commit hash to tag.
	// If not set the currently checked out commit is tagged (depends on the implementation if supported)
	CommitHash string

	// Name and comment/ message of the tag:
	TagName    string
	TagComment string

	Verbose              bool
	PushTagsToAllRemotes bool
}

func NewGitRepositoryCreateTagOptions added in v0.135.0

func NewGitRepositoryCreateTagOptions() (g *GitRepositoryCreateTagOptions)

func (*GitRepositoryCreateTagOptions) GetCommitHash added in v0.142.0

func (g *GitRepositoryCreateTagOptions) GetCommitHash() (commitHash string, err error)

func (*GitRepositoryCreateTagOptions) GetDeepCopy added in v0.142.0

func (*GitRepositoryCreateTagOptions) GetPushTagsToAllRemotes added in v0.135.0

func (g *GitRepositoryCreateTagOptions) GetPushTagsToAllRemotes() (pushTagsToAllRemotes bool, err error)

func (*GitRepositoryCreateTagOptions) GetTagComment added in v0.135.0

func (g *GitRepositoryCreateTagOptions) GetTagComment() (tagComment string, err error)

func (*GitRepositoryCreateTagOptions) GetTagCommentOrDefaultIfUnset added in v0.135.0

func (g *GitRepositoryCreateTagOptions) GetTagCommentOrDefaultIfUnset() (tagComment string)

func (*GitRepositoryCreateTagOptions) GetTagName added in v0.135.0

func (g *GitRepositoryCreateTagOptions) GetTagName() (tagName string, err error)

func (*GitRepositoryCreateTagOptions) GetTagNameOrEmptyStringIfUnset added in v0.135.0

func (g *GitRepositoryCreateTagOptions) GetTagNameOrEmptyStringIfUnset() (tagName string)

func (*GitRepositoryCreateTagOptions) GetVerbose added in v0.135.0

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

func (*GitRepositoryCreateTagOptions) IsCommitHashSet added in v0.142.0

func (g *GitRepositoryCreateTagOptions) IsCommitHashSet() (isSet bool)

func (*GitRepositoryCreateTagOptions) IsTagCommentSet added in v0.135.0

func (g *GitRepositoryCreateTagOptions) IsTagCommentSet() (isSet bool)

func (*GitRepositoryCreateTagOptions) MustGetCommitHash added in v0.142.0

func (g *GitRepositoryCreateTagOptions) MustGetCommitHash() (commitHash string)

func (*GitRepositoryCreateTagOptions) MustGetPushTagsToAllRemotes added in v0.135.0

func (g *GitRepositoryCreateTagOptions) MustGetPushTagsToAllRemotes() (pushTagsToAllRemotes bool)

func (*GitRepositoryCreateTagOptions) MustGetTagComment added in v0.135.0

func (g *GitRepositoryCreateTagOptions) MustGetTagComment() (tagComment string)

func (*GitRepositoryCreateTagOptions) MustGetTagName added in v0.135.0

func (g *GitRepositoryCreateTagOptions) MustGetTagName() (tagName string)

func (*GitRepositoryCreateTagOptions) MustGetVerbose added in v0.135.0

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

func (*GitRepositoryCreateTagOptions) MustSetCommitHash added in v0.142.0

func (g *GitRepositoryCreateTagOptions) MustSetCommitHash(commitHash string)

func (*GitRepositoryCreateTagOptions) MustSetPushTagsToAllRemotes added in v0.135.0

func (g *GitRepositoryCreateTagOptions) MustSetPushTagsToAllRemotes(pushTagsToAllRemotes bool)

func (*GitRepositoryCreateTagOptions) MustSetTagComment added in v0.135.0

func (g *GitRepositoryCreateTagOptions) MustSetTagComment(tagComment string)

func (*GitRepositoryCreateTagOptions) MustSetTagName added in v0.135.0

func (g *GitRepositoryCreateTagOptions) MustSetTagName(tagName string)

func (*GitRepositoryCreateTagOptions) MustSetVerbose added in v0.135.0

func (g *GitRepositoryCreateTagOptions) MustSetVerbose(verbose bool)

func (*GitRepositoryCreateTagOptions) SetCommitHash added in v0.142.0

func (g *GitRepositoryCreateTagOptions) SetCommitHash(commitHash string) (err error)

func (*GitRepositoryCreateTagOptions) SetPushTagsToAllRemotes added in v0.135.0

func (g *GitRepositoryCreateTagOptions) SetPushTagsToAllRemotes(pushTagsToAllRemotes bool) (err error)

func (*GitRepositoryCreateTagOptions) SetTagComment added in v0.135.0

func (g *GitRepositoryCreateTagOptions) SetTagComment(tagComment string) (err error)

func (*GitRepositoryCreateTagOptions) SetTagName added in v0.135.0

func (g *GitRepositoryCreateTagOptions) SetTagName(tagName string) (err error)

func (*GitRepositoryCreateTagOptions) SetVerbose added in v0.135.0

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

type GitRepositoryTag added in v0.130.0

type GitRepositoryTag struct {
	GitTagBase
	// contains filtered or unexported fields
}

func GetGitRepositoryTagByName added in v0.130.0

func GetGitRepositoryTagByName(tagName string) (g *GitRepositoryTag, err error)

func GetGitRepositoryTagByNameAndRepository added in v0.130.0

func GetGitRepositoryTagByNameAndRepository(tagName string, gitRepository GitRepository) (g *GitRepositoryTag, err error)

func MustGetGitRepositoryTagByName added in v0.130.0

func MustGetGitRepositoryTagByName(tagName string) (g *GitRepositoryTag)

func MustGetGitRepositoryTagByNameAndRepository added in v0.130.0

func MustGetGitRepositoryTagByNameAndRepository(tagName string, gitRepository GitRepository) (g *GitRepositoryTag)

func NewGitRepositoryTag added in v0.130.0

func NewGitRepositoryTag() (g *GitRepositoryTag)

func (*GitRepositoryTag) GetGitRepository added in v0.130.0

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

func (*GitRepositoryTag) GetHash added in v0.142.0

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

func (*GitRepositoryTag) GetName added in v0.130.0

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

func (*GitRepositoryTag) GetVersion added in v0.130.0

func (g *GitRepositoryTag) GetVersion() (version Version, err error)

func (*GitRepositoryTag) IsVersionTag added in v0.130.0

func (g *GitRepositoryTag) IsVersionTag() (isVersionTag bool, err error)

func (*GitRepositoryTag) MustGetGitRepository added in v0.130.0

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

func (*GitRepositoryTag) MustGetHash added in v0.142.0

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

func (*GitRepositoryTag) MustGetName added in v0.130.0

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

func (*GitRepositoryTag) MustGetVersion added in v0.130.0

func (g *GitRepositoryTag) MustGetVersion() (version Version)

func (*GitRepositoryTag) MustIsVersionTag added in v0.130.0

func (g *GitRepositoryTag) MustIsVersionTag() (isVersionTag bool)

func (*GitRepositoryTag) MustSetGitRepository added in v0.130.0

func (g *GitRepositoryTag) MustSetGitRepository(gitRepository GitRepository)

func (*GitRepositoryTag) MustSetName added in v0.130.0

func (g *GitRepositoryTag) MustSetName(name string)

func (*GitRepositoryTag) SetGitRepository added in v0.130.0

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

func (*GitRepositoryTag) SetName added in v0.130.0

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

type GitService added in v0.50.0

type GitService struct {
}

func Git added in v0.50.0

func Git() (git *GitService)

func NewGitService added in v0.50.0

func NewGitService() (g *GitService)

func (*GitService) GetRepositoryRootPathByPath added in v0.50.0

func (g *GitService) GetRepositoryRootPathByPath(path string, verbose bool) (repoRootPath string, err error)

func (*GitService) MustGetRepositoryRootPathByPath added in v0.50.0

func (g *GitService) MustGetRepositoryRootPathByPath(path string, verbose bool) (repoRootPath string)

type GitTag added in v0.34.2

type GitTag interface {
	GetHash() (hash string, err error)
	GetName() (name string, err error)
	GetGitRepository() (repo GitRepository, err error)
	IsVersionTag() (isVersionTag bool, err error)
	SetName(name string) (err error)
	MustGetHash() (hash string)
	MustGetName() (name string)
	MustGetGitRepository() (repo GitRepository)
	MustIsVersionTag() (isVersionTag bool)
	MustSetName(name string)

	// These function can be implemented by embedding the GitTagBase struct:
	GetVersion() (version Version, err error)
	MustGetVersion() (version Version)
}

type GitTagBase added in v0.140.0

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

func NewGitTagBase added in v0.140.0

func NewGitTagBase() (g *GitTagBase)

func (*GitTagBase) GetParentGitTagForBaseClass added in v0.140.0

func (g *GitTagBase) GetParentGitTagForBaseClass() (parentGitTagForBaseClass GitTag, err error)

func (*GitTagBase) GetVersion added in v0.140.0

func (g *GitTagBase) GetVersion() (version Version, err error)

func (*GitTagBase) MustGetParentGitTagForBaseClass added in v0.140.0

func (g *GitTagBase) MustGetParentGitTagForBaseClass() (parentGitTagForBaseClass GitTag)

func (*GitTagBase) MustGetVersion added in v0.140.0

func (g *GitTagBase) MustGetVersion() (version Version)

func (*GitTagBase) MustSetParentGitTagForBaseClass added in v0.140.0

func (g *GitTagBase) MustSetParentGitTagForBaseClass(parentGitTagForBaseClass GitTag)

func (*GitTagBase) SetParentGitTagForBaseClass added in v0.140.0

func (g *GitTagBase) SetParentGitTagForBaseClass(parentGitTagForBaseClass GitTag) (err error)

type GitignoreFile added in v0.162.0

type GitignoreFile struct {
	File
}

func GetGitignoreFileByFile added in v0.162.0

func GetGitignoreFileByFile(fileToUse File) (gitignoreFile *GitignoreFile, err error)

func GetGitignoreFileByPath added in v0.162.0

func GetGitignoreFileByPath(filePath string) (gitignoreFile *GitignoreFile, err error)

func GetGitignoreFileInGitRepository added in v0.163.0

func GetGitignoreFileInGitRepository(gitRepository GitRepository) (gitignoreFile *GitignoreFile, err error)

func MustGetGitignoreFileByFile added in v0.162.0

func MustGetGitignoreFileByFile(fileToUse File) (gitignoreFile *GitignoreFile)

func MustGetGitignoreFileByPath added in v0.162.0

func MustGetGitignoreFileByPath(filePath string) (gitignoreFile *GitignoreFile)

func MustGetGitignoreFileInGitRepository added in v0.163.0

func MustGetGitignoreFileInGitRepository(gitRepository GitRepository) (gitignoreFile *GitignoreFile)

func NewGitignoreFile added in v0.162.0

func NewGitignoreFile() (g *GitignoreFile)

func (*GitignoreFile) AddDirToIgnore added in v0.162.0

func (g *GitignoreFile) AddDirToIgnore(pathToIgnore string, comment string, verbose bool) (err error)

func (*GitignoreFile) AddFileToIgnore added in v0.162.0

func (g *GitignoreFile) AddFileToIgnore(pathToIgnore string, comment string, verbose bool) (err error)

func (*GitignoreFile) ContainsIgnore added in v0.162.0

func (g *GitignoreFile) ContainsIgnore(pathToCheck string) (containsIgnore bool, err error)

func (*GitignoreFile) GetIgnoredPaths added in v0.162.0

func (g *GitignoreFile) GetIgnoredPaths() (ignoredPaths []string, err error)

func (*GitignoreFile) MustAddDirToIgnore added in v0.162.0

func (g *GitignoreFile) MustAddDirToIgnore(pathToIgnore string, comment string, verbose bool)

func (*GitignoreFile) MustAddFileToIgnore added in v0.162.0

func (g *GitignoreFile) MustAddFileToIgnore(pathToIgnore string, comment string, verbose bool)

func (*GitignoreFile) MustContainsIgnore added in v0.162.0

func (g *GitignoreFile) MustContainsIgnore(pathToCheck string) (containsIgnore bool)

func (*GitignoreFile) MustGetIgnoredPaths added in v0.162.0

func (g *GitignoreFile) MustGetIgnoredPaths() (ignoredPaths []string)

func (*GitignoreFile) MustReformat added in v0.162.0

func (g *GitignoreFile) MustReformat(verbose bool)

func (*GitignoreFile) Reformat added in v0.162.0

func (g *GitignoreFile) Reformat(verbose bool) (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 GitlabBranch added in v0.46.0

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

func NewGitlabBranch added in v0.46.0

func NewGitlabBranch() (g *GitlabBranch)

func (*GitlabBranch) CopyFileToBranch added in v0.88.0

func (g *GitlabBranch) CopyFileToBranch(filePath string, targetBranch *GitlabBranch, verbose bool) (targetFile *GitlabRepositoryFile, err error)

func (*GitlabBranch) CreateFromDefaultBranch added in v0.46.0

func (g *GitlabBranch) CreateFromDefaultBranch(verbose bool) (err error)

func (*GitlabBranch) CreateMergeRequest added in v0.55.0

func (g *GitlabBranch) CreateMergeRequest(options *GitlabCreateMergeRequestOptions) (mergeRequest *GitlabMergeRequest, err error)

func (*GitlabBranch) Delete added in v0.46.0

func (g *GitlabBranch) Delete(options *GitlabDeleteBranchOptions) (err error)

func (*GitlabBranch) DeleteRepositoryFile added in v0.88.0

func (g *GitlabBranch) DeleteRepositoryFile(filePath string, commitMessage string, verbose bool) (err error)

func (*GitlabBranch) Exists added in v0.46.0

func (g *GitlabBranch) Exists() (exists bool, err error)

func (*GitlabBranch) GetBranches added in v0.46.0

func (g *GitlabBranch) GetBranches() (branches *GitlabBranches, err error)

func (*GitlabBranch) GetDeepCopy added in v0.88.0

func (g *GitlabBranch) GetDeepCopy() (copy *GitlabBranch)

func (*GitlabBranch) GetGitlab added in v0.46.0

func (g *GitlabBranch) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabBranch) GetGitlabBranches added in v0.54.0

func (g *GitlabBranch) GetGitlabBranches() (branches *GitlabBranches, err error)

func (*GitlabBranch) GetGitlabProject added in v0.46.0

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

func (*GitlabBranch) GetLatestCommit added in v0.73.0

func (g *GitlabBranch) GetLatestCommit(verbose bool) (latestCommit *GitlabCommit, err error)

func (*GitlabBranch) GetLatestCommitHashAsString added in v0.57.0

func (g *GitlabBranch) GetLatestCommitHashAsString(verbose bool) (commitHash string, err error)

func (*GitlabBranch) GetMergeRequests added in v0.55.0

func (g *GitlabBranch) GetMergeRequests() (mergeRequests *GitlabProjectMergeRequests, err error)

func (*GitlabBranch) GetName added in v0.46.0

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

func (*GitlabBranch) GetNativeBranchesClient added in v0.46.0

func (g *GitlabBranch) GetNativeBranchesClient() (nativeClient *gitlab.BranchesService, err error)

func (*GitlabBranch) GetNativeBranchesClientAndId added in v0.46.0

func (g *GitlabBranch) GetNativeBranchesClientAndId() (nativeClient *gitlab.BranchesService, projectId int, err error)

func (*GitlabBranch) GetProjectId added in v0.46.0

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

func (*GitlabBranch) GetProjectUrl added in v0.46.0

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

func (*GitlabBranch) GetRawResponse added in v0.57.0

func (g *GitlabBranch) GetRawResponse() (rawResponse *gitlab.Branch, err error)

func (*GitlabBranch) GetRepositoryFile added in v0.88.0

func (g *GitlabBranch) GetRepositoryFile(filePath string, verbose bool) (repositoryFile *GitlabRepositoryFile, err error)

func (*GitlabBranch) GetRepositoryFileSha256Sum added in v0.88.0

func (g *GitlabBranch) GetRepositoryFileSha256Sum(filePath string, verbose bool) (sha256sum string, err error)

func (*GitlabBranch) MustCopyFileToBranch added in v0.88.0

func (g *GitlabBranch) MustCopyFileToBranch(filePath string, targetBranch *GitlabBranch, verbose bool) (targetFile *GitlabRepositoryFile)

func (*GitlabBranch) MustCreateFromDefaultBranch added in v0.46.0

func (g *GitlabBranch) MustCreateFromDefaultBranch(verbose bool)

func (*GitlabBranch) MustCreateMergeRequest added in v0.55.0

func (g *GitlabBranch) MustCreateMergeRequest(options *GitlabCreateMergeRequestOptions) (mergeRequest *GitlabMergeRequest)

func (*GitlabBranch) MustDelete added in v0.46.0

func (g *GitlabBranch) MustDelete(options *GitlabDeleteBranchOptions)

func (*GitlabBranch) MustDeleteRepositoryFile added in v0.88.0

func (g *GitlabBranch) MustDeleteRepositoryFile(filePath string, commitMessage string, verbose bool)

func (*GitlabBranch) MustExists added in v0.46.0

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

func (*GitlabBranch) MustGetBranches added in v0.46.0

func (g *GitlabBranch) MustGetBranches() (branches *GitlabBranches)

func (*GitlabBranch) MustGetGitlab added in v0.46.0

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

func (*GitlabBranch) MustGetGitlabBranches added in v0.55.0

func (g *GitlabBranch) MustGetGitlabBranches() (branches *GitlabBranches)

func (*GitlabBranch) MustGetGitlabProject added in v0.46.0

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

func (*GitlabBranch) MustGetLatestCommit added in v0.73.0

func (g *GitlabBranch) MustGetLatestCommit(verbose bool) (latestCommit *GitlabCommit)

func (*GitlabBranch) MustGetLatestCommitHashAsString added in v0.57.0

func (g *GitlabBranch) MustGetLatestCommitHashAsString(verbose bool) (commitHash string)

func (*GitlabBranch) MustGetMergeRequests added in v0.55.0

func (g *GitlabBranch) MustGetMergeRequests() (mergeRequests *GitlabProjectMergeRequests)

func (*GitlabBranch) MustGetName added in v0.46.0

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

func (*GitlabBranch) MustGetNativeBranchesClient added in v0.46.0

func (g *GitlabBranch) MustGetNativeBranchesClient() (nativeClient *gitlab.BranchesService)

func (*GitlabBranch) MustGetNativeBranchesClientAndId added in v0.46.0

func (g *GitlabBranch) MustGetNativeBranchesClientAndId() (nativeClient *gitlab.BranchesService, projectId int)

func (*GitlabBranch) MustGetProjectId added in v0.46.0

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

func (*GitlabBranch) MustGetProjectUrl added in v0.46.0

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

func (*GitlabBranch) MustGetRawResponse added in v0.57.0

func (g *GitlabBranch) MustGetRawResponse() (rawResponse *gitlab.Branch)

func (*GitlabBranch) MustGetRepositoryFile added in v0.88.0

func (g *GitlabBranch) MustGetRepositoryFile(filePath string, verbose bool) (repositoryFile *GitlabRepositoryFile)

func (*GitlabBranch) MustGetRepositoryFileSha256Sum added in v0.88.0

func (g *GitlabBranch) MustGetRepositoryFileSha256Sum(filePath string, verbose bool) (sha256sum string)

func (*GitlabBranch) MustReadFileContentAsString added in v0.88.0

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

func (*GitlabBranch) MustRepositoryFileExists added in v0.88.0

func (g *GitlabBranch) MustRepositoryFileExists(filePath string, verbose bool) (exists bool)

func (*GitlabBranch) MustSetGitlabProject added in v0.46.0

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

func (*GitlabBranch) MustSetName added in v0.46.0

func (g *GitlabBranch) MustSetName(name string)

func (*GitlabBranch) MustSyncFilesToBranch added in v0.88.0

func (g *GitlabBranch) MustSyncFilesToBranch(options *GitlabSyncBranchOptions)

func (*GitlabBranch) MustSyncFilesToBranchUsingMergeRequest added in v0.88.0

func (g *GitlabBranch) MustSyncFilesToBranchUsingMergeRequest(options *GitlabSyncBranchOptions) (createdMergeRequest *GitlabMergeRequest)

func (*GitlabBranch) MustWriteFileContent added in v0.73.0

func (g *GitlabBranch) MustWriteFileContent(options *GitlabWriteFileOptions) (gitlabRepositoryFile *GitlabRepositoryFile)

func (*GitlabBranch) ReadFileContentAsString added in v0.88.0

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

func (*GitlabBranch) RepositoryFileExists added in v0.88.0

func (g *GitlabBranch) RepositoryFileExists(filePath string, verbose bool) (exists bool, err error)

func (*GitlabBranch) SetGitlabProject added in v0.46.0

func (g *GitlabBranch) SetGitlabProject(gitlabProject *GitlabProject) (err error)

func (*GitlabBranch) SetName added in v0.46.0

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

func (*GitlabBranch) SyncFilesToBranch added in v0.88.0

func (g *GitlabBranch) SyncFilesToBranch(options *GitlabSyncBranchOptions) (err error)

func (*GitlabBranch) SyncFilesToBranchUsingMergeRequest added in v0.88.0

func (g *GitlabBranch) SyncFilesToBranchUsingMergeRequest(options *GitlabSyncBranchOptions) (createdMergeRequest *GitlabMergeRequest, err error)

func (*GitlabBranch) WriteFileContent added in v0.73.0

func (g *GitlabBranch) WriteFileContent(options *GitlabWriteFileOptions) (gitlabRepositoryFile *GitlabRepositoryFile, err error)

type GitlabBranches added in v0.46.0

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

func NewGitlabBranches added in v0.46.0

func NewGitlabBranches() (g *GitlabBranches)

func (*GitlabBranches) BranchByNameExists added in v0.46.0

func (g *GitlabBranches) BranchByNameExists(branchName string) (exists bool, err error)

func (*GitlabBranches) CreateBranch added in v0.46.0

func (g *GitlabBranches) CreateBranch(options *GitlabCreateBranchOptions) (createdBranch *GitlabBranch, err error)

func (*GitlabBranches) CreateBranchFromDefaultBranch added in v0.46.0

func (g *GitlabBranches) CreateBranchFromDefaultBranch(branchName string, verbose bool) (createdBranch *GitlabBranch, err error)

func (*GitlabBranches) DeleteAllBranchesExceptDefaultBranch added in v0.46.0

func (g *GitlabBranches) DeleteAllBranchesExceptDefaultBranch(verbose bool) (err error)

func (*GitlabBranches) GetBranchByName added in v0.46.0

func (g *GitlabBranches) GetBranchByName(branchName string) (branch *GitlabBranch, err error)

func (*GitlabBranches) GetBranchNames added in v0.46.0

func (g *GitlabBranches) GetBranchNames(verbose bool) (branchNames []string, err error)

func (*GitlabBranches) GetBranchNamesExceptDefaultBranch added in v0.46.0

func (g *GitlabBranches) GetBranchNamesExceptDefaultBranch(verbose bool) (branchNames []string, err error)

func (*GitlabBranches) GetBranchesExceptDefaultBranch added in v0.46.0

func (g *GitlabBranches) GetBranchesExceptDefaultBranch(verbose bool) (branches []*GitlabBranch, err error)

func (*GitlabBranches) GetDefaultBranchName added in v0.46.0

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

func (*GitlabBranches) GetFilesFromListWithDiffBetweenBranches added in v0.88.0

func (g *GitlabBranches) GetFilesFromListWithDiffBetweenBranches(branchA *GitlabBranch, branchB *GitlabBranch, filesToCheck []string, verbose bool) (filesWithDiffBetweenBranches []string, err error)

func (*GitlabBranches) GetGitlab added in v0.46.0

func (g *GitlabBranches) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabBranches) GetGitlabProject added in v0.46.0

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

func (*GitlabBranches) GetNativeBranchesClient added in v0.46.0

func (g *GitlabBranches) GetNativeBranchesClient() (nativeBranches *gitlab.BranchesService, err error)

func (*GitlabBranches) GetNativeBranchesClientAndId added in v0.46.0

func (g *GitlabBranches) GetNativeBranchesClientAndId() (nativeClient *gitlab.BranchesService, projectId int, err error)

func (*GitlabBranches) GetProjectId added in v0.46.0

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

func (*GitlabBranches) GetProjectUrl added in v0.46.0

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

func (*GitlabBranches) MustBranchByNameExists added in v0.46.0

func (g *GitlabBranches) MustBranchByNameExists(branchName string) (exists bool)

func (*GitlabBranches) MustCreateBranch added in v0.46.0

func (g *GitlabBranches) MustCreateBranch(options *GitlabCreateBranchOptions) (createdBranch *GitlabBranch)

func (*GitlabBranches) MustCreateBranchFromDefaultBranch added in v0.46.0

func (g *GitlabBranches) MustCreateBranchFromDefaultBranch(branchName string, verbose bool) (createdBranch *GitlabBranch)

func (*GitlabBranches) MustDeleteAllBranchesExceptDefaultBranch added in v0.46.0

func (g *GitlabBranches) MustDeleteAllBranchesExceptDefaultBranch(verbose bool)

func (*GitlabBranches) MustGetBranchByName added in v0.46.0

func (g *GitlabBranches) MustGetBranchByName(branchName string) (branch *GitlabBranch)

func (*GitlabBranches) MustGetBranchNames added in v0.46.0

func (g *GitlabBranches) MustGetBranchNames(verbose bool) (branchNames []string)

func (*GitlabBranches) MustGetBranchNamesExceptDefaultBranch added in v0.46.0

func (g *GitlabBranches) MustGetBranchNamesExceptDefaultBranch(verbose bool) (branchNames []string)

func (*GitlabBranches) MustGetBranchesExceptDefaultBranch added in v0.46.0

func (g *GitlabBranches) MustGetBranchesExceptDefaultBranch(verbose bool) (branches []*GitlabBranch)

func (*GitlabBranches) MustGetDefaultBranchName added in v0.46.0

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

func (*GitlabBranches) MustGetFilesFromListWithDiffBetweenBranches added in v0.88.0

func (g *GitlabBranches) MustGetFilesFromListWithDiffBetweenBranches(branchA *GitlabBranch, branchB *GitlabBranch, filesToCheck []string, verbose bool) (filesWithDiffBetweenBranches []string)

func (*GitlabBranches) MustGetGitlab added in v0.46.0

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

func (*GitlabBranches) MustGetGitlabProject added in v0.46.0

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

func (*GitlabBranches) MustGetNativeBranchesClient added in v0.46.0

func (g *GitlabBranches) MustGetNativeBranchesClient() (nativeBranches *gitlab.BranchesService)

func (*GitlabBranches) MustGetNativeBranchesClientAndId added in v0.46.0

func (g *GitlabBranches) MustGetNativeBranchesClientAndId() (nativeClient *gitlab.BranchesService, projectId int)

func (*GitlabBranches) MustGetProjectId added in v0.46.0

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

func (*GitlabBranches) MustGetProjectUrl added in v0.46.0

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

func (*GitlabBranches) MustSetGitlabProject added in v0.46.0

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

func (*GitlabBranches) SetGitlabProject added in v0.46.0

func (g *GitlabBranches) SetGitlabProject(gitlabProject *GitlabProject) (err error)

type GitlabCiYamlFile added in v0.20.0

type GitlabCiYamlFile struct {
	File
}

func GetGitlabCiYamlFileByFile added in v0.20.0

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

func GetGitlabCiYamlFileByPath added in v0.20.0

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

func GetGitlabCiYamlFileInGitRepository added in v0.176.0

func GetGitlabCiYamlFileInGitRepository(gitRepository GitRepository) (gitlabCiYamlFile *GitlabCiYamlFile, err error)

func MustGetGitlabCiYamlFileByFile added in v0.20.0

func MustGetGitlabCiYamlFileByFile(file File) (gitlabCiYamlFile *GitlabCiYamlFile)

func MustGetGitlabCiYamlFileByPath added in v0.20.0

func MustGetGitlabCiYamlFileByPath(filePath string) (gitlabCiYamlFile *GitlabCiYamlFile)

func MustGetGitlabCiYamlFileInGitRepository added in v0.177.0

func MustGetGitlabCiYamlFileInGitRepository(gitRepository GitRepository) (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 GitlabCommit added in v0.57.0

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

func NewGitlabCommit added in v0.57.0

func NewGitlabCommit() (g *GitlabCommit)

func (*GitlabCommit) CreateRelease added in v0.100.0

func (g *GitlabCommit) CreateRelease(createReleaseOptions *GitlabCreateReleaseOptions) (createdRelease *GitlabRelease, err error)

func (*GitlabCommit) CreateTag added in v0.100.0

func (g *GitlabCommit) CreateTag(createTagOptions *GitlabCreateTagOptions) (createdTag *GitlabTag, err error)

func (*GitlabCommit) GetAuthorEmail added in v0.97.0

func (g *GitlabCommit) GetAuthorEmail(verbose bool) (authorEmail string, err error)

func (*GitlabCommit) GetCommitHash added in v0.71.0

func (g *GitlabCommit) GetCommitHash() (commitHash string, err error)

func (*GitlabCommit) GetGitlab added in v0.71.0

func (g *GitlabCommit) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabCommit) GetGitlabProject added in v0.71.0

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

func (*GitlabCommit) GetGitlabProjectUrlAsString added in v0.73.0

func (g *GitlabCommit) GetGitlabProjectUrlAsString() (projectUrl string, err error)

func (*GitlabCommit) GetGitlabProjectsCommits added in v0.71.0

func (g *GitlabCommit) GetGitlabProjectsCommits() (gitlabProjectsCommit *GitlabProjectCommits, err error)

func (*GitlabCommit) GetGitlabTags added in v0.100.0

func (g *GitlabCommit) GetGitlabTags() (gitlabTags *GitlabTags, err error)

func (*GitlabCommit) GetNativeCommitsService added in v0.71.0

func (g *GitlabCommit) GetNativeCommitsService() (nativeCommitsService *gitlab.CommitsService, err error)

func (*GitlabCommit) GetParentCommitHashesAsString added in v0.71.0

func (g *GitlabCommit) GetParentCommitHashesAsString(verbose bool) (parentCommitHashes []string, err error)

func (*GitlabCommit) GetParentCommits added in v0.71.0

func (g *GitlabCommit) GetParentCommits(verbose bool) (parentCommits []*GitlabCommit, err error)

func (*GitlabCommit) GetProjectId added in v0.71.0

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

func (*GitlabCommit) GetRawResponse added in v0.71.0

func (g *GitlabCommit) GetRawResponse() (rawResponse *gitlab.Commit, err error)

func (*GitlabCommit) IsMergeCommit added in v0.73.0

func (g *GitlabCommit) IsMergeCommit(verbose bool) (isMergeCommit bool, err error)

func (*GitlabCommit) IsParentCommitOf added in v0.73.0

func (g *GitlabCommit) IsParentCommitOf(childCommit *GitlabCommit, verbose bool) (isParent bool, err error)

func (*GitlabCommit) MustCreateRelease added in v0.100.0

func (g *GitlabCommit) MustCreateRelease(createReleaseOptions *GitlabCreateReleaseOptions) (createdRelease *GitlabRelease)

func (*GitlabCommit) MustCreateTag added in v0.100.0

func (g *GitlabCommit) MustCreateTag(createTagOptions *GitlabCreateTagOptions) (createdTag *GitlabTag)

func (*GitlabCommit) MustGetAuthorEmail added in v0.97.0

func (g *GitlabCommit) MustGetAuthorEmail(verbose bool) (authorEmail string)

func (*GitlabCommit) MustGetCommitHash added in v0.71.0

func (g *GitlabCommit) MustGetCommitHash() (commitHash string)

func (*GitlabCommit) MustGetGitlab added in v0.71.0

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

func (*GitlabCommit) MustGetGitlabProject added in v0.71.0

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

func (*GitlabCommit) MustGetGitlabProjectUrlAsString added in v0.73.0

func (g *GitlabCommit) MustGetGitlabProjectUrlAsString() (projectUrl string)

func (*GitlabCommit) MustGetGitlabProjectsCommits added in v0.71.0

func (g *GitlabCommit) MustGetGitlabProjectsCommits() (gitlabProjectsCommit *GitlabProjectCommits)

func (*GitlabCommit) MustGetGitlabTags added in v0.100.0

func (g *GitlabCommit) MustGetGitlabTags() (gitlabTags *GitlabTags)

func (*GitlabCommit) MustGetNativeCommitsService added in v0.71.0

func (g *GitlabCommit) MustGetNativeCommitsService() (nativeCommitsService *gitlab.CommitsService)

func (*GitlabCommit) MustGetParentCommitHashesAsString added in v0.71.0

func (g *GitlabCommit) MustGetParentCommitHashesAsString(verbose bool) (parentCommitHashes []string)

func (*GitlabCommit) MustGetParentCommits added in v0.71.0

func (g *GitlabCommit) MustGetParentCommits(verbose bool) (parentCommits []*GitlabCommit)

func (*GitlabCommit) MustGetProjectId added in v0.71.0

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

func (*GitlabCommit) MustGetRawResponse added in v0.71.0

func (g *GitlabCommit) MustGetRawResponse() (rawResponse *gitlab.Commit)

func (*GitlabCommit) MustIsMergeCommit added in v0.73.0

func (g *GitlabCommit) MustIsMergeCommit(verbose bool) (isMergeCommit bool)

func (*GitlabCommit) MustIsParentCommitOf added in v0.73.0

func (g *GitlabCommit) MustIsParentCommitOf(childCommit *GitlabCommit, verbose bool) (isParent bool)

func (*GitlabCommit) MustSetCommitHash added in v0.71.0

func (g *GitlabCommit) MustSetCommitHash(commitHash string)

func (*GitlabCommit) MustSetGitlabProjectsCommits added in v0.71.0

func (g *GitlabCommit) MustSetGitlabProjectsCommits(gitlabProjectsCommit *GitlabProjectCommits)

func (*GitlabCommit) SetCommitHash added in v0.71.0

func (g *GitlabCommit) SetCommitHash(commitHash string) (err error)

func (*GitlabCommit) SetGitlabProjectsCommits added in v0.71.0

func (g *GitlabCommit) SetGitlabProjectsCommits(gitlabProjectsCommit *GitlabProjectCommits) (err error)

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 GitlabCreateBranchOptions added in v0.88.0

type GitlabCreateBranchOptions struct {
	SourceBranchName    string
	BranchName          string
	Verbose             bool
	FailIfAlreadyExists bool
}

func NewGitlabCreateBranchOptions added in v0.88.0

func NewGitlabCreateBranchOptions() (g *GitlabCreateBranchOptions)

func (*GitlabCreateBranchOptions) GetBranchName added in v0.88.0

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

func (*GitlabCreateBranchOptions) GetFailIfAlreadyExists added in v0.88.0

func (g *GitlabCreateBranchOptions) GetFailIfAlreadyExists() (failIfAlreadyExists bool)

func (*GitlabCreateBranchOptions) GetSourceBranchName added in v0.88.0

func (g *GitlabCreateBranchOptions) GetSourceBranchName() (sourceBranchName string, err error)

func (*GitlabCreateBranchOptions) GetVerbose added in v0.88.0

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

func (*GitlabCreateBranchOptions) MustGetBranchName added in v0.88.0

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

func (*GitlabCreateBranchOptions) MustGetSourceBranchName added in v0.88.0

func (g *GitlabCreateBranchOptions) MustGetSourceBranchName() (sourceBranchName string)

func (*GitlabCreateBranchOptions) MustSetBranchName added in v0.88.0

func (g *GitlabCreateBranchOptions) MustSetBranchName(branchName string)

func (*GitlabCreateBranchOptions) MustSetSourceBranchName added in v0.88.0

func (g *GitlabCreateBranchOptions) MustSetSourceBranchName(sourceBranchName string)

func (*GitlabCreateBranchOptions) SetBranchName added in v0.88.0

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

func (*GitlabCreateBranchOptions) SetFailIfAlreadyExists added in v0.88.0

func (g *GitlabCreateBranchOptions) SetFailIfAlreadyExists(failIfAlreadyExists bool)

func (*GitlabCreateBranchOptions) SetSourceBranchName added in v0.88.0

func (g *GitlabCreateBranchOptions) SetSourceBranchName(sourceBranchName string) (err error)

func (*GitlabCreateBranchOptions) SetVerbose added in v0.88.0

func (g *GitlabCreateBranchOptions) SetVerbose(verbose bool)

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 {
	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) GetVerbose added in v0.31.0

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

func (*GitlabCreateGroupOptions) MustGetVerbose added in v0.31.0

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

func (*GitlabCreateGroupOptions) MustSetVerbose added in v0.31.0

func (g *GitlabCreateGroupOptions) MustSetVerbose(verbose bool)

func (*GitlabCreateGroupOptions) SetVerbose added in v0.31.0

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

type GitlabCreateMergeRequestOptions added in v0.55.0

type GitlabCreateMergeRequestOptions struct {
	SourceBranchName                string
	TargetBranchName                string
	Title                           string
	Description                     string
	Labels                          []string
	SquashEnabled                   bool
	DeleteSourceBranchOnMerge       bool
	Verbose                         bool
	FailIfMergeRequestAlreadyExists bool
	AssignToSelf                    bool
}

func NewGitlabCreateMergeRequestOptions added in v0.55.0

func NewGitlabCreateMergeRequestOptions() (g *GitlabCreateMergeRequestOptions)

func (*GitlabCreateMergeRequestOptions) GetAssignToSelf added in v0.88.0

func (g *GitlabCreateMergeRequestOptions) GetAssignToSelf() (assignToSelf bool)

func (*GitlabCreateMergeRequestOptions) GetDeepCopy added in v0.55.0

func (*GitlabCreateMergeRequestOptions) GetDeleteSourceBranchOnMerge added in v0.88.0

func (g *GitlabCreateMergeRequestOptions) GetDeleteSourceBranchOnMerge() (deleteSourceBranchOnMerge bool)

func (*GitlabCreateMergeRequestOptions) GetDescription added in v0.60.0

func (g *GitlabCreateMergeRequestOptions) GetDescription() (description string, err error)

func (*GitlabCreateMergeRequestOptions) GetDescriptionOrEmptyStringIfUnset added in v0.60.0

func (g *GitlabCreateMergeRequestOptions) GetDescriptionOrEmptyStringIfUnset() (description string)

func (*GitlabCreateMergeRequestOptions) GetFailIfMergeRequestAlreadyExists added in v0.88.0

func (g *GitlabCreateMergeRequestOptions) GetFailIfMergeRequestAlreadyExists() (failIfMergeRequestAlreadyExists bool)

func (*GitlabCreateMergeRequestOptions) GetLabels added in v0.59.0

func (g *GitlabCreateMergeRequestOptions) GetLabels() (labels []string, err error)

func (*GitlabCreateMergeRequestOptions) GetLabelsOrEmptySliceIfUnset added in v0.59.0

func (g *GitlabCreateMergeRequestOptions) GetLabelsOrEmptySliceIfUnset() (labels []string)

func (*GitlabCreateMergeRequestOptions) GetSourceBranchName added in v0.55.0

func (g *GitlabCreateMergeRequestOptions) GetSourceBranchName() (sourceBranchName string, err error)

func (*GitlabCreateMergeRequestOptions) GetSquashEnabled added in v0.88.0

func (g *GitlabCreateMergeRequestOptions) GetSquashEnabled() (squashEnabled bool)

func (*GitlabCreateMergeRequestOptions) GetTargetBranchName added in v0.55.0

func (g *GitlabCreateMergeRequestOptions) GetTargetBranchName() (targetBranchName string, err error)

func (*GitlabCreateMergeRequestOptions) GetTitle added in v0.55.0

func (g *GitlabCreateMergeRequestOptions) GetTitle() (title string, err error)

func (*GitlabCreateMergeRequestOptions) GetVerbose added in v0.55.0

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

func (*GitlabCreateMergeRequestOptions) IsTargetBranchSet added in v0.55.0

func (g *GitlabCreateMergeRequestOptions) IsTargetBranchSet() (isSet bool)

func (*GitlabCreateMergeRequestOptions) MustGetDescription added in v0.60.0

func (g *GitlabCreateMergeRequestOptions) MustGetDescription() (description string)

func (*GitlabCreateMergeRequestOptions) MustGetLabels added in v0.59.0

func (g *GitlabCreateMergeRequestOptions) MustGetLabels() (labels []string)

func (*GitlabCreateMergeRequestOptions) MustGetSourceBranchName added in v0.55.0

func (g *GitlabCreateMergeRequestOptions) MustGetSourceBranchName() (sourceBranchName string)

func (*GitlabCreateMergeRequestOptions) MustGetTargetBranchName added in v0.55.0

func (g *GitlabCreateMergeRequestOptions) MustGetTargetBranchName() (targetBranchName string)

func (*GitlabCreateMergeRequestOptions) MustGetTitle added in v0.55.0

func (g *GitlabCreateMergeRequestOptions) MustGetTitle() (title string)

func (*GitlabCreateMergeRequestOptions) MustSetDescription added in v0.60.0

func (g *GitlabCreateMergeRequestOptions) MustSetDescription(description string)

func (*GitlabCreateMergeRequestOptions) MustSetLabels added in v0.59.0

func (g *GitlabCreateMergeRequestOptions) MustSetLabels(labels []string)

func (*GitlabCreateMergeRequestOptions) MustSetSourceBranchName added in v0.55.0

func (g *GitlabCreateMergeRequestOptions) MustSetSourceBranchName(sourceBranchName string)

func (*GitlabCreateMergeRequestOptions) MustSetTargetBranchName added in v0.55.0

func (g *GitlabCreateMergeRequestOptions) MustSetTargetBranchName(targetBranchName string)

func (*GitlabCreateMergeRequestOptions) MustSetTitle added in v0.55.0

func (g *GitlabCreateMergeRequestOptions) MustSetTitle(title string)

func (*GitlabCreateMergeRequestOptions) SetAssignToSelf added in v0.88.0

func (g *GitlabCreateMergeRequestOptions) SetAssignToSelf(assignToSelf bool)

func (*GitlabCreateMergeRequestOptions) SetDeleteSourceBranchOnMerge added in v0.88.0

func (g *GitlabCreateMergeRequestOptions) SetDeleteSourceBranchOnMerge(deleteSourceBranchOnMerge bool)

func (*GitlabCreateMergeRequestOptions) SetDescription added in v0.60.0

func (g *GitlabCreateMergeRequestOptions) SetDescription(description string) (err error)

func (*GitlabCreateMergeRequestOptions) SetFailIfMergeRequestAlreadyExists added in v0.88.0

func (g *GitlabCreateMergeRequestOptions) SetFailIfMergeRequestAlreadyExists(failIfMergeRequestAlreadyExists bool)

func (*GitlabCreateMergeRequestOptions) SetLabels added in v0.59.0

func (g *GitlabCreateMergeRequestOptions) SetLabels(labels []string) (err error)

func (*GitlabCreateMergeRequestOptions) SetSourceBranchName added in v0.55.0

func (g *GitlabCreateMergeRequestOptions) SetSourceBranchName(sourceBranchName string) (err error)

func (*GitlabCreateMergeRequestOptions) SetSquashEnabled added in v0.88.0

func (g *GitlabCreateMergeRequestOptions) SetSquashEnabled(squashEnabled bool)

func (*GitlabCreateMergeRequestOptions) SetTargetBranchName added in v0.55.0

func (g *GitlabCreateMergeRequestOptions) SetTargetBranchName(targetBranchName string) (err error)

func (*GitlabCreateMergeRequestOptions) SetTitle added in v0.55.0

func (g *GitlabCreateMergeRequestOptions) SetTitle(title string) (err error)

func (*GitlabCreateMergeRequestOptions) SetVerbose added in v0.55.0

func (g *GitlabCreateMergeRequestOptions) SetVerbose(verbose bool)

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 GitlabCreateReleaseLinkOptions added in v0.101.0

type GitlabCreateReleaseLinkOptions struct {
	Verbose bool
	Name    string
	Url     string
}

func NewGitlabCreateReleaseLinkOptions added in v0.101.0

func NewGitlabCreateReleaseLinkOptions() (g *GitlabCreateReleaseLinkOptions)

func (*GitlabCreateReleaseLinkOptions) GetName added in v0.101.0

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

func (*GitlabCreateReleaseLinkOptions) GetNameAndUrl added in v0.101.0

func (g *GitlabCreateReleaseLinkOptions) GetNameAndUrl() (name string, url string, err error)

func (*GitlabCreateReleaseLinkOptions) GetUrl added in v0.101.0

func (g *GitlabCreateReleaseLinkOptions) GetUrl() (url string, err error)

func (*GitlabCreateReleaseLinkOptions) GetVerbose added in v0.101.0

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

func (*GitlabCreateReleaseLinkOptions) MustGetName added in v0.101.0

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

func (*GitlabCreateReleaseLinkOptions) MustGetNameAndUrl added in v0.101.0

func (g *GitlabCreateReleaseLinkOptions) MustGetNameAndUrl() (name string, url string)

func (*GitlabCreateReleaseLinkOptions) MustGetUrl added in v0.101.0

func (g *GitlabCreateReleaseLinkOptions) MustGetUrl() (url string)

func (*GitlabCreateReleaseLinkOptions) MustSetName added in v0.101.0

func (g *GitlabCreateReleaseLinkOptions) MustSetName(name string)

func (*GitlabCreateReleaseLinkOptions) MustSetUrl added in v0.101.0

func (g *GitlabCreateReleaseLinkOptions) MustSetUrl(url string)

func (*GitlabCreateReleaseLinkOptions) SetName added in v0.101.0

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

func (*GitlabCreateReleaseLinkOptions) SetUrl added in v0.101.0

func (g *GitlabCreateReleaseLinkOptions) SetUrl(url string) (err error)

func (*GitlabCreateReleaseLinkOptions) SetVerbose added in v0.101.0

func (g *GitlabCreateReleaseLinkOptions) SetVerbose(verbose bool)

type GitlabCreateReleaseOptions added in v0.100.0

type GitlabCreateReleaseOptions struct {
	Name        string
	Description string
	Verbose     bool
}

func NewGitlabCreateReleaseOptions added in v0.100.0

func NewGitlabCreateReleaseOptions() (g *GitlabCreateReleaseOptions)

func (*GitlabCreateReleaseOptions) GetDescription added in v0.100.0

func (g *GitlabCreateReleaseOptions) GetDescription() (description string, err error)

func (*GitlabCreateReleaseOptions) GetName added in v0.100.0

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

func (*GitlabCreateReleaseOptions) GetVerbose added in v0.100.0

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

func (*GitlabCreateReleaseOptions) MustGetDescription added in v0.100.0

func (g *GitlabCreateReleaseOptions) MustGetDescription() (description string)

func (*GitlabCreateReleaseOptions) MustGetName added in v0.100.0

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

func (*GitlabCreateReleaseOptions) MustSetDescription added in v0.100.0

func (g *GitlabCreateReleaseOptions) MustSetDescription(description string)

func (*GitlabCreateReleaseOptions) MustSetName added in v0.100.0

func (g *GitlabCreateReleaseOptions) MustSetName(name string)

func (*GitlabCreateReleaseOptions) SetDescription added in v0.100.0

func (g *GitlabCreateReleaseOptions) SetDescription(description string) (err error)

func (*GitlabCreateReleaseOptions) SetName added in v0.100.0

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

func (*GitlabCreateReleaseOptions) SetVerbose added in v0.100.0

func (g *GitlabCreateReleaseOptions) SetVerbose(verbose bool)

type GitlabCreateTagOptions added in v0.100.0

type GitlabCreateTagOptions struct {
	Name    string
	Verbose bool
	Ref     string
}

func NewGitlabCreateTagOptions added in v0.100.0

func NewGitlabCreateTagOptions() (g *GitlabCreateTagOptions)

func (*GitlabCreateTagOptions) GetDeepCopy added in v0.100.0

func (g *GitlabCreateTagOptions) GetDeepCopy() (deepCopy *GitlabCreateTagOptions)

func (*GitlabCreateTagOptions) GetName added in v0.100.0

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

func (*GitlabCreateTagOptions) GetRef added in v0.100.0

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

func (*GitlabCreateTagOptions) GetVerbose added in v0.100.0

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

func (*GitlabCreateTagOptions) MustGetName added in v0.100.0

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

func (*GitlabCreateTagOptions) MustGetRef added in v0.100.0

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

func (*GitlabCreateTagOptions) MustSetName added in v0.100.0

func (g *GitlabCreateTagOptions) MustSetName(name string)

func (*GitlabCreateTagOptions) MustSetRef added in v0.100.0

func (g *GitlabCreateTagOptions) MustSetRef(ref string)

func (*GitlabCreateTagOptions) SetName added in v0.100.0

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

func (*GitlabCreateTagOptions) SetRef added in v0.100.0

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

func (*GitlabCreateTagOptions) SetVerbose added in v0.100.0

func (g *GitlabCreateTagOptions) SetVerbose(verbose bool)

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 GitlabDeleteBranchOptions added in v0.55.0

type GitlabDeleteBranchOptions struct {
	// By default the delete function waits until the deleted branch is not returned in the branch list anymore to avoid race conditions (branch is deleted but still listed by gitlab.)
	// SkipWaitForDeletion = true will skip this check/wait.
	SkipWaitForDeletion bool

	// Enable verbose output:
	Verbose bool
}

func NewGitlabDeleteBranchOptions added in v0.55.0

func NewGitlabDeleteBranchOptions() (g *GitlabDeleteBranchOptions)

func (*GitlabDeleteBranchOptions) GetSkipWaitForDeletion added in v0.55.0

func (g *GitlabDeleteBranchOptions) GetSkipWaitForDeletion() (skipWaitForDeletion bool)

func (*GitlabDeleteBranchOptions) GetVerbose added in v0.55.0

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

func (*GitlabDeleteBranchOptions) SetSkipWaitForDeletion added in v0.55.0

func (g *GitlabDeleteBranchOptions) SetSkipWaitForDeletion(skipWaitForDeletion bool)

func (*GitlabDeleteBranchOptions) SetVerbose added in v0.55.0

func (g *GitlabDeleteBranchOptions) SetVerbose(verbose bool)

type GitlabDeleteProjectOptions added in v0.54.0

type GitlabDeleteProjectOptions struct {
	ProjectPath string
	Verbose     bool
}

func NewGitlabDeleteProjectOptions added in v0.54.0

func NewGitlabDeleteProjectOptions() (g *GitlabDeleteProjectOptions)

func (*GitlabDeleteProjectOptions) GetProjectPath added in v0.54.0

func (g *GitlabDeleteProjectOptions) GetProjectPath() (projectPath string, err error)

func (*GitlabDeleteProjectOptions) GetVerbose added in v0.54.0

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

func (*GitlabDeleteProjectOptions) MustGetProjectPath added in v0.54.0

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

func (*GitlabDeleteProjectOptions) MustSetProjectPath added in v0.54.0

func (g *GitlabDeleteProjectOptions) MustSetProjectPath(projectPath string)

func (*GitlabDeleteProjectOptions) SetProjectPath added in v0.54.0

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

func (*GitlabDeleteProjectOptions) SetVerbose added in v0.54.0

func (g *GitlabDeleteProjectOptions) SetVerbose(verbose bool)

type GitlabDeleteReleaseOptions added in v0.100.0

type GitlabDeleteReleaseOptions struct {
	Verbose                bool
	DeleteCorrespondingTag bool
}

func NewGitlabDeleteReleaseOptions added in v0.100.0

func NewGitlabDeleteReleaseOptions() (g *GitlabDeleteReleaseOptions)

func (*GitlabDeleteReleaseOptions) GetDeleteCorrespondingTag added in v0.100.0

func (g *GitlabDeleteReleaseOptions) GetDeleteCorrespondingTag() (deleteCorrespondingTag bool)

func (*GitlabDeleteReleaseOptions) GetVerbose added in v0.100.0

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

func (*GitlabDeleteReleaseOptions) SetDeleteCorrespondingTag added in v0.100.0

func (g *GitlabDeleteReleaseOptions) SetDeleteCorrespondingTag(deleteCorrespondingTag bool)

func (*GitlabDeleteReleaseOptions) SetVerbose added in v0.100.0

func (g *GitlabDeleteReleaseOptions) SetVerbose(verbose bool)

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) Create added in v0.66.0

func (g *GitlabGroup) Create(createOptions *GitlabCreateGroupOptions) (err error)

func (*GitlabGroup) Delete added in v0.66.0

func (g *GitlabGroup) Delete(verbose bool) (err error)

func (*GitlabGroup) Exists added in v0.66.0

func (g *GitlabGroup) Exists(verbose bool) (exists bool, err error)

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) GetGitlabFqdn added in v0.66.0

func (g *GitlabGroup) GetGitlabFqdn() (gitlabFqdn string, err error)

func (*GitlabGroup) GetGitlabGroups added in v0.66.0

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

func (*GitlabGroup) GetGroupIdOrPath added in v0.66.0

func (g *GitlabGroup) GetGroupIdOrPath() (groupIdOrPath interface{}, err error)

func (*GitlabGroup) GetGroupIdOrPathAsString added in v0.66.0

func (g *GitlabGroup) GetGroupIdOrPathAsString() (groupIdOrPath string, err error)

func (*GitlabGroup) GetGroupName added in v0.66.0

func (g *GitlabGroup) GetGroupName() (groupName string, err error)

func (*GitlabGroup) GetGroupPath added in v0.66.0

func (g *GitlabGroup) GetGroupPath() (groupPath string, err error)

func (*GitlabGroup) GetGroupPathAndId added in v0.66.0

func (g *GitlabGroup) GetGroupPathAndId() (groupPath string, groupId int, err error)

func (*GitlabGroup) GetGroupPathAndIdOrEmptyIfUnset added in v0.66.0

func (g *GitlabGroup) GetGroupPathAndIdOrEmptyIfUnset() (groupPath string, groupId int)

func (*GitlabGroup) GetGroupPathOrEmptyStringIfUnset added in v0.66.0

func (g *GitlabGroup) GetGroupPathOrEmptyStringIfUnset() (groupPath string)

func (*GitlabGroup) GetId added in v0.31.0

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

func (*GitlabGroup) GetIdOrMinusOneIfUnset added in v0.66.0

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

func (*GitlabGroup) GetNativeClient added in v0.31.0

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

func (*GitlabGroup) GetNativeGroupsService added in v0.66.0

func (g *GitlabGroup) GetNativeGroupsService() (nativeGroupsService *gitlab.GroupsService, err error)

func (*GitlabGroup) GetParentGroup added in v0.66.0

func (g *GitlabGroup) GetParentGroup(verbose bool) (parentGroup *GitlabGroup, err error)

func (*GitlabGroup) GetParentGroupPath added in v0.66.0

func (p *GitlabGroup) GetParentGroupPath(verbose bool) (parentGroupPath string, err error)

func (*GitlabGroup) GetRawResponse added in v0.66.0

func (g *GitlabGroup) GetRawResponse() (rawRespoonse *gitlab.Group, err error)

func (*GitlabGroup) IsGroupPathSet added in v0.66.0

func (g *GitlabGroup) IsGroupPathSet() (isSet bool)

func (*GitlabGroup) IsIdSet added in v0.66.0

func (g *GitlabGroup) IsIdSet() (isSet bool)

func (*GitlabGroup) IsSubgroup added in v0.66.0

func (g *GitlabGroup) IsSubgroup() (isSubgroup bool, err error)

func (*GitlabGroup) ListProjectPaths added in v0.67.0

func (g *GitlabGroup) ListProjectPaths(options *GitlabListProjectsOptions) (projectPaths []string, err error)

func (*GitlabGroup) MustCreate added in v0.66.0

func (g *GitlabGroup) MustCreate(createOptions *GitlabCreateGroupOptions)

func (*GitlabGroup) MustDelete added in v0.66.0

func (g *GitlabGroup) MustDelete(verbose bool)

func (*GitlabGroup) MustExists added in v0.66.0

func (g *GitlabGroup) MustExists(verbose bool) (exists bool)

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) MustGetGitlabFqdn added in v0.66.0

func (g *GitlabGroup) MustGetGitlabFqdn() (gitlabFqdn string)

func (*GitlabGroup) MustGetGitlabGroups added in v0.66.0

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

func (*GitlabGroup) MustGetGroupIdOrPath added in v0.66.0

func (g *GitlabGroup) MustGetGroupIdOrPath() (groupIdOrPath interface{})

func (*GitlabGroup) MustGetGroupIdOrPathAsString added in v0.66.0

func (g *GitlabGroup) MustGetGroupIdOrPathAsString() (groupIdOrPath string)

func (*GitlabGroup) MustGetGroupName added in v0.66.0

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

func (*GitlabGroup) MustGetGroupPath added in v0.66.0

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

func (*GitlabGroup) MustGetGroupPathAndId added in v0.66.0

func (g *GitlabGroup) MustGetGroupPathAndId() (groupPath string, groupId int)

func (*GitlabGroup) MustGetId added in v0.31.0

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

func (*GitlabGroup) MustGetNativeClient added in v0.31.0

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

func (*GitlabGroup) MustGetNativeGroupsService added in v0.66.0

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

func (*GitlabGroup) MustGetParentGroup added in v0.66.0

func (g *GitlabGroup) MustGetParentGroup(verbose bool) (parentGroup *GitlabGroup)

func (*GitlabGroup) MustGetParentGroupPath added in v0.66.0

func (g *GitlabGroup) MustGetParentGroupPath(verbose bool) (parentGroupPath string)

func (*GitlabGroup) MustGetRawResponse added in v0.66.0

func (g *GitlabGroup) MustGetRawResponse() (rawRespoonse *gitlab.Group)

func (*GitlabGroup) MustIsSubgroup added in v0.66.0

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

func (*GitlabGroup) MustListProjectPaths added in v0.67.0

func (g *GitlabGroup) MustListProjectPaths(options *GitlabListProjectsOptions) (projectPaths []string)

func (*GitlabGroup) MustSetGitlab added in v0.31.0

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

func (*GitlabGroup) MustSetGroupPath added in v0.66.0

func (g *GitlabGroup) MustSetGroupPath(groupPath string)

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) SetGroupPath added in v0.66.0

func (g *GitlabGroup) SetGroupPath(groupPath string) (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 (g *GitlabGroups) CreateGroup(groupPath string, 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) GetGroupById added in v0.66.0

func (g *GitlabGroups) GetGroupById(id int, verbose bool) (gitlabGroup *GitlabGroup, err error)

func (*GitlabGroups) GetGroupByPath added in v0.66.0

func (g *GitlabGroups) GetGroupByPath(groupPath string, verbose bool) (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 (g *GitlabGroups) GroupByGroupPathExists(groupPath string, verbose bool) (groupExists bool, err error)

func (*GitlabGroups) MustCreateGroup added in v0.31.0

func (g *GitlabGroups) MustCreateGroup(groupPath string, 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) MustGetGroupById added in v0.66.0

func (g *GitlabGroups) MustGetGroupById(id int, verbose bool) (gitlabGroup *GitlabGroup)

func (*GitlabGroups) MustGetGroupByPath added in v0.66.0

func (g *GitlabGroups) MustGetGroupByPath(groupPath string, verbose bool) (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, verbose bool) (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) CreateGroupByPath added in v0.66.0

func (g *GitlabInstance) CreateGroupByPath(groupPath string, createOptions *GitlabCreateGroupOptions) (createdGroup *GitlabGroup, err error)

func (*GitlabInstance) CreatePersonalProject added in v0.55.0

func (g *GitlabInstance) CreatePersonalProject(projectName string, verbose bool) (personalProject *GitlabProject, err error)

func (*GitlabInstance) CreateProject added in v0.31.0

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

func (*GitlabInstance) DeleteGroupByPath added in v0.66.0

func (g *GitlabInstance) DeleteGroupByPath(groupPath string, verbose bool) (err error)

func (*GitlabInstance) GetApiV4Url added in v0.31.0

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

func (*GitlabInstance) GetCurrentUser added in v0.54.0

func (g *GitlabInstance) GetCurrentUser(verbose bool) (currentUser *GitlabUser, err error)

func (*GitlabInstance) GetCurrentUsersName added in v0.58.0

func (g *GitlabInstance) GetCurrentUsersName(verbose bool) (currentUserName string, err error)

Returns the human readable gitlab user name also known as display name.

For the technical user name use `GetCurrentUsersUsername`.

func (*GitlabInstance) GetCurrentUsersUsername added in v0.58.0

func (g *GitlabInstance) GetCurrentUsersUsername(verbose bool) (currentUserName string, err error)

Return the gitlab user name. This is the technical user name used by Gitlab.

To get the human readable user name use `GetCurrentUsersName`.

func (*GitlabInstance) GetCurrentlyUsedAccessToken added in v0.31.0

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

func (*GitlabInstance) GetDeepCopy added in v0.88.0

func (g *GitlabInstance) GetDeepCopy() (copy *GitlabInstance)

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) GetGroupById added in v0.66.0

func (g *GitlabInstance) GetGroupById(id int, verbose bool) (gitlabGroup *GitlabGroup, err error)

func (*GitlabInstance) GetGroupByPath added in v0.66.0

func (g *GitlabInstance) GetGroupByPath(groupPath string, verbose bool) (gitlabGroup *GitlabGroup, err error)

func (*GitlabInstance) GetNativeBranchesClient added in v0.46.0

func (g *GitlabInstance) GetNativeBranchesClient() (nativeClient *gitlab.BranchesService, err error)

func (*GitlabInstance) GetNativeClient added in v0.31.0

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

func (*GitlabInstance) GetNativeMergeRequestsService added in v0.55.0

func (g *GitlabInstance) GetNativeMergeRequestsService() (nativeClient *gitlab.MergeRequestsService, err error)

func (*GitlabInstance) GetNativeReleaseLinksClient added in v0.101.0

func (g *GitlabInstance) GetNativeReleaseLinksClient() (nativeClient *gitlab.ReleaseLinksService, err error)

func (*GitlabInstance) GetNativeReleasesClient added in v0.100.0

func (g *GitlabInstance) GetNativeReleasesClient() (nativeReleasesClient *gitlab.ReleasesService, err error)

func (*GitlabInstance) GetNativeRepositoriesClient added in v0.45.0

func (g *GitlabInstance) GetNativeRepositoriesClient() (nativeRepositoriesClient *gitlab.RepositoriesService, 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) GetPersonalProjectByName added in v0.54.0

func (g *GitlabInstance) GetPersonalProjectByName(projectName string, verbose bool) (project *GitlabProject, err error)

func (*GitlabInstance) GetPersonalProjectsPath added in v0.54.0

func (g *GitlabInstance) GetPersonalProjectsPath(verbose bool) (personalProjetsPath string, err error)

Get the path to the personal projects which is "users/USERNAME/projects".

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(options *GitlabgetProjectListOptions) (projectPaths []string, err error)

func (*GitlabInstance) GetRunnerByName added in v0.31.0

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

func (*GitlabInstance) GetUserById added in v0.54.0

func (g *GitlabInstance) GetUserById(id int) (gitlabUser *GitlabUser, 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)

Returns the `userId` of the currently logged in user.

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, verbose bool) (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) MustCreateGroupByPath added in v0.66.0

func (g *GitlabInstance) MustCreateGroupByPath(groupPath string, createOptions *GitlabCreateGroupOptions) (createdGroup *GitlabGroup)

func (*GitlabInstance) MustCreatePersonalProject added in v0.55.0

func (g *GitlabInstance) MustCreatePersonalProject(projectName string, verbose bool) (personalProject *GitlabProject)

func (*GitlabInstance) MustCreateProject added in v0.31.0

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

func (*GitlabInstance) MustDeleteGroupByPath added in v0.66.0

func (g *GitlabInstance) MustDeleteGroupByPath(groupPath string, verbose bool)

func (*GitlabInstance) MustGetApiV4Url added in v0.31.0

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

func (*GitlabInstance) MustGetCurrentUser added in v0.54.0

func (g *GitlabInstance) MustGetCurrentUser(verbose bool) (currentUser *GitlabUser)

func (*GitlabInstance) MustGetCurrentUserName added in v0.54.0

func (g *GitlabInstance) MustGetCurrentUserName(verbose bool) (currentUserName string)

func (*GitlabInstance) MustGetCurrentUsersName added in v0.58.0

func (g *GitlabInstance) MustGetCurrentUsersName(verbose bool) (currentUserName string)

func (*GitlabInstance) MustGetCurrentUsersUsername added in v0.58.0

func (g *GitlabInstance) MustGetCurrentUsersUsername(verbose bool) (currentUserName string)

func (*GitlabInstance) MustGetCurrentlyUsedAccessToken added in v0.31.0

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

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) MustGetGroupById added in v0.66.0

func (g *GitlabInstance) MustGetGroupById(id int, verbose bool) (gitlabGroup *GitlabGroup)

func (*GitlabInstance) MustGetGroupByPath added in v0.66.0

func (g *GitlabInstance) MustGetGroupByPath(groupPath string, verbose bool) (gitlabGroup *GitlabGroup)

func (*GitlabInstance) MustGetNativeBranchesClient added in v0.46.0

func (g *GitlabInstance) MustGetNativeBranchesClient() (nativeClient *gitlab.BranchesService)

func (*GitlabInstance) MustGetNativeClient added in v0.31.0

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

func (*GitlabInstance) MustGetNativeMergeRequestsService added in v0.55.0

func (g *GitlabInstance) MustGetNativeMergeRequestsService() (nativeClient *gitlab.MergeRequestsService)

func (*GitlabInstance) MustGetNativeReleaseLinksClient added in v0.101.0

func (g *GitlabInstance) MustGetNativeReleaseLinksClient() (nativeClient *gitlab.ReleaseLinksService)

func (*GitlabInstance) MustGetNativeReleasesClient added in v0.100.0

func (g *GitlabInstance) MustGetNativeReleasesClient() (nativeReleasesClient *gitlab.ReleasesService)

func (*GitlabInstance) MustGetNativeRepositoriesClient added in v0.46.0

func (g *GitlabInstance) MustGetNativeRepositoriesClient() (nativeRepositoriesClient *gitlab.RepositoriesService)

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) MustGetPersonalProjectByName added in v0.54.0

func (g *GitlabInstance) MustGetPersonalProjectByName(projectName string, verbose bool) (project *GitlabProject)

func (*GitlabInstance) MustGetPersonalProjectsPath added in v0.54.0

func (g *GitlabInstance) MustGetPersonalProjectsPath(verbose bool) (personalProjetsPath string)

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(options *GitlabgetProjectListOptions) (projectPaths []string)

func (*GitlabInstance) MustGetRunnerByName added in v0.31.0

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

func (*GitlabInstance) MustGetUserById added in v0.54.0

func (g *GitlabInstance) MustGetUserById(id int) (gitlabUser *GitlabUser)

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, verbose bool) (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 GitlabListProjectsOptions added in v0.67.0

type GitlabListProjectsOptions struct {
	Verbose bool
}

func NewGitlabListProjectsOptions added in v0.67.0

func NewGitlabListProjectsOptions() (g *GitlabListProjectsOptions)

func (*GitlabListProjectsOptions) GetVerbose added in v0.67.0

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

func (*GitlabListProjectsOptions) SetVerbose added in v0.67.0

func (g *GitlabListProjectsOptions) SetVerbose(verbose bool)

type GitlabMergeOptions added in v0.73.0

type GitlabMergeOptions struct {
	Verbose bool
}

func NewGitlabMergeOptions added in v0.73.0

func NewGitlabMergeOptions() (g *GitlabMergeOptions)

func (*GitlabMergeOptions) GetVerbose added in v0.73.0

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

func (*GitlabMergeOptions) SetVerbose added in v0.73.0

func (g *GitlabMergeOptions) SetVerbose(verbose bool)

type GitlabMergeRequest added in v0.55.0

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

func NewGitlabMergeRequest added in v0.55.0

func NewGitlabMergeRequest() (g *GitlabMergeRequest)

func (*GitlabMergeRequest) GetCachedSourceBranchName added in v0.64.0

func (g *GitlabMergeRequest) GetCachedSourceBranchName() (cachedSourceBranchName string, err error)

func (*GitlabMergeRequest) GetCachedTargetBranchName added in v0.64.0

func (g *GitlabMergeRequest) GetCachedTargetBranchName() (cachedTargetBranchName string, err error)

func (*GitlabMergeRequest) GetCachedTitle added in v0.55.0

func (g *GitlabMergeRequest) GetCachedTitle() (cachedTitle string, err error)

func (*GitlabMergeRequest) GetDescription added in v0.60.0

func (g *GitlabMergeRequest) GetDescription() (description string, err error)

func (*GitlabMergeRequest) GetDetailedMergeStatus added in v0.73.0

func (g *GitlabMergeRequest) GetDetailedMergeStatus(verbose bool) (mergeStatus string, err error)

func (*GitlabMergeRequest) GetGitlabProject added in v0.73.0

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

func (*GitlabMergeRequest) GetGitlabProjectMergeRequests added in v0.56.0

func (g *GitlabMergeRequest) GetGitlabProjectMergeRequests() (gitlabProjectMergeRequests *GitlabProjectMergeRequests, err error)

func (*GitlabMergeRequest) GetId added in v0.55.0

func (g *GitlabMergeRequest) GetId() (id int, err error)

func (*GitlabMergeRequest) GetLabels added in v0.59.0

func (g *GitlabMergeRequest) GetLabels() (labels []string, err error)

func (*GitlabMergeRequest) GetMergeCommit added in v0.73.0

func (g *GitlabMergeRequest) GetMergeCommit(verbose bool) (mergeCommit *GitlabCommit, err error)

func (*GitlabMergeRequest) GetMergeCommitSha added in v0.73.0

func (g *GitlabMergeRequest) GetMergeCommitSha(verbose bool) (mergeCommitSha string, err error)

func (*GitlabMergeRequest) GetNativeMergeRequestsService added in v0.55.0

func (g *GitlabMergeRequest) GetNativeMergeRequestsService() (nativeService *gitlab.MergeRequestsService, err error)

func (*GitlabMergeRequest) GetProject added in v0.55.0

func (g *GitlabMergeRequest) GetProject() (project *GitlabProject, err error)

func (*GitlabMergeRequest) GetProjectId added in v0.55.0

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

func (*GitlabMergeRequest) GetRawResponse added in v0.55.0

func (g *GitlabMergeRequest) GetRawResponse() (rawResponse *gitlab.MergeRequest, err error)

func (*GitlabMergeRequest) GetSourceBranchName added in v0.55.0

func (g *GitlabMergeRequest) GetSourceBranchName() (sourceBranchName string, err error)

func (*GitlabMergeRequest) GetTargetBranchName added in v0.55.0

func (g *GitlabMergeRequest) GetTargetBranchName() (targetBranchName string, err error)

func (*GitlabMergeRequest) GetUrlAsString added in v0.55.0

func (g *GitlabMergeRequest) GetUrlAsString() (url string, err error)

func (*GitlabMergeRequest) IsClosed added in v0.55.0

func (g *GitlabMergeRequest) IsClosed() (isClosed bool, err error)

func (*GitlabMergeRequest) IsMerged added in v0.73.0

func (g *GitlabMergeRequest) IsMerged() (isMerged bool, err error)

func (*GitlabMergeRequest) IsOpen added in v0.55.0

func (g *GitlabMergeRequest) IsOpen() (isOpen bool, err error)

func (*GitlabMergeRequest) Merge added in v0.73.0

func (g *GitlabMergeRequest) Merge(options *GitlabMergeOptions) (mergeCommit *GitlabCommit, err error)

func (*GitlabMergeRequest) MustClose added in v0.55.0

func (g *GitlabMergeRequest) MustClose(closeMessage string, verbose bool) (err error)

func (*GitlabMergeRequest) MustGetCachedSourceBranchName added in v0.64.0

func (g *GitlabMergeRequest) MustGetCachedSourceBranchName() (cachedSourceBranchName string)

func (*GitlabMergeRequest) MustGetCachedTargetBranchName added in v0.64.0

func (g *GitlabMergeRequest) MustGetCachedTargetBranchName() (cachedTargetBranchName string)

func (*GitlabMergeRequest) MustGetCachedTitle added in v0.55.0

func (g *GitlabMergeRequest) MustGetCachedTitle() (cachedTitle string)

func (*GitlabMergeRequest) MustGetDescription added in v0.60.0

func (g *GitlabMergeRequest) MustGetDescription() (description string)

func (*GitlabMergeRequest) MustGetDetailedMergeStatus added in v0.73.0

func (g *GitlabMergeRequest) MustGetDetailedMergeStatus(verbose bool) (mergeStatus string)

func (*GitlabMergeRequest) MustGetGitlabMergeRequests added in v0.55.0

func (g *GitlabMergeRequest) MustGetGitlabMergeRequests() (gitlabMergeRequests *GitlabProjectMergeRequests)

func (*GitlabMergeRequest) MustGetGitlabProject added in v0.73.0

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

func (*GitlabMergeRequest) MustGetGitlabProjectMergeRequests added in v0.56.0

func (g *GitlabMergeRequest) MustGetGitlabProjectMergeRequests() (gitlabProjectMergeRequests *GitlabProjectMergeRequests)

func (*GitlabMergeRequest) MustGetId added in v0.55.0

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

func (*GitlabMergeRequest) MustGetLabels added in v0.59.0

func (g *GitlabMergeRequest) MustGetLabels() (labels []string)

func (*GitlabMergeRequest) MustGetMergeCommit added in v0.73.0

func (g *GitlabMergeRequest) MustGetMergeCommit(verbose bool) (mergeCommit *GitlabCommit)

func (*GitlabMergeRequest) MustGetMergeCommitSha added in v0.73.0

func (g *GitlabMergeRequest) MustGetMergeCommitSha(verbose bool) (mergeCommitSha string)

func (*GitlabMergeRequest) MustGetNativeMergeRequestsService added in v0.55.0

func (g *GitlabMergeRequest) MustGetNativeMergeRequestsService() (nativeService *gitlab.MergeRequestsService)

func (*GitlabMergeRequest) MustGetProject added in v0.55.0

func (g *GitlabMergeRequest) MustGetProject() (project *GitlabProject)

func (*GitlabMergeRequest) MustGetProjectId added in v0.55.0

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

func (*GitlabMergeRequest) MustGetRawResponse added in v0.55.0

func (g *GitlabMergeRequest) MustGetRawResponse() (rawResponse *gitlab.MergeRequest)

func (*GitlabMergeRequest) MustGetSourceBranchName added in v0.55.0

func (g *GitlabMergeRequest) MustGetSourceBranchName() (sourceBranchName string)

func (*GitlabMergeRequest) MustGetTargetBranchName added in v0.55.0

func (g *GitlabMergeRequest) MustGetTargetBranchName() (targetBranchName string)

func (*GitlabMergeRequest) MustGetUrlAsString added in v0.55.0

func (g *GitlabMergeRequest) MustGetUrlAsString() (url string)

func (*GitlabMergeRequest) MustIsClosed added in v0.55.0

func (g *GitlabMergeRequest) MustIsClosed() (isClosed bool)

func (*GitlabMergeRequest) MustIsMerged added in v0.73.0

func (g *GitlabMergeRequest) MustIsMerged() (isMerged bool)

func (*GitlabMergeRequest) MustIsOpen added in v0.55.0

func (g *GitlabMergeRequest) MustIsOpen() (isOpen bool)

func (*GitlabMergeRequest) MustMerge added in v0.73.0

func (g *GitlabMergeRequest) MustMerge(options *GitlabMergeOptions) (mergeCommit *GitlabCommit)

func (*GitlabMergeRequest) MustSetCachedSourceBranchName added in v0.64.0

func (g *GitlabMergeRequest) MustSetCachedSourceBranchName(cachedSourceBranchName string)

func (*GitlabMergeRequest) MustSetCachedTargetBranchName added in v0.64.0

func (g *GitlabMergeRequest) MustSetCachedTargetBranchName(cachedTargetBranchName string)

func (*GitlabMergeRequest) MustSetCachedTitle added in v0.55.0

func (g *GitlabMergeRequest) MustSetCachedTitle(cachedTitle string)

func (*GitlabMergeRequest) MustSetGitlabProjectMergeRequests added in v0.56.0

func (g *GitlabMergeRequest) MustSetGitlabProjectMergeRequests(gitlabProjectMergeRequests *GitlabProjectMergeRequests)

func (*GitlabMergeRequest) MustSetId added in v0.55.0

func (g *GitlabMergeRequest) MustSetId(id int)

func (*GitlabMergeRequest) MustWaitUntilDetailedMergeStatusIsNotChecking added in v0.73.0

func (g *GitlabMergeRequest) MustWaitUntilDetailedMergeStatusIsNotChecking(verbose bool)

func (*GitlabMergeRequest) SetCachedSourceBranchName added in v0.64.0

func (g *GitlabMergeRequest) SetCachedSourceBranchName(cachedSourceBranchName string) (err error)

func (*GitlabMergeRequest) SetCachedTargetBranchName added in v0.64.0

func (g *GitlabMergeRequest) SetCachedTargetBranchName(cachedTargetBranchName string) (err error)

func (*GitlabMergeRequest) SetCachedTitle added in v0.55.0

func (g *GitlabMergeRequest) SetCachedTitle(cachedTitle string) (err error)

func (*GitlabMergeRequest) SetGitlabProjectMergeRequests added in v0.56.0

func (g *GitlabMergeRequest) SetGitlabProjectMergeRequests(gitlabProjectMergeRequests *GitlabProjectMergeRequests) (err error)

func (*GitlabMergeRequest) SetId added in v0.55.0

func (g *GitlabMergeRequest) SetId(id int) (err error)

func (*GitlabMergeRequest) WaitUntilDetailedMergeStatusIsNotChecking added in v0.73.0

func (g *GitlabMergeRequest) WaitUntilDetailedMergeStatusIsNotChecking(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 GitlabPersonalProjects added in v0.54.0

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

func NewGitlabPersonalProjects added in v0.54.0

func NewGitlabPersonalProjects() (g *GitlabPersonalProjects)

func (*GitlabPersonalProjects) GetGitlab added in v0.54.0

func (g *GitlabPersonalProjects) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabPersonalProjects) MustGetGitlab added in v0.54.0

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

func (*GitlabPersonalProjects) MustSetGitlab added in v0.54.0

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

func (*GitlabPersonalProjects) SetGitlab added in v0.54.0

func (g *GitlabPersonalProjects) 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) Create added in v0.54.0

func (g *GitlabProject) Create(verbose bool) (err error)

func (*GitlabProject) CreateBranchFromDefaultBranch added in v0.46.0

func (g *GitlabProject) CreateBranchFromDefaultBranch(branchName string, verbose bool) (createdBranch *GitlabBranch, err error)

func (*GitlabProject) CreateEmptyFile added in v0.45.0

func (g *GitlabProject) CreateEmptyFile(fileName string, ref string, verbose bool) (createdFile *GitlabRepositoryFile, err error)

func (*GitlabProject) CreateMergeRequest added in v0.60.0

func (g *GitlabProject) CreateMergeRequest(options *GitlabCreateMergeRequestOptions) (createdMergeRequest *GitlabMergeRequest, err error)

func (*GitlabProject) CreateNextMajorReleaseFromLatestCommitInDefaultBranch added in v0.102.0

func (g *GitlabProject) CreateNextMajorReleaseFromLatestCommitInDefaultBranch(description string, verbose bool) (createdRelease *GitlabRelease, err error)

func (*GitlabProject) CreateNextMinorReleaseFromLatestCommitInDefaultBranch added in v0.102.0

func (g *GitlabProject) CreateNextMinorReleaseFromLatestCommitInDefaultBranch(description string, verbose bool) (createdRelease *GitlabRelease, err error)

func (*GitlabProject) CreateNextPatchReleaseFromLatestCommitInDefaultBranch added in v0.102.0

func (g *GitlabProject) CreateNextPatchReleaseFromLatestCommitInDefaultBranch(description string, verbose bool) (createdRelease *GitlabRelease, err error)

func (*GitlabProject) CreateReleaseFromLatestCommitInDefaultBranch added in v0.100.0

func (p *GitlabProject) CreateReleaseFromLatestCommitInDefaultBranch(createReleaseOptions *GitlabCreateReleaseOptions) (createdRelease *GitlabRelease, err error)

func (*GitlabProject) Delete added in v0.54.0

func (g *GitlabProject) Delete(verbose bool) (err error)

func (*GitlabProject) DeleteAllBranchesExceptDefaultBranch added in v0.46.0

func (g *GitlabProject) DeleteAllBranchesExceptDefaultBranch(verbose bool) (err error)

func (*GitlabProject) DeleteAllReleases added in v0.102.0

func (g *GitlabProject) DeleteAllReleases(deleteOptions *GitlabDeleteReleaseOptions) (err error)

func (*GitlabProject) DeleteAllRepositoryFiles added in v0.45.0

func (g *GitlabProject) DeleteAllRepositoryFiles(branchName string, verbose bool) (err error)

func (*GitlabProject) DeleteBranch added in v0.55.0

func (g *GitlabProject) DeleteBranch(branchName string, deleteOptions *GitlabDeleteBranchOptions) (err error)

func (*GitlabProject) DeleteFileInDefaultBranch added in v0.73.0

func (g *GitlabProject) DeleteFileInDefaultBranch(fileName string, commitMessage string, verbose bool) (err error)

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) GetBranchByName added in v0.46.0

func (g *GitlabProject) GetBranchByName(branchName string) (branch *GitlabBranch, err error)

func (*GitlabProject) GetBranchNames added in v0.46.0

func (g *GitlabProject) GetBranchNames(verbose bool) (branchNames []string, err error)

func (*GitlabProject) GetBranches added in v0.46.0

func (g *GitlabProject) GetBranches() (branches *GitlabBranches, err error)

func (*GitlabProject) GetCachedPath added in v0.31.0

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

func (*GitlabProject) GetCachedPathForPersonalProject added in v0.55.0

func (g *GitlabProject) GetCachedPathForPersonalProject() (cachedPath string, err error)

func (*GitlabProject) GetCachedProjectName added in v0.55.0

func (g *GitlabProject) GetCachedProjectName() (projectName string, err error)

func (*GitlabProject) GetCommitByHashString added in v0.71.0

func (g *GitlabProject) GetCommitByHashString(hashString string, verbose bool) (commit *GitlabCommit, err error)

func (*GitlabProject) GetCurrentUserName added in v0.55.0

func (g *GitlabProject) GetCurrentUserName(verbose bool) (userName string, err error)

func (*GitlabProject) GetDeepCopy added in v0.88.0

func (g *GitlabProject) GetDeepCopy() (copy *GitlabProject)

func (*GitlabProject) GetDefaultBranch added in v0.88.0

func (g *GitlabProject) GetDefaultBranch() (defaultBranch *GitlabBranch, 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) GetDirectoryNames added in v0.45.0

func (g *GitlabProject) GetDirectoryNames(ref string, verbose bool) (directoryNames []string, err error)

func (*GitlabProject) GetFileInDefaultBranch added in v0.73.0

func (g *GitlabProject) GetFileInDefaultBranch(fileName string, verbose bool) (repositoryFile *GitlabRepositoryFile, err error)

func (*GitlabProject) GetFilesNames added in v0.45.0

func (g *GitlabProject) GetFilesNames(ref string, verbose bool) (fileNames []string, 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) GetGitlabReleases added in v0.100.0

func (p *GitlabProject) GetGitlabReleases() (gitlabReleases *GitlabReleases, err error)

func (*GitlabProject) GetId added in v0.31.0

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

func (*GitlabProject) GetLatestCommit added in v0.71.0

func (g *GitlabProject) GetLatestCommit(branchName string, verbose bool) (latestCommit *GitlabCommit, err error)

func (*GitlabProject) GetLatestCommitHashAsString added in v0.57.0

func (g *GitlabProject) GetLatestCommitHashAsString(branchName string, verbose bool) (commitHash string, err error)

func (*GitlabProject) GetLatestCommitOfDefaultBranch added in v0.71.0

func (g *GitlabProject) GetLatestCommitOfDefaultBranch(verbose bool) (latestCommit *GitlabCommit, err error)

func (*GitlabProject) GetMergeRequests added in v0.55.0

func (g *GitlabProject) GetMergeRequests() (mergeRequestes *GitlabProjectMergeRequests, err error)

func (*GitlabProject) GetNativeProjectsService added in v0.31.0

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

func (*GitlabProject) GetNewestSemanticVersion added in v0.102.0

func (g *GitlabProject) GetNewestSemanticVersion(verbose bool) (newestSemanticVersion *VersionSemanticVersion, 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) GetNextMajorReleaseVersionString added in v0.102.0

func (g *GitlabProject) GetNextMajorReleaseVersionString(verbose bool) (nextVersionString string, err error)

func (*GitlabProject) GetNextMinorReleaseVersionString added in v0.102.0

func (g *GitlabProject) GetNextMinorReleaseVersionString(verbose bool) (nextVersionString string, err error)

func (*GitlabProject) GetNextPatchReleaseVersionString added in v0.102.0

func (g *GitlabProject) GetNextPatchReleaseVersionString(verbose bool) (nextVersionString string, err error)

func (*GitlabProject) GetOpenMergeRequestBySourceAndTargetBranch added in v0.64.0

func (g *GitlabProject) GetOpenMergeRequestBySourceAndTargetBranch(sourceBranchName string, targetBranchName string, verbose bool) (mergeRequest *GitlabMergeRequest, err error)

func (*GitlabProject) GetOpenMergeRequestByTitle added in v0.55.0

func (g *GitlabProject) GetOpenMergeRequestByTitle(title string, verbose bool) (mergeRequest *GitlabMergeRequest, err error)

func (*GitlabProject) GetPath added in v0.38.0

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

func (*GitlabProject) GetProjectCommits added in v0.57.0

func (g *GitlabProject) GetProjectCommits() (projectCommits *GitlabProjectCommits, err error)

func (*GitlabProject) GetProjectUrl added in v0.39.0

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

func (*GitlabProject) GetRawResponse added in v0.55.0

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

func (*GitlabProject) GetReleaseByName added in v0.100.0

func (p *GitlabProject) GetReleaseByName(releaseName string) (gitlabRelease *GitlabRelease, err error)

func (*GitlabProject) GetRepositoryFile added in v0.73.0

func (g *GitlabProject) GetRepositoryFile(options *GitlabGetRepositoryFileOptions) (repositoryFile *GitlabRepositoryFile, err error)

func (*GitlabProject) GetRepositoryFiles added in v0.39.0

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

func (*GitlabProject) GetSemanticVersions added in v0.102.0

func (g *GitlabProject) GetSemanticVersions(verbose bool) (semanticVersions []Version, err error)

func (*GitlabProject) GetTagByName added in v0.100.0

func (g *GitlabProject) GetTagByName(tagName string) (tag *GitlabTag, err error)

func (*GitlabProject) GetTags added in v0.31.0

func (g *GitlabProject) GetTags() (gitlabTags *GitlabTags, 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) HasNoRepositoryFiles added in v0.45.0

func (g *GitlabProject) HasNoRepositoryFiles(branchName string, verbose bool) (hasNoRepositoryFiles bool, err error)

func (*GitlabProject) IsCachedPathSet added in v0.38.0

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

func (*GitlabProject) IsIdSet added in v0.54.0

func (g *GitlabProject) IsIdSet() (isSet bool, err error)

func (*GitlabProject) IsPersonalProject added in v0.54.0

func (g *GitlabProject) IsPersonalProject() (isPersonalProject bool, err error)

func (*GitlabProject) ListVersionTagNames added in v0.100.0

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

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) MustCreate added in v0.54.0

func (g *GitlabProject) MustCreate(verbose bool)

func (*GitlabProject) MustCreateBranchFromDefaultBranch added in v0.46.0

func (g *GitlabProject) MustCreateBranchFromDefaultBranch(branchName string, verbose bool) (createdBranch *GitlabBranch)

func (*GitlabProject) MustCreateEmptyFile added in v0.45.0

func (g *GitlabProject) MustCreateEmptyFile(fileName string, ref string, verbose bool) (createdFile *GitlabRepositoryFile)

func (*GitlabProject) MustCreateMergeRequest added in v0.60.0

func (g *GitlabProject) MustCreateMergeRequest(options *GitlabCreateMergeRequestOptions) (createdMergeRequest *GitlabMergeRequest)

func (*GitlabProject) MustCreateNextMajorReleaseFromLatestCommitInDefaultBranch added in v0.102.0

func (g *GitlabProject) MustCreateNextMajorReleaseFromLatestCommitInDefaultBranch(description string, verbose bool) (createdRelease *GitlabRelease)

func (*GitlabProject) MustCreateNextMinorReleaseFromLatestCommitInDefaultBranch added in v0.102.0

func (g *GitlabProject) MustCreateNextMinorReleaseFromLatestCommitInDefaultBranch(description string, verbose bool) (createdRelease *GitlabRelease)

func (*GitlabProject) MustCreateNextPatchReleaseFromLatestCommitInDefaultBranch added in v0.102.0

func (g *GitlabProject) MustCreateNextPatchReleaseFromLatestCommitInDefaultBranch(description string, verbose bool) (createdRelease *GitlabRelease)

func (*GitlabProject) MustCreateReleaseFromLatestCommitInDefaultBranch added in v0.100.0

func (g *GitlabProject) MustCreateReleaseFromLatestCommitInDefaultBranch(createReleaseOptions *GitlabCreateReleaseOptions) (createdRelease *GitlabRelease)

func (*GitlabProject) MustDelete added in v0.54.0

func (g *GitlabProject) MustDelete(verbose bool)

func (*GitlabProject) MustDeleteAllBranchesExceptDefaultBranch added in v0.46.0

func (g *GitlabProject) MustDeleteAllBranchesExceptDefaultBranch(verbose bool)

func (*GitlabProject) MustDeleteAllReleases added in v0.102.0

func (g *GitlabProject) MustDeleteAllReleases(deleteOptions *GitlabDeleteReleaseOptions)

func (*GitlabProject) MustDeleteAllRepositoryFiles added in v0.45.0

func (g *GitlabProject) MustDeleteAllRepositoryFiles(branchName string, verbose bool)

func (*GitlabProject) MustDeleteBranch added in v0.55.0

func (g *GitlabProject) MustDeleteBranch(branchName string, deleteOptions *GitlabDeleteBranchOptions)

func (*GitlabProject) MustDeleteFileInDefaultBranch added in v0.73.0

func (g *GitlabProject) MustDeleteFileInDefaultBranch(fileName string, commitMessage string, verbose bool)

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) MustGetBranchByName added in v0.46.0

func (g *GitlabProject) MustGetBranchByName(branchName string) (branch *GitlabBranch)

func (*GitlabProject) MustGetBranchNames added in v0.46.0

func (g *GitlabProject) MustGetBranchNames(verbose bool) (branchNames []string)

func (*GitlabProject) MustGetBranches added in v0.46.0

func (g *GitlabProject) MustGetBranches() (branches *GitlabBranches)

func (*GitlabProject) MustGetCachedPath added in v0.31.0

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

func (*GitlabProject) MustGetCachedPathForPersonalProject added in v0.55.0

func (g *GitlabProject) MustGetCachedPathForPersonalProject() (cachedPath string)

func (*GitlabProject) MustGetCachedProjectName added in v0.55.0

func (g *GitlabProject) MustGetCachedProjectName() (projectName string)

func (*GitlabProject) MustGetCommitByHashString added in v0.71.0

func (g *GitlabProject) MustGetCommitByHashString(hashString string, verbose bool) (commit *GitlabCommit)

func (*GitlabProject) MustGetCurrentUserName added in v0.55.0

func (g *GitlabProject) MustGetCurrentUserName(verbose bool) (userName string)

func (*GitlabProject) MustGetDefaultBranch added in v0.88.0

func (g *GitlabProject) MustGetDefaultBranch() (defaultBranch *GitlabBranch)

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) MustGetDirectoryNames added in v0.45.0

func (g *GitlabProject) MustGetDirectoryNames(ref string, verbose bool) (directoryNames []string)

func (*GitlabProject) MustGetFileInDefaultBranch added in v0.73.0

func (g *GitlabProject) MustGetFileInDefaultBranch(fileName string, verbose bool) (repositoryFile *GitlabRepositoryFile)

func (*GitlabProject) MustGetFilesNames added in v0.45.0

func (g *GitlabProject) MustGetFilesNames(ref string, verbose bool) (fileNames []string)

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) MustGetGitlabReleases added in v0.100.0

func (g *GitlabProject) MustGetGitlabReleases() (gitlabReleases *GitlabReleases)

func (*GitlabProject) MustGetId added in v0.31.0

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

func (*GitlabProject) MustGetLatestCommit added in v0.71.0

func (g *GitlabProject) MustGetLatestCommit(branchName string, verbose bool) (latestCommit *GitlabCommit)

func (*GitlabProject) MustGetLatestCommitHashAsString added in v0.57.0

func (g *GitlabProject) MustGetLatestCommitHashAsString(branchName string, verbose bool) (commitHash string)

func (*GitlabProject) MustGetLatestCommitOfDefaultBranch added in v0.71.0

func (g *GitlabProject) MustGetLatestCommitOfDefaultBranch(verbose bool) (latestCommit *GitlabCommit)

func (*GitlabProject) MustGetMergeRequests added in v0.55.0

func (g *GitlabProject) MustGetMergeRequests() (mergeRequestes *GitlabProjectMergeRequests)

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) MustGetNewestSemanticVersion added in v0.102.0

func (g *GitlabProject) MustGetNewestSemanticVersion(verbose bool) (newestSemanticVersion *VersionSemanticVersion)

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) MustGetNextMajorReleaseVersionString added in v0.102.0

func (g *GitlabProject) MustGetNextMajorReleaseVersionString(verbose bool) (nextVersionString string)

func (*GitlabProject) MustGetNextMinorReleaseVersionString added in v0.102.0

func (g *GitlabProject) MustGetNextMinorReleaseVersionString(verbose bool) (nextVersionString string)

func (*GitlabProject) MustGetNextPatchReleaseVersionString added in v0.102.0

func (g *GitlabProject) MustGetNextPatchReleaseVersionString(verbose bool) (nextVersionString string)

func (*GitlabProject) MustGetOpenMergeRequestBySourceAndTargetBranch added in v0.64.0

func (g *GitlabProject) MustGetOpenMergeRequestBySourceAndTargetBranch(sourceBranchName string, targetBranchName string, verbose bool) (mergeRequest *GitlabMergeRequest)

func (*GitlabProject) MustGetOpenMergeRequestByTitle added in v0.55.0

func (g *GitlabProject) MustGetOpenMergeRequestByTitle(title string, verbose bool) (mergeRequest *GitlabMergeRequest)

func (*GitlabProject) MustGetPath added in v0.38.0

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

func (*GitlabProject) MustGetProjectCommits added in v0.57.0

func (g *GitlabProject) MustGetProjectCommits() (projectCommits *GitlabProjectCommits)

func (*GitlabProject) MustGetProjectUrl added in v0.39.0

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

func (*GitlabProject) MustGetRawResponse added in v0.55.0

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

func (*GitlabProject) MustGetReleaseByName added in v0.100.0

func (g *GitlabProject) MustGetReleaseByName(releaseName string) (gitlabRelease *GitlabRelease)

func (*GitlabProject) MustGetRepositoryFile added in v0.73.0

func (g *GitlabProject) MustGetRepositoryFile(options *GitlabGetRepositoryFileOptions) (repositoryFile *GitlabRepositoryFile)

func (*GitlabProject) MustGetRepositoryFiles added in v0.39.0

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

func (*GitlabProject) MustGetSemanticVersions added in v0.102.0

func (g *GitlabProject) MustGetSemanticVersions(verbose bool) (semanticVersions []Version)

func (*GitlabProject) MustGetTagByName added in v0.100.0

func (g *GitlabProject) MustGetTagByName(tagName string) (tag *GitlabTag)

func (*GitlabProject) MustGetTags added in v0.31.0

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

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) MustHasNoRepositoryFiles added in v0.45.0

func (g *GitlabProject) MustHasNoRepositoryFiles(branchName string, verbose bool) (hasNoRepositoryFiles bool)

func (*GitlabProject) MustIsIdSet added in v0.54.0

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

func (*GitlabProject) MustIsPersonalProject added in v0.54.0

func (g *GitlabProject) MustIsPersonalProject() (isPersonalProject bool)

func (*GitlabProject) MustListVersionTagNames added in v0.100.0

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

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) (gitlabRepositoryFile *GitlabRepositoryFile)

func (*GitlabProject) MustWriteFileContentInDefaultBranch added in v0.102.0

func (g *GitlabProject) MustWriteFileContentInDefaultBranch(writeOptions *GitlabWriteFileOptions) (gitlabRepositoryFile *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 (g *GitlabProject) SetId(id int) (err error)

func (*GitlabProject) WriteFileContent added in v0.39.0

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

func (*GitlabProject) WriteFileContentInDefaultBranch added in v0.102.0

func (g *GitlabProject) WriteFileContentInDefaultBranch(writeOptions *GitlabWriteFileOptions) (gitlabRepositoryFile *GitlabRepositoryFile, err error)

type GitlabProjectCommits added in v0.57.0

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

func NewGitlabProjectCommits added in v0.57.0

func NewGitlabProjectCommits() (g *GitlabProjectCommits)

func (*GitlabProjectCommits) GetCommitByHashString added in v0.71.0

func (g *GitlabProjectCommits) GetCommitByHashString(hash string, verbose bool) (commit *GitlabCommit, err error)

func (*GitlabProjectCommits) GetGitlab added in v0.71.0

func (g *GitlabProjectCommits) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabProjectCommits) GetGitlabProject added in v0.57.0

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

func (*GitlabProjectCommits) GetNativeCommitsService added in v0.71.0

func (g *GitlabProjectCommits) GetNativeCommitsService() (nativeCommitsService *gitlab.CommitsService, err error)

func (*GitlabProjectCommits) GetNativeGitlabClient added in v0.71.0

func (g *GitlabProjectCommits) GetNativeGitlabClient() (nativeClient *gitlab.Client, err error)

func (*GitlabProjectCommits) MustGetCommitByHashString added in v0.71.0

func (g *GitlabProjectCommits) MustGetCommitByHashString(hash string, verbose bool) (commit *GitlabCommit)

func (*GitlabProjectCommits) MustGetGitlab added in v0.71.0

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

func (*GitlabProjectCommits) MustGetGitlabProject added in v0.57.0

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

func (*GitlabProjectCommits) MustGetNativeCommitsService added in v0.71.0

func (g *GitlabProjectCommits) MustGetNativeCommitsService() (nativeCommitsService *gitlab.CommitsService)

func (*GitlabProjectCommits) MustGetNativeGitlabClient added in v0.71.0

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

func (*GitlabProjectCommits) MustSetGitlabProject added in v0.57.0

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

func (*GitlabProjectCommits) SetGitlabProject added in v0.57.0

func (g *GitlabProjectCommits) SetGitlabProject(gitlabProject *GitlabProject) (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 GitlabProjectMergeRequests added in v0.56.0

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

Handle Gitlab merge requests related to a project.

func NewGitlabMergeRequests added in v0.55.0

func NewGitlabMergeRequests() (g *GitlabProjectMergeRequests)

func NewGitlabProjectMergeRequests added in v0.56.0

func NewGitlabProjectMergeRequests() (g *GitlabProjectMergeRequests)

func (*GitlabProjectMergeRequests) CreateMergeRequest added in v0.56.0

func (g *GitlabProjectMergeRequests) CreateMergeRequest(options *GitlabCreateMergeRequestOptions) (createdMergeRequest *GitlabMergeRequest, err error)

func (*GitlabProjectMergeRequests) GetDefaultBranchName added in v0.56.0

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

func (*GitlabProjectMergeRequests) GetGitlab added in v0.56.0

func (g *GitlabProjectMergeRequests) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabProjectMergeRequests) GetGitlabProject added in v0.56.0

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

func (*GitlabProjectMergeRequests) GetMergeRequestByNativeMergeRequest added in v0.56.0

func (g *GitlabProjectMergeRequests) GetMergeRequestByNativeMergeRequest(nativeMergeRequest *gitlab.MergeRequest) (mergeRequest *GitlabMergeRequest, err error)

func (*GitlabProjectMergeRequests) GetNativeMergeRequestsService added in v0.56.0

func (g *GitlabProjectMergeRequests) GetNativeMergeRequestsService() (nativeService *gitlab.MergeRequestsService, err error)

func (*GitlabProjectMergeRequests) GetOpenMergeRequestBySourceAndTargetBranch added in v0.64.0

func (g *GitlabProjectMergeRequests) GetOpenMergeRequestBySourceAndTargetBranch(sourceBranchName string, targetBranchName string, verbose bool) (mergeRequest *GitlabMergeRequest, err error)

func (*GitlabProjectMergeRequests) GetOpenMergeRequestByTitle added in v0.56.0

func (g *GitlabProjectMergeRequests) GetOpenMergeRequestByTitle(title string, verbose bool) (mergeRequest *GitlabMergeRequest, err error)

func (*GitlabProjectMergeRequests) GetOpenMergeRequestByTitleOrNilIfNotPresent added in v0.56.0

func (g *GitlabProjectMergeRequests) GetOpenMergeRequestByTitleOrNilIfNotPresent(title string, verbose bool) (mergeRequest *GitlabMergeRequest, err error)

func (*GitlabProjectMergeRequests) GetOpenMergeRequests added in v0.56.0

func (g *GitlabProjectMergeRequests) GetOpenMergeRequests(verbose bool) (openMergeRequest []*GitlabMergeRequest, err error)

func (*GitlabProjectMergeRequests) GetProjectId added in v0.56.0

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

func (*GitlabProjectMergeRequests) GetProjectUrlAsString added in v0.56.0

func (g *GitlabProjectMergeRequests) GetProjectUrlAsString() (projectUrl string, err error)

func (*GitlabProjectMergeRequests) GetRawMergeRequests added in v0.56.0

func (g *GitlabProjectMergeRequests) GetRawMergeRequests(options *gitlab.ListProjectMergeRequestsOptions) (rawMergeRequests []*gitlab.MergeRequest, err error)

func (*GitlabProjectMergeRequests) GetUserId added in v0.88.0

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

Returns the `userId` of the currently logged in user.

func (*GitlabProjectMergeRequests) MustCreateMergeRequest added in v0.56.0

func (g *GitlabProjectMergeRequests) MustCreateMergeRequest(options *GitlabCreateMergeRequestOptions) (createdMergeRequest *GitlabMergeRequest)

func (*GitlabProjectMergeRequests) MustGetDefaultBranchName added in v0.56.0

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

func (*GitlabProjectMergeRequests) MustGetGitlab added in v0.56.0

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

func (*GitlabProjectMergeRequests) MustGetGitlabProject added in v0.56.0

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

func (*GitlabProjectMergeRequests) MustGetMergeRequestByNativeMergeRequest added in v0.56.0

func (g *GitlabProjectMergeRequests) MustGetMergeRequestByNativeMergeRequest(nativeMergeRequest *gitlab.MergeRequest) (mergeRequest *GitlabMergeRequest)

func (*GitlabProjectMergeRequests) MustGetNativeMergeRequestsService added in v0.56.0

func (g *GitlabProjectMergeRequests) MustGetNativeMergeRequestsService() (nativeService *gitlab.MergeRequestsService)

func (*GitlabProjectMergeRequests) MustGetOpenMergeRequestBySourceAndTargetBranch added in v0.64.0

func (g *GitlabProjectMergeRequests) MustGetOpenMergeRequestBySourceAndTargetBranch(sourceBranchName string, targetBranchName string, verbose bool) (mergeRequest *GitlabMergeRequest)

func (*GitlabProjectMergeRequests) MustGetOpenMergeRequestByTitle added in v0.56.0

func (g *GitlabProjectMergeRequests) MustGetOpenMergeRequestByTitle(title string, verbose bool) (mergeRequest *GitlabMergeRequest)

func (*GitlabProjectMergeRequests) MustGetOpenMergeRequestByTitleOrNilIfNotPresent added in v0.56.0

func (g *GitlabProjectMergeRequests) MustGetOpenMergeRequestByTitleOrNilIfNotPresent(title string, verbose bool) (mergeRequest *GitlabMergeRequest)

func (*GitlabProjectMergeRequests) MustGetOpenMergeRequests added in v0.56.0

func (g *GitlabProjectMergeRequests) MustGetOpenMergeRequests(verbose bool) (openMergeRequest []*GitlabMergeRequest)

func (*GitlabProjectMergeRequests) MustGetProjectId added in v0.56.0

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

func (*GitlabProjectMergeRequests) MustGetProjectUrlAsString added in v0.56.0

func (g *GitlabProjectMergeRequests) MustGetProjectUrlAsString() (projectUrl string)

func (*GitlabProjectMergeRequests) MustGetRawMergeRequests added in v0.56.0

func (g *GitlabProjectMergeRequests) MustGetRawMergeRequests(options *gitlab.ListProjectMergeRequestsOptions) (rawMergeRequests []*gitlab.MergeRequest)

func (*GitlabProjectMergeRequests) MustGetUserId added in v0.100.0

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

func (*GitlabProjectMergeRequests) MustSetGitlabProject added in v0.56.0

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

func (*GitlabProjectMergeRequests) SetGitlabProject added in v0.56.0

func (g *GitlabProjectMergeRequests) 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) DeleteProject added in v0.54.0

func (g *GitlabProjects) DeleteProject(deleteProjectOptions *GitlabDeleteProjectOptions) (err error)

func (*GitlabProjects) GetCurrentUserName added in v0.54.0

func (g *GitlabProjects) GetCurrentUserName(verbose bool) (userName string, 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) GetPersonalProjectsPath added in v0.54.0

func (g *GitlabProjects) GetPersonalProjectsPath(verbose bool) (personalProjectPath string, 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, verbose bool) (gitlabProject *GitlabProject, err error)

func (*GitlabProjects) GetProjectIdByProjectPath added in v0.54.0

func (g *GitlabProjects) GetProjectIdByProjectPath(projectPath string, verbose bool) (projectId int, err error)

func (*GitlabProjects) GetProjectList added in v0.31.0

func (p *GitlabProjects) GetProjectList(options *GitlabgetProjectListOptions) (gitlabProjects []*GitlabProject, err error)

func (*GitlabProjects) GetProjectPathList added in v0.31.0

func (p *GitlabProjects) GetProjectPathList(options *GitlabgetProjectListOptions) (projectPaths []string, err error)

func (*GitlabProjects) IsProjectPathPersonalProject added in v0.54.0

func (p *GitlabProjects) IsProjectPathPersonalProject(projectPath string) (isPersonalProject bool, err error)

func (*GitlabProjects) MustCreateProject added in v0.31.0

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

func (*GitlabProjects) MustDeleteProject added in v0.54.0

func (g *GitlabProjects) MustDeleteProject(deleteProjectOptions *GitlabDeleteProjectOptions)

func (*GitlabProjects) MustGetCurrentUserName added in v0.55.0

func (g *GitlabProjects) MustGetCurrentUserName(verbose bool) (userName string)

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) MustGetPersonalProjectsPath added in v0.55.0

func (g *GitlabProjects) MustGetPersonalProjectsPath(verbose bool) (personalProjectPath string)

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, verbose bool) (gitlabProject *GitlabProject)

func (*GitlabProjects) MustGetProjectIdByProjectPath added in v0.55.0

func (g *GitlabProjects) MustGetProjectIdByProjectPath(projectPath string, verbose bool) (projectId int)

func (*GitlabProjects) MustGetProjectList added in v0.31.0

func (g *GitlabProjects) MustGetProjectList(options *GitlabgetProjectListOptions) (gitlabProjects []*GitlabProject)

func (*GitlabProjects) MustGetProjectPathList added in v0.31.0

func (g *GitlabProjects) MustGetProjectPathList(options *GitlabgetProjectListOptions) (projectPaths []string)

func (*GitlabProjects) MustIsProjectPathPersonalProject added in v0.54.0

func (g *GitlabProjects) MustIsProjectPathPersonalProject(projectPath string) (isPersonalProject bool)

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) GetDeepCopy added in v0.88.0

func (g *GitlabReadFileOptions) GetDeepCopy() (deepCopy *GitlabReadFileOptions)

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 GitlabRelease added in v0.100.0

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

func NewGitlabRelease added in v0.100.0

func NewGitlabRelease() (g *GitlabRelease)
func (g *GitlabRelease) CreateReleaseLink(createOptions *GitlabCreateReleaseLinkOptions) (createdReleaseLink *GitlabReleaseLink, err error)

func (*GitlabRelease) Delete added in v0.100.0

func (g *GitlabRelease) Delete(deleteOptions *GitlabDeleteReleaseOptions) (err error)

func (*GitlabRelease) DeleteCorrespondingTag added in v0.100.0

func (g *GitlabRelease) DeleteCorrespondingTag(verbose bool) (err error)

func (*GitlabRelease) Exists added in v0.100.0

func (g *GitlabRelease) Exists(verbose bool) (exists bool, err error)

func (*GitlabRelease) GetGitlab added in v0.101.0

func (g *GitlabRelease) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabRelease) GetGitlabProject added in v0.100.0

func (g *GitlabRelease) GetGitlabProject() (project *GitlabProject, err error)
func (g *GitlabRelease) GetGitlabReleaseLinks() (gitlabReleaseLinks *GitlabReleaseLinks, err error)

func (*GitlabRelease) GetGitlabReleases added in v0.100.0

func (g *GitlabRelease) GetGitlabReleases() (gitlabReleases *GitlabReleases, err error)

func (*GitlabRelease) GetName added in v0.100.0

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

func (*GitlabRelease) GetNativeReleasesClient added in v0.100.0

func (g *GitlabRelease) GetNativeReleasesClient() (nativeReleasesClient *gitlab.ReleasesService, err error)

func (*GitlabRelease) GetProjectId added in v0.100.0

func (g *GitlabRelease) GetProjectId() (pid int, err error)

func (*GitlabRelease) GetProjectUrl added in v0.100.0

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

func (*GitlabRelease) GetProjectUrlAndReleaseName added in v0.100.0

func (g *GitlabRelease) GetProjectUrlAndReleaseName() (projectUrl string, releaseName string, err error)

func (*GitlabRelease) GetRawResponse added in v0.100.0

func (g *GitlabRelease) GetRawResponse() (rawRelease *gitlab.Release, err error)

func (*GitlabRelease) GetTag added in v0.100.0

func (g *GitlabRelease) GetTag() (tag *GitlabTag, err error)
func (g *GitlabRelease) HasReleaseLinks(verbose bool) (hasReleaseLinks bool, err error)

func (*GitlabRelease) ListReleaseLinkUrls added in v0.101.0

func (g *GitlabRelease) ListReleaseLinkUrls(verbose bool) (releaseLinkUrls []string, err error)
func (g *GitlabRelease) MustCreateReleaseLink(createOptions *GitlabCreateReleaseLinkOptions) (createdReleaseLink *GitlabReleaseLink)

func (*GitlabRelease) MustDelete added in v0.100.0

func (g *GitlabRelease) MustDelete(deleteOptions *GitlabDeleteReleaseOptions)

func (*GitlabRelease) MustDeleteCorrespondingTag added in v0.100.0

func (g *GitlabRelease) MustDeleteCorrespondingTag(verbose bool)

func (*GitlabRelease) MustExists added in v0.100.0

func (g *GitlabRelease) MustExists(verbose bool) (exists bool)

func (*GitlabRelease) MustGetGitlab added in v0.101.0

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

func (*GitlabRelease) MustGetGitlabProject added in v0.100.0

func (g *GitlabRelease) MustGetGitlabProject() (project *GitlabProject)
func (g *GitlabRelease) MustGetGitlabReleaseLinks() (gitlabReleaseLinks *GitlabReleaseLinks)

func (*GitlabRelease) MustGetGitlabReleases added in v0.100.0

func (g *GitlabRelease) MustGetGitlabReleases() (gitlabReleases *GitlabReleases)

func (*GitlabRelease) MustGetName added in v0.100.0

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

func (*GitlabRelease) MustGetNativeReleasesClient added in v0.100.0

func (g *GitlabRelease) MustGetNativeReleasesClient() (nativeReleasesClient *gitlab.ReleasesService)

func (*GitlabRelease) MustGetProjectId added in v0.100.0

func (g *GitlabRelease) MustGetProjectId() (pid int)

func (*GitlabRelease) MustGetProjectUrl added in v0.100.0

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

func (*GitlabRelease) MustGetProjectUrlAndReleaseName added in v0.100.0

func (g *GitlabRelease) MustGetProjectUrlAndReleaseName() (projectUrl string, releaseName string)

func (*GitlabRelease) MustGetRawResponse added in v0.100.0

func (g *GitlabRelease) MustGetRawResponse() (rawRelease *gitlab.Release)

func (*GitlabRelease) MustGetTag added in v0.100.0

func (g *GitlabRelease) MustGetTag() (tag *GitlabTag)
func (g *GitlabRelease) MustHasReleaseLinks(verbose bool) (hasReleaseLinks bool)

func (*GitlabRelease) MustListReleaseLinkUrls added in v0.101.0

func (g *GitlabRelease) MustListReleaseLinkUrls(verbose bool) (releaseLinkUrls []string)

func (*GitlabRelease) MustSetGitlabReleases added in v0.100.0

func (g *GitlabRelease) MustSetGitlabReleases(gitlabReleases *GitlabReleases)

func (*GitlabRelease) MustSetName added in v0.100.0

func (g *GitlabRelease) MustSetName(name string)

func (*GitlabRelease) SetGitlabReleases added in v0.100.0

func (g *GitlabRelease) SetGitlabReleases(gitlabReleases *GitlabReleases) (err error)

func (*GitlabRelease) SetName added in v0.100.0

func (g *GitlabRelease) SetName(name string) (err error)
type GitlabReleaseLink struct {
	// contains filtered or unexported fields
}
func NewGitlabReleaseLink() (g *GitlabReleaseLink)

func (*GitlabReleaseLink) GetCachedUrl added in v0.101.0

func (g *GitlabReleaseLink) GetCachedUrl() (cachedUrl string, err error)
func (g *GitlabReleaseLink) GetGitlabReleaseLinks() (gitlabReleaseLinks *GitlabReleaseLinks, err error)

func (*GitlabReleaseLink) GetName added in v0.101.0

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

func (*GitlabReleaseLink) MustGetCachedUrl added in v0.101.0

func (g *GitlabReleaseLink) MustGetCachedUrl() (cachedUrl string)
func (g *GitlabReleaseLink) MustGetGitlabReleaseLinks() (gitlabReleaseLinks *GitlabReleaseLinks)

func (*GitlabReleaseLink) MustGetName added in v0.101.0

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

func (*GitlabReleaseLink) MustSetCachedUrl added in v0.101.0

func (g *GitlabReleaseLink) MustSetCachedUrl(cachedUrl string)
func (g *GitlabReleaseLink) MustSetGitlabReleaseLinks(gitlabReleaseLinks *GitlabReleaseLinks)

func (*GitlabReleaseLink) MustSetName added in v0.101.0

func (g *GitlabReleaseLink) MustSetName(name string)

func (*GitlabReleaseLink) SetCachedUrl added in v0.101.0

func (g *GitlabReleaseLink) SetCachedUrl(cachedUrl string) (err error)
func (g *GitlabReleaseLink) SetGitlabReleaseLinks(gitlabReleaseLinks *GitlabReleaseLinks) (err error)

func (*GitlabReleaseLink) SetName added in v0.101.0

func (g *GitlabReleaseLink) SetName(name string) (err error)
type GitlabReleaseLinks struct {
	// contains filtered or unexported fields
}
func NewGitlabReleaseLinks() (g *GitlabReleaseLinks)
func (g *GitlabReleaseLinks) CreateReleaseLink(createOptions *GitlabCreateReleaseLinkOptions) (createdReleaseLink *GitlabReleaseLink, err error)

func (*GitlabReleaseLinks) GetGitlab added in v0.101.0

func (g *GitlabReleaseLinks) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabReleaseLinks) GetGitlabRelease added in v0.101.0

func (g *GitlabReleaseLinks) GetGitlabRelease() (gitlabRelease *GitlabRelease, err error)

func (*GitlabReleaseLinks) GetNativeReleaseLinksClient added in v0.101.0

func (g *GitlabReleaseLinks) GetNativeReleaseLinksClient() (nativeClient *gitlab.ReleaseLinksService, err error)

func (*GitlabReleaseLinks) GetProjectId added in v0.101.0

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

func (*GitlabReleaseLinks) GetProjectIdAndUrl added in v0.101.0

func (g *GitlabReleaseLinks) GetProjectIdAndUrl() (projectId int, projectUrl string, err error)

func (*GitlabReleaseLinks) GetProjectUrl added in v0.101.0

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

func (*GitlabReleaseLinks) GetReleaseLinkByName added in v0.101.0

func (g *GitlabReleaseLinks) GetReleaseLinkByName(linkName string) (releaseLink *GitlabReleaseLink, err error)

func (*GitlabReleaseLinks) GetReleaseName added in v0.101.0

func (g *GitlabReleaseLinks) GetReleaseName() (releaseName string, err error)
func (g *GitlabReleaseLinks) HasReleaseLinks(verbose bool) (hasReleaseLinks bool, err error)

func (*GitlabReleaseLinks) ListReleaseLinkNames added in v0.101.0

func (g *GitlabReleaseLinks) ListReleaseLinkNames(verbose bool) (releaseLinkNames []string, err error)

func (*GitlabReleaseLinks) ListReleaseLinkUrls added in v0.101.0

func (g *GitlabReleaseLinks) ListReleaseLinkUrls(verbose bool) (releaseLinkUrls []string, err error)
func (g *GitlabReleaseLinks) ListReleaseLinks(verbose bool) (releaseLinks []*GitlabReleaseLink, err error)
func (g *GitlabReleaseLinks) MustCreateReleaseLink(createOptions *GitlabCreateReleaseLinkOptions) (createdReleaseLink *GitlabReleaseLink)

func (*GitlabReleaseLinks) MustGetGitlab added in v0.101.0

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

func (*GitlabReleaseLinks) MustGetGitlabRelease added in v0.101.0

func (g *GitlabReleaseLinks) MustGetGitlabRelease() (gitlabRelease *GitlabRelease)

func (*GitlabReleaseLinks) MustGetNativeReleaseLinksClient added in v0.101.0

func (g *GitlabReleaseLinks) MustGetNativeReleaseLinksClient() (nativeClient *gitlab.ReleaseLinksService)

func (*GitlabReleaseLinks) MustGetProjectId added in v0.101.0

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

func (*GitlabReleaseLinks) MustGetProjectIdAndUrl added in v0.101.0

func (g *GitlabReleaseLinks) MustGetProjectIdAndUrl() (projectId int, projectUrl string)

func (*GitlabReleaseLinks) MustGetProjectUrl added in v0.101.0

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

func (*GitlabReleaseLinks) MustGetReleaseLinkByName added in v0.101.0

func (g *GitlabReleaseLinks) MustGetReleaseLinkByName(linkName string) (releaseLink *GitlabReleaseLink)

func (*GitlabReleaseLinks) MustGetReleaseName added in v0.101.0

func (g *GitlabReleaseLinks) MustGetReleaseName() (releaseName string)
func (g *GitlabReleaseLinks) MustHasReleaseLinks(verbose bool) (hasReleaseLinks bool)

func (*GitlabReleaseLinks) MustListReleaseLinkNames added in v0.102.0

func (g *GitlabReleaseLinks) MustListReleaseLinkNames(verbose bool) (releaseLinkNames []string)

func (*GitlabReleaseLinks) MustListReleaseLinkUrls added in v0.101.0

func (g *GitlabReleaseLinks) MustListReleaseLinkUrls(verbose bool) (releaseLinkUrls []string)
func (g *GitlabReleaseLinks) MustListReleaseLinks(verbose bool) (releaseLinks []*GitlabReleaseLink)

func (*GitlabReleaseLinks) MustReleaseLinkByNameExists added in v0.102.0

func (g *GitlabReleaseLinks) MustReleaseLinkByNameExists(linkName string, verbose bool) (exists bool)

func (*GitlabReleaseLinks) MustSetGitlabRelease added in v0.101.0

func (g *GitlabReleaseLinks) MustSetGitlabRelease(gitlabRelease *GitlabRelease)

func (*GitlabReleaseLinks) ReleaseLinkByNameExists added in v0.101.0

func (g *GitlabReleaseLinks) ReleaseLinkByNameExists(linkName string, verbose bool) (exists bool, err error)

func (*GitlabReleaseLinks) SetGitlabRelease added in v0.101.0

func (g *GitlabReleaseLinks) SetGitlabRelease(gitlabRelease *GitlabRelease) (err error)

type GitlabReleases added in v0.100.0

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

func NewGitlabReleases added in v0.100.0

func NewGitlabReleases() (g *GitlabReleases)

func (*GitlabReleases) CreateRelease added in v0.100.0

func (g *GitlabReleases) CreateRelease(createReleaseOptions *GitlabCreateReleaseOptions) (createdRelease *GitlabRelease, err error)

func (*GitlabReleases) DeleteAllReleases added in v0.102.0

func (g *GitlabReleases) DeleteAllReleases(options *GitlabDeleteReleaseOptions) (err error)

func (*GitlabReleases) GetGitlab added in v0.100.0

func (g *GitlabReleases) GetGitlab() (gitlab *GitlabInstance, err error)

func (*GitlabReleases) GetGitlabProject added in v0.100.0

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

func (*GitlabReleases) GetGitlabReleaseByName added in v0.100.0

func (g *GitlabReleases) GetGitlabReleaseByName(releaseName string) (gitlabRelease *GitlabRelease, err error)

func (*GitlabReleases) GetNativeReleasesClient added in v0.100.0

func (g *GitlabReleases) GetNativeReleasesClient() (nativeReleasesClient *gitlab.ReleasesService, err error)

func (*GitlabReleases) GetProjectId added in v0.100.0

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

func (*GitlabReleases) GetProjectIdAndUrl added in v0.100.0

func (g *GitlabReleases) GetProjectIdAndUrl() (projectId int, projectUrl string, err error)

func (*GitlabReleases) GetProjectUrl added in v0.100.0

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

func (*GitlabReleases) ListReleases added in v0.102.0

func (g *GitlabReleases) ListReleases(verbose bool) (releaseList []*GitlabRelease, err error)

func (*GitlabReleases) MustCreateRelease added in v0.100.0

func (g *GitlabReleases) MustCreateRelease(createReleaseOptions *GitlabCreateReleaseOptions) (createdRelease *GitlabRelease)

func (*GitlabReleases) MustDeleteAllReleases added in v0.102.0

func (g *GitlabReleases) MustDeleteAllReleases(options *GitlabDeleteReleaseOptions)

func (*GitlabReleases) MustGetGitlab added in v0.100.0

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

func (*GitlabReleases) MustGetGitlabProject added in v0.100.0

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

func (*GitlabReleases) MustGetGitlabReleaseByName added in v0.100.0

func (g *GitlabReleases) MustGetGitlabReleaseByName(releaseName string) (gitlabRelease *GitlabRelease)

func (*GitlabReleases) MustGetNativeReleasesClient added in v0.100.0

func (g *GitlabReleases) MustGetNativeReleasesClient() (nativeReleasesClient *gitlab.ReleasesService)

func (*GitlabReleases) MustGetProjectId added in v0.100.0

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

func (*GitlabReleases) MustGetProjectIdAndUrl added in v0.100.0

func (g *GitlabReleases) MustGetProjectIdAndUrl() (projectId int, projectUrl string)

func (*GitlabReleases) MustGetProjectUrl added in v0.100.0

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

func (*GitlabReleases) MustListReleases added in v0.102.0

func (g *GitlabReleases) MustListReleases(verbose bool) (releaseList []*GitlabRelease)

func (*GitlabReleases) MustReleaseByNameExists added in v0.101.0

func (g *GitlabReleases) MustReleaseByNameExists(releaseName string, verbose bool) (exists bool)

func (*GitlabReleases) MustSetGitlabProject added in v0.100.0

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

func (*GitlabReleases) ReleaseByNameExists added in v0.101.0

func (g *GitlabReleases) ReleaseByNameExists(releaseName string, verbose bool) (exists bool, err error)

func (*GitlabReleases) SetGitlabProject added in v0.100.0

func (g *GitlabReleases) SetGitlabProject(gitlabProject *GitlabProject) (err error)

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) Delete added in v0.45.0

func (g *GitlabRepositoryFile) Delete(commitMessage string, verbose bool) (err error)

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) GetContentAsBytesAndCommitHash added in v0.88.0

func (g *GitlabRepositoryFile) GetContentAsBytesAndCommitHash(verbose bool) (content []byte, sha256sum string, 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) GetNativeRepositoryFilesClientAndProjectId added in v0.45.0

func (g *GitlabRepositoryFile) GetNativeRepositoryFilesClientAndProjectId() (nativeRepositoryFilesClient *gitlab.RepositoryFilesService, projectId int, 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) GetSha256CheckSum added in v0.88.0

func (g *GitlabRepositoryFile) GetSha256CheckSum() (checkSum string, err error)

func (*GitlabRepositoryFile) IsBranchNameSet added in v0.39.0

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

func (*GitlabRepositoryFile) MustDelete added in v0.45.0

func (g *GitlabRepositoryFile) MustDelete(commitMessage string, verbose 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) MustGetContentAsBytesAndCommitHash added in v0.100.0

func (g *GitlabRepositoryFile) MustGetContentAsBytesAndCommitHash(verbose bool) (content []byte, sha256sum string)

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) MustGetNativeRepositoryFilesClientAndProjectId added in v0.45.0

func (g *GitlabRepositoryFile) MustGetNativeRepositoryFilesClientAndProjectId() (nativeRepositoryFilesClient *gitlab.RepositoryFilesService, projectId int)

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) MustGetSha256CheckSum added in v0.100.0

func (g *GitlabRepositoryFile) MustGetSha256CheckSum() (checkSum string)

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) CreateEmptyFile added in v0.45.0

func (g *GitlabRepositoryFiles) CreateEmptyFile(fileName string, ref string, verbose bool) (createdFile *GitlabRepositoryFile, err error)

func (*GitlabRepositoryFiles) DeleteAllRepositoryFiles added in v0.45.0

func (g *GitlabRepositoryFiles) DeleteAllRepositoryFiles(branchName string, verbose bool) (err error)

func (*GitlabRepositoryFiles) GetDirectoryNames added in v0.45.0

func (g *GitlabRepositoryFiles) GetDirectoryNames(ref string, verbose bool) (directoryNames []string, err error)

func (*GitlabRepositoryFiles) GetFileAndDirectoryNames added in v0.45.0

func (g *GitlabRepositoryFiles) GetFileAndDirectoryNames(ref string, verbose bool) (fileNames []string, err error)

func (*GitlabRepositoryFiles) GetFileNames added in v0.45.0

func (g *GitlabRepositoryFiles) GetFileNames(ref string, verbose bool) (fileNames []string, err error)

func (*GitlabRepositoryFiles) GetFiles added in v0.45.0

func (g *GitlabRepositoryFiles) GetFiles(ref string, verbose bool) (files []*GitlabRepositoryFile, err error)

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) GetNativeRepositoriesClient added in v0.45.0

func (g *GitlabRepositoryFiles) GetNativeRepositoriesClient() (nativeRepositoriesClient *gitlab.RepositoriesService, err error)

func (*GitlabRepositoryFiles) GetNativeRepositoriesClientAndProjectid added in v0.45.0

func (g *GitlabRepositoryFiles) GetNativeRepositoriesClientAndProjectid() (nativeRepositoriesClient *gitlab.RepositoriesService, projectid int, err error)

func (*GitlabRepositoryFiles) GetNativeRepositoryFilesClient added in v0.39.0

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

func (*GitlabRepositoryFiles) GetNativeRepositoryFilesClientAndProjectId added in v0.45.0

func (g *GitlabRepositoryFiles) GetNativeRepositoryFilesClientAndProjectId() (nativeRepositoryFilesClient *gitlab.RepositoryFilesService, projectId int, err error)

func (*GitlabRepositoryFiles) GetProjectId added in v0.45.0

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

func (*GitlabRepositoryFiles) GetProjectUrl added in v0.45.0

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

func (*GitlabRepositoryFiles) GetRepositoryFile added in v0.39.0

func (g *GitlabRepositoryFiles) GetRepositoryFile(options *GitlabGetRepositoryFileOptions) (repositoryFile *GitlabRepositoryFile, err error)

func (*GitlabRepositoryFiles) HasNoRepositoryFiles added in v0.45.0

func (g *GitlabRepositoryFiles) HasNoRepositoryFiles(branchName string, verbose bool) (hasNoRepositoryFiles bool, err error)

func (*GitlabRepositoryFiles) HasRepositoryFiles added in v0.45.0

func (g *GitlabRepositoryFiles) HasRepositoryFiles(branchName string, verbose bool) (hasRepositoryFiles bool, err error)

func (*GitlabRepositoryFiles) MustCreateEmptyFile added in v0.45.0

func (g *GitlabRepositoryFiles) MustCreateEmptyFile(fileName string, ref string, verbose bool) (createdFile *GitlabRepositoryFile)

func (*GitlabRepositoryFiles) MustDeleteAllRepositoryFiles added in v0.45.0

func (g *GitlabRepositoryFiles) MustDeleteAllRepositoryFiles(branchName string, verbose bool)

func (*GitlabRepositoryFiles) MustGetDirectoryNames added in v0.45.0

func (g *GitlabRepositoryFiles) MustGetDirectoryNames(ref string, verbose bool) (directoryNames []string)

func (*GitlabRepositoryFiles) MustGetFileAndDirectoryNames added in v0.45.0

func (g *GitlabRepositoryFiles) MustGetFileAndDirectoryNames(ref string, verbose bool) (fileNames []string)

func (*GitlabRepositoryFiles) MustGetFileNames added in v0.45.0

func (g *GitlabRepositoryFiles) MustGetFileNames(ref string, verbose bool) (fileNames []string)

func (*GitlabRepositoryFiles) MustGetFiles added in v0.45.0

func (g *GitlabRepositoryFiles) MustGetFiles(ref string, verbose bool) (files []*GitlabRepositoryFile)

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) MustGetNativeRepositoriesClient added in v0.45.0

func (g *GitlabRepositoryFiles) MustGetNativeRepositoriesClient() (nativeRepositoriesClient *gitlab.RepositoriesService)

func (*GitlabRepositoryFiles) MustGetNativeRepositoriesClientAndProjectid added in v0.45.0

func (g *GitlabRepositoryFiles) MustGetNativeRepositoriesClientAndProjectid() (nativeRepositoriesClient *gitlab.RepositoriesService, projectid int)

func (*GitlabRepositoryFiles) MustGetNativeRepositoryFilesClient added in v0.39.0

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

func (*GitlabRepositoryFiles) MustGetNativeRepositoryFilesClientAndProjectId added in v0.45.0

func (g *GitlabRepositoryFiles) MustGetNativeRepositoryFilesClientAndProjectId() (nativeRepositoryFilesClient *gitlab.RepositoryFilesService, projectId int)

func (*GitlabRepositoryFiles) MustGetProjectId added in v0.45.0

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

func (*GitlabRepositoryFiles) MustGetProjectUrl added in v0.45.0

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

func (*GitlabRepositoryFiles) MustGetRepositoryFile added in v0.39.0

func (g *GitlabRepositoryFiles) MustGetRepositoryFile(options *GitlabGetRepositoryFileOptions) (repositoryFile *GitlabRepositoryFile)

func (*GitlabRepositoryFiles) MustHasNoRepositoryFiles added in v0.45.0

func (g *GitlabRepositoryFiles) MustHasNoRepositoryFiles(branchName string, verbose bool) (hasNoRepositoryFiles bool)

func (*GitlabRepositoryFiles) MustHasRepositoryFiles added in v0.45.0

func (g *GitlabRepositoryFiles) MustHasRepositoryFiles(branchName string, verbose bool) (hasRepositoryFiles bool)

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 GitlabSyncBranchOptions added in v0.88.0

type GitlabSyncBranchOptions struct {
	// Define the target branch where the files are synced to.
	// Can be specified by either setting the target branch as object or by string.
	TargetBranch     *GitlabBranch
	TargetBranchName string

	PathsToSync []string

	Verbose bool
}

func NewGitlabSyncBranchOptions added in v0.88.0

func NewGitlabSyncBranchOptions() (g *GitlabSyncBranchOptions)

func (*GitlabSyncBranchOptions) GetDeepCopy added in v0.88.0

func (g *GitlabSyncBranchOptions) GetDeepCopy() (copy *GitlabSyncBranchOptions)

func (*GitlabSyncBranchOptions) GetPathsToSync added in v0.88.0

func (g *GitlabSyncBranchOptions) GetPathsToSync() (pathsToSync []string, err error)

func (*GitlabSyncBranchOptions) GetTargetBranch added in v0.88.0

func (g *GitlabSyncBranchOptions) GetTargetBranch() (targetBranch *GitlabBranch, err error)

func (*GitlabSyncBranchOptions) GetTargetBranchName added in v0.88.0

func (g *GitlabSyncBranchOptions) GetTargetBranchName() (targetBranchName string, err error)

func (*GitlabSyncBranchOptions) GetVerbose added in v0.88.0

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

func (*GitlabSyncBranchOptions) IsTargetBranchSet added in v0.88.0

func (g *GitlabSyncBranchOptions) IsTargetBranchSet() (isSet bool)

func (*GitlabSyncBranchOptions) MustGetPathsToSync added in v0.88.0

func (g *GitlabSyncBranchOptions) MustGetPathsToSync() (pathsToSync []string)

func (*GitlabSyncBranchOptions) MustGetTargetBranch added in v0.88.0

func (g *GitlabSyncBranchOptions) MustGetTargetBranch() (targetBranch *GitlabBranch)

func (*GitlabSyncBranchOptions) MustGetTargetBranchName added in v0.88.0

func (g *GitlabSyncBranchOptions) MustGetTargetBranchName() (targetBranchName string)

func (*GitlabSyncBranchOptions) MustSetPathsToSync added in v0.88.0

func (g *GitlabSyncBranchOptions) MustSetPathsToSync(pathsToSync []string)

func (*GitlabSyncBranchOptions) MustSetTargetBranch added in v0.88.0

func (g *GitlabSyncBranchOptions) MustSetTargetBranch(targetBranch *GitlabBranch)

func (*GitlabSyncBranchOptions) MustSetTargetBranchName added in v0.88.0

func (g *GitlabSyncBranchOptions) MustSetTargetBranchName(targetBranchName string)

func (*GitlabSyncBranchOptions) MustSetTargetBranchNameAndUnsetTargetBranchObject added in v0.88.0

func (g *GitlabSyncBranchOptions) MustSetTargetBranchNameAndUnsetTargetBranchObject(targetBranchName string)

func (*GitlabSyncBranchOptions) MustUnsetTargetBranch added in v0.88.0

func (g *GitlabSyncBranchOptions) MustUnsetTargetBranch()

func (*GitlabSyncBranchOptions) SetPathsToSync added in v0.88.0

func (g *GitlabSyncBranchOptions) SetPathsToSync(pathsToSync []string) (err error)

func (*GitlabSyncBranchOptions) SetTargetBranch added in v0.88.0

func (g *GitlabSyncBranchOptions) SetTargetBranch(targetBranch *GitlabBranch) (err error)

func (*GitlabSyncBranchOptions) SetTargetBranchName added in v0.88.0

func (g *GitlabSyncBranchOptions) SetTargetBranchName(targetBranchName string) (err error)

func (*GitlabSyncBranchOptions) SetTargetBranchNameAndUnsetTargetBranchObject added in v0.88.0

func (g *GitlabSyncBranchOptions) SetTargetBranchNameAndUnsetTargetBranchObject(targetBranchName string) (err error)

func (*GitlabSyncBranchOptions) SetVerbose added in v0.88.0

func (g *GitlabSyncBranchOptions) SetVerbose(verbose bool)

func (*GitlabSyncBranchOptions) UnsetTargetBranch added in v0.88.0

func (g *GitlabSyncBranchOptions) UnsetTargetBranch() (err error)

type GitlabTag added in v0.31.0

type GitlabTag struct {
	GitTagBase
	// contains filtered or unexported fields
}

func NewGitlabTag added in v0.31.0

func NewGitlabTag() (g *GitlabTag)

func (*GitlabTag) CreateRelease added in v0.100.0

func (g *GitlabTag) CreateRelease(createReleaseOptions *GitlabCreateReleaseOptions) (createdRelease *GitlabRelease, err error)

func (*GitlabTag) Delete added in v0.100.0

func (g *GitlabTag) Delete(verbose bool) (err error)

func (*GitlabTag) Exists added in v0.100.0

func (g *GitlabTag) Exists(verbose bool) (exists bool, err error)

func (*GitlabTag) GetGitRepository added in v0.139.0

func (g *GitlabTag) GetGitRepository() (gitRepo GitRepository, err error)

func (*GitlabTag) GetGitlabProject added in v0.31.0

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

func (*GitlabTag) GetGitlabReleases added in v0.100.0

func (g *GitlabTag) GetGitlabReleases() (gitlabReleases *GitlabReleases, err error)

func (*GitlabTag) GetGitlabTags added in v0.100.0

func (g *GitlabTag) GetGitlabTags() (gitlabTags *GitlabTags, err error)

func (*GitlabTag) GetHash added in v0.142.0

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

func (*GitlabTag) GetName added in v0.31.0

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

func (*GitlabTag) GetNativeTagsService added in v0.100.0

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

func (*GitlabTag) GetProjectId added in v0.100.0

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

func (*GitlabTag) GetProjectIdAndUrl added in v0.100.0

func (g *GitlabTag) GetProjectIdAndUrl() (projectId int, projectUrl string, err error)

func (*GitlabTag) GetProjectUrl added in v0.100.0

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

func (*GitlabTag) GetRawResponse added in v0.100.0

func (g *GitlabTag) GetRawResponse() (rawResponse *gitlab.Tag, err error)

func (*GitlabTag) IsVersionTag added in v0.31.0

func (g *GitlabTag) IsVersionTag() (isVersionTag bool, err error)

func (*GitlabTag) MustCreateRelease added in v0.100.0

func (g *GitlabTag) MustCreateRelease(createReleaseOptions *GitlabCreateReleaseOptions) (createdRelease *GitlabRelease)

func (*GitlabTag) MustDelete added in v0.100.0

func (g *GitlabTag) MustDelete(verbose bool)

func (*GitlabTag) MustExists added in v0.100.0

func (g *GitlabTag) MustExists(verbose bool) (exists bool)

func (*GitlabTag) MustGetGitRepository added in v0.139.0

func (g *GitlabTag) MustGetGitRepository() (gitRepo GitRepository)

func (*GitlabTag) MustGetGitlabProject added in v0.31.0

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

func (*GitlabTag) MustGetGitlabReleases added in v0.100.0

func (g *GitlabTag) MustGetGitlabReleases() (gitlabReleases *GitlabReleases)

func (*GitlabTag) MustGetGitlabTags added in v0.100.0

func (g *GitlabTag) MustGetGitlabTags() (gitlabTags *GitlabTags)

func (*GitlabTag) MustGetHash added in v0.142.0

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

func (*GitlabTag) MustGetName added in v0.31.0

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

func (*GitlabTag) MustGetNativeTagsService added in v0.100.0

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

func (*GitlabTag) MustGetProjectId added in v0.100.0

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

func (*GitlabTag) MustGetProjectIdAndUrl added in v0.100.0

func (g *GitlabTag) MustGetProjectIdAndUrl() (projectId int, projectUrl string)

func (*GitlabTag) MustGetProjectUrl added in v0.100.0

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

func (*GitlabTag) MustGetRawResponse added in v0.100.0

func (g *GitlabTag) MustGetRawResponse() (rawResponse *gitlab.Tag)

func (*GitlabTag) MustIsVersionTag added in v0.31.0

func (g *GitlabTag) MustIsVersionTag() (isVersionTag bool)

func (*GitlabTag) MustSetGitlabTags added in v0.100.0

func (g *GitlabTag) MustSetGitlabTags(gitlabTags *GitlabTags)

func (*GitlabTag) MustSetName added in v0.31.0

func (g *GitlabTag) MustSetName(name string)

func (*GitlabTag) SetGitlabTags added in v0.100.0

func (g *GitlabTag) SetGitlabTags(gitlabTags *GitlabTags) (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) CreateTag added in v0.100.0

func (g *GitlabTags) CreateTag(createTagOptions *GitlabCreateTagOptions) (createdTag *GitlabTag, err error)

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) GetProjectIdAndUrl added in v0.100.0

func (g *GitlabTags) GetProjectIdAndUrl() (projectId int, projectUrl string, err error)

func (*GitlabTags) GetProjectUrl added in v0.100.0

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

func (*GitlabTags) GetTagByName added in v0.100.0

func (g *GitlabTags) GetTagByName(tagName string) (tag *GitlabTag, err error)

func (*GitlabTags) GetVersionTags added in v0.31.0

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

func (*GitlabTags) ListTagNames added in v0.100.0

func (g *GitlabTags) ListTagNames(verbose bool) (tagNames []string, err error)

func (*GitlabTags) ListTags added in v0.100.0

func (g *GitlabTags) ListTags(verbose bool) (gitlabTags []*GitlabTag, err error)

func (*GitlabTags) ListVersionTagNames added in v0.100.0

func (g *GitlabTags) ListVersionTagNames(verbose bool) (tagNames []string, err error)

func (*GitlabTags) MustCreateTag added in v0.100.0

func (g *GitlabTags) MustCreateTag(createTagOptions *GitlabCreateTagOptions) (createdTag *GitlabTag)

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) MustGetProjectIdAndUrl added in v0.100.0

func (g *GitlabTags) MustGetProjectIdAndUrl() (projectId int, projectUrl string)

func (*GitlabTags) MustGetProjectUrl added in v0.100.0

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

func (*GitlabTags) MustGetTagByName added in v0.100.0

func (g *GitlabTags) MustGetTagByName(tagName string) (tag *GitlabTag)

func (*GitlabTags) MustGetVersionTags added in v0.31.0

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

func (*GitlabTags) MustListTagNames added in v0.100.0

func (g *GitlabTags) MustListTagNames(verbose bool) (tagNames []string)

func (*GitlabTags) MustListTags added in v0.100.0

func (g *GitlabTags) MustListTags(verbose bool) (gitlabTags []*GitlabTag)

func (*GitlabTags) MustListVersionTagNames added in v0.100.0

func (g *GitlabTags) MustListVersionTagNames(verbose bool) (tagNames []string)

func (*GitlabTags) MustSetGitlabProject added in v0.31.0

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

func (*GitlabTags) MustTagByNameExists added in v0.100.0

func (g *GitlabTags) MustTagByNameExists(tagName string, verbose bool) (exists bool)

func (*GitlabTags) SetGitlabProject added in v0.31.0

func (g *GitlabTags) SetGitlabProject(gitlabProject *GitlabProject) (err error)

func (*GitlabTags) TagByNameExists added in v0.100.0

func (g *GitlabTags) TagByNameExists(tagName string, verbose bool) (exists bool, 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) GetUser added in v0.54.0

func (g *GitlabUsers) GetUser() (gitlabUser *GitlabUser, err error)

Return the currently logged in user

func (*GitlabUsers) GetUserById added in v0.54.0

func (g *GitlabUsers) GetUserById(id int) (gitlabUser *GitlabUser, err error)

func (*GitlabUsers) GetUserByNativeGitlabUser added in v0.54.0

func (g *GitlabUsers) GetUserByNativeGitlabUser(nativeUser *gitlab.User) (user *GitlabUser, 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)

Returns the `userId` of the currently logged in user.

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 (g *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) MustGetUser added in v0.55.0

func (g *GitlabUsers) MustGetUser() (gitlabUser *GitlabUser)

func (*GitlabUsers) MustGetUserById added in v0.55.0

func (g *GitlabUsers) MustGetUserById(id int) (gitlabUser *GitlabUser)

func (*GitlabUsers) MustGetUserByNativeGitlabUser added in v0.55.0

func (g *GitlabUsers) MustGetUserByNativeGitlabUser(nativeUser *gitlab.User) (user *GitlabUser)

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) GetDeepCopy added in v0.73.0

func (g *GitlabWriteFileOptions) GetDeepCopy() (copy *GitlabWriteFileOptions)

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 GitlabgetProjectListOptions added in v0.54.0

type GitlabgetProjectListOptions struct {
	Owned   bool
	Verbose bool
}

func NewGitlabgetProjectListOptions added in v0.55.0

func NewGitlabgetProjectListOptions() (g *GitlabgetProjectListOptions)

func (*GitlabgetProjectListOptions) GetOwned added in v0.55.0

func (g *GitlabgetProjectListOptions) GetOwned() (owned bool)

func (*GitlabgetProjectListOptions) GetVerbose added in v0.55.0

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

func (*GitlabgetProjectListOptions) SetOwned added in v0.55.0

func (g *GitlabgetProjectListOptions) SetOwned(owned bool)

func (*GitlabgetProjectListOptions) SetVerbose added in v0.55.0

func (g *GitlabgetProjectListOptions) SetVerbose(verbose bool)

type GnuPGService added in v0.151.0

type GnuPGService struct {
}

func GnuPG added in v0.151.0

func GnuPG() (gnuPG *GnuPGService)

func NewGnuPGService added in v0.151.0

func NewGnuPGService() (g *GnuPGService)

func (*GnuPGService) CheckSignatureValid added in v0.151.0

func (g *GnuPGService) CheckSignatureValid(signatureFile File, verbose bool) (err error)

func (*GnuPGService) MustCheckSignatureValid added in v0.151.0

func (g *GnuPGService) MustCheckSignatureValid(signatureFile File, verbose bool)

func (*GnuPGService) MustSignFile added in v0.151.0

func (g *GnuPGService) MustSignFile(fileToSign File, options *GnuPGSignOptions)

func (*GnuPGService) SignFile added in v0.151.0

func (g *GnuPGService) SignFile(fileToSign File, options *GnuPGSignOptions) (err error)

type GnuPGSignOptions added in v0.151.0

type GnuPGSignOptions struct {
	Verbose      bool
	DetachedSign bool
	AsciiArmor   bool
}

func NewGnuPGSignOptions added in v0.151.0

func NewGnuPGSignOptions() (g *GnuPGSignOptions)

func (*GnuPGSignOptions) GetAsciiArmor added in v0.151.0

func (g *GnuPGSignOptions) GetAsciiArmor() (asciiArmor bool, err error)

func (*GnuPGSignOptions) GetDetachedSign added in v0.151.0

func (g *GnuPGSignOptions) GetDetachedSign() (detachedSign bool, err error)

func (*GnuPGSignOptions) GetVerbose added in v0.151.0

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

func (*GnuPGSignOptions) MustGetAsciiArmor added in v0.151.0

func (g *GnuPGSignOptions) MustGetAsciiArmor() (asciiArmor bool)

func (*GnuPGSignOptions) MustGetDetachedSign added in v0.151.0

func (g *GnuPGSignOptions) MustGetDetachedSign() (detachedSign bool)

func (*GnuPGSignOptions) MustGetVerbose added in v0.151.0

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

func (*GnuPGSignOptions) MustSetAsciiArmor added in v0.151.0

func (g *GnuPGSignOptions) MustSetAsciiArmor(asciiArmor bool)

func (*GnuPGSignOptions) MustSetDetachedSign added in v0.151.0

func (g *GnuPGSignOptions) MustSetDetachedSign(detachedSign bool)

func (*GnuPGSignOptions) MustSetVerbose added in v0.151.0

func (g *GnuPGSignOptions) MustSetVerbose(verbose bool)

func (*GnuPGSignOptions) SetAsciiArmor added in v0.151.0

func (g *GnuPGSignOptions) SetAsciiArmor(asciiArmor bool) (err error)

func (*GnuPGSignOptions) SetDetachedSign added in v0.151.0

func (g *GnuPGSignOptions) SetDetachedSign(detachedSign bool) (err error)

func (*GnuPGSignOptions) SetVerbose added in v0.151.0

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

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 HttpClientService added in v0.17.0

type HttpClientService struct{}

func HttpClient added in v0.17.0

func HttpClient() (httpClient *HttpClientService)

Obsolete: use http.NativeClient() instead:

func NewHttpClientService added in v0.17.0

func NewHttpClientService() (h *HttpClientService)

Obsolete: use http.NativeClient() instead:

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
}

Obsolete: Use https.RequestOptions instead

func NewHttpRequestOptions added in v0.17.0

func NewHttpRequestOptions() (h *HttpRequestOptions)

Obsolete: Use https.RequestOptions instead

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) DataToJsonBytes added in v0.78.0

func (j *JsonService) DataToJsonBytes(data interface{}) (jsonBytes []byte, err error)

func (*JsonService) DataToJsonString added in v0.78.0

func (j *JsonService) DataToJsonString(data interface{}) (jsonString string, err error)

func (*JsonService) JsonFileByPathHas added in v0.85.0

func (j *JsonService) JsonFileByPathHas(jsonFilePath string, query string, keyToCheck string) (has bool, err error)

func (*JsonService) JsonFileHas added in v0.85.0

func (j *JsonService) JsonFileHas(jsonFile File, query string, keyToCheck string) (has bool, err error)

func (*JsonService) JsonStringHas added in v0.85.0

func (j *JsonService) JsonStringHas(jsonString string, query string, keyToCheck string) (has bool, err error)

func (*JsonService) JsonStringToYamlFile added in v0.80.0

func (j *JsonService) JsonStringToYamlFile(jsonString string, outputFile File, verbose bool) (err error)

func (*JsonService) JsonStringToYamlFileByPath added in v0.80.0

func (j *JsonService) JsonStringToYamlFileByPath(jsonString string, outputFilePath string, verbose bool) (outputFile File, err error)

func (*JsonService) JsonStringToYamlString added in v0.80.0

func (j *JsonService) JsonStringToYamlString(jsonString string) (yamlString string, err error)

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) MustDataToJsonBytes added in v0.80.0

func (j *JsonService) MustDataToJsonBytes(data interface{}) (jsonBytes []byte)

func (*JsonService) MustDataToJsonString added in v0.80.0

func (j *JsonService) MustDataToJsonString(data interface{}) (jsonString string)

func (*JsonService) MustJsonFileByPathHas added in v0.85.0

func (j *JsonService) MustJsonFileByPathHas(jsonFilePath string, query string, keyToCheck string) (has bool)

func (*JsonService) MustJsonFileHas added in v0.85.0

func (j *JsonService) MustJsonFileHas(jsonFile File, query string, keyToCheck string) (has bool)

func (*JsonService) MustJsonStringHas added in v0.85.0

func (j *JsonService) MustJsonStringHas(jsonString string, query string, keyToCheck string) (has bool)

func (*JsonService) MustJsonStringToYamlFile added in v0.80.0

func (j *JsonService) MustJsonStringToYamlFile(jsonString string, outputFile File, verbose bool)

func (*JsonService) MustJsonStringToYamlFileByPath added in v0.80.0

func (j *JsonService) MustJsonStringToYamlFileByPath(jsonString string, outputFilePath string, verbose bool) (outputFile File)

func (*JsonService) MustJsonStringToYamlString added in v0.80.0

func (j *JsonService) MustJsonStringToYamlString(jsonString string) (yamlString string)

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) MustPrettyFormatJsonString added in v0.82.0

func (j *JsonService) MustPrettyFormatJsonString(jsonString string) (formatted string)

func (*JsonService) MustRunJqAgainstJsonFileAsString added in v0.91.0

func (j *JsonService) MustRunJqAgainstJsonFileAsString(jsonFile File, query string) (result string)

func (*JsonService) MustRunJqAgainstJsonStringAsBool added in v0.85.0

func (j *JsonService) MustRunJqAgainstJsonStringAsBool(jsonString string, query string) (result bool)

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) PrettyFormatJsonString added in v0.82.0

func (j *JsonService) PrettyFormatJsonString(jsonString string) (formatted string, err error)

func (*JsonService) RunJqAgainstJsonFileAsString added in v0.91.0

func (j *JsonService) RunJqAgainstJsonFileAsString(jsonFile File, query string) (result string, err error)

func (*JsonService) RunJqAgainstJsonStringAsBool added in v0.85.0

func (j *JsonService) RunJqAgainstJsonStringAsBool(jsonString string, query string) (result bool, 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 LocalDirectory added in v0.6.0

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

func GetCurrentWorkingDirectory added in v0.206.0

func GetCurrentWorkingDirectory() (workingDirectory *LocalDirectory, err error)

func GetLocalDirectoryByPath added in v0.6.0

func GetLocalDirectoryByPath(path string) (l *LocalDirectory, err error)

func MustGetCurrentWorkingDirectory added in v0.206.0

func MustGetCurrentWorkingDirectory() (workingDirectory *LocalDirectory)

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) Chmod added in v0.92.0

func (l *LocalDirectory) Chmod(chmodOptions *ChmodOptions) (err error)

func (*LocalDirectory) CopyContentToDirectory added in v0.90.0

func (l *LocalDirectory) CopyContentToDirectory(destinationDir Directory, verbose bool) (err error)

func (*LocalDirectory) CopyContentToLocalDirectory added in v0.52.0

func (l *LocalDirectory) CopyContentToLocalDirectory(destDirectory *LocalDirectory, verbose bool) (err error)

func (*LocalDirectory) CopyFileToTemporaryFile added in v0.52.0

func (l *LocalDirectory) CopyFileToTemporaryFile(verbose bool, filePath ...string) (copy File, err error)

func (*LocalDirectory) CopyFileToTemporaryFileAsLocalFile added in v0.52.0

func (l *LocalDirectory) CopyFileToTemporaryFileAsLocalFile(verbose bool, filePath ...string) (copy *LocalFile, err error)

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(verbose bool, path ...string) (createdFile File, err error)

func (*LocalDirectory) CreateFilesInDirectory added in v0.52.0

func (l *LocalDirectory) CreateFilesInDirectory(filesToCreate []string, verbose bool) (createdFiles []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(verbose bool) (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() (parentPath 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) GetHostDescription added in v0.94.0

func (l *LocalDirectory) GetHostDescription() (hostDescription string, err error)

func (*LocalDirectory) GetLocalPath added in v0.6.0

func (l *LocalDirectory) GetLocalPath() (localPath string, err error)

func (*LocalDirectory) GetParentDirectory added in v0.79.1

func (l *LocalDirectory) GetParentDirectory() (parentDirectory Directory, err error)

func (*LocalDirectory) GetPath added in v0.94.0

func (l *LocalDirectory) GetPath() (dirPath 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) IsEmptyDirectory added in v0.86.0

func (l *LocalDirectory) IsEmptyDirectory(verbose bool) (isEmpty bool, err error)

func (*LocalDirectory) IsLocalDirectory added in v0.13.1

func (l *LocalDirectory) IsLocalDirectory() (isLocalDirectory bool, err error)

func (*LocalDirectory) ListFilePaths added in v0.116.0

func (l *LocalDirectory) ListFilePaths(listOptions *parameteroptions.ListFileOptions) (filePathList []string, err error)

func (*LocalDirectory) ListFiles added in v0.116.0

func (l *LocalDirectory) ListFiles(options *parameteroptions.ListFileOptions) (files []File, err error)

func (*LocalDirectory) ListSubDirectories added in v0.111.0

func (l *LocalDirectory) ListSubDirectories(listDirectoryOptions *parameteroptions.ListDirectoryOptions) (subDirectories []Directory, err error)

func (*LocalDirectory) ListSubDirectoriesAsAbsolutePaths added in v0.111.0

func (l *LocalDirectory) ListSubDirectoriesAsAbsolutePaths(listDirectoryOptions *parameteroptions.ListDirectoryOptions) (subDirectoryPaths []string, err error)

func (*LocalDirectory) MustChmod added in v0.92.0

func (l *LocalDirectory) MustChmod(chmodOptions *ChmodOptions)

func (*LocalDirectory) MustCopyContentToDirectory added in v0.90.0

func (l *LocalDirectory) MustCopyContentToDirectory(destinationDir Directory, verbose bool)

func (*LocalDirectory) MustCopyContentToLocalDirectory added in v0.52.0

func (l *LocalDirectory) MustCopyContentToLocalDirectory(destDirectory *LocalDirectory, verbose bool)

func (*LocalDirectory) MustCopyFileToTemporaryFile added in v0.52.0

func (l *LocalDirectory) MustCopyFileToTemporaryFile(verbose bool, filePath ...string) (copy File)

func (*LocalDirectory) MustCopyFileToTemporaryFileAsLocalFile added in v0.52.0

func (l *LocalDirectory) MustCopyFileToTemporaryFileAsLocalFile(verbose bool, filePath ...string) (copy *LocalFile)

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(verbose bool, path ...string) (createdFile File)

func (*LocalDirectory) MustCreateFilesInDirectory added in v0.52.0

func (l *LocalDirectory) MustCreateFilesInDirectory(filesToCreate []string, verbose bool) (createdFiles []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(verbose bool) (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) MustGetHostDescription added in v0.94.0

func (l *LocalDirectory) MustGetHostDescription() (hostDescription string)

func (*LocalDirectory) MustGetLocalPath added in v0.6.0

func (l *LocalDirectory) MustGetLocalPath() (localPath string)

func (*LocalDirectory) MustGetParentDirectory added in v0.86.0

func (l *LocalDirectory) MustGetParentDirectory() (parentDirectory Directory)

func (*LocalDirectory) MustGetPath added in v0.94.0

func (l *LocalDirectory) MustGetPath() (dirPath 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) MustIsEmptyDirectory added in v0.86.0

func (l *LocalDirectory) MustIsEmptyDirectory(verbose bool) (isEmpty bool)

func (*LocalDirectory) MustIsLocalDirectory added in v0.94.0

func (l *LocalDirectory) MustIsLocalDirectory() (isLocalDirectory bool)

func (*LocalDirectory) MustListFilePaths added in v0.119.0

func (l *LocalDirectory) MustListFilePaths(listOptions *parameteroptions.ListFileOptions) (filePathList []string)

func (*LocalDirectory) MustListFilePathsns added in v0.116.0

func (l *LocalDirectory) MustListFilePathsns(listOptions *parameteroptions.ListFileOptions) (filePathList []string)

func (*LocalDirectory) MustListFiles added in v0.116.0

func (l *LocalDirectory) MustListFiles(options *parameteroptions.ListFileOptions) (files []File)

func (*LocalDirectory) MustListSubDirectories added in v0.111.0

func (l *LocalDirectory) MustListSubDirectories(listDirectoryOptions *parameteroptions.ListDirectoryOptions) (subDirectories []Directory)

func (*LocalDirectory) MustListSubDirectoriesAsAbsolutePaths added in v0.111.0

func (l *LocalDirectory) MustListSubDirectoriesAsAbsolutePaths(listDirectoryOptions *parameteroptions.ListDirectoryOptions) (subDirectoryPaths []string)

func (*LocalDirectory) MustReplaceBetweenMarkers added in v0.52.0

func (l *LocalDirectory) MustReplaceBetweenMarkers(verbose bool)

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) ReplaceBetweenMarkers added in v0.52.0

func (l *LocalDirectory) ReplaceBetweenMarkers(verbose bool) (err error)

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)

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) Chmod added in v0.92.0

func (l *LocalFile) Chmod(chmodOptions *ChmodOptions) (err error)

func (*LocalFile) Chown added in v0.186.0

func (l *LocalFile) Chown(options *ChownOptions) (err error)

func (*LocalFile) CopyToFile added in v0.51.0

func (l *LocalFile) CopyToFile(destFile File, 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(verbose bool) (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) GetHostDescription added in v0.151.0

func (l *LocalFile) GetHostDescription() (hostDescription string, err error)

func (*LocalFile) GetLocalPath

func (l *LocalFile) GetLocalPath() (path string, err error)

func (*LocalFile) GetLocalPathOrEmptyStringIfUnset added in v0.50.0

func (l *LocalFile) GetLocalPathOrEmptyStringIfUnset() (localPath 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) GetSizeBytes added in v0.52.0

func (l *LocalFile) GetSizeBytes() (fileSizeBytes int64, err error)

func (*LocalFile) GetUriAsString

func (l *LocalFile) GetUriAsString() (uri string, err error)

func (*LocalFile) IsPathSet

func (l *LocalFile) IsPathSet() (isSet bool)

func (*LocalFile) MoveToPath added in v0.186.0

func (l *LocalFile) MoveToPath(path string, useSudo bool, verbose bool) (movedFile File, err error)

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) MustChmod added in v0.92.0

func (l *LocalFile) MustChmod(chmodOptions *ChmodOptions)

func (*LocalFile) MustChown added in v0.186.0

func (l *LocalFile) MustChown(options *ChownOptions)

func (*LocalFile) MustCopyToFile added in v0.51.0

func (l *LocalFile) MustCopyToFile(destFile File, 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(verbose bool) (exists bool)

func (*LocalFile) MustGetBaseName added in v0.14.2

func (l *LocalFile) MustGetBaseName() (baseName string)

func (*LocalFile) MustGetHostDescription added in v0.151.0

func (l *LocalFile) MustGetHostDescription() (hostDescription string)

func (*LocalFile) MustGetLocalPath

func (l *LocalFile) MustGetLocalPath() (path string)

func (*LocalFile) MustGetLocalPathOrEmptyStringIfUnset added in v0.94.0

func (l *LocalFile) MustGetLocalPathOrEmptyStringIfUnset() (localPath 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) MustGetSizeBytes added in v0.52.0

func (l *LocalFile) MustGetSizeBytes() (fileSizeBytes int64)

func (*LocalFile) MustGetUriAsString

func (l *LocalFile) MustGetUriAsString() (uri string)

func (*LocalFile) MustMoveToPath added in v0.186.0

func (l *LocalFile) MustMoveToPath(path string, useSudo bool, verbose bool) (movedFile File)

func (*LocalFile) MustReadAsBytes added in v0.1.3

func (l *LocalFile) MustReadAsBytes() (content []byte)

func (*LocalFile) MustReadFirstNBytes added in v0.52.0

func (l *LocalFile) MustReadFirstNBytes(numberOfBytesToRead int) (firstBytes []byte)

func (*LocalFile) MustSecurelyDelete added in v0.50.0

func (l *LocalFile) MustSecurelyDelete(verbose bool)

func (*LocalFile) MustSetPath

func (l *LocalFile) MustSetPath(path string)

func (*LocalFile) MustTruncate added in v0.131.0

func (l *LocalFile) MustTruncate(newSizeBytes int64, verbose bool)

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) ReadFirstNBytes added in v0.52.0

func (l *LocalFile) ReadFirstNBytes(numberOfBytesToRead int) (firstBytes []byte, err error)

func (*LocalFile) SecurelyDelete added in v0.50.0

func (l *LocalFile) SecurelyDelete(verbose bool) (err error)

func (*LocalFile) SetPath

func (l *LocalFile) SetPath(path string) (err error)

func (*LocalFile) Truncate added in v0.131.0

func (l *LocalFile) Truncate(newSizeBytes int64, verbose bool) (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
	GitRepositoryBase
}

func GetLocalGitReposioryFromLocalDirectory added in v0.90.0

func GetLocalGitReposioryFromLocalDirectory(localDirectory *LocalDirectory) (l *LocalGitRepository, err error)

func GetLocalGitRepositoryByPath added in v0.11.0

func GetLocalGitRepositoryByPath(path string) (l *LocalGitRepository, err error)

func MustGetLocalGitReposioryFromLocalDirectory added in v0.90.0

func MustGetLocalGitReposioryFromLocalDirectory(localDirectory *LocalDirectory) (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) AddFileByPath added in v0.124.0

func (l *LocalGitRepository) AddFileByPath(pathToAdd string, verbose bool) (err error)

func (*LocalGitRepository) AddRemote added in v0.171.0

func (l *LocalGitRepository) AddRemote(remoteOptions *GitRemoteAddOptions) (err error)

func (*LocalGitRepository) CheckoutBranchByName added in v0.166.0

func (l *LocalGitRepository) CheckoutBranchByName(name string, verbose bool) (err error)

func (*LocalGitRepository) CloneRepository added in v0.123.0

func (l *LocalGitRepository) CloneRepository(repository GitRepository, verbose bool) (err error)

func (*LocalGitRepository) CloneRepositoryByPathOrUrl added in v0.123.0

func (l *LocalGitRepository) CloneRepositoryByPathOrUrl(urlOrPathToClone string, verbose bool) (err error)

func (*LocalGitRepository) Commit added in v0.11.0

func (l *LocalGitRepository) Commit(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) CreateBranch added in v0.166.0

func (l *LocalGitRepository) CreateBranch(createOptions *CreateBranchOptions) (err error)

func (*LocalGitRepository) CreateTag added in v0.135.0

func (l *LocalGitRepository) CreateTag(options *GitRepositoryCreateTagOptions) (createdTag GitTag, err error)

func (*LocalGitRepository) DeleteBranchByName added in v0.166.0

func (l *LocalGitRepository) DeleteBranchByName(name string, verbose bool) (err error)

func (*LocalGitRepository) Fetch added in v0.167.0

func (l *LocalGitRepository) Fetch(verbose bool) (err error)

func (*LocalGitRepository) FileByPathExists added in v0.132.0

func (l *LocalGitRepository) FileByPathExists(path string, verbose bool) (exists bool, err error)

func (*LocalGitRepository) GetAsGoGitRepository added in v0.11.0

func (l *LocalGitRepository) GetAsGoGitRepository() (goGitRepository *git.Repository, err error)

func (*LocalGitRepository) GetAsLocalDirectory added in v0.51.0

func (l *LocalGitRepository) GetAsLocalDirectory() (localDirectory *LocalDirectory, err error)

func (*LocalGitRepository) GetAsLocalGitRepository added in v0.51.0

func (l *LocalGitRepository) GetAsLocalGitRepository() (localGitRepository *LocalGitRepository, 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) GetCurrentBranchName added in v0.166.0

func (l *LocalGitRepository) GetCurrentBranchName(verbose bool) (branchName string, err error)

func (*LocalGitRepository) GetCurrentCommit added in v0.11.0

func (l *LocalGitRepository) GetCurrentCommit(verbose bool) (gitCommit *GitCommit, err error)

func (*LocalGitRepository) GetCurrentCommitGoGitHash added in v0.135.0

func (l *LocalGitRepository) GetCurrentCommitGoGitHash(verbose bool) (hash *plumbing.Hash, err error)

func (*LocalGitRepository) GetCurrentCommitHash added in v0.11.0

func (l *LocalGitRepository) GetCurrentCommitHash(verbose bool) (commitHash string, err error)

func (*LocalGitRepository) GetCurrentCommitHashAsBytes added in v0.135.0

func (l *LocalGitRepository) GetCurrentCommitHashAsBytes(verbose bool) (hash []byte, err error)

func (*LocalGitRepository) GetDirectoryByPath added in v0.178.0

func (l *LocalGitRepository) GetDirectoryByPath(pathToSubDir ...string) (subDir Directory, err error)

func (*LocalGitRepository) GetGitStatusOutput added in v0.51.0

func (l *LocalGitRepository) GetGitStatusOutput(verbose bool) (output 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) GetGoGitHashFromHashString added in v0.142.0

func (l *LocalGitRepository) GetGoGitHashFromHashString(hashString string) (hash *plumbing.Hash, 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) GetHashByTagName added in v0.142.0

func (l *LocalGitRepository) GetHashByTagName(tagName string) (hash string, err error)

func (*LocalGitRepository) GetRemoteConfigs added in v0.171.0

func (l *LocalGitRepository) GetRemoteConfigs(verbose bool) (remoteConfigs []*GitRemoteConfig, err error)

func (*LocalGitRepository) GetRootDirectory added in v0.18.0

func (l *LocalGitRepository) GetRootDirectory(verbose bool) (rootDirectory Directory, err error)

func (*LocalGitRepository) GetRootDirectoryPath added in v0.18.0

func (l *LocalGitRepository) GetRootDirectoryPath(verbose bool) (rootDirectoryPath string, err error)

func (*LocalGitRepository) GetTagByName added in v0.135.0

func (l *LocalGitRepository) GetTagByName(tagName string) (tag GitTag, err error)

func (*LocalGitRepository) GitlabCiYamlFileExists added in v0.24.0

func (l *LocalGitRepository) GitlabCiYamlFileExists(verbose bool) (gitlabCiYamlFileExists bool, err error)

func (*LocalGitRepository) HasInitialCommit added in v0.120.0

func (c *LocalGitRepository) HasInitialCommit(verbose bool) (hasInitialCommit bool, err error)

func (*LocalGitRepository) HasNoUncommittedChanges added in v0.11.0

func (l *LocalGitRepository) HasNoUncommittedChanges(verbose bool) (hasUncommittedChanges bool, err error)

func (*LocalGitRepository) HasUncommittedChanges added in v0.11.0

func (l *LocalGitRepository) HasUncommittedChanges(verbose bool) (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(verbose bool) (isGitRepository bool, err error)

func (*LocalGitRepository) IsInitialized added in v0.11.0

func (l *LocalGitRepository) IsInitialized(verbose bool) (isInitialized bool, err error)

func (*LocalGitRepository) ListBranchNames added in v0.166.0

func (l *LocalGitRepository) ListBranchNames(verbose bool) (branchNames []string, err error)

func (*LocalGitRepository) ListTagNames added in v0.135.0

func (l *LocalGitRepository) ListTagNames(verbose bool) (tagNames []string, err error)

func (*LocalGitRepository) ListTags added in v0.138.0

func (l *LocalGitRepository) ListTags(verbose bool) (tags []GitTag, err error)

func (*LocalGitRepository) ListTagsForCommitHash added in v0.142.0

func (l *LocalGitRepository) ListTagsForCommitHash(hash string, verbose bool) (tags []GitTag, err error)

func (*LocalGitRepository) MustAddFileByPath added in v0.124.0

func (l *LocalGitRepository) MustAddFileByPath(pathToAdd string, verbose bool)

func (*LocalGitRepository) MustAddRemote added in v0.171.0

func (l *LocalGitRepository) MustAddRemote(remoteOptions *GitRemoteAddOptions)

func (*LocalGitRepository) MustCheckoutBranchByName added in v0.166.0

func (l *LocalGitRepository) MustCheckoutBranchByName(name string, verbose bool)

func (*LocalGitRepository) MustCloneRepository added in v0.123.0

func (l *LocalGitRepository) MustCloneRepository(repository GitRepository, verbose bool)

func (*LocalGitRepository) MustCloneRepositoryByPathOrUrl added in v0.123.0

func (l *LocalGitRepository) MustCloneRepositoryByPathOrUrl(pathToClone string, verbose bool)

func (*LocalGitRepository) MustCommit added in v0.11.0

func (l *LocalGitRepository) MustCommit(commitOptions *GitCommitOptions) (createdCommit *GitCommit)

func (*LocalGitRepository) MustCommitHasParentCommitByCommitHash added in v0.34.0

func (l *LocalGitRepository) MustCommitHasParentCommitByCommitHash(hash string) (hasParentCommit bool)

func (*LocalGitRepository) MustCreateBranch added in v0.166.0

func (l *LocalGitRepository) MustCreateBranch(createOptions *CreateBranchOptions)

func (*LocalGitRepository) MustCreateTag added in v0.135.0

func (l *LocalGitRepository) MustCreateTag(options *GitRepositoryCreateTagOptions) (createdTag GitTag)

func (*LocalGitRepository) MustDeleteBranchByName added in v0.166.0

func (l *LocalGitRepository) MustDeleteBranchByName(name string, verbose bool)

func (*LocalGitRepository) MustFetch added in v0.167.0

func (l *LocalGitRepository) MustFetch(verbose bool)

func (*LocalGitRepository) MustFileByPathExists added in v0.132.0

func (l *LocalGitRepository) MustFileByPathExists(path string, verbose bool) (exists bool)

func (*LocalGitRepository) MustGetAsGoGitRepository added in v0.11.0

func (l *LocalGitRepository) MustGetAsGoGitRepository() (goGitRepository *git.Repository)

func (*LocalGitRepository) MustGetAsLocalDirectory added in v0.51.0

func (l *LocalGitRepository) MustGetAsLocalDirectory() (localDirectory *LocalDirectory)

func (*LocalGitRepository) MustGetAsLocalGitRepository added in v0.51.0

func (l *LocalGitRepository) MustGetAsLocalGitRepository() (localGitRepository *LocalGitRepository)

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) MustGetCurrentBranchName added in v0.166.0

func (l *LocalGitRepository) MustGetCurrentBranchName(verbose bool) (branchName string)

func (*LocalGitRepository) MustGetCurrentCommit added in v0.11.0

func (l *LocalGitRepository) MustGetCurrentCommit(verbose bool) (gitCommit *GitCommit)

func (*LocalGitRepository) MustGetCurrentCommitGoGitHash added in v0.135.0

func (l *LocalGitRepository) MustGetCurrentCommitGoGitHash(verbose bool) (hash *plumbing.Hash)

func (*LocalGitRepository) MustGetCurrentCommitHash added in v0.11.0

func (l *LocalGitRepository) MustGetCurrentCommitHash(verbose bool) (commitHash string)

func (*LocalGitRepository) MustGetCurrentCommitHashAsBytes added in v0.135.0

func (l *LocalGitRepository) MustGetCurrentCommitHashAsBytes(verbose bool) (hash []byte)

func (*LocalGitRepository) MustGetDirectoryByPath added in v0.178.0

func (l *LocalGitRepository) MustGetDirectoryByPath(pathToSubDir ...string) (subDir Directory)

func (*LocalGitRepository) MustGetGitStatusOutput added in v0.51.0

func (l *LocalGitRepository) MustGetGitStatusOutput(verbose bool) (output 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) MustGetGoGitHashFromHashString added in v0.143.0

func (l *LocalGitRepository) MustGetGoGitHashFromHashString(hashString string) (hash *plumbing.Hash)

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) MustGetHashByTagName added in v0.142.0

func (l *LocalGitRepository) MustGetHashByTagName(tagName string) (hash string)

func (*LocalGitRepository) MustGetRemoteConfigs added in v0.171.0

func (l *LocalGitRepository) MustGetRemoteConfigs(verbose bool) (remoteConfigs []*GitRemoteConfig)

func (*LocalGitRepository) MustGetRootDirectory added in v0.18.0

func (l *LocalGitRepository) MustGetRootDirectory(verbose bool) (rootDirectory Directory)

func (*LocalGitRepository) MustGetRootDirectoryPath added in v0.18.0

func (l *LocalGitRepository) MustGetRootDirectoryPath(verbose bool) (rootDirectoryPath string)

func (*LocalGitRepository) MustGetTagByName added in v0.135.0

func (l *LocalGitRepository) MustGetTagByName(tagName string) (tag GitTag)

func (*LocalGitRepository) MustGitlabCiYamlFileExists added in v0.24.0

func (l *LocalGitRepository) MustGitlabCiYamlFileExists(verbose bool) (gitlabCiYamlFileExists bool)

func (*LocalGitRepository) MustHasInitialCommit added in v0.120.0

func (l *LocalGitRepository) MustHasInitialCommit(verbose bool) (hasInitialCommit bool)

func (*LocalGitRepository) MustHasNoUncommittedChanges added in v0.11.0

func (l *LocalGitRepository) MustHasNoUncommittedChanges(verbose bool) (hasUncommittedChanges bool)

func (*LocalGitRepository) MustHasUncommittedChanges added in v0.11.0

func (l *LocalGitRepository) MustHasUncommittedChanges(verbose bool) (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(verbose bool) (isGitRepository bool)

func (*LocalGitRepository) MustIsInitialized added in v0.11.0

func (l *LocalGitRepository) MustIsInitialized(verbose bool) (isInitialized bool)

func (*LocalGitRepository) MustListBranchNames added in v0.166.0

func (l *LocalGitRepository) MustListBranchNames(verbose bool) (branchNames []string)

func (*LocalGitRepository) MustListTagNames added in v0.135.0

func (l *LocalGitRepository) MustListTagNames(verbose bool) (tagNames []string)

func (*LocalGitRepository) MustListTags added in v0.138.0

func (l *LocalGitRepository) MustListTags(verbose bool) (tags []GitTag)

func (*LocalGitRepository) MustListTagsForCommitHash added in v0.142.0

func (l *LocalGitRepository) MustListTagsForCommitHash(hash string, verbose bool) (tags []GitTag)

func (*LocalGitRepository) MustPull added in v0.11.0

func (l *LocalGitRepository) MustPull(verbose bool)

func (*LocalGitRepository) MustPullFromRemote added in v0.174.0

func (l *LocalGitRepository) MustPullFromRemote(pullOptions *GitPullFromRemoteOptions)

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) MustPushTagsToRemote added in v0.175.0

func (l *LocalGitRepository) MustPushTagsToRemote(remoteName string, verbose bool)

func (*LocalGitRepository) MustPushToRemote added in v0.173.0

func (l *LocalGitRepository) MustPushToRemote(remoteName string, verbose bool)

func (*LocalGitRepository) MustRemoteByNameExists added in v0.171.0

func (l *LocalGitRepository) MustRemoteByNameExists(remoteName string, verbose bool) (remoteExists bool)

func (*LocalGitRepository) MustRemoteConfigurationExists added in v0.171.0

func (l *LocalGitRepository) MustRemoteConfigurationExists(config *GitRemoteConfig, verbose bool) (exists bool)

func (*LocalGitRepository) MustRemoveRemoteByName added in v0.171.0

func (l *LocalGitRepository) MustRemoveRemoteByName(remoteNameToRemove string, verbose bool)

func (*LocalGitRepository) MustRunGitCommand added in v0.22.0

func (l *LocalGitRepository) MustRunGitCommand(gitCommand []string, verbose bool) (commandOutput *CommandOutput)

func (*LocalGitRepository) MustRunGitCommandAndGetStdout added in v0.51.0

func (l *LocalGitRepository) MustRunGitCommandAndGetStdout(gitCommand []string, verbose bool) (commandOutput string)

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) MustSetRemoteUrl added in v0.172.0

func (l *LocalGitRepository) MustSetRemoteUrl(remoteUrl string, verbose bool)

func (*LocalGitRepository) Pull added in v0.11.0

func (l *LocalGitRepository) Pull(verbose bool) (err error)

func (*LocalGitRepository) PullFromRemote added in v0.174.0

func (l *LocalGitRepository) PullFromRemote(pullOptions *GitPullFromRemoteOptions) (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) PushTagsToRemote added in v0.175.0

func (l *LocalGitRepository) PushTagsToRemote(remoteName string, verbose bool) (err error)

func (*LocalGitRepository) PushToRemote added in v0.173.0

func (l *LocalGitRepository) PushToRemote(remoteName string, verbose bool) (err error)

func (*LocalGitRepository) RemoteByNameExists added in v0.171.0

func (l *LocalGitRepository) RemoteByNameExists(remoteName string, verbose bool) (remoteExists bool, err error)

func (*LocalGitRepository) RemoteConfigurationExists added in v0.171.0

func (l *LocalGitRepository) RemoteConfigurationExists(config *GitRemoteConfig, verbose bool) (exists bool, err error)

func (*LocalGitRepository) RemoveRemoteByName added in v0.171.0

func (l *LocalGitRepository) RemoveRemoteByName(remoteNameToRemove string, verbose bool) (err error)

func (*LocalGitRepository) RunGitCommand added in v0.22.0

func (l *LocalGitRepository) RunGitCommand(gitCommand []string, verbose bool) (commandOutput *CommandOutput, err error)

TODO remove: LocalGitRepository should purely base on goGit, not by calling the git binary.

func (*LocalGitRepository) RunGitCommandAndGetStdout added in v0.51.0

func (l *LocalGitRepository) RunGitCommandAndGetStdout(gitCommand []string, verbose bool) (commandOutput string, 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)

func (*LocalGitRepository) SetRemoteUrl added in v0.172.0

func (l *LocalGitRepository) SetRemoteUrl(remoteUrl string, verbose bool) (err error)

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 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 PreCommitConfigFile added in v0.51.0

type PreCommitConfigFile struct {
	LocalFile
}

func GetPreCommitConfigByFile added in v0.51.0

func GetPreCommitConfigByFile(file File) (preCommitConfigFile *PreCommitConfigFile, err error)

func GetPreCommitConfigByLocalPath added in v0.51.0

func GetPreCommitConfigByLocalPath(localPath string) (preCommitConfigFile *PreCommitConfigFile, err error)

func GetPreCommitConfigFileInGitRepository added in v0.161.0

func GetPreCommitConfigFileInGitRepository(gitRepository GitRepository) (preCommitConfigFile *PreCommitConfigFile, err error)

func MustGetPreCommitConfigByFile added in v0.51.0

func MustGetPreCommitConfigByFile(file File) (preCommitConfigFile *PreCommitConfigFile)

func MustGetPreCommitConfigByLocalPath added in v0.51.0

func MustGetPreCommitConfigByLocalPath(localPath string) (preCommitConfigFile *PreCommitConfigFile)

func MustGetPreCommitConfigFileInGitRepository added in v0.161.0

func MustGetPreCommitConfigFileInGitRepository(gitRepository GitRepository) (preCommitConfigFile *PreCommitConfigFile)

func NewPreCommitConfigFile added in v0.51.0

func NewPreCommitConfigFile() (preCommitConfigFile *PreCommitConfigFile)

func (*PreCommitConfigFile) GetAbsolutePath added in v0.51.0

func (p *PreCommitConfigFile) GetAbsolutePath() (absolutePath string, err error)

func (*PreCommitConfigFile) GetDependencies added in v0.51.0

func (p *PreCommitConfigFile) GetDependencies(verbose bool) (dependencies []Dependency, err error)

func (*PreCommitConfigFile) GetLocalPath added in v0.51.0

func (p *PreCommitConfigFile) GetLocalPath() (localPath string, err error)

func (*PreCommitConfigFile) GetPreCommitConfigFileContent added in v0.51.0

func (p *PreCommitConfigFile) GetPreCommitConfigFileContent(verbose bool) (content *PreCommitConfigFileContent, err error)

func (*PreCommitConfigFile) GetUriAsString added in v0.51.0

func (p *PreCommitConfigFile) GetUriAsString() (uri string, err error)

func (*PreCommitConfigFile) IsValidPreCommitConfigFile added in v0.51.0

func (p *PreCommitConfigFile) IsValidPreCommitConfigFile(verbose bool) (isValidPreCommitConfigFile bool, err error)

func (*PreCommitConfigFile) MustGetAbsolutePath added in v0.51.0

func (p *PreCommitConfigFile) MustGetAbsolutePath() (absolutePath string)

func (*PreCommitConfigFile) MustGetDependencies added in v0.51.0

func (p *PreCommitConfigFile) MustGetDependencies(verbose bool) (dependencies []Dependency)

func (*PreCommitConfigFile) MustGetLocalPath added in v0.51.0

func (p *PreCommitConfigFile) MustGetLocalPath() (localPath string)

func (*PreCommitConfigFile) MustGetPreCommitConfigFileContent added in v0.51.0

func (p *PreCommitConfigFile) MustGetPreCommitConfigFileContent(verbose bool) (content *PreCommitConfigFileContent)

func (*PreCommitConfigFile) MustGetUriAsString added in v0.51.0

func (p *PreCommitConfigFile) MustGetUriAsString() (uri string)

func (*PreCommitConfigFile) MustIsValidPreCommitConfigFile added in v0.51.0

func (p *PreCommitConfigFile) MustIsValidPreCommitConfigFile(verbose bool) (isValidPreCommitConfigFile bool)

func (*PreCommitConfigFile) MustUpdateDependencies added in v0.51.0

func (p *PreCommitConfigFile) MustUpdateDependencies(options *UpdateDependenciesOptions) (changeSummary *changesummary.ChangeSummary)

func (*PreCommitConfigFile) MustUpdateDependency added in v0.51.0

func (p *PreCommitConfigFile) MustUpdateDependency(dependency Dependency, options *UpdateDependenciesOptions) (changeSummary *changesummary.ChangeSummary)

func (*PreCommitConfigFile) MustWritePreCommitConfigFileContent added in v0.51.0

func (p *PreCommitConfigFile) MustWritePreCommitConfigFileContent(content *PreCommitConfigFileContent, verbose bool)

func (*PreCommitConfigFile) UpdateDependencies added in v0.51.0

func (p *PreCommitConfigFile) UpdateDependencies(options *UpdateDependenciesOptions) (changeSummary *changesummary.ChangeSummary, err error)

func (*PreCommitConfigFile) UpdateDependency added in v0.51.0

func (p *PreCommitConfigFile) UpdateDependency(dependency Dependency, options *UpdateDependenciesOptions) (changeSummary *changesummary.ChangeSummary, err error)

func (*PreCommitConfigFile) WritePreCommitConfigFileContent added in v0.51.0

func (p *PreCommitConfigFile) WritePreCommitConfigFileContent(content *PreCommitConfigFileContent, verbose bool) (err error)

type PreCommitConfigFileConfig added in v0.51.0

type PreCommitConfigFileConfig struct {
	Repos []PreCommitConfigFileConfigRepo `yaml:"repos"`
}

func NewPreCommitConfigFileConfig added in v0.51.0

func NewPreCommitConfigFileConfig() (p *PreCommitConfigFileConfig)

func (*PreCommitConfigFileConfig) GetRepoByUrl added in v0.51.0

func (p *PreCommitConfigFileConfig) GetRepoByUrl(repoUrl string) (repo *PreCommitConfigFileConfigRepo, err error)

func (*PreCommitConfigFileConfig) GetRepos added in v0.51.0

func (p *PreCommitConfigFileConfig) GetRepos() (repos []PreCommitConfigFileConfigRepo, err error)

func (*PreCommitConfigFileConfig) MustGetRepoByUrl added in v0.51.0

func (p *PreCommitConfigFileConfig) MustGetRepoByUrl(repoUrl string) (repo *PreCommitConfigFileConfigRepo)

func (*PreCommitConfigFileConfig) MustGetRepos added in v0.51.0

func (p *PreCommitConfigFileConfig) MustGetRepos() (repos []PreCommitConfigFileConfigRepo)

func (*PreCommitConfigFileConfig) MustSetRepos added in v0.51.0

func (*PreCommitConfigFileConfig) MustSetRepositoryVersion added in v0.51.0

func (p *PreCommitConfigFileConfig) MustSetRepositoryVersion(repoUrl string, newVersion string)

func (*PreCommitConfigFileConfig) SetRepos added in v0.51.0

func (*PreCommitConfigFileConfig) SetRepositoryVersion added in v0.51.0

func (p *PreCommitConfigFileConfig) SetRepositoryVersion(repoUrl string, newVersion string) (err error)

type PreCommitConfigFileConfigRepo added in v0.51.0

type PreCommitConfigFileConfigRepo struct {
	Repo  string                              `yaml:"repo"`
	Rev   string                              `yaml:"rev"`
	Hooks []PreCommitConfigFileConfigRepoHook `yaml:"hooks"`
}

func NewPreCommitConfigFileConfigRepo added in v0.51.0

func NewPreCommitConfigFileConfigRepo() (p *PreCommitConfigFileConfigRepo)

func (*PreCommitConfigFileConfigRepo) GetHooks added in v0.51.0

func (*PreCommitConfigFileConfigRepo) GetRepo added in v0.51.0

func (p *PreCommitConfigFileConfigRepo) GetRepo() (repo string, err error)

func (*PreCommitConfigFileConfigRepo) GetRev added in v0.51.0

func (p *PreCommitConfigFileConfigRepo) GetRev() (rev string, err error)

func (*PreCommitConfigFileConfigRepo) MustGetHooks added in v0.51.0

func (*PreCommitConfigFileConfigRepo) MustGetRepo added in v0.51.0

func (p *PreCommitConfigFileConfigRepo) MustGetRepo() (repo string)

func (*PreCommitConfigFileConfigRepo) MustGetRev added in v0.51.0

func (p *PreCommitConfigFileConfigRepo) MustGetRev() (rev string)

func (*PreCommitConfigFileConfigRepo) MustSetHooks added in v0.51.0

func (*PreCommitConfigFileConfigRepo) MustSetRepo added in v0.51.0

func (p *PreCommitConfigFileConfigRepo) MustSetRepo(repo string)

func (*PreCommitConfigFileConfigRepo) MustSetRev added in v0.51.0

func (p *PreCommitConfigFileConfigRepo) MustSetRev(rev string)

func (*PreCommitConfigFileConfigRepo) SetHooks added in v0.51.0

func (*PreCommitConfigFileConfigRepo) SetRepo added in v0.51.0

func (p *PreCommitConfigFileConfigRepo) SetRepo(repo string) (err error)

func (*PreCommitConfigFileConfigRepo) SetRev added in v0.51.0

func (p *PreCommitConfigFileConfigRepo) SetRev(rev string) (err error)

type PreCommitConfigFileConfigRepoHook added in v0.51.0

type PreCommitConfigFileConfigRepoHook struct {
	ID string `yaml:"id"`
}

func NewPreCommitConfigFileConfigRepoHook added in v0.51.0

func NewPreCommitConfigFileConfigRepoHook() (p *PreCommitConfigFileConfigRepoHook)

func (*PreCommitConfigFileConfigRepoHook) GetID added in v0.51.0

func (p *PreCommitConfigFileConfigRepoHook) GetID() (iD string, err error)

func (*PreCommitConfigFileConfigRepoHook) MustGetID added in v0.51.0

func (p *PreCommitConfigFileConfigRepoHook) MustGetID() (iD string)

func (*PreCommitConfigFileConfigRepoHook) MustSetID added in v0.51.0

func (p *PreCommitConfigFileConfigRepoHook) MustSetID(iD string)

func (*PreCommitConfigFileConfigRepoHook) SetID added in v0.51.0

func (p *PreCommitConfigFileConfigRepoHook) SetID(iD string) (err error)

type PreCommitConfigFileContent added in v0.51.0

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

func NewPreCommitConfigFileContent added in v0.51.0

func NewPreCommitConfigFileContent() (p *PreCommitConfigFileContent)

func (*PreCommitConfigFileContent) GetAsString added in v0.51.0

func (p *PreCommitConfigFileContent) GetAsString() (contentString string, err error)

func (*PreCommitConfigFileContent) GetConfig added in v0.51.0

func (p *PreCommitConfigFileContent) GetConfig() (config *PreCommitConfigFileConfig, err error)

func (*PreCommitConfigFileContent) GetDependencies added in v0.51.0

func (p *PreCommitConfigFileContent) GetDependencies(verbose bool) (dependencies []Dependency, err error)

func (*PreCommitConfigFileContent) LoadFromString added in v0.51.0

func (p *PreCommitConfigFileContent) LoadFromString(toLoad string) (err error)

func (*PreCommitConfigFileContent) MustGetAsString added in v0.51.0

func (p *PreCommitConfigFileContent) MustGetAsString() (contentString string)

func (*PreCommitConfigFileContent) MustGetConfig added in v0.51.0

func (p *PreCommitConfigFileContent) MustGetConfig() (config *PreCommitConfigFileConfig)

func (*PreCommitConfigFileContent) MustGetDependencies added in v0.51.0

func (p *PreCommitConfigFileContent) MustGetDependencies(verbose bool) (dependencies []Dependency)

func (*PreCommitConfigFileContent) MustLoadFromString added in v0.51.0

func (p *PreCommitConfigFileContent) MustLoadFromString(toLoad string)

func (*PreCommitConfigFileContent) MustSetConfig added in v0.51.0

func (p *PreCommitConfigFileContent) MustSetConfig(config *PreCommitConfigFileConfig)

func (*PreCommitConfigFileContent) MustUpdateDependency added in v0.51.0

func (p *PreCommitConfigFileContent) MustUpdateDependency(dependency Dependency, authOptions []AuthenticationOption, verbose bool) (changeSummary *changesummary.ChangeSummary)

func (*PreCommitConfigFileContent) SetConfig added in v0.51.0

func (p *PreCommitConfigFileContent) SetConfig(config *PreCommitConfigFileConfig) (err error)

func (*PreCommitConfigFileContent) UpdateDependency added in v0.51.0

func (p *PreCommitConfigFileContent) UpdateDependency(dependency Dependency, authOptions []AuthenticationOption, verbose bool) (changeSummary *changesummary.ChangeSummary, err error)

type PreCommitRunOptions added in v0.51.0

type PreCommitRunOptions struct {
	CommitChanges bool
	Verbose       bool
}

func NewPreCommitRunOptions added in v0.51.0

func NewPreCommitRunOptions() (p *PreCommitRunOptions)

func (*PreCommitRunOptions) GetCommitChanges added in v0.51.0

func (p *PreCommitRunOptions) GetCommitChanges() (commitChanges bool)

func (*PreCommitRunOptions) GetVerbose added in v0.51.0

func (p *PreCommitRunOptions) GetVerbose() (verbose bool)

func (*PreCommitRunOptions) SetCommitChanges added in v0.51.0

func (p *PreCommitRunOptions) SetCommitChanges(commitChanges bool)

func (*PreCommitRunOptions) SetVerbose added in v0.51.0

func (p *PreCommitRunOptions) SetVerbose(verbose bool)

type PreCommitService added in v0.51.0

type PreCommitService struct{}

func NewPreCommitService added in v0.51.0

func NewPreCommitService() (p *PreCommitService)

func PreCommit added in v0.51.0

func PreCommit() (p *PreCommitService)

func (*PreCommitService) GetAsPreCommitConfigFileOrNilIfContentIsInvalid added in v0.51.0

func (p *PreCommitService) GetAsPreCommitConfigFileOrNilIfContentIsInvalid(file File, verbose bool) (preCommitConfigFile *PreCommitConfigFile, err error)

func (*PreCommitService) GetDefaultConfigFileName added in v0.51.0

func (p *PreCommitService) GetDefaultConfigFileName() (preCommitDefaultName string)

func (*PreCommitService) MustGetAsPreCommitConfigFileOrNilIfContentIsInvalid added in v0.51.0

func (p *PreCommitService) MustGetAsPreCommitConfigFileOrNilIfContentIsInvalid(file File, verbose bool) (preCommitConfigFile *PreCommitConfigFile)

func (*PreCommitService) MustRunInDirectory added in v0.51.0

func (p *PreCommitService) MustRunInDirectory(directoy Directory, options *PreCommitRunOptions)

func (*PreCommitService) MustRunInGitRepository added in v0.51.0

func (p *PreCommitService) MustRunInGitRepository(gitRepo GitRepository, options *PreCommitRunOptions)

func (*PreCommitService) RunInDirectory added in v0.51.0

func (p *PreCommitService) RunInDirectory(directoy Directory, options *PreCommitRunOptions) (err error)

func (*PreCommitService) RunInGitRepository added in v0.51.0

func (p *PreCommitService) RunInGitRepository(gitRepo GitRepository, options *PreCommitRunOptions) (err error)

type PrometheusExpositionFormatParserService added in v0.95.0

type PrometheusExpositionFormatParserService struct{}

func NewPrometheusExpositionFormatParserService added in v0.95.0

func NewPrometheusExpositionFormatParserService() (p *PrometheusExpositionFormatParserService)

func PrometheusExpositionFormatParser added in v0.95.0

func PrometheusExpositionFormatParser() (p *PrometheusExpositionFormatParserService)

Can be used to parse Prometheus exposition format as documented here:

func (*PrometheusExpositionFormatParserService) MustParseString added in v0.95.0

func (p *PrometheusExpositionFormatParserService) MustParseString(toParse string) (parsed *PrometheusParsedMetrics)

func (*PrometheusExpositionFormatParserService) ParseString added in v0.95.0

func (p *PrometheusExpositionFormatParserService) ParseString(toParse string) (parsed *PrometheusParsedMetrics, err error)

type PrometheusMetric added in v0.95.0

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

func NewPrometheusMetric added in v0.95.0

func NewPrometheusMetric() (p *PrometheusMetric)

func (*PrometheusMetric) GetHelp added in v0.95.0

func (p *PrometheusMetric) GetHelp() (help string, err error)

func (*PrometheusMetric) GetName added in v0.95.0

func (p *PrometheusMetric) GetName() (name string, err error)

func (*PrometheusMetric) GetValue added in v0.95.0

func (p *PrometheusMetric) GetValue() (value float64, err error)

func (*PrometheusMetric) GetValueAsFloat64 added in v0.95.0

func (p *PrometheusMetric) GetValueAsFloat64() (value float64, err error)

func (*PrometheusMetric) MustGetHelp added in v0.95.0

func (p *PrometheusMetric) MustGetHelp() (help string)

func (*PrometheusMetric) MustGetName added in v0.95.0

func (p *PrometheusMetric) MustGetName() (name string)

func (*PrometheusMetric) MustGetValue added in v0.95.0

func (p *PrometheusMetric) MustGetValue() (value float64)

func (*PrometheusMetric) MustGetValueAsFloat64 added in v0.95.0

func (p *PrometheusMetric) MustGetValueAsFloat64() (value float64)

func (*PrometheusMetric) MustSetHelp added in v0.95.0

func (p *PrometheusMetric) MustSetHelp(help string)

func (*PrometheusMetric) MustSetName added in v0.95.0

func (p *PrometheusMetric) MustSetName(name string)

func (*PrometheusMetric) MustSetValue added in v0.95.0

func (p *PrometheusMetric) MustSetValue(value float64)

func (*PrometheusMetric) MustSetValueByFloat64 added in v0.95.0

func (p *PrometheusMetric) MustSetValueByFloat64(value float64)

func (*PrometheusMetric) SetHelp added in v0.95.0

func (p *PrometheusMetric) SetHelp(help string) (err error)

func (*PrometheusMetric) SetName added in v0.95.0

func (p *PrometheusMetric) SetName(name string) (err error)

func (*PrometheusMetric) SetValue added in v0.95.0

func (p *PrometheusMetric) SetValue(value float64) (err error)

func (*PrometheusMetric) SetValueByFloat64 added in v0.95.0

func (p *PrometheusMetric) SetValueByFloat64(value float64) (err error)

type PrometheusMetricFamily added in v0.95.0

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

func GetPrometheusMetricFamilyFromNativeMetricFamily added in v0.95.0

func GetPrometheusMetricFamilyFromNativeMetricFamily(metricFamily *dto.MetricFamily) (p *PrometheusMetricFamily, err error)

func MustGetPrometheusMetricFamilyFromNativeMetricFamily added in v0.95.0

func MustGetPrometheusMetricFamilyFromNativeMetricFamily(metricFamily *dto.MetricFamily) (p *PrometheusMetricFamily)

func NewPrometheusMetricFamily added in v0.95.0

func NewPrometheusMetricFamily() (p *PrometheusMetricFamily)

func (*PrometheusMetricFamily) AddMetric added in v0.95.0

func (p *PrometheusMetricFamily) AddMetric(toAdd *PrometheusMetric) (err error)

func (*PrometheusMetricFamily) GetHelp added in v0.95.0

func (p *PrometheusMetricFamily) GetHelp() (help string, err error)

func (*PrometheusMetricFamily) GetMetrics added in v0.95.0

func (p *PrometheusMetricFamily) GetMetrics() (metrics []*PrometheusMetric, err error)

func (*PrometheusMetricFamily) GetName added in v0.95.0

func (p *PrometheusMetricFamily) GetName() (name string, err error)

func (*PrometheusMetricFamily) GetValueAsFloat64 added in v0.95.0

func (p *PrometheusMetricFamily) GetValueAsFloat64() (value float64, err error)

func (*PrometheusMetricFamily) MustAddMetric added in v0.95.0

func (p *PrometheusMetricFamily) MustAddMetric(toAdd *PrometheusMetric)

func (*PrometheusMetricFamily) MustGetHelp added in v0.95.0

func (p *PrometheusMetricFamily) MustGetHelp() (help string)

func (*PrometheusMetricFamily) MustGetMetrics added in v0.95.0

func (p *PrometheusMetricFamily) MustGetMetrics() (metrics []*PrometheusMetric)

func (*PrometheusMetricFamily) MustGetName added in v0.95.0

func (p *PrometheusMetricFamily) MustGetName() (name string)

func (*PrometheusMetricFamily) MustGetValueAsFloat64 added in v0.95.0

func (p *PrometheusMetricFamily) MustGetValueAsFloat64() (value float64)

func (*PrometheusMetricFamily) MustSetHelp added in v0.95.0

func (p *PrometheusMetricFamily) MustSetHelp(help string)

func (*PrometheusMetricFamily) MustSetMetrics added in v0.95.0

func (p *PrometheusMetricFamily) MustSetMetrics(metrics []*PrometheusMetric)

func (*PrometheusMetricFamily) MustSetName added in v0.95.0

func (p *PrometheusMetricFamily) MustSetName(name string)

func (*PrometheusMetricFamily) SetHelp added in v0.95.0

func (p *PrometheusMetricFamily) SetHelp(help string) (err error)

func (*PrometheusMetricFamily) SetMetrics added in v0.95.0

func (p *PrometheusMetricFamily) SetMetrics(metrics []*PrometheusMetric) (err error)

func (*PrometheusMetricFamily) SetName added in v0.95.0

func (p *PrometheusMetricFamily) SetName(name string) (err error)

type PrometheusParsedMetrics added in v0.95.0

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

func NewPrometheusParsedMetrics added in v0.95.0

func NewPrometheusParsedMetrics() (p *PrometheusParsedMetrics)

func (*PrometheusParsedMetrics) GetMetricValueAsFloat64 added in v0.95.0

func (p *PrometheusParsedMetrics) GetMetricValueAsFloat64(metricName string) (metricValue float64, err error)

Get the value of the metric 'metricName' as float64. If the metric is not unique (e.g. a Vector with more than one value) this function will return an error.

func (*PrometheusParsedMetrics) GetNativeMetricFamilies added in v0.95.0

func (p *PrometheusParsedMetrics) GetNativeMetricFamilies() (nativeMetricFamilies map[string]*dto.MetricFamily, err error)

func (*PrometheusParsedMetrics) MustGetMetricValueAsFloat64 added in v0.95.0

func (p *PrometheusParsedMetrics) MustGetMetricValueAsFloat64(metricName string) (metricValue float64)

func (*PrometheusParsedMetrics) MustGetNativeMetricFamilies added in v0.95.0

func (p *PrometheusParsedMetrics) MustGetNativeMetricFamilies() (nativeMetricFamilies map[string]*dto.MetricFamily)

func (*PrometheusParsedMetrics) MustSetNativeMetricFamilies added in v0.95.0

func (p *PrometheusParsedMetrics) MustSetNativeMetricFamilies(nativeMetricFamilies map[string]*dto.MetricFamily)

func (*PrometheusParsedMetrics) SetNativeMetricFamilies added in v0.95.0

func (p *PrometheusParsedMetrics) SetNativeMetricFamilies(nativeMetricFamilies map[string]*dto.MetricFamily) (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 ReplaceBetweenMarkersOptions added in v0.52.0

type ReplaceBetweenMarkersOptions struct {
	WorkingDirPath string
	Verbose        bool
}

func NewReplaceBetweenMarkersOptions added in v0.52.0

func NewReplaceBetweenMarkersOptions() (r *ReplaceBetweenMarkersOptions)

func (*ReplaceBetweenMarkersOptions) GetVerbose added in v0.52.0

func (r *ReplaceBetweenMarkersOptions) GetVerbose() (verbose bool, err error)

func (*ReplaceBetweenMarkersOptions) GetWorkingDirPath added in v0.52.0

func (r *ReplaceBetweenMarkersOptions) GetWorkingDirPath() (workingDirPath string, err error)

func (*ReplaceBetweenMarkersOptions) MustGetVerbose added in v0.52.0

func (r *ReplaceBetweenMarkersOptions) MustGetVerbose() (verbose bool)

func (*ReplaceBetweenMarkersOptions) MustGetWorkingDirPath added in v0.52.0

func (r *ReplaceBetweenMarkersOptions) MustGetWorkingDirPath() (workingDirPath string)

func (*ReplaceBetweenMarkersOptions) MustSetVerbose added in v0.52.0

func (r *ReplaceBetweenMarkersOptions) MustSetVerbose(verbose bool)

func (*ReplaceBetweenMarkersOptions) MustSetWorkingDirPath added in v0.52.0

func (r *ReplaceBetweenMarkersOptions) MustSetWorkingDirPath(workingDirPath string)

func (*ReplaceBetweenMarkersOptions) SetVerbose added in v0.52.0

func (r *ReplaceBetweenMarkersOptions) SetVerbose(verbose bool) (err error)

func (*ReplaceBetweenMarkersOptions) SetWorkingDirPath added in v0.52.0

func (r *ReplaceBetweenMarkersOptions) SetWorkingDirPath(workingDirPath string) (err error)

type ReplaceBetweenMarkersService added in v0.52.0

type ReplaceBetweenMarkersService struct{}

func NewReplaceBetweenMarkersService added in v0.52.0

func NewReplaceBetweenMarkersService() (r *ReplaceBetweenMarkersService)

func ReplaceBetweenMarkers added in v0.52.0

func ReplaceBetweenMarkers() (r *ReplaceBetweenMarkersService)

func (*ReplaceBetweenMarkersService) GetContentToInsertDefinedInStartLineAsLines added in v0.52.0

func (r *ReplaceBetweenMarkersService) GetContentToInsertDefinedInStartLineAsLines(line string, options *ReplaceBetweenMarkersOptions) (lines []string, err error)

func (*ReplaceBetweenMarkersService) GetSourceFile added in v0.52.0

func (r *ReplaceBetweenMarkersService) GetSourceFile(line string, options *ReplaceBetweenMarkersOptions) (sourceFile File, err error)

func (*ReplaceBetweenMarkersService) GetSourcePath added in v0.52.0

func (r *ReplaceBetweenMarkersService) GetSourcePath(line string, options *ReplaceBetweenMarkersOptions) (sourcePath string, err error)

func (*ReplaceBetweenMarkersService) IsReplaceBetweenMarkerEnd added in v0.52.0

func (r *ReplaceBetweenMarkersService) IsReplaceBetweenMarkerEnd(line string) (isReplaceBetweenMarkerEnd bool)

func (*ReplaceBetweenMarkersService) IsReplaceBetweenMarkerStart added in v0.52.0

func (r *ReplaceBetweenMarkersService) IsReplaceBetweenMarkerStart(line string) (isReplaceBetweenMarkerStart bool)

func (*ReplaceBetweenMarkersService) MustGetContentToInsertDefinedInStartLineAsLines added in v0.52.0

func (r *ReplaceBetweenMarkersService) MustGetContentToInsertDefinedInStartLineAsLines(line string, options *ReplaceBetweenMarkersOptions) (lines []string)

func (*ReplaceBetweenMarkersService) MustGetSourceFile added in v0.52.0

func (r *ReplaceBetweenMarkersService) MustGetSourceFile(line string, options *ReplaceBetweenMarkersOptions) (sourceFile File)

func (*ReplaceBetweenMarkersService) MustGetSourcePath added in v0.52.0

func (r *ReplaceBetweenMarkersService) MustGetSourcePath(line string, options *ReplaceBetweenMarkersOptions) (sourcePath string)

func (*ReplaceBetweenMarkersService) MustReplaceBySourcesInString added in v0.52.0

func (r *ReplaceBetweenMarkersService) MustReplaceBySourcesInString(input string, options *ReplaceBetweenMarkersOptions) (replaced string)

func (*ReplaceBetweenMarkersService) ReplaceBySourcesInString added in v0.52.0

func (r *ReplaceBetweenMarkersService) ReplaceBySourcesInString(input string, options *ReplaceBetweenMarkersOptions) (replaced string, err error)

type RunCommandOptions added in v0.4.0

type RunCommandOptions struct {
	Command            []string
	TimeoutString      string
	Verbose            bool
	AllowAllExitCodes  bool
	LiveOutputOnStdout bool

	// If set this will be send to stdin of the command:
	StdinString string

	// Run as "root" user (or Administrator on Windows):
	RunAsRoot bool

	RemoveLastLineIfEmpty 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) GetStdinString added in v0.94.0

func (r *RunCommandOptions) GetStdinString() (stdinString string, err error)

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) IsStdinStringSet added in v0.94.0

func (o *RunCommandOptions) IsStdinStringSet() (isSet bool)

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) MustGetStdinString added in v0.94.0

func (r *RunCommandOptions) MustGetStdinString() (stdinString string)

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) MustSetStdinString added in v0.94.0

func (r *RunCommandOptions) MustSetStdinString(stdinString string)

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) SetStdinString added in v0.94.0

func (r *RunCommandOptions) SetStdinString(stdinString string) (err error)

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 {
	CommandExecutorBase
	// contains filtered or unexported fields
}

func GetSshClientByHostName added in v0.191.0

func GetSshClientByHostName(hostName string) (sshClient *SSHClient, err error)

func MustGetSshClientByHostName added in v0.191.0

func MustGetSshClientByHostName(hostName string) (sshClient *SSHClient)

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) (err error)

func (*SSHClient) GetDeepCopy added in v0.191.0

func (s *SSHClient) GetDeepCopy() (copy CommandExecutor)

func (*SSHClient) GetHostDescription added in v0.191.0

func (s *SSHClient) GetHostDescription() (hostDescription string, 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)

func (*SSHClient) MustGetHostDescription added in v0.191.0

func (s *SSHClient) MustGetHostDescription() (hostDescription string)

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) MustSetHostName added in v0.191.0

func (s *SSHClient) MustSetHostName(hostName string)

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) SetHostName added in v0.191.0

func (s *SSHClient) SetHostName(hostName string) (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 SignalMessengersService added in v0.52.0

type SignalMessengersService struct {
}

func NewSignalMessengers added in v0.52.0

func NewSignalMessengers() (s *SignalMessengersService)

func NewSignalMessengersService added in v0.52.0

func NewSignalMessengersService() (s *SignalMessengersService)

func SignalMessengers added in v0.52.0

func SignalMessengers() (s *SignalMessengersService)

func (*SignalMessengersService) MustParseCreationDateFromSignalPictureBaseName added in v0.52.0

func (s *SignalMessengersService) MustParseCreationDateFromSignalPictureBaseName(baseName string) (creationDate *time.Time)

func (SignalMessengersService) ParseCreationDateFromSignalPictureBaseName added in v0.52.0

func (s SignalMessengersService) ParseCreationDateFromSignalPictureBaseName(baseName string) (creationDate *time.Time, err error)

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 TarArchivesService added in v0.98.0

type TarArchivesService struct {
}

func NewTarArchivesService added in v0.98.0

func NewTarArchivesService() (t *TarArchivesService)

func TarArchives added in v0.98.0

func TarArchives() (t *TarArchivesService)

func (*TarArchivesService) AddFileFromFileContentBytesToTarArchiveBytes added in v0.99.0

func (t *TarArchivesService) AddFileFromFileContentBytesToTarArchiveBytes(archiveToExtend []byte, fileName string, content []byte) (tarBytes []byte, err error)

func (*TarArchivesService) AddFileFromFileContentStringToTarArchiveBytes added in v0.99.0

func (t *TarArchivesService) AddFileFromFileContentStringToTarArchiveBytes(archiveToExtend []byte, fileName string, content string) (tarBytes []byte, err error)

func (*TarArchivesService) CreateTarArchiveFromFileContentByteIntoWriter added in v0.98.0

func (t *TarArchivesService) CreateTarArchiveFromFileContentByteIntoWriter(ioWriter io.Writer, fileName string, content []byte) (err error)

func (*TarArchivesService) CreateTarArchiveFromFileContentStringAndGetAsBytes added in v0.98.0

func (t *TarArchivesService) CreateTarArchiveFromFileContentStringAndGetAsBytes(fileName string, content string) (tarBytes []byte, err error)

func (*TarArchivesService) CreateTarArchiveFromFileContentStringIntoWriter added in v0.98.0

func (t *TarArchivesService) CreateTarArchiveFromFileContentStringIntoWriter(fileName string, content string, ioWriter io.Writer) (err error)

func (*TarArchivesService) ListFileNamesFromTarArchiveBytes added in v0.108.0

func (t *TarArchivesService) ListFileNamesFromTarArchiveBytes(archiveBytes []byte) (fileNames []string, err error)

func (*TarArchivesService) MustAddFileFromFileContentBytesToTarArchiveBytes added in v0.99.0

func (t *TarArchivesService) MustAddFileFromFileContentBytesToTarArchiveBytes(archiveToExtend []byte, fileName string, content []byte) (tarBytes []byte)

func (*TarArchivesService) MustAddFileFromFileContentStringToTarArchiveBytes added in v0.99.0

func (t *TarArchivesService) MustAddFileFromFileContentStringToTarArchiveBytes(archiveToExtend []byte, fileName string, content string) (tarBytes []byte)

func (*TarArchivesService) MustCreateTarArchiveFromFileContentByteIntoWriter added in v0.98.0

func (t *TarArchivesService) MustCreateTarArchiveFromFileContentByteIntoWriter(fileName string, content []byte, ioWriter io.Writer)

func (*TarArchivesService) MustCreateTarArchiveFromFileContentStringAndGetAsBytes added in v0.98.0

func (t *TarArchivesService) MustCreateTarArchiveFromFileContentStringAndGetAsBytes(fileName string, content string) (tarBytes []byte)

func (*TarArchivesService) MustCreateTarArchiveFromFileContentStringIntoWriter added in v0.98.0

func (t *TarArchivesService) MustCreateTarArchiveFromFileContentStringIntoWriter(fileName string, content string, ioWriter io.Writer)

func (*TarArchivesService) MustListFileNamesFromTarArchiveBytes added in v0.108.0

func (t *TarArchivesService) MustListFileNamesFromTarArchiveBytes(archiveBytes []byte) (fileNames []string)

func (*TarArchivesService) MustReadFileFromTarArchiveBytesAsBytes added in v0.98.0

func (t *TarArchivesService) MustReadFileFromTarArchiveBytesAsBytes(archiveBytes []byte, fileNameToRead string) (content []byte)

func (*TarArchivesService) MustReadFileFromTarArchiveBytesAsString added in v0.98.0

func (t *TarArchivesService) MustReadFileFromTarArchiveBytesAsString(archiveBytes []byte, fileNameToRead string) (content string)

func (*TarArchivesService) MustWriteFileContentBytesIntoWriter added in v0.99.0

func (t *TarArchivesService) MustWriteFileContentBytesIntoWriter(ioWriter io.Writer, fileName string, content []byte)

func (*TarArchivesService) ReadFileFromTarArchiveBytesAsBytes added in v0.98.0

func (t *TarArchivesService) ReadFileFromTarArchiveBytesAsBytes(archiveBytes []byte, fileNameToRead string) (content []byte, err error)

func (*TarArchivesService) ReadFileFromTarArchiveBytesAsString added in v0.98.0

func (t *TarArchivesService) ReadFileFromTarArchiveBytesAsString(archiveBytes []byte, fileNameToRead string) (content string, err error)

func (*TarArchivesService) WriteFileContentBytesIntoWriter added in v0.99.0

func (t *TarArchivesService) WriteFileContentBytesIntoWriter(ioWriter io.Writer, fileName string, content []byte) (err error)

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 GitRepository, 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 GitRepository)

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) CreateFromBytes added in v0.52.0

func (t *TemporaryFilesService) CreateFromBytes(content []byte, verbose bool) (temporaryFile File, err error)

func (*TemporaryFilesService) CreateFromString added in v0.1.3

func (t *TemporaryFilesService) CreateFromString(content string, verbose bool) (temporaryFile File, err error)

func (*TemporaryFilesService) CreateFromStringAndGetPath added in v0.116.1

func (t *TemporaryFilesService) CreateFromStringAndGetPath(content string, verbose bool) (temporaryFilePath string, 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) CreateTemporaryFileFromPath added in v0.52.0

func (t *TemporaryFilesService) CreateTemporaryFileFromPath(verbose bool, filePathToCopyAsTemporaryFile ...string) (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) MustCreateFromBytes added in v0.52.0

func (t *TemporaryFilesService) MustCreateFromBytes(content []byte, verbose bool) (temporaryFile File)

func (*TemporaryFilesService) MustCreateFromString added in v0.1.3

func (t *TemporaryFilesService) MustCreateFromString(content string, verbose bool) (temporaryFile File)

func (*TemporaryFilesService) MustCreateFromStringAndGetPath added in v0.116.1

func (t *TemporaryFilesService) MustCreateFromStringAndGetPath(content string, verbose bool) (temporaryFilePath string)

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) MustCreateTemporaryFileFromPath added in v0.52.0

func (t *TemporaryFilesService) MustCreateTemporaryFileFromPath(verbose bool, filePathToCopyAsTemporaryFile ...string) (temporaryFile File)

func (*TemporaryFilesService) MustCreateTemporaryFileFromString added in v0.14.8

func (t *TemporaryFilesService) MustCreateTemporaryFileFromString(content string, verbose bool) (temporaryFile File)

type TemporaryGitRepositoriesService added in v0.90.0

type TemporaryGitRepositoriesService struct {
}

func NewTemporaryGitRepositoriesService added in v0.90.0

func NewTemporaryGitRepositoriesService() (temporaryGitRepositories *TemporaryGitRepositoriesService)

func TemporaryGitRepositories added in v0.90.0

func TemporaryGitRepositories() (temporaryDirectoriesService *TemporaryGitRepositoriesService)

func (*TemporaryGitRepositoriesService) CreateTemporaryGitRepository added in v0.90.0

func (g *TemporaryGitRepositoriesService) CreateTemporaryGitRepository(verbose bool) (temporaryGitRepository GitRepository, err error)

func (*TemporaryGitRepositoriesService) CreateTemporaryGitRepositoryAndAddDataFromDirectory added in v0.90.0

func (g *TemporaryGitRepositoriesService) CreateTemporaryGitRepositoryAndAddDataFromDirectory(dataToAdd Directory, verbose bool) (temporaryRepository GitRepository, err error)

func (TemporaryGitRepositoriesService) MustCreateTemporaryGitRepository added in v0.90.0

func (g TemporaryGitRepositoriesService) MustCreateTemporaryGitRepository(verbose bool) (temporaryGitRepository GitRepository)

func (*TemporaryGitRepositoriesService) MustCreateTemporaryGitRepositoryAndAddDataFromDirectory added in v0.90.0

func (g *TemporaryGitRepositoriesService) MustCreateTemporaryGitRepositoryAndAddDataFromDirectory(dataToAdd Directory, verbose bool) (temporaryRepository GitRepository)

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 TmuxService added in v0.104.0

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

func GetTmuxOnLocalMachine added in v0.104.0

func GetTmuxOnLocalMachine() (tmux *TmuxService, err error)

func MustGetTmuxOnLocalMachine added in v0.104.0

func MustGetTmuxOnLocalMachine() (tmux *TmuxService)

func NewTmuxService added in v0.104.0

func NewTmuxService() (t *TmuxService)

func (*TmuxService) GetCommandExecutor added in v0.104.0

func (t *TmuxService) GetCommandExecutor() (commandExecutor CommandExecutor, err error)

func (*TmuxService) GetSessionByName added in v0.104.0

func (t *TmuxService) GetSessionByName(name string) (tmuxSession *TmuxSession, err error)

func (*TmuxService) GetWindowByNames added in v0.106.0

func (t *TmuxService) GetWindowByNames(sessionName string, windowName string) (window *TmuxWindow, err error)

func (*TmuxService) ListSessionNames added in v0.104.0

func (t *TmuxService) ListSessionNames(verbose bool) (sessionNames []string, err error)

func (*TmuxService) MustGetCommandExecutor added in v0.104.0

func (t *TmuxService) MustGetCommandExecutor() (commandExecutor CommandExecutor)

func (*TmuxService) MustGetSessionByName added in v0.104.0

func (t *TmuxService) MustGetSessionByName(name string) (tmuxSession *TmuxSession)

func (*TmuxService) MustGetWindowByNames added in v0.106.0

func (t *TmuxService) MustGetWindowByNames(sessionName string, windowName string) (window *TmuxWindow)

func (*TmuxService) MustListSessionNames added in v0.104.0

func (t *TmuxService) MustListSessionNames(verbose bool) (sessionNames []string)

func (*TmuxService) MustSetCommandExecutor added in v0.104.0

func (t *TmuxService) MustSetCommandExecutor(commandExecutor CommandExecutor)

func (*TmuxService) SetCommandExecutor added in v0.104.0

func (t *TmuxService) SetCommandExecutor(commandExecutor CommandExecutor) (err error)

type TmuxSession added in v0.104.0

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

func NewTmuxSession added in v0.104.0

func NewTmuxSession() (t *TmuxSession)

func (*TmuxSession) Create added in v0.104.0

func (t *TmuxSession) Create(verbose bool) (err error)

func (*TmuxSession) Delete added in v0.104.0

func (t *TmuxSession) Delete(verbose bool) (err error)

func (*TmuxSession) Exists added in v0.104.0

func (t *TmuxSession) Exists(verbose bool) (exists bool, err error)

func (*TmuxSession) GetCommandExecutor added in v0.104.0

func (t *TmuxSession) GetCommandExecutor() (commandExecutor CommandExecutor, err error)

func (*TmuxSession) GetName added in v0.104.0

func (t *TmuxSession) GetName() (name string, err error)

func (*TmuxSession) GetTmux added in v0.104.0

func (t *TmuxSession) GetTmux() (tmux *TmuxService, err error)

func (*TmuxSession) GetWindowByName added in v0.105.0

func (t *TmuxSession) GetWindowByName(windowName string) (window *TmuxWindow, err error)

func (*TmuxSession) ListWindowNames added in v0.105.0

func (t *TmuxSession) ListWindowNames(verbose bool) (windowsNames []string, err error)

func (*TmuxSession) MustCreate added in v0.104.0

func (t *TmuxSession) MustCreate(verbose bool)

func (*TmuxSession) MustDelete added in v0.104.0

func (t *TmuxSession) MustDelete(verbose bool)

func (*TmuxSession) MustExists added in v0.104.0

func (t *TmuxSession) MustExists(verbose bool) (exists bool)

func (*TmuxSession) MustGetCommandExecutor added in v0.104.0

func (t *TmuxSession) MustGetCommandExecutor() (commandExecutor CommandExecutor)

func (*TmuxSession) MustGetName added in v0.104.0

func (t *TmuxSession) MustGetName() (name string)

func (*TmuxSession) MustGetTmux added in v0.104.0

func (t *TmuxSession) MustGetTmux() (tmux *TmuxService)

func (*TmuxSession) MustGetWindowByName added in v0.105.0

func (t *TmuxSession) MustGetWindowByName(windowName string) (window *TmuxWindow)

func (*TmuxSession) MustListWindowNames added in v0.105.0

func (t *TmuxSession) MustListWindowNames(verbose bool) (windowsNames []string)

func (*TmuxSession) MustRecreate added in v0.105.0

func (t *TmuxSession) MustRecreate(verbose bool)

func (*TmuxSession) MustSetName added in v0.104.0

func (t *TmuxSession) MustSetName(name string)

func (*TmuxSession) MustSetTmux added in v0.104.0

func (t *TmuxSession) MustSetTmux(tmux *TmuxService)

func (*TmuxSession) Recreate added in v0.105.0

func (t *TmuxSession) Recreate(verbose bool) (err error)

func (*TmuxSession) SetName added in v0.104.0

func (t *TmuxSession) SetName(name string) (err error)

func (*TmuxSession) SetTmux added in v0.104.0

func (t *TmuxSession) SetTmux(tmux *TmuxService) (err error)

type TmuxWindow added in v0.105.0

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

func NewTmuxWindow added in v0.105.0

func NewTmuxWindow() (t *TmuxWindow)

func (*TmuxWindow) Create added in v0.105.0

func (t *TmuxWindow) Create(verbose bool) (err error)

func (*TmuxWindow) Delete added in v0.105.0

func (t *TmuxWindow) Delete(verbose bool) (err error)

func (*TmuxWindow) DeleteSession added in v0.106.0

func (t *TmuxWindow) DeleteSession(verbose bool) (err error)

Delete the tmux session this window belongs to. Will implicitly also kill this window but also any other window in the session.

func (*TmuxWindow) Exists added in v0.105.0

func (t *TmuxWindow) Exists(verbose bool) (exists bool, err error)

func (*TmuxWindow) GetCommandExecutor added in v0.105.0

func (t *TmuxWindow) GetCommandExecutor() (commandExecutor CommandExecutor, err error)

func (*TmuxWindow) GetLatestPaneLine added in v0.105.0

func (t *TmuxWindow) GetLatestPaneLine() (paneLine string, err error)

func (*TmuxWindow) GetName added in v0.105.0

func (t *TmuxWindow) GetName() (name string, err error)

func (*TmuxWindow) GetSecondLatestPaneLine added in v0.105.0

func (t *TmuxWindow) GetSecondLatestPaneLine() (paneLine string, err error)

Since the latest line usually shows the command prompt this command can be used to receive the latest printed line.

func (*TmuxWindow) GetSession added in v0.105.0

func (t *TmuxWindow) GetSession() (session *TmuxSession, err error)

func (*TmuxWindow) GetSessionAndWindowName added in v0.105.0

func (t *TmuxWindow) GetSessionAndWindowName() (sessionName string, windowName string, err error)

func (*TmuxWindow) GetSessionName added in v0.105.0

func (t *TmuxWindow) GetSessionName() (sessionName string, err error)

func (*TmuxWindow) GetShownLines added in v0.105.0

func (t *TmuxWindow) GetShownLines() (lines []string, err error)

func (*TmuxWindow) ListWindowNames added in v0.105.0

func (t *TmuxWindow) ListWindowNames(verbose bool) (windowNames []string, err error)

func (*TmuxWindow) MustCreate added in v0.105.0

func (t *TmuxWindow) MustCreate(verbose bool)

func (*TmuxWindow) MustDelete added in v0.105.0

func (t *TmuxWindow) MustDelete(verbose bool)

func (*TmuxWindow) MustDeleteSession added in v0.106.0

func (t *TmuxWindow) MustDeleteSession(verbose bool)

func (*TmuxWindow) MustExists added in v0.105.0

func (t *TmuxWindow) MustExists(verbose bool) (exists bool)

func (*TmuxWindow) MustGetCommandExecutor added in v0.105.0

func (t *TmuxWindow) MustGetCommandExecutor() (commandExecutor CommandExecutor)

func (*TmuxWindow) MustGetLatestPaneLine added in v0.105.0

func (t *TmuxWindow) MustGetLatestPaneLine() (paneLine string)

func (*TmuxWindow) MustGetName added in v0.105.0

func (t *TmuxWindow) MustGetName() (name string)

func (*TmuxWindow) MustGetSecondLatestPaneLine added in v0.105.0

func (t *TmuxWindow) MustGetSecondLatestPaneLine() (paneLine string)

func (*TmuxWindow) MustGetSession added in v0.105.0

func (t *TmuxWindow) MustGetSession() (session *TmuxSession)

func (*TmuxWindow) MustGetSessionAndWindowName added in v0.105.0

func (t *TmuxWindow) MustGetSessionAndWindowName() (sessionName string, windowName string)

func (*TmuxWindow) MustGetSessionName added in v0.105.0

func (t *TmuxWindow) MustGetSessionName() (sessionName string)

func (*TmuxWindow) MustGetShownLines added in v0.105.0

func (t *TmuxWindow) MustGetShownLines() (lines []string)

func (*TmuxWindow) MustListWindowNames added in v0.105.0

func (t *TmuxWindow) MustListWindowNames(verbose bool) (windowNames []string)

func (*TmuxWindow) MustRecreate added in v0.106.0

func (t *TmuxWindow) MustRecreate(verbose bool)

func (*TmuxWindow) MustRunCommand added in v0.106.0

func (t *TmuxWindow) MustRunCommand(runCommandOptions *RunCommandOptions) (commandOutput *CommandOutput)

func (*TmuxWindow) MustSendKeys added in v0.105.0

func (t *TmuxWindow) MustSendKeys(toSend []string, verbose bool)

func (*TmuxWindow) MustSetName added in v0.105.0

func (t *TmuxWindow) MustSetName(name string)

func (*TmuxWindow) MustSetSession added in v0.105.0

func (t *TmuxWindow) MustSetSession(session *TmuxSession)

func (*TmuxWindow) MustWaitUntilCliPromptReady added in v0.106.0

func (t *TmuxWindow) MustWaitUntilCliPromptReady(verbose bool)

func (*TmuxWindow) Recreate added in v0.106.0

func (t *TmuxWindow) Recreate(verbose bool) (err error)

func (*TmuxWindow) RunCommand added in v0.106.0

func (t *TmuxWindow) RunCommand(runCommandOptions *RunCommandOptions) (commandOutput *CommandOutput, err error)

func (*TmuxWindow) SendKeys added in v0.105.0

func (t *TmuxWindow) SendKeys(toSend []string, verbose bool) (err error)

Default use case to send a command is using []string{"command to run", "enter"}. "enter" in this example is detected as enter key by tmux.

func (*TmuxWindow) SetName added in v0.105.0

func (t *TmuxWindow) SetName(name string) (err error)

func (*TmuxWindow) SetSession added in v0.105.0

func (t *TmuxWindow) SetSession(session *TmuxSession) (err error)

func (*TmuxWindow) WaitUntilCliPromptReady added in v0.106.0

func (t *TmuxWindow) WaitUntilCliPromptReady(verbose bool) (err 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 UpdateDependenciesOptions added in v0.51.0

type UpdateDependenciesOptions struct {
	ArtifactHandlers      []ArtifactHandler
	Commit                bool
	Verbose               bool
	AuthenticationOptions []AuthenticationOption
}

func NewUpdateDependenciesOptions added in v0.51.0

func NewUpdateDependenciesOptions() (u *UpdateDependenciesOptions)

func (*UpdateDependenciesOptions) GetArtifactHandlerForSoftwareName added in v0.51.0

func (u *UpdateDependenciesOptions) GetArtifactHandlerForSoftwareName(softwareName string) (artifactHandler ArtifactHandler, err error)

func (*UpdateDependenciesOptions) GetArtifactHandlers added in v0.51.0

func (u *UpdateDependenciesOptions) GetArtifactHandlers() (artifactHandlers []ArtifactHandler, err error)

func (*UpdateDependenciesOptions) GetAuthenticationOptions added in v0.51.0

func (u *UpdateDependenciesOptions) GetAuthenticationOptions() (authenticationOptions []AuthenticationOption, err error)

func (*UpdateDependenciesOptions) GetCommit added in v0.51.0

func (u *UpdateDependenciesOptions) GetCommit() (commit bool, err error)

func (*UpdateDependenciesOptions) GetLatestArtifactVersionAsString added in v0.51.0

func (u *UpdateDependenciesOptions) GetLatestArtifactVersionAsString(softwareName string, verbose bool) (latestVersion string, err error)

func (*UpdateDependenciesOptions) GetVerbose added in v0.51.0

func (u *UpdateDependenciesOptions) GetVerbose() (verbose bool, err error)

func (*UpdateDependenciesOptions) MustGetArtifactHandlerForSoftwareName added in v0.51.0

func (u *UpdateDependenciesOptions) MustGetArtifactHandlerForSoftwareName(softwareName string) (artifactHandler ArtifactHandler)

func (*UpdateDependenciesOptions) MustGetArtifactHandlers added in v0.51.0

func (u *UpdateDependenciesOptions) MustGetArtifactHandlers() (artifactHandlers []ArtifactHandler)

func (*UpdateDependenciesOptions) MustGetAuthenticationOptions added in v0.51.0

func (u *UpdateDependenciesOptions) MustGetAuthenticationOptions() (authenticationOptions []AuthenticationOption)

func (*UpdateDependenciesOptions) MustGetCommit added in v0.51.0

func (u *UpdateDependenciesOptions) MustGetCommit() (commit bool)

func (*UpdateDependenciesOptions) MustGetLatestArtifactVersionAsString added in v0.51.0

func (u *UpdateDependenciesOptions) MustGetLatestArtifactVersionAsString(softwareName string, verbose bool) (latestVersion string)

func (*UpdateDependenciesOptions) MustGetVerbose added in v0.51.0

func (u *UpdateDependenciesOptions) MustGetVerbose() (verbose bool)

func (*UpdateDependenciesOptions) MustSetArtifactHandlers added in v0.51.0

func (u *UpdateDependenciesOptions) MustSetArtifactHandlers(artifactHandlers []ArtifactHandler)

func (*UpdateDependenciesOptions) MustSetAuthenticationOptions added in v0.51.0

func (u *UpdateDependenciesOptions) MustSetAuthenticationOptions(authenticationOptions []AuthenticationOption)

func (*UpdateDependenciesOptions) MustSetCommit added in v0.51.0

func (u *UpdateDependenciesOptions) MustSetCommit(commit bool)

func (*UpdateDependenciesOptions) MustSetVerbose added in v0.51.0

func (u *UpdateDependenciesOptions) MustSetVerbose(verbose bool)

func (*UpdateDependenciesOptions) SetArtifactHandlers added in v0.51.0

func (u *UpdateDependenciesOptions) SetArtifactHandlers(artifactHandlers []ArtifactHandler) (err error)

func (*UpdateDependenciesOptions) SetAuthenticationOptions added in v0.51.0

func (u *UpdateDependenciesOptions) SetAuthenticationOptions(authenticationOptions []AuthenticationOption) (err error)

func (*UpdateDependenciesOptions) SetCommit added in v0.51.0

func (u *UpdateDependenciesOptions) SetCommit(commit bool) (err error)

func (*UpdateDependenciesOptions) SetVerbose added in v0.51.0

func (u *UpdateDependenciesOptions) SetVerbose(verbose bool) (err error)

type UploadArtifactOptions added in v0.51.0

type UploadArtifactOptions struct {
	ArtifactName          string
	BinaryPath            string
	SignaturePath         string
	SoftwareVersionString string
	Verbose               bool
	AuthOptions           []AuthenticationOption
}

func NewUploadArtifactOptions added in v0.51.0

func NewUploadArtifactOptions() (u *UploadArtifactOptions)

func NewUploadartifactOptions added in v0.51.0

func NewUploadartifactOptions() (u *UploadArtifactOptions)

func (*UploadArtifactOptions) GetArtifactName added in v0.51.0

func (u *UploadArtifactOptions) GetArtifactName() (artifactName string, err error)

func (*UploadArtifactOptions) GetAuthOptions added in v0.51.0

func (u *UploadArtifactOptions) GetAuthOptions() (authOptions []AuthenticationOption, err error)

func (*UploadArtifactOptions) GetBinaryPath added in v0.51.0

func (u *UploadArtifactOptions) GetBinaryPath() (binaryPath string, err error)

func (*UploadArtifactOptions) GetSignaturePath added in v0.51.0

func (u *UploadArtifactOptions) GetSignaturePath() (signaturePath string, err error)

func (*UploadArtifactOptions) GetSoftwareVersionString added in v0.51.0

func (u *UploadArtifactOptions) GetSoftwareVersionString() (softwareVersionString string, err error)

func (*UploadArtifactOptions) GetVerbose added in v0.51.0

func (u *UploadArtifactOptions) GetVerbose() (verbose bool)

func (*UploadArtifactOptions) MustGetArtifactName added in v0.51.0

func (u *UploadArtifactOptions) MustGetArtifactName() (artifactName string)

func (*UploadArtifactOptions) MustGetAuthOptions added in v0.51.0

func (u *UploadArtifactOptions) MustGetAuthOptions() (authOptions []AuthenticationOption)

func (*UploadArtifactOptions) MustGetBinaryPath added in v0.51.0

func (u *UploadArtifactOptions) MustGetBinaryPath() (binaryPath string)

func (*UploadArtifactOptions) MustGetSignaturePath added in v0.51.0

func (u *UploadArtifactOptions) MustGetSignaturePath() (signaturePath string)

func (*UploadArtifactOptions) MustGetSoftwareVersionString added in v0.51.0

func (u *UploadArtifactOptions) MustGetSoftwareVersionString() (softwareVersionString string)

func (*UploadArtifactOptions) MustSetArtifactName added in v0.51.0

func (u *UploadArtifactOptions) MustSetArtifactName(artifactName string)

func (*UploadArtifactOptions) MustSetAuthOptions added in v0.51.0

func (u *UploadArtifactOptions) MustSetAuthOptions(authOptions []AuthenticationOption)

func (*UploadArtifactOptions) MustSetBinaryPath added in v0.51.0

func (u *UploadArtifactOptions) MustSetBinaryPath(binaryPath string)

func (*UploadArtifactOptions) MustSetSignaturePath added in v0.51.0

func (u *UploadArtifactOptions) MustSetSignaturePath(signaturePath string)

func (*UploadArtifactOptions) MustSetSoftwareVersionString added in v0.51.0

func (u *UploadArtifactOptions) MustSetSoftwareVersionString(softwareVersionString string)

func (*UploadArtifactOptions) SetArtifactName added in v0.51.0

func (u *UploadArtifactOptions) SetArtifactName(artifactName string) (err error)

func (*UploadArtifactOptions) SetAuthOptions added in v0.51.0

func (u *UploadArtifactOptions) SetAuthOptions(authOptions []AuthenticationOption) (err error)

func (*UploadArtifactOptions) SetBinaryPath added in v0.51.0

func (u *UploadArtifactOptions) SetBinaryPath(binaryPath string) (err error)

func (*UploadArtifactOptions) SetSignaturePath added in v0.51.0

func (u *UploadArtifactOptions) SetSignaturePath(signaturePath string) (err error)

func (*UploadArtifactOptions) SetSoftwareVersionString added in v0.51.0

func (u *UploadArtifactOptions) SetSoftwareVersionString(softwareVersionString string) (err error)

func (*UploadArtifactOptions) SetVerbose added in v0.51.0

func (u *UploadArtifactOptions) SetVerbose(verbose bool)

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) GetCurrentUserName added in v0.63.0

func (u *UsersService) GetCurrentUserName(verbose bool) (currentUserName string, err error)

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) GetNativeUser added in v0.63.0

func (u *UsersService) GetNativeUser() (nativeUser *user.User, err error)

func (*UsersService) IsRunningAsRoot added in v0.63.0

func (u *UsersService) IsRunningAsRoot(verbose bool) (isRunningAsRoot bool, err error)

func (*UsersService) MustGetCurrentUserName added in v0.63.0

func (u *UsersService) MustGetCurrentUserName(verbose bool) (currentUserName string)

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)

func (*UsersService) MustGetNativeUser added in v0.63.0

func (u *UsersService) MustGetNativeUser() (nativeUser *user.User)

func (*UsersService) MustIsRunningAsRoot added in v0.63.0

func (u *UsersService) MustIsRunningAsRoot(verbose bool) (isRunningAsRoot bool)

func (*UsersService) MustWhoAmI added in v0.63.0

func (u *UsersService) MustWhoAmI(verbose bool) (userName string)

func (*UsersService) WhoAmI added in v0.63.0

func (u *UsersService) WhoAmI(verbose bool) (userName string, err error)

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) GetVersionStringsFromVersionSlice added in v0.143.0

func (v *VersionsService) GetVersionStringsFromVersionSlice(versions []Version) (versionStrings []string, err error)

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) MustGetVersionStringsFromVersionSlice added in v0.143.0

func (v *VersionsService) MustGetVersionStringsFromVersionSlice(versions []Version) (versionStrings []string)

func (*VersionsService) MustGetVersionsFromStringSlice added in v0.31.0

func (v *VersionsService) MustGetVersionsFromStringSlice(stringSlice []string) (versions []Version)

func (*VersionsService) MustReturnNewerVersion added in v0.143.0

func (v *VersionsService) MustReturnNewerVersion(v1 Version, v2 Version) (newerVersion Version)

func (*VersionsService) MustSortStringSlice added in v0.143.0

func (v *VersionsService) MustSortStringSlice(versionStrings []string) (sorted []string)

func (*VersionsService) MustSortVersionSlice added in v0.143.0

func (v *VersionsService) MustSortVersionSlice(versions []Version) (sorted []Version)

func (*VersionsService) ReturnNewerVersion added in v0.140.0

func (v *VersionsService) ReturnNewerVersion(v1 Version, v2 Version) (newerVersion Version, err error)

func (*VersionsService) SortStringSlice added in v0.143.0

func (v *VersionsService) SortStringSlice(versionStrings []string) (sorted []string, err error)

func (*VersionsService) SortVersionSlice added in v0.143.0

func (v *VersionsService) SortVersionSlice(versions []Version) (sorted []Version, err error)

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 MustGetX509CertificateFromFile added in v0.50.0

func MustGetX509CertificateFromFile(certFile File) (cert *X509Certificate)

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) GetExpiryDate added in v0.50.0

func (x *X509Certificate) GetExpiryDate() (expiryDate *time.Time, 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) IsExpired added in v0.50.0

func (x *X509Certificate) IsExpired() (isExpired bool, 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) MustGetExpiryDate added in v0.50.0

func (x *X509Certificate) MustGetExpiryDate() (expiryDate *time.Time)

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) MustIsExpired added in v0.50.0

func (x *X509Certificate) MustIsExpired() (isExpired bool)

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)

type X509CertificateFile added in v0.50.0

type X509CertificateFile struct {
	File
}

func GetX509CertificateFileFromFile added in v0.50.0

func GetX509CertificateFileFromFile(input File) (x509CertificateFile *X509CertificateFile, err error)

func GetX509CertificateFileFromPath added in v0.50.0

func GetX509CertificateFileFromPath(inputPath string) (x509CertificateFile *X509CertificateFile, err error)

func MustGetX509CertificateFileFromFile added in v0.50.0

func MustGetX509CertificateFileFromFile(input File) (x509CertificateFile *X509CertificateFile)

func MustGetX509CertificateFileFromPath added in v0.50.0

func MustGetX509CertificateFileFromPath(inputPath string) (x509CertificateFile *X509CertificateFile)

func NewX509CertificateFile added in v0.50.0

func NewX509CertificateFile() (x *X509CertificateFile)

func (*X509CertificateFile) GetAsX509Certificate added in v0.50.0

func (x *X509CertificateFile) GetAsX509Certificate() (cert *X509Certificate, err error)

func (*X509CertificateFile) IsX509Certificate added in v0.50.0

func (x *X509CertificateFile) IsX509Certificate(verbose bool) (isX509Certificate bool, err error)

func (*X509CertificateFile) IsX509CertificateSignedByCertificateFile added in v0.50.0

func (x *X509CertificateFile) IsX509CertificateSignedByCertificateFile(signingCertificateFile File, verbose bool) (isSignedBy bool, err error)

func (*X509CertificateFile) IsX509IntermediateCertificate added in v0.50.0

func (x *X509CertificateFile) IsX509IntermediateCertificate() (isIntermediateCertificate bool, err error)

func (*X509CertificateFile) IsX509RootCertificate added in v0.50.0

func (x *X509CertificateFile) IsX509RootCertificate(verbose bool) (isX509Certificate bool, err error)

func (*X509CertificateFile) IsX509v3 added in v0.50.0

func (x *X509CertificateFile) IsX509v3() (isX509v3 bool, err error)

func (*X509CertificateFile) MustGetAsX509Certificate added in v0.50.0

func (x *X509CertificateFile) MustGetAsX509Certificate() (cert *X509Certificate)

func (*X509CertificateFile) MustIsExpired added in v0.50.0

func (x *X509CertificateFile) MustIsExpired(verbose bool) (isExpired bool, err error)

func (*X509CertificateFile) MustIsX509Certificate added in v0.50.0

func (x *X509CertificateFile) MustIsX509Certificate(verbose bool) (isX509Certificate bool)

func (*X509CertificateFile) MustIsX509CertificateSignedByCertificateFile added in v0.50.0

func (x *X509CertificateFile) MustIsX509CertificateSignedByCertificateFile(signingCertificateFile File, verbose bool) (isSignedBy bool)

func (*X509CertificateFile) MustIsX509IntermediateCertificate added in v0.50.0

func (x *X509CertificateFile) MustIsX509IntermediateCertificate() (isIntermediateCertificate bool)

func (*X509CertificateFile) MustIsX509RootCertificate added in v0.50.0

func (x *X509CertificateFile) MustIsX509RootCertificate(verbose bool) (isX509Certificate bool)

func (*X509CertificateFile) MustIsX509v3 added in v0.50.0

func (x *X509CertificateFile) MustIsX509v3() (isX509v3 bool)

type X509CertificatesService added in v0.50.0

type X509CertificatesService struct {
}

func NewX509CertificatesService added in v0.50.0

func NewX509CertificatesService() (x *X509CertificatesService)

func X509Certificates added in v0.50.0

func X509Certificates() (x509Certificaets *X509CertificatesService)

func (*X509CertificatesService) CreateIntermediateCertificateIntoDirectory added in v0.50.0

func (c *X509CertificatesService) CreateIntermediateCertificateIntoDirectory(createOptions *X509CreateCertificateOptions) (directoryContianingCreatedCertAndKey Directory, err error)

func (*X509CertificatesService) CreateRootCaAndaddToGopass added in v0.50.0

func (c *X509CertificatesService) CreateRootCaAndaddToGopass(createOptions *X509CreateCertificateOptions, gopassOptions *GopassSecretOptions) (err error)

func (*X509CertificatesService) CreateRootCaIntoDirectory added in v0.50.0

func (c *X509CertificatesService) CreateRootCaIntoDirectory(createOptions *X509CreateCertificateOptions) (directoryContianingCreatedCertAndKey Directory, err error)

func (*X509CertificatesService) CreateSignedCertificate added in v0.50.0

func (c *X509CertificatesService) CreateSignedCertificate(createOptions *X509CreateCertificateOptions) (err error)

func (*X509CertificatesService) CreateSignedIntermediateCertificateAndAddToGopass added in v0.50.0

func (c *X509CertificatesService) CreateSignedIntermediateCertificateAndAddToGopass(createOptions *X509CreateCertificateOptions, rootCaInGopass *GopassSecretOptions, intermediateGopassOptions *GopassSecretOptions) (err error)

func (*X509CertificatesService) CreateSigningRequestFile added in v0.50.0

func (c *X509CertificatesService) CreateSigningRequestFile(signOptions *X509SignCertificateOptions) (err error)

func (*X509CertificatesService) GetNextCaSerialNumberAsStringFromGopass added in v0.50.0

func (c *X509CertificatesService) GetNextCaSerialNumberAsStringFromGopass(verbose bool) (serial string, err error)

func (*X509CertificatesService) IsCertificateFileSignedByCertificateFile added in v0.50.0

func (c *X509CertificatesService) IsCertificateFileSignedByCertificateFile(thisCertificateFile *X509CertificateFile, isSignedByThisCertificateFile File, verbose bool) (isSignedBy bool, err error)

func (*X509CertificatesService) MustCreateIntermediateCertificateIntoDirectory added in v0.50.0

func (c *X509CertificatesService) MustCreateIntermediateCertificateIntoDirectory(createOptions *X509CreateCertificateOptions) (directoryContianingCreatedCertAndKey Directory)

func (*X509CertificatesService) MustCreateRootCAAndAddToGopass added in v0.50.0

func (c *X509CertificatesService) MustCreateRootCAAndAddToGopass(createOptions *X509CreateCertificateOptions, gopassOptions *GopassSecretOptions)

func (*X509CertificatesService) MustCreateRootCaAndaddToGopass added in v0.50.0

func (x *X509CertificatesService) MustCreateRootCaAndaddToGopass(createOptions *X509CreateCertificateOptions, gopassOptions *GopassSecretOptions)

func (*X509CertificatesService) MustCreateRootCaIntoDirectory added in v0.50.0

func (c *X509CertificatesService) MustCreateRootCaIntoDirectory(createOptions *X509CreateCertificateOptions) (directoryContianingCreatedCertAndKey Directory)

func (*X509CertificatesService) MustCreateSignedCertificate added in v0.50.0

func (c *X509CertificatesService) MustCreateSignedCertificate(createOptions *X509CreateCertificateOptions)

func (*X509CertificatesService) MustCreateSignedIntermediateCertificateAndAddToGopass added in v0.50.0

func (c *X509CertificatesService) MustCreateSignedIntermediateCertificateAndAddToGopass(createOptions *X509CreateCertificateOptions, rootCaInGopass *GopassSecretOptions, intermediateGopassOptions *GopassSecretOptions)

func (*X509CertificatesService) MustCreateSigningRequestFile added in v0.50.0

func (x *X509CertificatesService) MustCreateSigningRequestFile(signOptions *X509SignCertificateOptions)

func (*X509CertificatesService) MustGetNextCaSerialNumberAsStringFromGopass added in v0.50.0

func (x *X509CertificatesService) MustGetNextCaSerialNumberAsStringFromGopass(verbose bool) (serial string)

func (*X509CertificatesService) MustIsCertificateFileSignedByCertificateFile added in v0.50.0

func (x *X509CertificatesService) MustIsCertificateFileSignedByCertificateFile(thisCertificateFile *X509CertificateFile, isSignedByThisCertificateFile File, verbose bool) (isSignedBy bool)

func (*X509CertificatesService) MustSignIntermediateCertificate added in v0.50.0

func (c *X509CertificatesService) MustSignIntermediateCertificate(signOptions *X509SignCertificateOptions)

func (*X509CertificatesService) SignIntermediateCertificate added in v0.50.0

func (c *X509CertificatesService) SignIntermediateCertificate(signOptions *X509SignCertificateOptions) (err error)

type X509CreateCertificateOptions added in v0.50.0

type X509CreateCertificateOptions struct {
	UseTemporaryDirectory bool

	// Certificate Attributes
	CommonName     string // the CN field
	CountryName    string // the C field
	Locality       string // the L field
	AdditionalSans []string

	KeyOutputFilePath         string
	CertificateOutputFilePath string

	IntermediateCertificateInGopass *GopassSecretOptions

	OverwriteExistingCertificateInGopass bool
	Verbose                              bool
}

func NewX509CreateCertificateOptions added in v0.50.0

func NewX509CreateCertificateOptions() (x *X509CreateCertificateOptions)

func (*X509CreateCertificateOptions) GetAdditionalSans added in v0.50.0

func (x *X509CreateCertificateOptions) GetAdditionalSans() (additionalSans []string, err error)

func (*X509CreateCertificateOptions) GetCertificateOutputFilePath added in v0.50.0

func (o *X509CreateCertificateOptions) GetCertificateOutputFilePath() (certOutputPath string, err error)

func (*X509CreateCertificateOptions) GetCommonName added in v0.50.0

func (o *X509CreateCertificateOptions) GetCommonName() (commonName string, err error)

func (*X509CreateCertificateOptions) GetCountryName added in v0.50.0

func (o *X509CreateCertificateOptions) GetCountryName() (countryName string, err error)

func (*X509CreateCertificateOptions) GetDeepCopy added in v0.50.0

func (*X509CreateCertificateOptions) GetIntermediateCertificateGopassCredential added in v0.50.0

func (o *X509CreateCertificateOptions) GetIntermediateCertificateGopassCredential() (certificate *GopassCredential, err error)

func (*X509CreateCertificateOptions) GetIntermediateCertificateInGopass added in v0.50.0

func (x *X509CreateCertificateOptions) GetIntermediateCertificateInGopass() (intermediateCertificateInGopass *GopassSecretOptions, err error)

func (*X509CreateCertificateOptions) GetIntermediateCertificateKeyGopassCredential added in v0.50.0

func (o *X509CreateCertificateOptions) GetIntermediateCertificateKeyGopassCredential() (key *GopassCredential, err error)

func (*X509CreateCertificateOptions) GetKeyOutputFilePath added in v0.50.0

func (o *X509CreateCertificateOptions) GetKeyOutputFilePath() (keyOutputPath string, err error)

func (*X509CreateCertificateOptions) GetLocality added in v0.50.0

func (x *X509CreateCertificateOptions) GetLocality() (locality string, err error)

func (*X509CreateCertificateOptions) GetLocallity added in v0.50.0

func (o *X509CreateCertificateOptions) GetLocallity() (locality string, err error)

func (*X509CreateCertificateOptions) GetOverwriteExistingCertificateInGopass added in v0.50.0

func (x *X509CreateCertificateOptions) GetOverwriteExistingCertificateInGopass() (overwriteExistingCertificateInGopass bool, err error)

func (*X509CreateCertificateOptions) GetSubjectStringForOpenssl added in v0.50.0

func (o *X509CreateCertificateOptions) GetSubjectStringForOpenssl() (subjectString string, err error)

func (*X509CreateCertificateOptions) GetUseTemporaryDirectory added in v0.50.0

func (o *X509CreateCertificateOptions) GetUseTemporaryDirectory() (UseTemporaryDirectory bool)

func (*X509CreateCertificateOptions) GetVerbose added in v0.50.0

func (x *X509CreateCertificateOptions) GetVerbose() (verbose bool, err error)

func (*X509CreateCertificateOptions) IsCertificateOutputFilePathSet added in v0.50.0

func (o *X509CreateCertificateOptions) IsCertificateOutputFilePathSet() (isSet bool)

func (*X509CreateCertificateOptions) MustGetAdditionalSans added in v0.50.0

func (x *X509CreateCertificateOptions) MustGetAdditionalSans() (additionalSans []string)

func (*X509CreateCertificateOptions) MustGetCertificateOutputFilePath added in v0.50.0

func (x *X509CreateCertificateOptions) MustGetCertificateOutputFilePath() (certOutputPath string)

func (*X509CreateCertificateOptions) MustGetCommonName added in v0.50.0

func (x *X509CreateCertificateOptions) MustGetCommonName() (commonName string)

func (*X509CreateCertificateOptions) MustGetCountryName added in v0.50.0

func (x *X509CreateCertificateOptions) MustGetCountryName() (countryName string)

func (*X509CreateCertificateOptions) MustGetIntermediateCertificateGopassCredential added in v0.50.0

func (x *X509CreateCertificateOptions) MustGetIntermediateCertificateGopassCredential() (certificate *GopassCredential)

func (*X509CreateCertificateOptions) MustGetIntermediateCertificateInGopass added in v0.50.0

func (x *X509CreateCertificateOptions) MustGetIntermediateCertificateInGopass() (intermediateCertificateInGopass *GopassSecretOptions)

func (*X509CreateCertificateOptions) MustGetIntermediateCertificateKeyGopassCredential added in v0.50.0

func (x *X509CreateCertificateOptions) MustGetIntermediateCertificateKeyGopassCredential() (key *GopassCredential)

func (*X509CreateCertificateOptions) MustGetKeyOutputFilePath added in v0.50.0

func (x *X509CreateCertificateOptions) MustGetKeyOutputFilePath() (keyOutputPath string)

func (*X509CreateCertificateOptions) MustGetLocality added in v0.50.0

func (x *X509CreateCertificateOptions) MustGetLocality() (locality string)

func (*X509CreateCertificateOptions) MustGetLocallity added in v0.50.0

func (x *X509CreateCertificateOptions) MustGetLocallity() (locality string)

func (*X509CreateCertificateOptions) MustGetOverwriteExistingCertificateInGopass added in v0.50.0

func (x *X509CreateCertificateOptions) MustGetOverwriteExistingCertificateInGopass() (overwriteExistingCertificateInGopass bool)

func (*X509CreateCertificateOptions) MustGetSubjectStringForOpenssl added in v0.50.0

func (x *X509CreateCertificateOptions) MustGetSubjectStringForOpenssl() (subjectString string)

func (*X509CreateCertificateOptions) MustGetVerbose added in v0.50.0

func (x *X509CreateCertificateOptions) MustGetVerbose() (verbose bool)

func (*X509CreateCertificateOptions) MustSetAdditionalSans added in v0.50.0

func (x *X509CreateCertificateOptions) MustSetAdditionalSans(additionalSans []string)

func (*X509CreateCertificateOptions) MustSetCertificateOutputFilePath added in v0.50.0

func (x *X509CreateCertificateOptions) MustSetCertificateOutputFilePath(certificateOutputFilePath string)

func (*X509CreateCertificateOptions) MustSetCommonName added in v0.50.0

func (x *X509CreateCertificateOptions) MustSetCommonName(commonName string)

func (*X509CreateCertificateOptions) MustSetCountryName added in v0.50.0

func (x *X509CreateCertificateOptions) MustSetCountryName(countryName string)

func (*X509CreateCertificateOptions) MustSetIntermediateCertificateInGopass added in v0.50.0

func (x *X509CreateCertificateOptions) MustSetIntermediateCertificateInGopass(intermediateCertificateInGopass *GopassSecretOptions)

func (*X509CreateCertificateOptions) MustSetKeyOutputFilePath added in v0.50.0

func (x *X509CreateCertificateOptions) MustSetKeyOutputFilePath(keyOutputFilePath string)

func (*X509CreateCertificateOptions) MustSetLocality added in v0.50.0

func (x *X509CreateCertificateOptions) MustSetLocality(locality string)

func (*X509CreateCertificateOptions) MustSetOverwriteExistingCertificateInGopass added in v0.50.0

func (x *X509CreateCertificateOptions) MustSetOverwriteExistingCertificateInGopass(overwriteExistingCertificateInGopass bool)

func (*X509CreateCertificateOptions) MustSetUseTemporaryDirectory added in v0.50.0

func (x *X509CreateCertificateOptions) MustSetUseTemporaryDirectory(useTemporaryDirectory bool)

func (*X509CreateCertificateOptions) MustSetVerbose added in v0.50.0

func (x *X509CreateCertificateOptions) MustSetVerbose(verbose bool)

func (*X509CreateCertificateOptions) SetAdditionalSans added in v0.50.0

func (x *X509CreateCertificateOptions) SetAdditionalSans(additionalSans []string) (err error)

func (*X509CreateCertificateOptions) SetCertificateOutputFilePath added in v0.50.0

func (x *X509CreateCertificateOptions) SetCertificateOutputFilePath(certificateOutputFilePath string) (err error)

func (*X509CreateCertificateOptions) SetCommonName added in v0.50.0

func (x *X509CreateCertificateOptions) SetCommonName(commonName string) (err error)

func (*X509CreateCertificateOptions) SetCountryName added in v0.50.0

func (x *X509CreateCertificateOptions) SetCountryName(countryName string) (err error)

func (*X509CreateCertificateOptions) SetIntermediateCertificateInGopass added in v0.50.0

func (x *X509CreateCertificateOptions) SetIntermediateCertificateInGopass(intermediateCertificateInGopass *GopassSecretOptions) (err error)

func (*X509CreateCertificateOptions) SetKeyOutputFilePath added in v0.50.0

func (x *X509CreateCertificateOptions) SetKeyOutputFilePath(keyOutputFilePath string) (err error)

func (*X509CreateCertificateOptions) SetLocality added in v0.50.0

func (x *X509CreateCertificateOptions) SetLocality(locality string) (err error)

func (*X509CreateCertificateOptions) SetOverwriteExistingCertificateInGopass added in v0.50.0

func (x *X509CreateCertificateOptions) SetOverwriteExistingCertificateInGopass(overwriteExistingCertificateInGopass bool) (err error)

func (*X509CreateCertificateOptions) SetUseTemporaryDirectory added in v0.50.0

func (x *X509CreateCertificateOptions) SetUseTemporaryDirectory(useTemporaryDirectory bool) (err error)

func (*X509CreateCertificateOptions) SetVerbose added in v0.50.0

func (x *X509CreateCertificateOptions) SetVerbose(verbose bool) (err error)

type X509SignCertificateOptions added in v0.50.0

type X509SignCertificateOptions struct {
	CertFileUsedForSigning File
	KeyFileUsedForSigning  File
	KeyFileToSign          File
	OutputCertificateFile  File
	SigningRequestFile     File
	CommonName             string
	CountryName            string
	Locality               string
	Verbose                bool
}

func NewX509SignCertificateOptions added in v0.50.0

func NewX509SignCertificateOptions() (deepCopy *X509SignCertificateOptions)

func (*X509SignCertificateOptions) GetCertFileUsedForSigning added in v0.50.0

func (o *X509SignCertificateOptions) GetCertFileUsedForSigning() (keyFileForSigning File, err error)

func (*X509SignCertificateOptions) GetCommonName added in v0.50.0

func (o *X509SignCertificateOptions) GetCommonName() (commonName string, err error)

func (*X509SignCertificateOptions) GetCountryName added in v0.50.0

func (o *X509SignCertificateOptions) GetCountryName() (countryName string, err error)

func (*X509SignCertificateOptions) GetDeepCopy added in v0.50.0

func (o *X509SignCertificateOptions) GetDeepCopy() (deepCopy *X509SignCertificateOptions)

func (*X509SignCertificateOptions) GetKeyFileToSign added in v0.50.0

func (o *X509SignCertificateOptions) GetKeyFileToSign() (keyFileForSigning File, err error)

func (*X509SignCertificateOptions) GetKeyFileToSignPath added in v0.50.0

func (o *X509SignCertificateOptions) GetKeyFileToSignPath() (keyFileForSigningPath string, err error)

func (*X509SignCertificateOptions) GetKeyFileUsedForSigning added in v0.50.0

func (o *X509SignCertificateOptions) GetKeyFileUsedForSigning() (keyFileForSigning File, err error)

func (*X509SignCertificateOptions) GetLocality added in v0.50.0

func (o *X509SignCertificateOptions) GetLocality() (locality string, err error)

func (*X509SignCertificateOptions) GetOutputCertificateFile added in v0.50.0

func (o *X509SignCertificateOptions) GetOutputCertificateFile() (keyFileForSigning File, err error)

func (*X509SignCertificateOptions) GetSigningRequestFile added in v0.50.0

func (o *X509SignCertificateOptions) GetSigningRequestFile() (signingRequestFile File, err error)

func (*X509SignCertificateOptions) GetSigningRequestFilePath added in v0.50.0

func (o *X509SignCertificateOptions) GetSigningRequestFilePath() (signingRequestFilePath string, err error)

func (*X509SignCertificateOptions) GetSubjectToSign added in v0.50.0

func (o *X509SignCertificateOptions) GetSubjectToSign() (subjectToSign string, err error)

func (*X509SignCertificateOptions) GetVerbose added in v0.50.0

func (x *X509SignCertificateOptions) GetVerbose() (verbose bool, err error)

func (*X509SignCertificateOptions) MustGetCertFileUsedForSigning added in v0.50.0

func (x *X509SignCertificateOptions) MustGetCertFileUsedForSigning() (keyFileForSigning File)

func (*X509SignCertificateOptions) MustGetCommonName added in v0.50.0

func (x *X509SignCertificateOptions) MustGetCommonName() (commonName string)

func (*X509SignCertificateOptions) MustGetCountryName added in v0.50.0

func (x *X509SignCertificateOptions) MustGetCountryName() (countryName string)

func (*X509SignCertificateOptions) MustGetKeyFileToSign added in v0.50.0

func (x *X509SignCertificateOptions) MustGetKeyFileToSign() (keyFileForSigning File)

func (*X509SignCertificateOptions) MustGetKeyFileToSignPath added in v0.50.0

func (x *X509SignCertificateOptions) MustGetKeyFileToSignPath() (keyFileForSigningPath string)

func (*X509SignCertificateOptions) MustGetKeyFileUsedForSigning added in v0.50.0

func (x *X509SignCertificateOptions) MustGetKeyFileUsedForSigning() (keyFileForSigning File)

func (*X509SignCertificateOptions) MustGetLocality added in v0.50.0

func (x *X509SignCertificateOptions) MustGetLocality() (locality string)

func (*X509SignCertificateOptions) MustGetOutputCertificateFile added in v0.50.0

func (x *X509SignCertificateOptions) MustGetOutputCertificateFile() (keyFileForSigning File)

func (*X509SignCertificateOptions) MustGetSigningRequestFile added in v0.50.0

func (x *X509SignCertificateOptions) MustGetSigningRequestFile() (signingRequestFile File)

func (*X509SignCertificateOptions) MustGetSigningRequestFilePath added in v0.50.0

func (x *X509SignCertificateOptions) MustGetSigningRequestFilePath() (signingRequestFilePath string)

func (*X509SignCertificateOptions) MustGetSubjectToSign added in v0.50.0

func (x *X509SignCertificateOptions) MustGetSubjectToSign() (subjectToSign string)

func (*X509SignCertificateOptions) MustGetVerbose added in v0.50.0

func (x *X509SignCertificateOptions) MustGetVerbose() (verbose bool)

func (*X509SignCertificateOptions) MustSetCertFileUsedForSigning added in v0.50.0

func (x *X509SignCertificateOptions) MustSetCertFileUsedForSigning(certFileUsedForSigning File)

func (*X509SignCertificateOptions) MustSetCommonName added in v0.50.0

func (x *X509SignCertificateOptions) MustSetCommonName(commonName string)

func (*X509SignCertificateOptions) MustSetCountryName added in v0.50.0

func (x *X509SignCertificateOptions) MustSetCountryName(countryName string)

func (*X509SignCertificateOptions) MustSetKeyFileToSign added in v0.50.0

func (x *X509SignCertificateOptions) MustSetKeyFileToSign(keyFileToSign File)

func (*X509SignCertificateOptions) MustSetKeyFileUsedForSigning added in v0.50.0

func (x *X509SignCertificateOptions) MustSetKeyFileUsedForSigning(keyFileUsedForSigning File)

func (*X509SignCertificateOptions) MustSetLocality added in v0.50.0

func (x *X509SignCertificateOptions) MustSetLocality(locality string)

func (*X509SignCertificateOptions) MustSetOutputCertificateFile added in v0.50.0

func (x *X509SignCertificateOptions) MustSetOutputCertificateFile(outputCertificateFile File)

func (*X509SignCertificateOptions) MustSetSigningRequestFile added in v0.50.0

func (x *X509SignCertificateOptions) MustSetSigningRequestFile(signingRequestFile File)

func (*X509SignCertificateOptions) MustSetVerbose added in v0.50.0

func (x *X509SignCertificateOptions) MustSetVerbose(verbose bool)

func (*X509SignCertificateOptions) SetCertFileUsedForSigning added in v0.50.0

func (x *X509SignCertificateOptions) SetCertFileUsedForSigning(certFileUsedForSigning File) (err error)

func (*X509SignCertificateOptions) SetCommonName added in v0.50.0

func (x *X509SignCertificateOptions) SetCommonName(commonName string) (err error)

func (*X509SignCertificateOptions) SetCountryName added in v0.50.0

func (x *X509SignCertificateOptions) SetCountryName(countryName string) (err error)

func (*X509SignCertificateOptions) SetKeyFileToSign added in v0.50.0

func (x *X509SignCertificateOptions) SetKeyFileToSign(keyFileToSign File) (err error)

func (*X509SignCertificateOptions) SetKeyFileUsedForSigning added in v0.50.0

func (x *X509SignCertificateOptions) SetKeyFileUsedForSigning(keyFileUsedForSigning File) (err error)

func (*X509SignCertificateOptions) SetLocality added in v0.50.0

func (x *X509SignCertificateOptions) SetLocality(locality string) (err error)

func (*X509SignCertificateOptions) SetOutputCertificateFile added in v0.50.0

func (x *X509SignCertificateOptions) SetOutputCertificateFile(outputCertificateFile File) (err error)

func (*X509SignCertificateOptions) SetSigningRequestFile added in v0.50.0

func (x *X509SignCertificateOptions) SetSigningRequestFile(signingRequestFile File) (err error)

func (*X509SignCertificateOptions) SetVerbose added in v0.50.0

func (x *X509SignCertificateOptions) SetVerbose(verbose bool) (err error)

type YamlService added in v0.80.0

type YamlService struct{}

func NewYamlService added in v0.80.0

func NewYamlService() (y *YamlService)

func Yaml added in v0.80.0

func Yaml() (yaml *YamlService)

func (*YamlService) DataToYamlBytes added in v0.80.0

func (y *YamlService) DataToYamlBytes(input interface{}) (yamlBytes []byte, err error)

func (*YamlService) DataToYamlFile added in v0.80.0

func (y *YamlService) DataToYamlFile(jsonData interface{}, outputFile File, verbose bool) (err error)

func (*YamlService) DataToYamlString added in v0.80.0

func (y *YamlService) DataToYamlString(input interface{}) (yamlString string, err error)

func (*YamlService) MustDataToYamlBytes added in v0.80.0

func (y *YamlService) MustDataToYamlBytes(input interface{}) (yamlBytes []byte)

func (*YamlService) MustDataToYamlFile added in v0.80.0

func (y *YamlService) MustDataToYamlFile(jsonData interface{}, outputFile File, verbose bool)

func (*YamlService) MustDataToYamlString added in v0.80.0

func (y *YamlService) MustDataToYamlString(input interface{}) (yamlString string)

Source Files

Jump to

Keyboard shortcuts

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