payloads

package
v0.0.0-...-439fd0a Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func API2ID

func API2ID(tagStr string) (string, error)

API2ID converts the given payload tag string into a payload ID. Example: "payload-foobar" -> "foobar"

func API2Payload

func API2Payload(apiInfo params.Payload) (payloads.FullPayloadInfo, error)

API2Payload converts an API Payload info struct into a payloads.FullPayloadInfo struct.

func Payload2api

func Payload2api(p payloads.FullPayloadInfo) params.Payload

Payload2api converts a payloads.FullPayloadInfo struct into a Payload struct.

Types

type Client

type Client struct {
	base.ClientFacade
	// contains filtered or unexported fields
}

Client provides methods for interacting with Juju's public RPC API, relative to payloads.

func NewClient

func NewClient(apiCaller base.APICallCloser) *Client

NewClient returns a new Client for the given raw API caller.

func (Client) ListFull

func (c Client) ListFull(patterns ...string) ([]payloads.FullPayloadInfo, error)

ListFull calls the List API server method.

Jump to

Keyboard shortcuts

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