type cloud.google.com/go/compute/metadata.Client
25 uses
cloud.google.com/go/compute/metadata (current package)
metadata.go#L64: var defaultClient = &Client{hc: &http.Client{
metadata.go#L85: func (c *cachedValue) get(cl *Client) (v string, err error) {
metadata.go#L267: type Client struct {
metadata.go#L274: func NewClient(c *http.Client) *Client {
metadata.go#L279: return &Client{hc: c}
metadata.go#L284: func (c *Client) getETag(suffix string) (value, etag string, err error) {
metadata.go#L333: func (c *Client) Get(suffix string) (string, error) {
metadata.go#L338: func (c *Client) getTrimmed(suffix string) (s string, err error) {
metadata.go#L344: func (c *Client) lines(suffix string) ([]string, error) {
metadata.go#L357: func (c *Client) ProjectID() (string, error) { return projID.get(c) }
metadata.go#L360: func (c *Client) NumericProjectID() (string, error) { return projNum.get(c) }
metadata.go#L363: func (c *Client) InstanceID() (string, error) { return instID.get(c) }
metadata.go#L366: func (c *Client) InternalIP() (string, error) {
metadata.go#L373: func (c *Client) Email(serviceAccount string) (string, error) {
metadata.go#L381: func (c *Client) ExternalIP() (string, error) {
metadata.go#L387: func (c *Client) Hostname() (string, error) {
metadata.go#L393: func (c *Client) InstanceTags() ([]string, error) {
metadata.go#L406: func (c *Client) InstanceName() (string, error) {
metadata.go#L411: func (c *Client) Zone() (string, error) {
metadata.go#L423: func (c *Client) InstanceAttributes() ([]string, error) { return c.lines("instance/attributes/") }
metadata.go#L428: func (c *Client) ProjectAttributes() ([]string, error) { return c.lines("project/attributes/") }
metadata.go#L438: func (c *Client) InstanceAttributeValue(attr string) (string, error) {
metadata.go#L450: func (c *Client) ProjectAttributeValue(attr string) (string, error) {
metadata.go#L457: func (c *Client) Scopes(serviceAccount string) ([]string, error) {
metadata.go#L473: func (c *Client) Subscribe(suffix string, fn func(v string, ok bool) error) error {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |