projects

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectStorageProjectResponse

type ObjectStorageProjectResponse struct {
	ProjectID string `json:"projectId"`
	Scope     string `json:"scope"`
}

ObjectStorageProjectResponse is the project ID and state response

type ObjectStorageProjectsService

type ObjectStorageProjectsService common.Service

ObjectStorageProjectsService is the service that handles enabling / disabling Storage for a project

func New

New returns a new handler for the service

func (*ObjectStorageProjectsService) Delete

func (svc *ObjectStorageProjectsService) Delete(ctx context.Context, projectID string) (err error)

Delete deletes an Storage project See also https://api.stackit.schwarz/object-storage-service/openapi.v1.html#operation/delete_project_v1_project__projectId__delete

func (*ObjectStorageProjectsService) ForceDelete

func (svc *ObjectStorageProjectsService) ForceDelete(ctx context.Context, projectID string) (err error)

ForceDelete force deletes an Storage project See also https://api.stackit.schwarz/object-storage-service/openapi.v1.html#operation/delete_project_v1_project__projectId__delete

func (*ObjectStorageProjectsService) Get

Get returns 200 if the Storage project is set, and error otherwise See also https://api.stackit.schwarz/object-storage-service/openapi.v1.html#tag/project

Jump to

Keyboard shortcuts

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