juju: github.com/wallyworld/juju/worker/caasrbacmapper/test Index | Files

package test

import "github.com/wallyworld/juju/worker/caasrbacmapper/test"


Package Files


type Mapper Uses

type Mapper struct {
    // AppNameForServiceAccountFunc is the function called when
    // AppNameForServiceAccount is used.
    AppNameForServiceAccountFunc func(types.UID) (string, error)

Mapper is a dummy rbac mapper used in testing

func (*Mapper) AppNameForServiceAccount Uses

func (m *Mapper) AppNameForServiceAccount(t types.UID) (string, error)

AppNameForServiceAccount implements the Mapper interface and calls the AppNameForServiceAccountFunc field when defined. Otherwise returns a not found error

Package test imports 2 packages (graph). Updated 2020-05-23. Refresh now. Tools for package owners.