fiat

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientInstanceKey = `FiatClient`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Roles(string) (Roles, error)
	WithURL(string)
}

Client holds the implementation to call fiat.

func NewClient

func NewClient() Client

NewClient returns an implementation of Client.

func NewDefaultClient

func NewDefaultClient() Client

NewDefaultClient returns an implementation of Client with the URL set to http://spin-fiat.spinnaker:7003.

type Role

type Role struct {
	Name   string `json:"name"`
	Source string `json:"source"`
}

type Roles

type Roles []Role

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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