unitcommon

package
v0.0.0-...-ea3e8b0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: AGPL-3.0 Imports: 5 Imported by: 3

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