Documentation ¶
Index ¶
- type Metadata
- type MetadataImpl
- func (m *MetadataImpl) Get(suffix string) (string, error)
- func (m *MetadataImpl) Hostname() (string, error)
- func (m *MetadataImpl) InstanceAttributeValue(attr string) (string, error)
- func (m *MetadataImpl) InstanceID() (string, error)
- func (m *MetadataImpl) InstanceName() (string, error)
- func (m *MetadataImpl) OnGCE() bool
- func (m *MetadataImpl) ProjectID() (string, error)
- func (m *MetadataImpl) Zone() (string, error)
- type MockMetadata
- func (m *MockMetadata) Get(suffix string) (string, error)
- func (m *MockMetadata) Hostname() (string, error)
- func (m *MockMetadata) InstanceAttributeValue(attr string) (string, error)
- func (m *MockMetadata) InstanceID() (string, error)
- func (m *MockMetadata) InstanceName() (string, error)
- func (m *MockMetadata) OnGCE() bool
- func (m *MockMetadata) ProjectID() (string, error)
- func (m *MockMetadata) Zone() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetadataImpl ¶
type MetadataImpl struct{}
func (*MetadataImpl) Hostname ¶
func (m *MetadataImpl) Hostname() (string, error)
func (*MetadataImpl) InstanceAttributeValue ¶
func (m *MetadataImpl) InstanceAttributeValue(attr string) (string, error)
func (*MetadataImpl) InstanceID ¶
func (m *MetadataImpl) InstanceID() (string, error)
func (*MetadataImpl) InstanceName ¶
func (m *MetadataImpl) InstanceName() (string, error)
func (*MetadataImpl) OnGCE ¶
func (m *MetadataImpl) OnGCE() bool
func (*MetadataImpl) ProjectID ¶
func (m *MetadataImpl) ProjectID() (string, error)
func (*MetadataImpl) Zone ¶
func (m *MetadataImpl) Zone() (string, error)
type MockMetadata ¶
func (*MockMetadata) Hostname ¶
func (m *MockMetadata) Hostname() (string, error)
func (*MockMetadata) InstanceAttributeValue ¶
func (m *MockMetadata) InstanceAttributeValue(attr string) (string, error)
func (*MockMetadata) InstanceID ¶
func (m *MockMetadata) InstanceID() (string, error)
func (*MockMetadata) InstanceName ¶
func (m *MockMetadata) InstanceName() (string, error)
func (*MockMetadata) OnGCE ¶
func (m *MockMetadata) OnGCE() bool
func (*MockMetadata) ProjectID ¶
func (m *MockMetadata) ProjectID() (string, error)
func (*MockMetadata) Zone ¶
func (m *MockMetadata) Zone() (string, error)
Click to show internal directories.
Click to hide internal directories.