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

package test

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

Index

Package Files

mapper.go

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-03-30. Refresh now. Tools for package owners.