code.cloudfoundry.org/cli@v7.1.0+incompatible/actor/actionerror/security_group_not_bound_to_space_error.go (about)

     1  package actionerror
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"code.cloudfoundry.org/cli/api/cloudcontroller/ccv3/constant"
     7  )
     8  
     9  // SecurityGroupNotBoundToSpaceError is returned when a requested security group is
    10  // not bound in the requested lifecycle phase to the requested space.
    11  type SecurityGroupNotBoundToSpaceError struct {
    12  	Lifecycle constant.SecurityGroupLifecycle
    13  	Name      string
    14  	Space     string
    15  }
    16  
    17  func (e SecurityGroupNotBoundToSpaceError) Error() string {
    18  	return fmt.Sprintf("Security group %s not bound to space %s for lifecycle phase '%s'.", e.Name, e.Space, e.Lifecycle)
    19  }