github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/smn/v2/topicattributes/results.go (about)

     1  package topicattributes
     2  
     3  import "github.com/opentelekomcloud/gophertelekomcloud"
     4  
     5  type GetResult struct {
     6  	golangsdk.Result
     7  }
     8  
     9  func (r GetResult) Extract() (map[string]string, error) {
    10  	var attributes struct {
    11  		Attributes map[string]string `json:"attributes"`
    12  	}
    13  	err := r.ExtractIntoStructPtr(&attributes, "")
    14  	if err != nil {
    15  		return nil, err
    16  	}
    17  	return attributes.Attributes, nil
    18  }
    19  
    20  type UpdateResult struct {
    21  	golangsdk.ErrResult
    22  }
    23  
    24  type DeleteResult struct {
    25  	golangsdk.ErrResult
    26  }