github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/cf/api/resources/feature_flags.go (about)

     1  package resources
     2  
     3  import "code.cloudfoundry.org/cli/cf/models"
     4  
     5  type FeatureFlagResource struct {
     6  	Entity models.FeatureFlag
     7  }
     8  
     9  func (resource FeatureFlagResource) ToFields() (flag models.FeatureFlag) {
    10  	flag.Name = resource.Entity.Name
    11  	flag.Enabled = resource.Entity.Enabled
    12  	flag.ErrorMessage = resource.Entity.ErrorMessage
    13  	return
    14  }