client

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInstance added in v0.2.1

func CreateInstance(garmParams GarmScopeParams) error

func EnsureAuth added in v0.2.1

func EnsureAuth[T interface{}](f Func[T]) (T, error)

func IsUnauthenticatedError added in v0.2.1

func IsUnauthenticatedError(err interface{}) bool

Types

type EnterpriseClient

func NewEnterpriseClient

func NewEnterpriseClient() EnterpriseClient

type Func added in v0.2.1

type Func[T interface{}] func() (T, error)

type GarmClient added in v0.2.1

type GarmClient interface {
	GarmAPI() *garm.GarmAPI
	Token() runtime.ClientAuthInfoWriter
	Login() error
	Init() error
}
var Client GarmClient

type GarmScopeParams

type GarmScopeParams struct {
	BaseURL  string
	Username string
	Password string
	Debug    bool
	Email    string
}

type InstanceClient

type InstanceClient interface {
	GetInstance(params *instances.GetInstanceParams) (*instances.GetInstanceOK, error)
	ListInstances(params *instances.ListInstancesParams) (*instances.ListInstancesOK, error)
	ListPoolInstances(params *instances.ListPoolInstancesParams) (*instances.ListPoolInstancesOK, error)
	DeleteInstance(params *instances.DeleteInstanceParams) error
}

func NewInstanceClient

func NewInstanceClient() InstanceClient

type OrganizationClient

type OrganizationClient interface {
	ListOrganizations(param *organizations.ListOrgsParams) (*organizations.ListOrgsOK, error)
	CreateOrganization(param *organizations.CreateOrgParams) (*organizations.CreateOrgOK, error)
	GetOrganization(param *organizations.GetOrgParams) (*organizations.GetOrgOK, error)
	UpdateOrganization(param *organizations.UpdateOrgParams) (*organizations.UpdateOrgOK, error)
	DeleteOrganization(param *organizations.DeleteOrgParams) error
}

func NewOrganizationClient

func NewOrganizationClient() OrganizationClient

type RepositoryClient

type RepositoryClient interface {
	ListRepositories(param *repositories.ListReposParams) (*repositories.ListReposOK, error)
	CreateRepository(param *repositories.CreateRepoParams) (*repositories.CreateRepoOK, error)
	GetRepository(param *repositories.GetRepoParams) (*repositories.GetRepoOK, error)
	UpdateRepository(param *repositories.UpdateRepoParams) (*repositories.UpdateRepoOK, error)
	DeleteRepository(param *repositories.DeleteRepoParams) error
}

func NewRepositoryClient

func NewRepositoryClient() RepositoryClient

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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