Documentation ¶
Index ¶
- Constants
- type Client
- func (nc *Client) CreateNamespace(ctx context.Context, azureCfg *Config, groupName, namespace string, tags Tags) (*eventhub.EHNamespace, error)
- func (nc *Client) CreateResourceGroup(ctx context.Context, config *Config, name string, tags Tags) (resources.Group, error)
- func (nc *Client) DeleteResourceGroup(ctx context.Context, tags Tags) (resources.GroupsDeleteFuture, error)
- func (nc *Client) GetEventhubAccessKeys(ctx context.Context, resourceGroupName string, namespaceName string, ...) (result eventhub.AccessKeys, err error)
- func (nc *Client) GetResourceGroup(ctx context.Context, tags Tags) (resources.Group, error)
- type Config
- type HyperscalerProvider
- type Interface
- type ResourceGroupDoesNotExistError
- type Tags
Constants ¶
View Source
const ( FutureOperationSucceeded string = "Succeeded" FutureOperationDeleting string = "Deleting" )
View Source
const ( // Azure tags used to identify the Kyma runtime TagSubAccountID = "SubAccountID" TagInstanceID = "InstanceID" TagOperationID = "OperationID" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewAzureClient ¶
func NewAzureClient(namespaceClient eventhub.NamespacesClient, resourceGroupClient resources.GroupsClient, logger logrus.FieldLogger) *Client
func (*Client) CreateNamespace ¶
func (*Client) CreateResourceGroup ¶
func (*Client) DeleteResourceGroup ¶
func (*Client) GetEventhubAccessKeys ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func GetConfigFromHAPCredentialsAndProvisioningParams ¶
func GetConfigFromHAPCredentialsAndProvisioningParams(credentials hyperscaler.Credentials, parameters internal.ProvisioningParameters) (*Config, error)
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
func (*Config) Environment ¶
func (c *Config) Environment() (*azure.Environment, error)
func (*Config) GetLocation ¶
type HyperscalerProvider ¶
type HyperscalerProvider interface {
GetClient(config *Config, logger logrus.FieldLogger) (Interface, error)
}
func NewAzureProvider ¶
func NewAzureProvider() HyperscalerProvider
type Interface ¶
type Interface interface { GetEventhubAccessKeys(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (result eventhub.AccessKeys, err error) CreateResourceGroup(ctx context.Context, config *Config, name string, tags Tags) (resources.Group, error) CreateNamespace(ctx context.Context, azureCfg *Config, groupName, namespace string, tags Tags) (*eventhub.EHNamespace, error) GetResourceGroup(ctx context.Context, tags Tags) (resources.Group, error) DeleteResourceGroup(ctx context.Context, tags Tags) (resources.GroupsDeleteFuture, error) }
type ResourceGroupDoesNotExistError ¶
type ResourceGroupDoesNotExistError struct {
// contains filtered or unexported fields
}
func NewResourceGroupDoesNotExist ¶
func NewResourceGroupDoesNotExist(errorMessage string) ResourceGroupDoesNotExistError
func (ResourceGroupDoesNotExistError) Error ¶
func (e ResourceGroupDoesNotExistError) Error() string
Click to show internal directories.
Click to hide internal directories.