client

package
v1.26.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 10 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultStagingEndpoint    = "https://registry-staging.go-semantic-release.xyz"
	DefaultProductionEndpoint = "https://registry.go-semantic-release.xyz"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(registryURL string) *Client

func (*Client) GetPlugin

func (c *Client) GetPlugin(ctx context.Context, pluginName string) (*registry.Plugin, error)

func (*Client) GetPluginRelease

func (c *Client) GetPluginRelease(ctx context.Context, pluginName, version string) (*registry.PluginRelease, error)

func (*Client) GetPlugins

func (c *Client) GetPlugins(ctx context.Context) ([]string, error)

func (*Client) SendBatchRequest

func (c *Client) SendBatchRequest(ctx context.Context, batch *registry.BatchRequest) (*registry.BatchResponse, error)

func (*Client) UpdatePlugin added in v1.5.0

func (c *Client) UpdatePlugin(ctx context.Context, adminAccessToken, pluginName string) error

func (*Client) UpdatePluginRelease added in v1.5.0

func (c *Client) UpdatePluginRelease(ctx context.Context, adminAccessToken, pluginName, version string) error

func (*Client) UpdatePlugins added in v1.5.0

func (c *Client) UpdatePlugins(ctx context.Context, adminAccessToken string) error

type ErrorResponse

type ErrorResponse struct {
	StatusCode int
	ErrorMsg   string `json:"error"`
}

func (*ErrorResponse) Error

func (e *ErrorResponse) Error() string

Jump to

Keyboard shortcuts

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