services

package
v1.10.8 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(host, port, version string) (*client.Client, error)

func NewClientDocker

func NewClientDocker(host, port, version string) (*client.Client, error)

Types

type Docker

type Docker struct {
	Host    string
	Version string
	Client  *client.Client
}

type Gitlab

type Gitlab struct {
	Username string          `json:"username"`
	Token    string          `json:"token"`
	Host     string          `json:"host"`
	Client   *gitlab.Client  `json:"client"`
	Project  *gitlab.Project `json:"project"`
}

func NewGitlab

func NewGitlab(host, token string) (Gitlab, error)

func (*Gitlab) GetBranches

func (g *Gitlab) GetBranches() ([]*gitlab.Branch, error)

func (*Gitlab) GetCommitIds

func (g *Gitlab) GetCommitIds() ([]*gitlab.Commit, error)

func (*Gitlab) GetProject

func (g *Gitlab) GetProject(projectName string) error

@projectName: ops/java-demo

func (*Gitlab) GitlabClient

func (g *Gitlab) GitlabClient() error

type Jenkins

type Jenkins struct {
	Server   *gojenkins.Jenkins
	Username string `json:"username"` // admin
	Token    string `json:"token"`    // 11dc2e1df59b44ac920d420e40c08e3e56
	Host     string `json:"host"`     // "http://localhost:8080/"
}

func NewJenkins

func NewJenkins(username, token, host string) (Jenkins, error)

func (*Jenkins) Build

func (j *Jenkins) Build(jenkins *gojenkins.Jenkins, jobName string, options map[string]string) error

func (*Jenkins) GetJenkins

func (j *Jenkins) GetJenkins() error

Jump to

Keyboard shortcuts

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