credentialsgroup

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCredentialsGroupID

func ValidateCredentialsGroupID(id string) error

ValidateCredentialsGroupID validates a given credentials group ID

func ValidateDisplayName

func ValidateDisplayName(name string) error

ValidateDisplayName validates a given credentialsGroup name

Types

type CredentialsGroup

type CredentialsGroup struct {
	CredentialsGroupID string `json:"credentialsGroupId"`
	URN                string `json:"urn"`
	DisplayName        string `json:"displayName"`
}

CredentialsGroup holds all the credentialsGroup information

type CredentialsGroupDeleteResponse

type CredentialsGroupDeleteResponse struct {
	Project            string `json:"project"`
	CredentialsGroupId string `json:"credentialsGroupId"`
}

type CredentialsGroupResponse

type CredentialsGroupResponse struct {
	Project           string             `json:"project"`
	CredentialsGroups []CredentialsGroup `json:"credentialsGroups"`
}

CredentialsGroupResponse is a struct representation of stackit's object storage api response for a credentialsGroup

type ObjectStorageCredentialsGroupService

type ObjectStorageCredentialsGroupService common.Service

ObjectStorageCredentialsGroupService is the service that handles CRUD functionality for SKE credentialsGroups

func New

New returns a new handler for the service

func (*ObjectStorageCredentialsGroupService) Create

func (svc *ObjectStorageCredentialsGroupService) Create(ctx context.Context, projectID, displayName string) (err error)

Create creates a new credentialsGroup See also https://api.stackit.schwarz/object-storage-service/openapi.v1.html#operation/create-credentials-group-v1-project-projectId-credentials-group-post

func (*ObjectStorageCredentialsGroupService) Delete

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

Delete deletes a credentialsGroup See also https://api.stackit.schwarz/object-storage-service/openapi.v1.html#operation/delete-credentials-group-v1-project-projectId-credentials-group-groupId-delete

func (*ObjectStorageCredentialsGroupService) List

List returns the a credentialsGroup by project ID and credentialsGroup name See also https://api.stackit.schwarz/object-storage-service/openapi.v1.html#operation/get-credentials-groups-v1-project-projectId-credentials-groups-get

Jump to

Keyboard shortcuts

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