juju: github.com/juju/juju/payload/api Index | Files | Directories

package api

import "github.com/juju/juju/payload/api"

Index

Package Files

helpers.go

func API2ID Uses

func API2ID(tagStr string) (string, error)

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

func API2Payload Uses

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

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

func Payload2api Uses

func Payload2api(p payload.FullPayloadInfo) params.Payload

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

Directories

PathSynopsis
client
private
private/client

Package api imports 5 packages (graph) and is imported by 86 packages. Updated 2019-08-24. Refresh now. Tools for package owners.