resources

package
v0.3.3 Latest Latest
Warning

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

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

Documentation

Overview

Package resources allows for interacting with custom REST extensions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is used for the resources service

func NewService

func NewService(client *clients.Client) *Service

NewService returns a new resource.Service

func (*Service) Delete

func (s *Service) Delete(resourceName string, parameters map[string]string, response handle.ResponseHandle) error

Delete Call DELETE against resource

func (*Service) Get

func (s *Service) Get(resourceName string, parameters map[string]string, response handle.ResponseHandle) error

Get Call GET against resource

func (*Service) Post

func (s *Service) Post(resourceName string, parameters map[string]string, requestBody handle.Handle, response handle.ResponseHandle) error

Post Call POST against resource

func (*Service) Put

func (s *Service) Put(resourceName string, parameters map[string]string, requestBody handle.Handle, response handle.ResponseHandle) error

Put Call PUT against resource

Jump to

Keyboard shortcuts

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