releaseevents

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(text string, data any) ([]byte, error)

Render renders the payload template with sprig without env and expandenv, like Helm. It returns nil when the template renders nothing, which skips the change, e.g. a failed upgrade.

Types

type Auth

type Auth struct {
	Username    string
	Password    string
	TokenURL    string
	TokenHeader string
}

Auth holds the credentials for the release events endpoint, sent as basic auth or traded at TokenURL for an OAuth2 token.

type Client

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

Client sends changes to a release events endpoint.

func New

func New(endpoint string, auth Auth) *Client

New returns a Client that adds the auth to every request it sends to the endpoint.

func (*Client) Send

func (c *Client) Send(ctx context.Context, payload []byte) error

Send POSTs the payload and fails unless the endpoint answers with 2xx.

Jump to

Keyboard shortcuts

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