Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DO Metadata

godocs.io

This package implements a simple way to retrieve droplet metadata from the relevant digitalocean endpoint.

Example

package main

import (
	do_metadata "github.com/codegaudi/do-metadata"
	"log"
	"time"
)

func main() {

    meta, err := do_metadata.RetrieveMetadata(time.Second * 5)
    if err != nil {
        log.Fatal("could not retrieve metadata from the digitalocean metadata api: ", err.Error())
    }
    
    // Print the droplet id
    log.Print(meta.DropletID)
}

License

MIT

About

Library to retrieve droplet metadata from the digitalocean metadata endpoint

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages