func (st *State) AuthorisedKeys(tag names.MachineTag) ([]string, error) {
	var results params.StringsResults
	args := params.Entities{
		Entities: []params.Entity{{Tag: tag.String()}},
	}
	err := st.facade.FacadeCall("AuthorisedKeys", args, &results)
	if err != nil {
		// TODO: Not directly tested
		return nil, err
	}
	if len(results.Results) != 1 {
		// TODO: Not directly tested
		return nil, errors.Errorf("expected 1 result, got %d", len(results.Results))
	}
	result := results.Results[0]
	if err := result.Error; err != nil {
		return nil, err
	}
	return result.Result, nil
}
// AuthorisedKeys returns the authorised ssh keys for the machine specified by machineTag.
AuthorisedKeys returns the authorised ssh keys for the machine specified by machineTag.
// AuthorisedKeys returns the authorised ssh keys for the machine specified by machineTag .
func (st *State) AuthorisedKeys(tag names.MachineTag) ([]string, error) {
	var results params.StringsResults
	args := params.Entities{
		Entities: []params.Entity{{Tag: tag.String()}},
	}
	err := st.facade.FacadeCall("AuthorisedKeys", args, &results)
	if err != nil {
		return nil, err
	}
	if len(results.Results) != 1 {
		return nil, errors.Errorf("expected 1 result, got %d", len(results.Results))
	}
	result := results.Results[0]
	if err := result.Error; err != nil {
		return nil, err
	}
	return result.Result, nil
}
func ( st * State ) AuthorisedKeys ( tag names . MachineTag ) ( [ ] string , error ) { var results params . StringsResults args := params . Entities { Entities : [ ] params . Entity { { Tag : tag . String ( ) } } , } err := st . facade . FacadeCall ( " " , args , & results ) if err != nil { return nil , err } if len ( results . Results ) != 1 { return nil , errors . Errorf ( " " , len ( results . Results ) ) } result := results . Results [ 0 ] if err := result . Error ; err != nil { return nil , err } return result . Result , nil }
AuthorisedKeys returns the authorised ssh keys for the machine specified by machineTag.
AuthorisedKeys returns the authorised ssh keys for the machine specified by machineTag .
// TODO: Not directly tested // TODO: Not directly tested