func (c *environClient) isMyServer(s gosigma.Server) bool { if _, ok := s.Get(jujuMetaInstance); ok { return c.isMyEnvironment(s) } return false }
// isMyStateServer is used to filter servers in the CloudSigma account func (c environClient) isMyStateServer(s gosigma.Server) bool { if v, ok := s.Get(jujuMetaInstance); ok && v == jujuMetaInstanceStateServer { return c.isMyEnvironment(s) } return false }
func (c *environClient) isMyEnvironment(s gosigma.Server) bool { if v, ok := s.Get(jujuMetaEnvironment); ok && c.uuid == v { return true } return false }