fiat

package
v0.25.6 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Name           string   `json:"name"`
	Authorizations []string `json:"authorizations"`
}

type Application

type Application struct {
	Name           string   `json:"name"`
	Authorizations []string `json:"authorizations"`
}

type Client

type Client interface {
	Authorize(account string) (Response, error)
}

func NewClient

func NewClient(url string) Client

func NewDefaultClient

func NewDefaultClient() Client

type Response

type Response struct {
	Name               string           `json:"name"`
	Accounts           []Account        `json:"accounts"`
	Applications       []Application    `json:"applications"`
	ServiceAccounts    []ServiceAccount `json:"serviceAccounts"`
	Roles              []Role           `json:"roles"`
	BuildServices      []interface{}    `json:"buildServices"`
	ExtensionResources struct {
	} `json:"extensionResources"`
	Admin                            bool `json:"admin"`
	LegacyFallback                   bool `json:"legacyFallback"`
	AllowAccessToUnknownApplications bool `json:"allowAccessToUnknownApplications"`
}

type Role

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

type ServiceAccount

type ServiceAccount struct {
	Name     string   `json:"name"`
	MemberOf []string `json:"memberOf"`
}

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