github.com/mhilton/juju-juju@v0.0.0-20150901100907-a94dd2c73455/provider/provider.go (about)

     1  // Copyright 2013 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  // The provider package holds constants identifying known provider types.
     5  // They have hitherto only been used for nefarious purposes; no new code
     6  // should use them, and when old code is updated to no longer use them
     7  // they must be deleted.
     8  package provider
     9  
    10  const (
    11  	Joyent = "joyent"
    12  	Local  = "local"
    13  	MAAS   = "maas"
    14  	EC2    = "ec2"
    15  )
    16  
    17  // IsManual returns true iff the specified provider
    18  // type refers to the manual provider.
    19  func IsManual(provider string) bool {
    20  	switch provider {
    21  	case "null", "manual":
    22  		return true
    23  	default:
    24  		return false
    25  	}
    26  }