client

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: MIT Imports: 10 Imported by: 2

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