Documentation ¶
Index ¶
- Constants
- Variables
- func GetAccountId() (string, error)
- func ReadHostDocument() ([]byte, string)
- func ReadSiaConfig() ([]byte, string)
- func SetCloudFetcher(fetcher Fetcher)
- func SetOnPremFetcher(fetcher Fetcher)
- type AzureVmFetcher
- type EC2Fetcher
- type EKSFetcher
- type FargateFetcher
- type Fetcher
- type MsdHost
- type Service
- type ServicesData
Constants ¶
View Source
const ( SIA_CONFIG = "/etc/sia/sia_config" SIA_DIR = "/var/lib/sia" HOST_DOCUMENT = "host_document" )
Variables ¶
View Source
var ApiVersion = "2020-06-01"
View Source
var AzureVmMetaEndPoint = "http://169.254.169.254"
View Source
var Ec2MetaEndPoint = "http://169.254.169.254:80"
View Source
var EksMetaEndPoint = "http://169.254.169.254:80"
View Source
var FargateMetaEndPoint = "http://169.254.170.2"
Functions ¶
func GetAccountId ¶
func ReadHostDocument ¶
func ReadSiaConfig ¶
func SetCloudFetcher ¶
func SetCloudFetcher(fetcher Fetcher)
func SetOnPremFetcher ¶
func SetOnPremFetcher(fetcher Fetcher)
Types ¶
type AzureVmFetcher ¶
type AzureVmFetcher struct { }
func (*AzureVmFetcher) Fetch ¶
func (fetcher *AzureVmFetcher) Fetch(host MsdHost, accountId string) (ServicesData, error)
func (*AzureVmFetcher) GetAccountId ¶
func (fetcher *AzureVmFetcher) GetAccountId() (string, error)
type EC2Fetcher ¶
type EC2Fetcher struct { }
func (*EC2Fetcher) Fetch ¶
func (fetcher *EC2Fetcher) Fetch(host MsdHost, accountId string) (ServicesData, error)
func (*EC2Fetcher) GetAccountId ¶
func (fetcher *EC2Fetcher) GetAccountId() (string, error)
type EKSFetcher ¶
type EKSFetcher struct { }
func (*EKSFetcher) Fetch ¶
func (fetcher *EKSFetcher) Fetch(host MsdHost, accountId string) (ServicesData, error)
func (*EKSFetcher) GetAccountId ¶
func (fetcher *EKSFetcher) GetAccountId() (string, error)
type FargateFetcher ¶
type FargateFetcher struct { }
func (*FargateFetcher) Fetch ¶
func (fetcher *FargateFetcher) Fetch(host MsdHost, accountId string) (ServicesData, error)
func (*FargateFetcher) GetAccountId ¶
func (fetcher *FargateFetcher) GetAccountId() (string, error)
type ServicesData ¶
func GetServicesData ¶
func GetServicesData(accountId string) (ServicesData, error)
Map the service name to its service configuration
Click to show internal directories.
Click to hide internal directories.