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

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