Help us shape the future of Go! Take the 2026 Go Developer Survey

clients

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package clients is a generated GoMock package.

Package clients is a generated GoMock package.

Package clients is a generated GoMock package.

Index

Constants

This section is empty.

Variables

Functions

func Is404Error

func Is404Error(err error) bool

"Is404Error" checks if the given error is a 404 error by checking if it is one of: a ResponseError with an ErrorCode of "NotFound", or a ResponseError with a StatusCode of 404, or an ErrorResponse with an Error Code of "NotFound".

Types

type AWSProvider

type AWSProvider struct {
	// Scope is the target level for deploying the AWS resources.
	Scope string
}

type ApplicationStatus

type ApplicationStatus struct {
	Name          string
	ResourceCount int
	Gateways      []GatewayStatus
}

type ApplicationsManagementClient

type ApplicationsManagementClient interface {
	// ListResourcesOfType lists all resources of a given type in the configured scope.
	ListResourcesOfType(ctx context.Context, resourceType string) ([]generated.GenericResource, error)

	// ListResourcesOfTypeInApplication lists all resources of a given type in a given application in the configured scope.
	ListResourcesOfTypeInApplication(ctx context.Context, applicationNameOrID string, resourceType string) ([]generated.GenericResource, error)

	// ListResourcesOfTypeInEnvironment lists all resources of a given type in a given environment in the configured scope.
	ListResourcesOfTypeInEnvironment(ctx context.Context, environmentNameOrID string, resourceType string) ([]generated.GenericResource, error)

	// ListResourcesInApplication lists all resources in a given application in the configured scope.
	ListResourcesInApplication(ctx context.Context, applicationNameOrID string) ([]generated.GenericResource, error)

	// ListResourcesInEnvironment lists all resources in a given environment in the configured scope.
	ListResourcesInEnvironment(ctx context.Context, environmentNameOrID string) ([]generated.GenericResource, error)

	// GetResource retrieves a resource by its type and name (or id).
	GetResource(ctx context.Context, resourceType string, resourceNameOrID string) (generated.GenericResource, error)

	// DeleteResource deletes a resource by its type and name (or id).
	DeleteResource(ctx context.Context, resourceType string, resourceNameOrID string) (bool, error)

	// ListApplications lists all applications in the configured scope.
	ListApplications(ctx context.Context) ([]corerp.ApplicationResource, error)

	// GetApplication retrieves an application by its name (or id).
	GetApplication(ctx context.Context, applicationNameOrID string) (corerp.ApplicationResource, error)

	// GetApplicationGraph retrieves the application graph of an application by its name (or id).
	GetApplicationGraph(ctx context.Context, applicationNameOrID string) (corerp.ApplicationGraphResponse, error)

	// CreateOrUpdateApplication creates or updates an application by its name (or id).
	CreateOrUpdateApplication(ctx context.Context, applicationNameOrID string, resource *corerp.ApplicationResource) error

	// CreateApplicationIfNotFound creates an application if it does not exist.
	CreateApplicationIfNotFound(ctx context.Context, applicationNameOrID string, resource *corerp.ApplicationResource) error

	// DeleteApplication deletes an application and all of its resources by its name (or id).
	DeleteApplication(ctx context.Context, applicationNameOrID string) (bool, error)

	// ListEnvironments lists all environments in the configured scope (assumes configured scope is a resource group).
	ListEnvironments(ctx context.Context) ([]corerp.EnvironmentResource, error)

	// ListEnvironmentsAll lists all environments across resource groups.
	ListEnvironmentsAll(ctx context.Context) ([]corerp.EnvironmentResource, error)

	// GetEnvironment retrieves an environment by its name (in the configured scope) or resource ID.
	GetEnvironment(ctx context.Context, environmentNameOrID string) (corerp.EnvironmentResource, error)

	// GetRecipeMetadata shows recipe details including list of all parameters for a given recipe registered to an environment.
	GetRecipeMetadata(ctx context.Context, environmentNameOrID string, recipe corerp.RecipeGetMetadata) (corerp.RecipeGetMetadataResponse, error)

	// CreateOrUpdateEnvironment creates an environment by its name (or id).
	CreateOrUpdateEnvironment(ctx context.Context, environmentNameOrID string, resource *corerp.EnvironmentResource) error

	// DeleteEnvironment deletes an environment and all of its resources by its name (in the configured scope) or resource ID.
	DeleteEnvironment(ctx context.Context, environmentNameOrID string) (bool, error)

	// ListResourceGroups lists all resource groups in the configured scope.
	ListResourceGroups(ctx context.Context, planeName string) ([]ucp_v20231001preview.ResourceGroupResource, error)

	// GetResourceGroup retrieves a resource group by its name.
	GetResourceGroup(ctx context.Context, planeName string, resourceGroupName string) (ucp_v20231001preview.ResourceGroupResource, error)

	// CreateOrUpdateResourceGroup creates a resource group by its name.
	CreateOrUpdateResourceGroup(ctx context.Context, planeName string, resourceGroupName string, resource *ucp_v20231001preview.ResourceGroupResource) error

	// DeleteResourceGroup deletes a resource group by its name.
	DeleteResourceGroup(ctx context.Context, planeName string, resourceGroupName string) (bool, error)
}

ApplicationsManagementClient is used to interface with management features like listing resources by app, show details of a resource.

type AzureProvider

type AzureProvider struct {
	// Scope is the target level for deploying the Azure resources.
	Scope string
}

type DeploymentClient

type DeploymentClient interface {
	Deploy(ctx context.Context, options DeploymentOptions) (DeploymentResult, error)
}

DeploymentClient is used to deploy ARM-JSON templates (compiled Bicep output).

type DeploymentOptions

type DeploymentOptions struct {
	// Template is the text of the ARM-JSON template in string form.
	Template map[string]any

	// Parameters is the set of parameters passed to the deployment.
	Parameters DeploymentParameters

	// Providers are the cloud providers configured on the environment for deployment.
	Providers *Providers

	// ProgressChan is a channel used to signal progress of the deployment operation.
	// The deployment client MUST close the channel if it was provided.
	ProgressChan chan<- ResourceProgress
}

DeploymentOptions is the options passed when deploying an ARM-JSON template.

type DeploymentOutput

type DeploymentOutput struct {
	Type  string `json:"type"`
	Value any    `json:"value"`
}

type DeploymentParameters

type DeploymentParameters = map[string]map[string]any

NOTE: parameters in the template engine follow the structure:

{
  "parameter1Name": {
    "value": ...
  }
}

Each parameter can have additional metadata besides the mandatory 'value' key.

We're really only interested in 'value' and we pass the other metadata through.

The full format is documented here: https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/parameter-files

Note that we're only storing the 'parameters' node of the format described above.

func ShallowCopy

func ShallowCopy(params DeploymentParameters) DeploymentParameters

