github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/compute/v2/extensions/extendedserverattributes/doc.go (about)

     1  /*
     2  Package extendedserverattributes provides the ability to extend a
     3  server result with the extended usage information.
     4  
     5  Example to Get an extended information:
     6  
     7    type serverAttributesExt struct {
     8      servers.Server
     9      extendedserverattributes.ServerAttributesExt
    10    }
    11    var serverWithAttributesExt serverAttributesExt
    12  
    13    err := servers.Get(computeClient, "d650a0ce-17c3-497d-961a-43c4af80998a").ExtractInto(&serverWithAttributesExt)
    14    if err != nil {
    15      panic(err)
    16    }
    17  
    18    fmt.Printf("%+v\n", serverWithAttributesExt)
    19  */
    20  package extendedserverattributes