role

package
v0.11.0-alpha.8 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleClient

type RoleClient struct {
	security.BaseClient
	// contains filtered or unexported fields
}

RoleClient structure

func NewRoleClient

func NewRoleClient(cloudFQDN string, authorizer auth.Authorizer) (*RoleClient, error)

NewRoleClient method returns new client

func (*RoleClient) CreateOrUpdate

func (c *RoleClient) CreateOrUpdate(ctx context.Context, name string, role *security.Role) (*security.Role, error)

Ensure methods invokes create or update on the client

func (*RoleClient) Delete

func (c *RoleClient) Delete(ctx context.Context, name string) error

Delete methods invokes delete of the security resource

func (*RoleClient) Get

func (c *RoleClient) Get(ctx context.Context, name string) (*[]security.Role, error)

Get methods invokes the client Get method

type Service

type Service interface {
	Get(context.Context, string) (*[]security.Role, error)
	CreateOrUpdate(context.Context, string, *security.Role) (*security.Role, error)
	Delete(context.Context, string) error
}

Service interface

Jump to

Keyboard shortcuts

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