Versions in this module Expand all Collapse all v0 v0.1.0 Feb 2, 2019 Changes in this version + func GetRegion(zoneName string) (string, error) + func MapNodeNameToInstanceName(nodeName types.NodeName) string + func ParseProviderID(providerID string) (folderID string, zone string, instanceName string, err error) + type Cloud struct + func NewCloud(config *CloudConfig, api CloudAPI) *Cloud + func (yc *Cloud) AddSSHKeyToAllInstances(ctx context.Context, user string, keyData []byte) error + func (yc *Cloud) Clusters() (cloudprovider.Clusters, bool) + func (yc *Cloud) CurrentNodeName(ctx context.Context, hostName string) (types.NodeName, error) + func (yc *Cloud) GetZone(ctx context.Context) (cloudprovider.Zone, error) + func (yc *Cloud) GetZoneByNodeName(ctx context.Context, nodeName types.NodeName) (cloudprovider.Zone, error) + func (yc *Cloud) GetZoneByProviderID(ctx context.Context, providerID string) (cloudprovider.Zone, error) + func (yc *Cloud) HasClusterID() bool + func (yc *Cloud) Initialize(clientBuilder controller.ControllerClientBuilder) + func (yc *Cloud) InstanceExistsByProviderID(ctx context.Context, providerID string) (bool, error) + func (yc *Cloud) InstanceID(ctx context.Context, nodeName types.NodeName) (string, error) + func (yc *Cloud) InstanceShutdownByProviderID(ctx context.Context, providerID string) (bool, error) + func (yc *Cloud) InstanceType(ctx context.Context, nodeName types.NodeName) (string, error) + func (yc *Cloud) InstanceTypeByProviderID(ctx context.Context, providerID string) (string, error) + func (yc *Cloud) Instances() (cloudprovider.Instances, bool) + func (yc *Cloud) LoadBalancer() (cloudprovider.LoadBalancer, bool) + func (yc *Cloud) NodeAddresses(ctx context.Context, nodeName types.NodeName) ([]v1.NodeAddress, error) + func (yc *Cloud) NodeAddressesByProviderID(ctx context.Context, providerID string) ([]v1.NodeAddress, error) + func (yc *Cloud) ProviderName() string + func (yc *Cloud) Routes() (cloudprovider.Routes, bool) + func (yc *Cloud) Zones() (cloudprovider.Zones, bool) + type CloudAPI interface + FindInstanceByFolderAndName func(ctx context.Context, folderID string, instanceName string) (*compute.Instance, error) + func NewCloudAPI(config *CloudConfig) (CloudAPI, error) + type CloudAPIImpl struct + func (api *CloudAPIImpl) FindInstanceByFolderAndName(ctx context.Context, folderID string, instanceName string) (*compute.Instance, error) + type CloudConfig struct + FolderID string + LocalZone string + OAuthToken ycsdk.Credentials + func NewCloudConfig() (*CloudConfig, error) + type MetadataService struct + func NewMetadataService() *MetadataService + func NewMetadataServiceWithURL(metadataURL string) *MetadataService + func (m *MetadataService) Get(suffix string) (string, error) + func (m *MetadataService) GetFolderID() (string, error) + func (m *MetadataService) GetZone() (string, error)