Ubuntu Pastebin

Paste from katco at Tue, 30 Jun 2015 20:29:00 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
	factory := func(state *state.State, _ *common.Resources, authorizer common.Authorizer) (server.API, error) {
		if !authorizer.AuthUnitAgent() {
			return nil, common.ErrPerm
		}

		return server.NewAPI(state)
	}

	common.RegisterStandardFacade(
		process.ComponentName,
		0,
		factory,
	)
Download as text