unitcommon

package
v0.0.0-...-9ec3720 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnitAccessor

func UnitAccessor(authorizer facade.Authorizer, st ApplicationGetter) common.GetAuthFunc

UnitAccessor returns an auth function which determines if the authenticated entity can access a unit or application.

Types

type ApplicationGetter

type ApplicationGetter interface {
	ApplicationExists(string) error
}

ApplicationGetter provides a method to determine if an application exists.

func Backend

func Backend(st stateApplicationGetter) ApplicationGetter

Backend returns an application abstraction for a given state.State instance.

Jump to

Keyboard shortcuts

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