customaction

package
v14.39.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package customaction provides functionality for handling custom actions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Config     *config.Config
	ReadWriter *readwriter.ReadWriter
	EOFSent    bool
}

Command represents the custom action command

func (*Command) Execute

func (c *Command) Execute(ctx context.Context, response *accessverifier.Response) error

Execute method runs when `geo_proxy_direct_to_primary` feature flag is enabled, a Git over HTTP direct request to primary repo is performed instead of proxying the request through Gitlab Rails. After the feature flag is enabled by default and removed, this package will be removed along with it.

type Request

type Request struct {
	SecretToken []byte                           `json:"secret_token"`
	Data        accessverifier.CustomPayloadData `json:"data"`
	Output      []byte                           `json:"output"`
}

Request represents the request structure for custom actions

type Response

type Response struct {
	Result  []byte `json:"result"`
	Message string `json:"message"`
}

Response represents the response structure for custom actions

Jump to

Keyboard shortcuts

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