ShallowCopy creates a shallow copy of the DeploymentParameters object by iterating through the original object and copying each key-value pair into a new object.

type DeploymentResult

type DeploymentResult struct {
	Resources []ucpresources.ID
	Outputs   map[string]DeploymentOutput
}

type DiagnosticsClient

type DiagnosticsClient interface {
	Expose(ctx context.Context, options ExposeOptions) (failed chan error, stop chan struct{}, signals chan os.Signal, err error)
	Logs(ctx context.Context, options LogsOptions) ([]LogStream, error)
	GetPublicEndpoint(ctx context.Context, options EndpointOptions) (*string, error)
}

DiagnosticsClient is used to interface with diagnostics features like logs and port-forwards.

type EndpointOptions

type EndpointOptions struct {
	ResourceID ucpresources.ID
}

type ExposeOptions

type ExposeOptions struct {
	Application string
	Resource    string
	Port        int
	RemotePort  int
	Replica     string
}

type GatewayStatus

type GatewayStatus struct {
	Name     string
	Endpoint string
}

type LogStream

type LogStream struct {
	Name   string
	Stream io.ReadCloser
}

type LogsOptions

type LogsOptions struct {
	Application string
	Resource    string
	Follow      bool
	Container   string
	Replica     string
}

type MockApplicationsManagementClient

type MockApplicationsManagementClient struct {
	// contains filtered or unexported fields
}

MockApplicationsManagementClient is a mock of ApplicationsManagementClient interface.

func NewMockApplicationsManagementClient

func NewMockApplicationsManagementClient(ctrl *gomock.Controller) *MockApplicationsManagementClient

NewMockApplicationsManagementClient creates a new mock instance.

func (*MockApplicationsManagementClient) CreateApplicationIfNotFound

func (m *MockApplicationsManagementClient) CreateApplicationIfNotFound(arg0 context.Context, arg1 string, arg2 *v20231001preview.ApplicationResource) error

CreateApplicationIfNotFound mocks base method.

func (*MockApplicationsManagementClient) CreateOrUpdateApplication

func (m *MockApplicationsManagementClient) CreateOrUpdateApplication(arg0 context.Context, arg1 string, arg2 *v20231001preview.ApplicationResource) error

CreateOrUpdateApplication mocks base method.

func (*MockApplicationsManagementClient) CreateOrUpdateEnvironment added in v0.34.0

func (m *MockApplicationsManagementClient) CreateOrUpdateEnvironment(arg0 context.Context, arg1 string, arg2 *v20231001preview.EnvironmentResource) error

CreateOrUpdateEnvironment mocks base method.

func (*MockApplicationsManagementClient) CreateOrUpdateResourceGroup added in v0.34.0

func (m *MockApplicationsManagementClient) CreateOrUpdateResourceGroup(arg0 context.Context, arg1, arg2 string, arg3 *v20231001preview0.ResourceGroupResource) error

CreateOrUpdateResourceGroup mocks base method.

func (*MockApplicationsManagementClient) DeleteApplication

func (m *MockApplicationsManagementClient) DeleteApplication(arg0 context.Context, arg1 string) (bool, error)

DeleteApplication mocks base method.

func (*MockApplicationsManagementClient) DeleteEnvironment added in v0.34.0

func (m *MockApplicationsManagementClient) DeleteEnvironment(arg0 context.Context, arg1 string) (bool, error)

DeleteEnvironment mocks base method.

func (*MockApplicationsManagementClient) DeleteResource

func (m *MockApplicationsManagementClient) DeleteResource(arg0 context.Context, arg1, arg2 string) (bool, error)

DeleteResource mocks base method.

func (*MockApplicationsManagementClient) DeleteResourceGroup added in v0.34.0

func (m *MockApplicationsManagementClient) DeleteResourceGroup(arg0 context.Context, arg1, arg2 string) (bool, error)

DeleteResourceGroup mocks base method.

func (*MockApplicationsManagementClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockApplicationsManagementClient) GetApplication added in v0.34.0

GetApplication mocks base method.

func (*MockApplicationsManagementClient) GetApplicationGraph added in v0.34.0

GetApplicationGraph mocks base method.

func (*MockApplicationsManagementClient) GetEnvironment added in v0.34.0

GetEnvironment mocks base method.

func (*MockApplicationsManagementClient) GetRecipeMetadata added in v0.34.0

GetRecipeMetadata mocks base method.

func (*MockApplicationsManagementClient) GetResource added in v0.34.0

GetResource mocks base method.

func (*MockApplicationsManagementClient) GetResourceGroup added in v0.34.0

GetResourceGroup mocks base method.

func (*MockApplicationsManagementClient) ListApplications

ListApplications mocks base method.

func (*MockApplicationsManagementClient) ListEnvironments added in v0.34.0

ListEnvironments mocks base method.

func (*MockApplicationsManagementClient) ListEnvironmentsAll

ListEnvironmentsAll mocks base method.

func (*MockApplicationsManagementClient) ListResourceGroups added in v0.34.0

ListResourceGroups mocks base method.

func (*MockApplicationsManagementClient) ListResourcesInApplication added in v0.34.0

func (m *MockApplicationsManagementClient) ListResourcesInApplication(arg0 context.Context, arg1 string) ([]generated.GenericResource, error)

ListResourcesInApplication mocks base method.

func (*MockApplicationsManagementClient) ListResourcesInEnvironment added in v0.34.0

func (m *MockApplicationsManagementClient) ListResourcesInEnvironment(arg0 context.Context, arg1 string) ([]generated.GenericResource, error)

ListResourcesInEnvironment mocks base method.

func (*MockApplicationsManagementClient) ListResourcesOfType added in v0.34.0

func (m *MockApplicationsManagementClient) ListResourcesOfType(arg0 context.Context, arg1 string) ([]generated.GenericResource, error)

ListResourcesOfType mocks base method.

func (*MockApplicationsManagementClient) ListResourcesOfTypeInApplication added in v0.34.0

func (m *MockApplicationsManagementClient) ListResourcesOfTypeInApplication(arg0 context.Context, arg1, arg2 string) ([]generated.GenericResource, error)

ListResourcesOfTypeInApplication mocks base method.

func (*MockApplicationsManagementClient) ListResourcesOfTypeInEnvironment added in v0.34.0

func (m *MockApplicationsManagementClient) ListResourcesOfTypeInEnvironment(arg0 context.Context, arg1, arg2 string) ([]generated.GenericResource, error)

ListResourcesOfTypeInEnvironment mocks base method.

type MockApplicationsManagementClientCreateApplicationIfNotFoundCall added in v0.35.0

type MockApplicationsManagementClientCreateApplicationIfNotFoundCall struct {
	*gomock.Call
}

MockApplicationsManagementClientCreateApplicationIfNotFoundCall wrap *gomock.Call

func (*MockApplicationsManagementClientCreateApplicationIfNotFoundCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientCreateApplicationIfNotFoundCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientCreateApplicationIfNotFoundCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientCreateOrUpdateApplicationCall added in v0.35.0

type MockApplicationsManagementClientCreateOrUpdateApplicationCall struct {
	*gomock.Call
}

MockApplicationsManagementClientCreateOrUpdateApplicationCall wrap *gomock.Call

func (*MockApplicationsManagementClientCreateOrUpdateApplicationCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientCreateOrUpdateApplicationCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientCreateOrUpdateApplicationCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientCreateOrUpdateEnvironmentCall added in v0.35.0

type MockApplicationsManagementClientCreateOrUpdateEnvironmentCall struct {
	*gomock.Call
}

MockApplicationsManagementClientCreateOrUpdateEnvironmentCall wrap *gomock.Call

func (*MockApplicationsManagementClientCreateOrUpdateEnvironmentCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientCreateOrUpdateEnvironmentCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientCreateOrUpdateEnvironmentCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientCreateOrUpdateResourceGroupCall added in v0.35.0

type MockApplicationsManagementClientCreateOrUpdateResourceGroupCall struct {
	*gomock.Call
}

MockApplicationsManagementClientCreateOrUpdateResourceGroupCall wrap *gomock.Call

func (*MockApplicationsManagementClientCreateOrUpdateResourceGroupCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientCreateOrUpdateResourceGroupCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientCreateOrUpdateResourceGroupCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientDeleteApplicationCall added in v0.35.0

type MockApplicationsManagementClientDeleteApplicationCall struct {
	*gomock.Call
}

MockApplicationsManagementClientDeleteApplicationCall wrap *gomock.Call

func (*MockApplicationsManagementClientDeleteApplicationCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientDeleteApplicationCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientDeleteApplicationCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientDeleteEnvironmentCall added in v0.35.0

type MockApplicationsManagementClientDeleteEnvironmentCall struct {
	*gomock.Call
}

MockApplicationsManagementClientDeleteEnvironmentCall wrap *gomock.Call

func (*MockApplicationsManagementClientDeleteEnvironmentCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientDeleteEnvironmentCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientDeleteEnvironmentCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientDeleteResourceCall added in v0.35.0

type MockApplicationsManagementClientDeleteResourceCall struct {
	*gomock.Call
}

MockApplicationsManagementClientDeleteResourceCall wrap *gomock.Call

func (*MockApplicationsManagementClientDeleteResourceCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientDeleteResourceCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientDeleteResourceCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientDeleteResourceGroupCall added in v0.35.0

type MockApplicationsManagementClientDeleteResourceGroupCall struct {
	*gomock.Call
}

MockApplicationsManagementClientDeleteResourceGroupCall wrap *gomock.Call

func (*MockApplicationsManagementClientDeleteResourceGroupCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientDeleteResourceGroupCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientDeleteResourceGroupCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientGetApplicationCall added in v0.35.0

type MockApplicationsManagementClientGetApplicationCall struct {
	*gomock.Call
}

MockApplicationsManagementClientGetApplicationCall wrap *gomock.Call

func (*MockApplicationsManagementClientGetApplicationCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientGetApplicationCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientGetApplicationCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientGetApplicationGraphCall added in v0.35.0

type MockApplicationsManagementClientGetApplicationGraphCall struct {
	*gomock.Call
}

MockApplicationsManagementClientGetApplicationGraphCall wrap *gomock.Call

func (*MockApplicationsManagementClientGetApplicationGraphCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientGetApplicationGraphCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientGetApplicationGraphCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientGetEnvironmentCall added in v0.35.0

type MockApplicationsManagementClientGetEnvironmentCall struct {
	*gomock.Call
}

MockApplicationsManagementClientGetEnvironmentCall wrap *gomock.Call

func (*MockApplicationsManagementClientGetEnvironmentCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientGetEnvironmentCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientGetEnvironmentCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientGetRecipeMetadataCall added in v0.35.0

type MockApplicationsManagementClientGetRecipeMetadataCall struct {
	*gomock.Call
}

MockApplicationsManagementClientGetRecipeMetadataCall wrap *gomock.Call

func (*MockApplicationsManagementClientGetRecipeMetadataCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientGetRecipeMetadataCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientGetRecipeMetadataCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientGetResourceCall added in v0.35.0

type MockApplicationsManagementClientGetResourceCall struct {
	*gomock.Call
}

MockApplicationsManagementClientGetResourceCall wrap *gomock.Call

func (*MockApplicationsManagementClientGetResourceCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientGetResourceCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientGetResourceCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientGetResourceGroupCall added in v0.35.0

type MockApplicationsManagementClientGetResourceGroupCall struct {
	*gomock.Call
}

MockApplicationsManagementClientGetResourceGroupCall wrap *gomock.Call

func (*MockApplicationsManagementClientGetResourceGroupCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientGetResourceGroupCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientGetResourceGroupCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientListApplicationsCall added in v0.35.0

type MockApplicationsManagementClientListApplicationsCall struct {
	*gomock.Call
}

MockApplicationsManagementClientListApplicationsCall wrap *gomock.Call

func (*MockApplicationsManagementClientListApplicationsCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientListApplicationsCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientListApplicationsCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientListEnvironmentsAllCall added in v0.35.0

type MockApplicationsManagementClientListEnvironmentsAllCall struct {
	*gomock.Call
}

MockApplicationsManagementClientListEnvironmentsAllCall wrap *gomock.Call

func (*MockApplicationsManagementClientListEnvironmentsAllCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientListEnvironmentsAllCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientListEnvironmentsAllCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientListEnvironmentsCall added in v0.35.0

type MockApplicationsManagementClientListEnvironmentsCall struct {
	*gomock.Call
}

MockApplicationsManagementClientListEnvironmentsCall wrap *gomock.Call

func (*MockApplicationsManagementClientListEnvironmentsCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientListEnvironmentsCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientListEnvironmentsCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientListResourceGroupsCall added in v0.35.0

type MockApplicationsManagementClientListResourceGroupsCall struct {
	*gomock.Call
}

MockApplicationsManagementClientListResourceGroupsCall wrap *gomock.Call

func (*MockApplicationsManagementClientListResourceGroupsCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientListResourceGroupsCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientListResourceGroupsCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientListResourcesInApplicationCall added in v0.35.0

type MockApplicationsManagementClientListResourcesInApplicationCall struct {
	*gomock.Call
}

MockApplicationsManagementClientListResourcesInApplicationCall wrap *gomock.Call

func (*MockApplicationsManagementClientListResourcesInApplicationCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientListResourcesInApplicationCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientListResourcesInApplicationCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientListResourcesInEnvironmentCall added in v0.35.0

type MockApplicationsManagementClientListResourcesInEnvironmentCall struct {
	*gomock.Call
}

MockApplicationsManagementClientListResourcesInEnvironmentCall wrap *gomock.Call

func (*MockApplicationsManagementClientListResourcesInEnvironmentCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientListResourcesInEnvironmentCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientListResourcesInEnvironmentCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientListResourcesOfTypeCall added in v0.35.0

type MockApplicationsManagementClientListResourcesOfTypeCall struct {
	*gomock.Call
}

MockApplicationsManagementClientListResourcesOfTypeCall wrap *gomock.Call

func (*MockApplicationsManagementClientListResourcesOfTypeCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientListResourcesOfTypeCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientListResourcesOfTypeCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientListResourcesOfTypeInApplicationCall added in v0.35.0

type MockApplicationsManagementClientListResourcesOfTypeInApplicationCall struct {
	*gomock.Call
}

MockApplicationsManagementClientListResourcesOfTypeInApplicationCall wrap *gomock.Call

func (*MockApplicationsManagementClientListResourcesOfTypeInApplicationCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientListResourcesOfTypeInApplicationCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientListResourcesOfTypeInApplicationCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientListResourcesOfTypeInEnvironmentCall added in v0.35.0

type MockApplicationsManagementClientListResourcesOfTypeInEnvironmentCall struct {
	*gomock.Call
}

MockApplicationsManagementClientListResourcesOfTypeInEnvironmentCall wrap *gomock.Call

func (*MockApplicationsManagementClientListResourcesOfTypeInEnvironmentCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockApplicationsManagementClientListResourcesOfTypeInEnvironmentCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationsManagementClientListResourcesOfTypeInEnvironmentCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockApplicationsManagementClientMockRecorder

type MockApplicationsManagementClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockApplicationsManagementClientMockRecorder is the mock recorder for MockApplicationsManagementClient.

func (*MockApplicationsManagementClientMockRecorder) CreateApplicationIfNotFound

CreateApplicationIfNotFound indicates an expected call of CreateApplicationIfNotFound.

func (*MockApplicationsManagementClientMockRecorder) CreateOrUpdateApplication

CreateOrUpdateApplication indicates an expected call of CreateOrUpdateApplication.

func (*MockApplicationsManagementClientMockRecorder) CreateOrUpdateEnvironment added in v0.34.0

CreateOrUpdateEnvironment indicates an expected call of CreateOrUpdateEnvironment.

func (*MockApplicationsManagementClientMockRecorder) CreateOrUpdateResourceGroup added in v0.34.0

CreateOrUpdateResourceGroup indicates an expected call of CreateOrUpdateResourceGroup.

func (*MockApplicationsManagementClientMockRecorder) DeleteApplication

DeleteApplication indicates an expected call of DeleteApplication.

func (*MockApplicationsManagementClientMockRecorder) DeleteEnvironment added in v0.34.0

DeleteEnvironment indicates an expected call of DeleteEnvironment.

func (*MockApplicationsManagementClientMockRecorder) DeleteResource

DeleteResource indicates an expected call of DeleteResource.

func (*MockApplicationsManagementClientMockRecorder) DeleteResourceGroup added in v0.34.0

DeleteResourceGroup indicates an expected call of DeleteResourceGroup.

func (*MockApplicationsManagementClientMockRecorder) GetApplication added in v0.34.0

GetApplication indicates an expected call of GetApplication.

func (*MockApplicationsManagementClientMockRecorder) GetApplicationGraph added in v0.34.0

GetApplicationGraph indicates an expected call of GetApplicationGraph.

func (*MockApplicationsManagementClientMockRecorder) GetEnvironment added in v0.34.0

GetEnvironment indicates an expected call of GetEnvironment.

func (*MockApplicationsManagementClientMockRecorder) GetRecipeMetadata added in v0.34.0

GetRecipeMetadata indicates an expected call of GetRecipeMetadata.

func (*MockApplicationsManagementClientMockRecorder) GetResource added in v0.34.0

GetResource indicates an expected call of GetResource.

func (*MockApplicationsManagementClientMockRecorder) GetResourceGroup added in v0.34.0

GetResourceGroup indicates an expected call of GetResourceGroup.

func (*MockApplicationsManagementClientMockRecorder) ListApplications

ListApplications indicates an expected call of ListApplications.

func (*MockApplicationsManagementClientMockRecorder) ListEnvironments added in v0.34.0

ListEnvironments indicates an expected call of ListEnvironments.

func (*MockApplicationsManagementClientMockRecorder) ListEnvironmentsAll

ListEnvironmentsAll indicates an expected call of ListEnvironmentsAll.

func (*MockApplicationsManagementClientMockRecorder) ListResourceGroups added in v0.34.0

ListResourceGroups indicates an expected call of ListResourceGroups.

func (*MockApplicationsManagementClientMockRecorder) ListResourcesInApplication added in v0.34.0

ListResourcesInApplication indicates an expected call of ListResourcesInApplication.

func (*MockApplicationsManagementClientMockRecorder) ListResourcesInEnvironment added in v0.34.0

ListResourcesInEnvironment indicates an expected call of ListResourcesInEnvironment.

func (*MockApplicationsManagementClientMockRecorder) ListResourcesOfType added in v0.34.0

ListResourcesOfType indicates an expected call of ListResourcesOfType.

func (*MockApplicationsManagementClientMockRecorder) ListResourcesOfTypeInApplication added in v0.34.0

ListResourcesOfTypeInApplication indicates an expected call of ListResourcesOfTypeInApplication.

func (*MockApplicationsManagementClientMockRecorder) ListResourcesOfTypeInEnvironment added in v0.34.0

ListResourcesOfTypeInEnvironment indicates an expected call of ListResourcesOfTypeInEnvironment.

type MockDiagnosticsClient

type MockDiagnosticsClient struct {
	// contains filtered or unexported fields
}

MockDiagnosticsClient is a mock of DiagnosticsClient interface.

func NewMockDiagnosticsClient

func NewMockDiagnosticsClient(ctrl *gomock.Controller) *MockDiagnosticsClient

NewMockDiagnosticsClient creates a new mock instance.

func (*MockDiagnosticsClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDiagnosticsClient) Expose

func (m *MockDiagnosticsClient) Expose(arg0 context.Context, arg1 ExposeOptions) (chan error, chan struct{}, chan os.Signal, error)

Expose mocks base method.

func (*MockDiagnosticsClient) GetPublicEndpoint

func (m *MockDiagnosticsClient) GetPublicEndpoint(arg0 context.Context, arg1 EndpointOptions) (*string, error)

GetPublicEndpoint mocks base method.

func (*MockDiagnosticsClient) Logs

Logs mocks base method.

type MockDiagnosticsClientExposeCall added in v0.35.0

type MockDiagnosticsClientExposeCall struct {
	*gomock.Call
}

MockDiagnosticsClientExposeCall wrap *gomock.Call

func (*MockDiagnosticsClientExposeCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockDiagnosticsClientExposeCall) DoAndReturn added in v0.35.0

func (c *MockDiagnosticsClientExposeCall) DoAndReturn(f func(context.Context, ExposeOptions) (chan error, chan struct{}, chan os.Signal, error)) *MockDiagnosticsClientExposeCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDiagnosticsClientExposeCall) Return added in v0.35.0

func (c *MockDiagnosticsClientExposeCall) Return(arg0 chan error, arg1 chan struct{}, arg2 chan os.Signal, arg3 error) *MockDiagnosticsClientExposeCall

Return rewrite *gomock.Call.Return

type MockDiagnosticsClientGetPublicEndpointCall added in v0.35.0

type MockDiagnosticsClientGetPublicEndpointCall struct {
	*gomock.Call
}

MockDiagnosticsClientGetPublicEndpointCall wrap *gomock.Call

func (*MockDiagnosticsClientGetPublicEndpointCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockDiagnosticsClientGetPublicEndpointCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDiagnosticsClientGetPublicEndpointCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockDiagnosticsClientLogsCall added in v0.35.0

type MockDiagnosticsClientLogsCall struct {
	*gomock.Call
}

MockDiagnosticsClientLogsCall wrap *gomock.Call

func (*MockDiagnosticsClientLogsCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockDiagnosticsClientLogsCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDiagnosticsClientLogsCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockDiagnosticsClientMockRecorder

type MockDiagnosticsClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockDiagnosticsClientMockRecorder is the mock recorder for MockDiagnosticsClient.

func (*MockDiagnosticsClientMockRecorder) Expose

Expose indicates an expected call of Expose.

func (*MockDiagnosticsClientMockRecorder) GetPublicEndpoint

GetPublicEndpoint indicates an expected call of GetPublicEndpoint.

func (*MockDiagnosticsClientMockRecorder) Logs

Logs indicates an expected call of Logs.

type MockapplicationResourceClient added in v0.34.0

type MockapplicationResourceClient struct {
	// contains filtered or unexported fields
}

MockapplicationResourceClient is a mock of applicationResourceClient interface.

func NewMockapplicationResourceClient added in v0.34.0

func NewMockapplicationResourceClient(ctrl *gomock.Controller) *MockapplicationResourceClient

NewMockapplicationResourceClient creates a new mock instance.

func (*MockapplicationResourceClient) CreateOrUpdate added in v0.34.0

CreateOrUpdate mocks base method.

func (*MockapplicationResourceClient) Delete added in v0.34.0

Delete mocks base method.

func (*MockapplicationResourceClient) EXPECT added in v0.34.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockapplicationResourceClient) Get added in v0.34.0

Get mocks base method.

func (*MockapplicationResourceClient) GetGraph added in v0.34.0

GetGraph mocks base method.

func (*MockapplicationResourceClient) NewListByScopePager added in v0.34.0

NewListByScopePager mocks base method.

type MockapplicationResourceClientCreateOrUpdateCall added in v0.34.0

type MockapplicationResourceClientCreateOrUpdateCall struct {
	*gomock.Call
}

MockapplicationResourceClientCreateOrUpdateCall wrap *gomock.Call

func (*MockapplicationResourceClientCreateOrUpdateCall) Return added in v0.34.0

Return rewrite *gomock.Call.Return

type MockapplicationResourceClientDeleteCall added in v0.34.0

type MockapplicationResourceClientDeleteCall struct {
	*gomock.Call
}

MockapplicationResourceClientDeleteCall wrap *gomock.Call

func (*MockapplicationResourceClientDeleteCall) DoAndReturn added in v0.34.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockapplicationResourceClientDeleteCall) Return added in v0.34.0

Return rewrite *gomock.Call.Return

type MockapplicationResourceClientGetCall added in v0.34.0

type MockapplicationResourceClientGetCall struct {
	*gomock.Call
}

MockapplicationResourceClientGetCall wrap *gomock.Call

func (*MockapplicationResourceClientGetCall) Do added in v0.34.0

Do rewrite *gomock.Call.Do

func (*MockapplicationResourceClientGetCall) DoAndReturn added in v0.34.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockapplicationResourceClientGetCall) Return added in v0.34.0

Return rewrite *gomock.Call.Return

type MockapplicationResourceClientGetGraphCall added in v0.34.0

type MockapplicationResourceClientGetGraphCall struct {
	*gomock.Call
}

MockapplicationResourceClientGetGraphCall wrap *gomock.Call

func (*MockapplicationResourceClientGetGraphCall) DoAndReturn added in v0.34.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockapplicationResourceClientGetGraphCall) Return added in v0.34.0

Return rewrite *gomock.Call.Return

type MockapplicationResourceClientMockRecorder added in v0.34.0

type MockapplicationResourceClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockapplicationResourceClientMockRecorder is the mock recorder for MockapplicationResourceClient.

func (*MockapplicationResourceClientMockRecorder) CreateOrUpdate added in v0.34.0

func (mr *MockapplicationResourceClientMockRecorder) CreateOrUpdate(ctx, applicationName, resource, options any) *MockapplicationResourceClientCreateOrUpdateCall

CreateOrUpdate indicates an expected call of CreateOrUpdate.

func (*MockapplicationResourceClientMockRecorder) Delete added in v0.34.0

Delete indicates an expected call of Delete.

func (*MockapplicationResourceClientMockRecorder) Get added in v0.34.0

Get indicates an expected call of Get.

func (*MockapplicationResourceClientMockRecorder) GetGraph added in v0.34.0

func (mr *MockapplicationResourceClientMockRecorder) GetGraph(ctx, applicationName, body, options any) *MockapplicationResourceClientGetGraphCall

GetGraph indicates an expected call of GetGraph.

func (*MockapplicationResourceClientMockRecorder) NewListByScopePager added in v0.34.0

NewListByScopePager indicates an expected call of NewListByScopePager.

type MockapplicationResourceClientNewListByScopePagerCall added in v0.34.0

type MockapplicationResourceClientNewListByScopePagerCall struct {
	*gomock.Call
}

MockapplicationResourceClientNewListByScopePagerCall wrap *gomock.Call

func (*MockapplicationResourceClientNewListByScopePagerCall) DoAndReturn added in v0.34.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockapplicationResourceClientNewListByScopePagerCall) Return added in v0.34.0

Return rewrite *gomock.Call.Return

type MockenvironmentResourceClient added in v0.34.0

type MockenvironmentResourceClient struct {
	// contains filtered or unexported fields
}

MockenvironmentResourceClient is a mock of environmentResourceClient interface.

func NewMockenvironmentResourceClient added in v0.34.0

func NewMockenvironmentResourceClient(ctrl *gomock.Controller) *MockenvironmentResourceClient

NewMockenvironmentResourceClient creates a new mock instance.

func (*MockenvironmentResourceClient) CreateOrUpdate added in v0.34.0

CreateOrUpdate mocks base method.

func (*MockenvironmentResourceClient) Delete added in v0.34.0

Delete mocks base method.

func (*MockenvironmentResourceClient) EXPECT added in v0.34.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockenvironmentResourceClient) Get added in v0.34.0

Get mocks base method.

func (*MockenvironmentResourceClient) GetMetadata added in v0.34.0

GetMetadata mocks base method.

func (*MockenvironmentResourceClient) NewListByScopePager added in v0.34.0

NewListByScopePager mocks base method.

type MockenvironmentResourceClientCreateOrUpdateCall added in v0.34.0

type MockenvironmentResourceClientCreateOrUpdateCall struct {
	*gomock.Call
}

MockenvironmentResourceClientCreateOrUpdateCall wrap *gomock.Call

func (*MockenvironmentResourceClientCreateOrUpdateCall) Return added in v0.34.0

Return rewrite *gomock.Call.Return

type MockenvironmentResourceClientDeleteCall added in v0.34.0

type MockenvironmentResourceClientDeleteCall struct {
	*gomock.Call
}

MockenvironmentResourceClientDeleteCall wrap *gomock.Call

func (*MockenvironmentResourceClientDeleteCall) DoAndReturn added in v0.34.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockenvironmentResourceClientDeleteCall) Return added in v0.34.0

Return rewrite *gomock.Call.Return

type MockenvironmentResourceClientGetCall added in v0.34.0

type MockenvironmentResourceClientGetCall struct {
	*gomock.Call
}

MockenvironmentResourceClientGetCall wrap *gomock.Call

func (*MockenvironmentResourceClientGetCall) Do added in v0.34.0

Do rewrite *gomock.Call.Do

func (*MockenvironmentResourceClientGetCall) DoAndReturn added in v0.34.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockenvironmentResourceClientGetCall) Return added in v0.34.0

Return rewrite *gomock.Call.Return

type MockenvironmentResourceClientGetMetadataCall added in v0.34.0

type MockenvironmentResourceClientGetMetadataCall struct {
	*gomock.Call
}

MockenvironmentResourceClientGetMetadataCall wrap *gomock.Call

func (*MockenvironmentResourceClientGetMetadataCall) Return added in v0.34.0

Return rewrite *gomock.Call.Return

type MockenvironmentResourceClientMockRecorder added in v0.34.0

type MockenvironmentResourceClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockenvironmentResourceClientMockRecorder is the mock recorder for MockenvironmentResourceClient.

func (*MockenvironmentResourceClientMockRecorder) CreateOrUpdate added in v0.34.0

func (mr *MockenvironmentResourceClientMockRecorder) CreateOrUpdate(ctx, environmentName, resource, options any) *MockenvironmentResourceClientCreateOrUpdateCall

CreateOrUpdate indicates an expected call of CreateOrUpdate.

func (*MockenvironmentResourceClientMockRecorder) Delete added in v0.34.0

Delete indicates an expected call of Delete.

func (*MockenvironmentResourceClientMockRecorder) Get added in v0.34.0

Get indicates an expected call of Get.

func (*MockenvironmentResourceClientMockRecorder) GetMetadata added in v0.34.0

func (mr *MockenvironmentResourceClientMockRecorder) GetMetadata(ctx, environmentName, body, options any) *MockenvironmentResourceClientGetMetadataCall

GetMetadata indicates an expected call of GetMetadata.

func (*MockenvironmentResourceClientMockRecorder) NewListByScopePager added in v0.34.0

NewListByScopePager indicates an expected call of NewListByScopePager.

type MockenvironmentResourceClientNewListByScopePagerCall added in v0.34.0

type MockenvironmentResourceClientNewListByScopePagerCall struct {
	*gomock.Call
}

MockenvironmentResourceClientNewListByScopePagerCall wrap *gomock.Call

func (*MockenvironmentResourceClientNewListByScopePagerCall) DoAndReturn added in v0.34.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockenvironmentResourceClientNewListByScopePagerCall) Return added in v0.34.0

Return rewrite *gomock.Call.Return

type MockgenericResourceClient added in v0.34.0

type MockgenericResourceClient struct {
	// contains filtered or unexported fields
}

MockgenericResourceClient is a mock of genericResourceClient interface.

func NewMockgenericResourceClient added in v0.34.0

func NewMockgenericResourceClient(ctrl *gomock.Controller) *MockgenericResourceClient

NewMockgenericResourceClient creates a new mock instance.

func (*MockgenericResourceClient) BeginCreateOrUpdate added in v0.34.0

BeginCreateOrUpdate mocks base method.

func (*MockgenericResourceClient) BeginDelete added in v0.34.0

BeginDelete mocks base method.

func (*MockgenericResourceClient) EXPECT added in v0.34.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockgenericResourceClient) Get added in v0.34.0

Get mocks base method.

func (*MockgenericResourceClient) NewListByRootScopePager added in v0.34.0

NewListByRootScopePager mocks base method.

type MockgenericResourceClientBeginCreateOrUpdateCall added in v0.34.0

type MockgenericResourceClientBeginCreateOrUpdateCall struct {
	*gomock.Call
}

MockgenericResourceClientBeginCreateOrUpdateCall wrap *gomock.Call

func (*MockgenericResourceClientBeginCreateOrUpdateCall) Return added in v0.34.0

Return rewrite *gomock.Call.Return

type MockgenericResourceClientBeginDeleteCall added in v0.34.0

type MockgenericResourceClientBeginDeleteCall struct {
	*gomock.Call
}

MockgenericResourceClientBeginDeleteCall wrap *gomock.Call

func (*MockgenericResourceClientBeginDeleteCall) DoAndReturn added in v0.34.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockgenericResourceClientBeginDeleteCall) Return added in v0.34.0

Return rewrite *gomock.Call.Return

type MockgenericResourceClientGetCall added in v0.34.0

type MockgenericResourceClientGetCall struct {
	*gomock.Call
}

MockgenericResourceClientGetCall wrap *gomock.Call

func (*MockgenericResourceClientGetCall) Do added in v0.34.0

Do rewrite *gomock.Call.Do

func (*MockgenericResourceClientGetCall) DoAndReturn added in v0.34.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockgenericResourceClientGetCall) Return added in v0.34.0

Return rewrite *gomock.Call.Return

type MockgenericResourceClientMockRecorder added in v0.34.0

type MockgenericResourceClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockgenericResourceClientMockRecorder is the mock recorder for MockgenericResourceClient.

func (*MockgenericResourceClientMockRecorder) BeginCreateOrUpdate added in v0.34.0

func (mr *MockgenericResourceClientMockRecorder) BeginCreateOrUpdate(ctx, resourceName, genericResourceParameters, options any) *MockgenericResourceClientBeginCreateOrUpdateCall

BeginCreateOrUpdate indicates an expected call of BeginCreateOrUpdate.

func (*MockgenericResourceClientMockRecorder) BeginDelete added in v0.34.0

func (mr *MockgenericResourceClientMockRecorder) BeginDelete(ctx, resourceName, options any) *MockgenericResourceClientBeginDeleteCall

BeginDelete indicates an expected call of BeginDelete.

func (*MockgenericResourceClientMockRecorder) Get added in v0.34.0

func (mr *MockgenericResourceClientMockRecorder) Get(ctx, resourceName, options any) *MockgenericResourceClientGetCall

Get indicates an expected call of Get.

func (*MockgenericResourceClientMockRecorder) NewListByRootScopePager added in v0.34.0

NewListByRootScopePager indicates an expected call of NewListByRootScopePager.

type MockgenericResourceClientNewListByRootScopePagerCall added in v0.34.0

type MockgenericResourceClientNewListByRootScopePagerCall struct {
	*gomock.Call
}

MockgenericResourceClientNewListByRootScopePagerCall wrap *gomock.Call

func (*MockgenericResourceClientNewListByRootScopePagerCall) DoAndReturn added in v0.34.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockgenericResourceClientNewListByRootScopePagerCall) Return added in v0.34.0

Return rewrite *gomock.Call.Return

type MockresourceGroupClient added in v0.34.0

type MockresourceGroupClient struct {
	// contains filtered or unexported fields
}

MockresourceGroupClient is a mock of resourceGroupClient interface.

func NewMockresourceGroupClient added in v0.34.0

func NewMockresourceGroupClient(ctrl *gomock.Controller) *MockresourceGroupClient

NewMockresourceGroupClient creates a new mock instance.

func (*MockresourceGroupClient) CreateOrUpdate added in v0.34.0

CreateOrUpdate mocks base method.

func (*MockresourceGroupClient) Delete added in v0.34.0

Delete mocks base method.

func (*MockresourceGroupClient) EXPECT added in v0.34.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockresourceGroupClient) Get added in v0.34.0

Get mocks base method.

func (*MockresourceGroupClient) NewListPager added in v0.34.0

NewListPager mocks base method.

type MockresourceGroupClientCreateOrUpdateCall added in v0.34.0

type MockresourceGroupClientCreateOrUpdateCall struct {
	*gomock.Call
}

MockresourceGroupClientCreateOrUpdateCall wrap *gomock.Call

func (*MockresourceGroupClientCreateOrUpdateCall) Return added in v0.34.0

Return rewrite *gomock.Call.Return

type MockresourceGroupClientDeleteCall added in v0.34.0

type MockresourceGroupClientDeleteCall struct {
	*gomock.Call
}

MockresourceGroupClientDeleteCall wrap *gomock.Call

func (*MockresourceGroupClientDeleteCall) DoAndReturn added in v0.34.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockresourceGroupClientDeleteCall) Return added in v0.34.0

Return rewrite *gomock.Call.Return

type MockresourceGroupClientGetCall added in v0.34.0

type MockresourceGroupClientGetCall struct {
	*gomock.Call
}

MockresourceGroupClientGetCall wrap *gomock.Call

func (*MockresourceGroupClientGetCall) Do added in v0.34.0

Do rewrite *gomock.Call.Do

func (*MockresourceGroupClientGetCall) DoAndReturn added in v0.34.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockresourceGroupClientGetCall) Return added in v0.34.0

Return rewrite *gomock.Call.Return

type MockresourceGroupClientMockRecorder added in v0.34.0

type MockresourceGroupClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockresourceGroupClientMockRecorder is the mock recorder for MockresourceGroupClient.

func (*MockresourceGroupClientMockRecorder) CreateOrUpdate added in v0.34.0

func (mr *MockresourceGroupClientMockRecorder) CreateOrUpdate(ctx, planeName, resourceGroupName, resource, options any) *MockresourceGroupClientCreateOrUpdateCall

CreateOrUpdate indicates an expected call of CreateOrUpdate.

func (*MockresourceGroupClientMockRecorder) Delete added in v0.34.0

func (mr *MockresourceGroupClientMockRecorder) Delete(ctx, planeName, resourceGroupName, options any) *MockresourceGroupClientDeleteCall

Delete indicates an expected call of Delete.

func (*MockresourceGroupClientMockRecorder) Get added in v0.34.0

func (mr *MockresourceGroupClientMockRecorder) Get(ctx, planeName, resourceGroupName, options any) *MockresourceGroupClientGetCall

Get indicates an expected call of Get.

func (*MockresourceGroupClientMockRecorder) NewListPager added in v0.34.0

NewListPager indicates an expected call of NewListPager.

type MockresourceGroupClientNewListPagerCall added in v0.34.0

type MockresourceGroupClientNewListPagerCall struct {
	*gomock.Call
}

MockresourceGroupClientNewListPagerCall wrap *gomock.Call

func (*MockresourceGroupClientNewListPagerCall) DoAndReturn added in v0.34.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockresourceGroupClientNewListPagerCall) Return added in v0.34.0

Return rewrite *gomock.Call.Return

type Providers

type Providers struct {
	// Azure provider information. This field is optional.
	Azure *AzureProvider
	// AWS provider information. This field is optional.
	AWS *AWSProvider
	// Radius provider information.
	Radius *RadiusProvider
}

type RadiusProvider

type RadiusProvider struct {
	// Currently, we must provide an environment ID for deploying applications.
	EnvironmentID string
	// ApplicationID is the ID of the application to be deployed. This is optional.
	ApplicationID string
}

type ResourceProgress

type ResourceProgress struct {
	Resource ucpresources.ID
	Status   ResourceStatus
}

type ResourceStatus

type ResourceStatus string
const (
	StatusStarted   ResourceStatus = "Started"
	StatusFailed    ResourceStatus = "Failed"
	StatusCompleted ResourceStatus = "Completed"
)

type UCPApplicationsManagementClient

type UCPApplicationsManagementClient struct {
	RootScope     string
	ClientOptions *arm.ClientOptions
	// contains filtered or unexported fields
}

func (*UCPApplicationsManagementClient) CreateApplicationIfNotFound

func (amc *UCPApplicationsManagementClient) CreateApplicationIfNotFound(ctx context.Context, applicationNameOrID string, resource *corerpv20231001.ApplicationResource) error

CreateApplicationIfNotFound creates an application if it does not exist.

func (*UCPApplicationsManagementClient) CreateOrUpdateApplication

func (amc *UCPApplicationsManagementClient) CreateOrUpdateApplication(ctx context.Context, applicationNameOrID string, resource *corerpv20231001.ApplicationResource) error

CreateOrUpdateApplication creates or updates an application by its name (or id).

func (*UCPApplicationsManagementClient) CreateOrUpdateEnvironment added in v0.34.0

func (amc *UCPApplicationsManagementClient) CreateOrUpdateEnvironment(ctx context.Context, environmentNameOrID string, resource *corerpv20231001.EnvironmentResource) error

CreateOrUpdateEnvironment creates an environment by its name (or id).

func (*UCPApplicationsManagementClient) CreateOrUpdateResourceGroup added in v0.34.0

func (amc *UCPApplicationsManagementClient) CreateOrUpdateResourceGroup(ctx context.Context, planeName string, resourceGroupName string, resourceGroup *ucpv20231001.ResourceGroupResource) error

CreateOrUpdateResourceGroup creates a resource group by its name.

func (*UCPApplicationsManagementClient) DeleteApplication

func (amc *UCPApplicationsManagementClient) DeleteApplication(ctx context.Context, applicationNameOrID string) (bool, error)

DeleteApplication deletes an application and all of its resources by its name (or id).

func (*UCPApplicationsManagementClient) DeleteEnvironment added in v0.34.0

func (amc *UCPApplicationsManagementClient) DeleteEnvironment(ctx context.Context, environmentNameOrID string) (bool, error)

DeleteEnvironment deletes an environment and all of its resources by its name (in the configured scope) or resource ID.

func (*UCPApplicationsManagementClient) DeleteResource

func (amc *UCPApplicationsManagementClient) DeleteResource(ctx context.Context, resourceType string, resourceNameOrID string) (bool, error)

DeleteResource deletes a resource by its type and name (or id).

func (*UCPApplicationsManagementClient) DeleteResourceGroup added in v0.34.0

func (amc *UCPApplicationsManagementClient) DeleteResourceGroup(ctx context.Context, planeName string, resourceGroupName string) (bool, error)

DeleteResourceGroup deletes a resource group by its name.

func (*UCPApplicationsManagementClient) GetApplication added in v0.34.0

func (amc *UCPApplicationsManagementClient) GetApplication(ctx context.Context, applicationNameOrID string) (corerpv20231001.ApplicationResource, error)

GetApplication retrieves an application by its name (or id).

func (*UCPApplicationsManagementClient) GetApplicationGraph added in v0.34.0

func (amc *UCPApplicationsManagementClient) GetApplicationGraph(ctx context.Context, applicationNameOrID string) (corerpv20231001.ApplicationGraphResponse, error)

GetApplicationGraph retrieves the application graph of an application by its name (or id).

func (*UCPApplicationsManagementClient) GetEnvironment added in v0.34.0

func (amc *UCPApplicationsManagementClient) GetEnvironment(ctx context.Context, environmentNameOrID string) (corerpv20231001.EnvironmentResource, error)

GetEnvironment retrieves an environment by its name (in the configured scope) or resource ID.

func (*UCPApplicationsManagementClient) GetRecipeMetadata added in v0.34.0

GetRecipeMetadata shows recipe details including list of all parameters for a given recipe registered to an environment.

func (*UCPApplicationsManagementClient) GetResource added in v0.34.0

func (amc *UCPApplicationsManagementClient) GetResource(ctx context.Context, resourceType string, resourceNameOrID string) (generated.GenericResource, error)

GetResource retrieves a resource by its type and name (or id).

func (*UCPApplicationsManagementClient) GetResourceGroup added in v0.34.0

func (amc *UCPApplicationsManagementClient) GetResourceGroup(ctx context.Context, planeName string, resourceGroupName string) (ucpv20231001.ResourceGroupResource, error)

GetResourceGroup retrieves a resource group by its name.

func (*UCPApplicationsManagementClient) ListApplications

ListApplications lists all applications in the configured scope.

func (*UCPApplicationsManagementClient) ListApplicationsInEnvironment added in v0.34.0

func (amc *UCPApplicationsManagementClient) ListApplicationsInEnvironment(ctx context.Context, environmentNameOrID string) ([]corerpv20231001.ApplicationResource, error)

ListApplicationsInEnvironment lists the applications that are part of the specified environment and in the configured scope.

func (*UCPApplicationsManagementClient) ListEnvironments added in v0.34.0

ListEnvironments lists all environments in the configured scope (assumes configured scope is a resource group).

func (*UCPApplicationsManagementClient) ListEnvironmentsAll

ListEnvironmentsAll queries the scope for all environment resources and returns a slice of environment resources or an error if one occurs.

func (*UCPApplicationsManagementClient) ListResourceGroups added in v0.34.0

func (amc *UCPApplicationsManagementClient) ListResourceGroups(ctx context.Context, planeName string) ([]ucpv20231001.ResourceGroupResource, error)

ListResourceGroups lists all resource groups in the configured scope.

func (*UCPApplicationsManagementClient) ListResourcesInApplication added in v0.34.0

func (amc *UCPApplicationsManagementClient) ListResourcesInApplication(ctx context.Context, applicationNameOrID string) ([]generated.GenericResource, error)

ListResourcesInApplication lists all resources in a given application in the configured scope.

func (*UCPApplicationsManagementClient) ListResourcesInEnvironment added in v0.34.0

func (amc *UCPApplicationsManagementClient) ListResourcesInEnvironment(ctx context.Context, environmentNameOrID string) ([]generated.GenericResource, error)

ListResourcesInEnvironment lists all resources in a given environment in the configured scope.

func (*UCPApplicationsManagementClient) ListResourcesOfType added in v0.34.0

func (amc *UCPApplicationsManagementClient) ListResourcesOfType(ctx context.Context, resourceType string) ([]generated.GenericResource, error)

ListResourcesOfType lists all resources of a given type in the configured scope.

func (*UCPApplicationsManagementClient) ListResourcesOfTypeInApplication added in v0.34.0

func (amc *UCPApplicationsManagementClient) ListResourcesOfTypeInApplication(ctx context.Context, applicationNameOrID string, resourceType string) ([]generated.GenericResource, error)

ListResourcesOfTypeInApplication lists all resources of a given type in a given application in the configured scope.

func (*UCPApplicationsManagementClient) ListResourcesOfTypeInEnvironment added in v0.34.0

func (amc *UCPApplicationsManagementClient) ListResourcesOfTypeInEnvironment(ctx context.Context, environmentNameOrID string, resourceType string) ([]generated.GenericResource, error)

ListResourcesOfTypeInEnvironment lists all resources of a given type in a given environment in the configured scope.

Jump to

Keyboard shortcuts

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