internal

package
v0.0.0-...-0b03944 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clinar

type Clinar struct {
	Client         GitLabClient
	Logger         *logrus.Logger
	ExcludeFilter  []string       `mapstructure:"exclude"`
	IncludePattern *regexp.Regexp `mapstructure:"include"`
}

func (*Clinar) CleanupRunners

func (c *Clinar) CleanupRunners(staleRunnerIDs []*gitlab.RunnerDetails)

func (*Clinar) GetAllRunners

func (c *Clinar) GetAllRunners() ([]*gitlab.Runner, error)

func (*Clinar) GetRunnerDetails

func (c *Clinar) GetRunnerDetails(rners []*gitlab.Runner) []*gitlab.RunnerDetails

GetRunnerDetails return the gitlab.RunnerDetails for all given []*gitlab.Runner

type GitLabClient

type GitLabClient interface {
	GetRunnerDetails(rid interface{}, options ...gitlab.RequestOptionFunc) (*gitlab.RunnerDetails, *gitlab.Response, error)
	ListRunners(opt *gitlab.ListRunnersOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.Runner, *gitlab.Response, error)
	DeleteRegisteredRunnerByID(rid int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
}

Jump to

Keyboard shortcuts

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