azure

package
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Copyright 2023 The Radius Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 The Radius Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateOrUpdateAzureCredential

func NewCreateOrUpdateAzureCredential(opts armrpc_controller.Options, secretClient secret.Client) (armrpc_controller.Controller, error)

NewCreateOrUpdateAzureCredential creates a new CreateOrUpdateAzureCredential controller which is used to create or update Azure credentials and returns it along with a nil error.

func NewDeleteAzureCredential

func NewDeleteAzureCredential(opts armrpc_controller.Options, secretClient secret.Client) (armrpc_controller.Controller, error)

NewDeleteAzureCredential creates a new DeleteAzureCredential controller which is used to delete Azure credentials from the secret store. It returns an error if the controller cannot be created.

Types

type CreateOrUpdateAzureCredential

type CreateOrUpdateAzureCredential struct {
	armrpc_controller.Operation[*datamodel.AzureCredential, datamodel.AzureCredential]
	// contains filtered or unexported fields
}

CreateOrUpdateAzureCredential is the controller implementation to create/update a UCP Azure credential.

func (*CreateOrUpdateAzureCredential) Run

CreateOrUpdateAzureCredential Run function saves an Azure credential secret in the secret store and updates the metadata store with the new resource, setting the provisioning state to succeeded. If an invalid credential kind is provided, a bad request response is returned. If an error occurs while saving the secret or the resource, an error is returned.

type DeleteAzureCredential

type DeleteAzureCredential struct {
	armrpc_controller.Operation[*datamodel.AzureCredential, datamodel.AzureCredential]
	// contains filtered or unexported fields
}

DeleteAzureCredential is the controller implementation to delete a UCP Azure credential.

func (*DeleteAzureCredential) Run

"Run" retrieves the existing credential, deletes the associated secret, and then deletes the credential from storage, returning an OK response if successful or an error if not.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL