lib

package
v1.2.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCraneKeychain

func CreateCraneKeychain(
	srcAdapter adapter.Adapter,
	destAdapter adapter.Adapter,
	sourcePackageHostname string,
) (authn.Keychain, error)

Types

type Authorizer

type Authorizer modifier.Modifier

Authorizer authorizes the request

type Link struct {
	URL   string
	Rel   string
	Attrs map[string]string
}

Link defines the model that describes the HTTP link header

func (*Link) String

func (l *Link) String() string

String returns the string representation of a link

type Links []*Link

Links is a link object array

func ParseLinks(str string) Links

ParseLinks parses the link header into Links e.g. <http://example.com/TheBook/chapter2>; rel="previous"; title="previous chapter" , <http://example.com/TheBook/chapter4>; rel="next"; title="next chapter"

func (Links) String

func (l Links) String() string

String returns the string representation of links

Jump to

Keyboard shortcuts

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