Go API Documentation

github.com/semaphoreui/semaphore/db_lib

No package summary is available.

Package

Files: 10. Third party imports: 10. Imports from organisation: 0. Tests: 0. Benchmarks: 0.

Constants

Types

AnsibleApp

This type doesn't have documentation.

Field name Field type Comment
Logger

task_logger.Logger

No comment on field.
Playbook

*AnsiblePlaybook

No comment on field.
Template

db.Template

No comment on field.
Repository

db.Repository

No comment on field.

AnsiblePlaybook

This type doesn't have documentation.

Field name Field type Comment
TemplateID

int

No comment on field.
Repository

db.Repository

No comment on field.
Logger

task_logger.Logger

No comment on field.

CmdGitClient

This type doesn't have documentation.

Field name Field type Comment
keyInstallation

db.AccessKeyInstallation

No comment on field.

GalaxyRequirementsType

This type doesn't have documentation.

Field name Field type Comment
type

string

No comment on field.

GitClient

This type doesn't have documentation.

Field name Field type Comment
type

any

No comment on field.

GitRepository

This type doesn't have documentation.

Field name Field type Comment
TmpDirName

string

No comment on field.
TemplateID

int

No comment on field.
Repository

db.Repository

No comment on field.
Logger

task_logger.Logger

No comment on field.
Client

GitClient

No comment on field.

GitRepositoryDirType

This type doesn't have documentation.

Field name Field type Comment
type

int

No comment on field.

GoGitClient

This type doesn't have documentation.

LocalApp

This type doesn't have documentation.

Field name Field type Comment
type

any

No comment on field.

LocalAppRunningArgs

This type doesn't have documentation.

Field name Field type Comment
CliArgs

[]string

No comment on field.
EnvironmentVars

[]string

No comment on field.
Inputs

map[string]string

No comment on field.
TaskParams

any

No comment on field.
TemplateParams

any

No comment on field.
Callback

func(*os.Process)

No comment on field.

ProgressWrapper

This type doesn't have documentation.

Field name Field type Comment
Logger

task_logger.Logger

No comment on field.

ShellApp

This type doesn't have documentation.

Field name Field type Comment
Logger

task_logger.Logger

No comment on field.
Template

db.Template

No comment on field.
Repository

db.Repository

No comment on field.
App

db.TemplateApp

No comment on field.
reader

bashReader

No comment on field.

TerraformApp

This type doesn't have documentation.

Field name Field type Comment
Logger

task_logger.Logger

No comment on field.
Template

db.Template

No comment on field.
Repository

db.Repository

No comment on field.
Inventory

db.Inventory

No comment on field.
reader

terraformReader

No comment on field.
Name

string

No comment on field.
PlanHasNoChanges

bool

No comment on field.
backendFilename

string

No comment on field.

bashReader

This type doesn't have documentation.

Field name Field type Comment
input

*string

No comment on field.
logger

task_logger.Logger

No comment on field.

terraformReader

This type doesn't have documentation.

Field name Field type Comment
EOF

bool

No comment on field.
status

task_logger.TaskStatus

No comment on field.
logger

task_logger.Logger

No comment on field.

Functions

func CreateApp

Uses: db.AppAnsible, db.AppTerraform, db.AppTerragrunt, db.AppTofu.

func CreateCmdGitClient

func CreateDefaultGitClient

Uses: util.CmdGitClientId, util.Config, util.GoGitClientId.

func CreateGoGitClient

func (*AnsibleApp) Clear

func (*AnsibleApp) GetPlaybookDir

Uses: path.Dir, path.Join.

func (*AnsibleApp) InstallRequirements

func (*AnsibleApp) Log

func (*AnsibleApp) Run

func (*AnsibleApp) SetLogger

func (*ShellApp) Clear

func (*ShellApp) GetFullPath

func (*ShellApp) InstallRequirements

func (*ShellApp) Run

Uses: strings.NewReader.

func (*ShellApp) SetLogger

func (*TerraformApp) Apply

Uses: db.AppTerragrunt, strings.NewReader.

func (*TerraformApp) Clear

Uses: log.Fields, log.WithError, os.IsNotExist, os.Remove, path.Join.

func (*TerraformApp) GetFullPath

Uses: path.Join, strings.TrimPrefix.

func (*TerraformApp) InstallRequirements

