code: func (actor Actor) GetStackByName(stackName string) (Stack, Warnings, error) {
  	stacks, warnings, err := actor.CloudControllerClient.GetStacks(ccv2.Filter{
  		Type:     constant.NameFilter,
  		Operator: constant.EqualOperator,
  		Values:   []string{stackName},
  	})
  	if err != nil {
  		return Stack{}, Warnings(warnings), err
  	}
  
  	if len(stacks) == 0 {
  		return Stack{}, Warnings(warnings), actionerror.StackNotFoundError{Name: stackName}
  	}
  
  	return Stack(stacks[0]), Warnings(warnings), nil
  }
docs: // GetStackByName returns the provided stack