Help us shape the future of Go! Take the 2026 Go Developer Survey

runnergroups

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Runner Groups allow you to create dedicated groups of runners for your organization. A private runner is a self-hosted instance that can be registered with StackGuardian to execute tasks and jobs within your organization's environment.

For more details, visit our [Documentation](https://docs.stackguardian.io/docs/organisation_settings/private_runner/overview/).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(opts ...option.RequestOption) *Client

func (*Client) CreateNewRunnerGroup

func (c *Client) CreateNewRunnerGroup(
	ctx context.Context,
	org string,
	request *sgsdkgo.RunnerGroup,
	opts ...option.RequestOption,
) (*sgsdkgo.RunnerGroupCreateResponse, error)

Creates a new Runner Group in the specified organization.

func (*Client) DeleteRunnerGroup added in v1.1.0

func (c *Client) DeleteRunnerGroup(
	ctx context.Context,
	org string,
	runnerGroup string,
	opts ...option.RequestOption,
) (*sgsdkgo.RunnerGroupDeleteResponse, error)

Delete an existing Runner Group.

func (*Client) DeregisterRunner

func (c *Client) DeregisterRunner(
	ctx context.Context,
	org string,
	runnerGroup string,
	request *sgsdkgo.RunnerDeregister,
	opts ...option.RequestOption,
) error

Deregisters the runner from the specified runner group.

func (*Client) ReadRunnerGroup

func (c *Client) ReadRunnerGroup(
	ctx context.Context,
	org string,
	runnerGroup string,
	request *sgsdkgo.ReadRunnerGroupRequest,
	opts ...option.RequestOption,
) (*sgsdkgo.RunnerGroupSerializerResponse, error)

Retrieves details of an existing runner group.

func (*Client) UpdateRunnerGroup added in v1.1.0

func (c *Client) UpdateRunnerGroup(
	ctx context.Context,
	org string,
	runnerGroup string,
	request *sgsdkgo.PatchedRunnerGroup,
	opts ...option.RequestOption,
) (*sgsdkgo.RunnerGroupCreateResponse, error)

Update an existing Runner Group.

func (*Client) UpdateRunnerState

func (c *Client) UpdateRunnerState(
	ctx context.Context,
	org string,
	runnerGroup string,
	request *sgsdkgo.RunnerStatus,
	opts ...option.RequestOption,
) error

Updates the state of a runner in the specified runner group.

Jump to

Keyboard shortcuts

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