Esempio n. 1
0
// Uniter returns a version of the state that provides functionality
// required by the uniter worker.
func (st *State) Uniter() *uniter.State {
	return uniter.NewState(st, st.authTag)
}
Esempio n. 2
0
File: state.go Progetto: jiasir/juju
// Uniter returns a version of the state that provides functionality
// required by the uniter worker.
func (st *State) Uniter() *uniter.State {
	// TODO(dfc) yes, this can panic, we never checked before
	return uniter.NewState(st, st.authTag.(names.UnitTag))
}