riaas

package
v1.2.2 Latest Latest
Warning

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

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

Documentation

Overview

Package riaas ...

Package riaas ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseURL       string
	AccountID     string
	Username      string
	APIKey        string
	ResourceGroup string
	Password      string
	ContextID     string

	DebugWriter   io.Writer
	HTTPClient    *http.Client
	Context       context.Context
	APIVersion    string
	APIGeneration int
}

Config for the Session

type DefaultRegionalAPIClientProvider

type DefaultRegionalAPIClientProvider struct {
}

DefaultRegionalAPIClientProvider declares a basic client provider that delegates to New(). Can be used for dependency injection.

func (DefaultRegionalAPIClientProvider) New

New creates a new Session volume, using the supplied config

type IKSRegionalAPIClientProvider added in v1.2.2

type IKSRegionalAPIClientProvider struct {
	RegionalAPIClientProvider
}

IKSRegionalAPIClientProvider ...

func (IKSRegionalAPIClientProvider) New added in v1.2.2

New creates a new Session , using the supplied config

type IKSSession added in v1.2.2

type IKSSession struct {
	Session
}

IKSSession ...

func (*IKSSession) FileShareService added in v1.2.2

func (s *IKSSession) FileShareService() vpcfilevolume.FileShareManager

FileShareService returns the FileShare service for managing shares

type RegionalAPI

type RegionalAPI interface {
	Login(token string) error

	FileShareService() vpcfilevolume.FileShareManager
}

RegionalAPI is the main interface for the RIAAS API client. From here, service objects for the individual parts of the API can be obtained

type RegionalAPIClientProvider

type RegionalAPIClientProvider interface {
	New(config Config) (RegionalAPI, error)
}

RegionalAPIClientProvider declares an interface for a provider that can supply a new RegionalAPI client session

type Session

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

Session is a base implementation of the RegionalAPI interface

func New

func New(config Config) (*Session, error)

New creates a new Session volume, using the supplied config

func (*Session) FileShareService

func (s *Session) FileShareService() vpcfilevolume.FileShareManager

VolumeFileService returns the Volume service for managing file volumes

func (*Session) Login

func (s *Session) Login(token string) error

Login configures the session with the supplied Authentication token which is used for all requests to the API

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.
Package test ...
Package test ...

Jump to

Keyboard shortcuts

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