Uses: db.TerraformTaskParams, db.TerraformTemplateParams, os.WriteFile, path.Join.

func (*TerraformApp) Plan

Uses: db.AppTerragrunt, strings.Contains, strings.NewReader, time.Time.

func (*TerraformApp) Run

Uses: db.TerraformTaskParams, db.TerraformTemplateParams, time.Second, time.Sleep.

func (*TerraformApp) SetLogger

func (*bashReader) Read

Uses: time.Second, time.Sleep.

func (*terraformReader) Read

Uses: io.EOF, time.Second, time.Sleep.

func (AnsiblePlaybook) GetFullPath

func (AnsiblePlaybook) RunGalaxy

func (AnsiblePlaybook) RunPlaybook

Uses: pty.Start, strings.HasPrefix, strings.TrimSpace.

func (CmdGitClient) CanBePulled

func (CmdGitClient) Checkout

func (CmdGitClient) Clone

func (CmdGitClient) GetLastCommitHash

func (CmdGitClient) GetLastCommitMessage

func (CmdGitClient) GetLastRemoteCommitHash

Uses: fmt.Errorf, strings.IndexAny.

func (CmdGitClient) GetRemoteBranches

Uses: strings.Split.

func (CmdGitClient) Pull

func (GitRepository) CanBePulled

func (GitRepository) Checkout

func (GitRepository) Clone

func (GitRepository) GetFullPath

Uses: path.Join, util.Config.

func (GitRepository) GetLastCommitHash

func (GitRepository) GetLastCommitMessage

func (GitRepository) GetLastRemoteCommitHash

func (GitRepository) GetRemoteBranches

func (GitRepository) Pull

func (GitRepository) ValidateRepo

Uses: os.Stat.

func (GoGitClient) CanBePulled

Uses: errors.Is, plumbing.Revision.

func (GoGitClient) Checkout

Uses: plumbing.NewHash.

func (GoGitClient) Clone

Uses: plumbing.NewBranchReferenceName.

func (GoGitClient) GetLastCommitHash

func (GoGitClient) GetLastCommitMessage

func (GoGitClient) GetLastRemoteCommitHash

Uses: config.RemoteConfig, memory.NewStorage, plumbing.Reference.

func (GoGitClient) GetRemoteBranches

Uses: config.RemoteConfig, fmt.Errorf, memory.NewStorage.

func (GoGitClient) Pull

func (ProgressWrapper) Write

Uses: strings.HasPrefix.

Private functions

func getAuthMethod

References: db.AccessKeyLoginPassword, db.AccessKeyNone, db.AccessKeyRoleGit, db.AccessKeySSH, errors.New, http.BasicAuth, ssh.NewPublicKeys, ssh2.InsecureIgnoreHostKey.

func getEnvironmentVars

References: fmt.Sprintf, os.Getenv, util.Config.

func getMD5Hash

References: fmt.Sprintf, io.Copy, md5.New, os.Open.

func getRepositoryBranchNames

References: strings.LastIndex, strings.Split.

func hasRequirementsChanges

References: os.ReadFile.

func openRepository

References: util.Config.

func writeMD5Hash

References: os.WriteFile.

func getRepoPath

func installCollectionsRequirements

References: path.Join.

func installGalaxyRequirementsFile

References: fmt.Sprintf, os.Stat.

func installRolesRequirements

References: path.Join.

func runGalaxy

func makeCmd

References: exec.Command, fmt.Sprintf, util.Config.

func makeShellCmd

References: db.AppBash, db.AppPowerShell, db.AppPython, util.Config.

func runCmd

func init

References: db.AccessKeyRoleGit, db.AppTerragrunt, strings.Contains, strings.TrimSpace, time.Time.

func isWorkspacesSupported

References: db.AppTerragrunt.

func makeCmd

References: exec.Command, fmt.Sprintf, util.Config.

func runCmd

func selectWorkspace

References: db.AppTerragrunt.

func makeCmd

References: exec.Command, fmt.Sprintf, util.Config.

func runCmd

func makeCmd

References: exec.Command, util.Config.

func output

References: db.AccessKeyRoleGit, strings.Trim.

func run

References: db.AccessKeyRoleGit.


Tests

Files: 1. Third party imports: 0. Imports from organisation: 0. Tests: 1. Benchmarks: 0.

Test functions

TestGetEnvironmentVars

References: os.Setenv, util.Config, util.ConfigType.