service

package
v0.19.921 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(params Params) *service

Types

type DescribeTagsItem

type DescribeTagsItem struct {
	Key          string `xml:"key"`
	Value        string `xml:"value"`
	ResourceId   string `xml:"resourceId"`
	ResourceType string `xml:"resourceType"`
}

type DescribeTagsResponse

type DescribeTagsResponse struct {
	XMLName xml.Name `xml:"DescribeTagsResponse"`
	TagSet  struct {
		Items []DescribeTagsItem `xml:"item"`
	} `xml:"tagSet"`
}

type GetCallerIdentityResponse

type GetCallerIdentityResponse struct {
	XMLName xml.Name `xml:"GetCallerIdentityResponse"`
	Result  struct {
		Arn     string `xml:"Arn"`
		UserId  string `xml:"UserId"`
		Account string `xml:"Account"`
	} `xml:"GetCallerIdentityResult"`
}

type Params

type Params struct {
	fx.In

	V          *validator.Validate
	DB         *gorm.DB `name:"psql"`
	L          *zap.Logger
	Cfg        *internal.Config
	AcctClient *account.Client
}

type RunnerAuthAWSIIDRequest added in v0.19.894

type RunnerAuthAWSIIDRequest struct {
	Document  string `json:"document" validate:"required"`
	Signature string `json:"signature" validate:"required"`
	RunnerID  string `json:"runner_id" validate:"required"`
}

type RunnerAuthAWSIIDResponse added in v0.19.894

type RunnerAuthAWSIIDResponse struct {
	Authenticated bool   `json:"authenticated"`
	AccountID     string `json:"account_id,omitempty"`
	InstanceID    string `json:"instance_id,omitempty"`
	Region        string `json:"region,omitempty"`
	RunnerID      string `json:"runner_id,omitempty"`
	Token         string `json:"token,omitempty"`
}

type RunnerAuthAWSRequest

type RunnerAuthAWSRequest struct {
	STSRequest  *awstypes.PresignedRequest `json:"sts" validate:"required"`
	TagsRequest *awstypes.PresignedRequest `json:"tags" validate:"required"`
}

type RunnerAuthAWSResponse

type RunnerAuthAWSResponse struct {
	Authenticated bool   `json:"authenticated"`
	AccountID     string `json:"account_id,omitempty"`
	ARN           string `json:"arn,omitempty"`
	InstanceID    string `json:"instance_id,omitempty"`
	RunnerID      string `json:"runner_id,omitempty"`
	Token         string `json:"token,omitempty"`
}

type RunnerAuthAzureRequest added in v0.19.894

type RunnerAuthAzureRequest struct {
	Token    string `json:"token" validate:"required"`
	RunnerID string `json:"runner_id,omitempty"`
}

type RunnerAuthAzureResponse added in v0.19.894

type RunnerAuthAzureResponse struct {
	Authenticated bool   `json:"authenticated"`
	TenantID      string `json:"tenant_id,omitempty"`
	PrincipalID   string `json:"principal_id,omitempty"`
	RunnerID      string `json:"runner_id,omitempty"`
	Token         string `json:"token,omitempty"`
}

type RunnerAuthGCPRequest added in v0.19.894

type RunnerAuthGCPRequest struct {
	IdentityToken   string                    `json:"identity_token" validate:"required"`
	MetadataRequest *gcptypes.MetadataRequest `json:"metadata" validate:"required"`
}

type RunnerAuthGCPResponse added in v0.19.894

type RunnerAuthGCPResponse struct {
	Authenticated  bool   `json:"authenticated"`
	ProjectID      string `json:"project_id,omitempty"`
	InstanceID     string `json:"instance_id,omitempty"`
	ServiceAccount string `json:"service_account,omitempty"`
	RunnerID       string `json:"runner_id,omitempty"`
	Token          string `json:"token,omitempty"`
}

Jump to

Keyboard shortcuts

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