client

package
v0.1.1044 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OctopusApiClient added in v0.1.807

type OctopusApiClient struct {
	Url    string
	ApiKey string
	Space  string
	// contains filtered or unexported fields
}

func (*OctopusApiClient) EnsureSpaceDeleted added in v0.1.807

func (o *OctopusApiClient) EnsureSpaceDeleted(spaceId string) (funcErr error)

func (*OctopusApiClient) GetAllResources added in v0.1.807

func (o *OctopusApiClient) GetAllResources(resourceType string, resources any, queryParams ...[]string) (funcErr error)

func (*OctopusApiClient) GetResource added in v0.1.807

func (o *OctopusApiClient) GetResource(resourceType string, resources any) (exists bool, funcErr error)

func (*OctopusApiClient) GetResourceById added in v0.1.807

func (o *OctopusApiClient) GetResourceById(resourceType string, id string, resources any) (exists bool, funcErr error)

func (*OctopusApiClient) GetSpace added in v0.1.807

func (o *OctopusApiClient) GetSpace(resources *octopus2.Space) (funcErr error)

func (*OctopusApiClient) GetSpaceBaseUrl added in v0.1.807

func (o *OctopusApiClient) GetSpaceBaseUrl() (string, error)

func (*OctopusApiClient) GetSpaces added in v0.1.807

func (o *OctopusApiClient) GetSpaces() (spaces []octopus2.Space, funcErr error)

type OctopusClient

type OctopusClient interface {
	GetSpaceBaseUrl() (string, error)
	GetSpace(resources *octopus2.Space) error
	GetSpaces() ([]octopus2.Space, error)
	EnsureSpaceDeleted(spaceId string) (funcErr error)
	GetResource(resourceType string, resources any) (exists bool, funcErr error)
	GetResourceById(resourceType string, id string, resources any) (exists bool, funcErr error)
	GetAllResources(resourceType string, resources any, queryParams ...[]string) (funcErr error)
}

Jump to

Keyboard shortcuts

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