Documentation ¶
Index ¶
- func CreateInstance(garmParams GarmScopeParams) error
- func EnsureAuth[T interface{}](f Func[T]) (T, error)
- func IsUnauthenticatedError(err interface{}) bool
- type EnterpriseClient
- type Func
- type GarmClient
- type GarmScopeParams
- type InstanceClient
- type OrganizationClient
- type PoolClient
- type RepositoryClient
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 IsUnauthenticatedError ¶ added in v0.2.1
func IsUnauthenticatedError(err interface{}) bool
Types ¶
type EnterpriseClient ¶
type EnterpriseClient interface { ListEnterprises(param *enterprises.ListEnterprisesParams) (*enterprises.ListEnterprisesOK, error) CreateEnterprise(param *enterprises.CreateEnterpriseParams) (*enterprises.CreateEnterpriseOK, error) GetEnterprise(param *enterprises.GetEnterpriseParams) (*enterprises.GetEnterpriseOK, error) UpdateEnterprise(param *enterprises.UpdateEnterpriseParams) (*enterprises.UpdateEnterpriseOK, error) DeleteEnterprise(param *enterprises.DeleteEnterpriseParams) error }
func NewEnterpriseClient ¶
func NewEnterpriseClient() EnterpriseClient
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 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 PoolClient ¶
type PoolClient interface { ListAllPools(param *pools.ListPoolsParams) (*pools.ListPoolsOK, error) CreateRepoPool(param *repositories.CreateRepoPoolParams) (*repositories.CreateRepoPoolOK, error) CreateOrgPool(param *organizations.CreateOrgPoolParams) (*organizations.CreateOrgPoolOK, error) CreateEnterprisePool(param *enterprises.CreateEnterprisePoolParams) (*enterprises.CreateEnterprisePoolOK, error) UpdatePool(param *pools.UpdatePoolParams) (*pools.UpdatePoolOK, error) UpdateEnterprisePool(param *enterprises.UpdateEnterprisePoolParams) (*enterprises.UpdateEnterprisePoolOK, error) GetPool(param *pools.GetPoolParams) (*pools.GetPoolOK, error) GetEnterprisePool(param *enterprises.GetEnterprisePoolParams) (*enterprises.GetEnterprisePoolOK, error) DeletePool(param *pools.DeletePoolParams) error DeleteEnterprisePool(param *enterprises.DeleteEnterprisePoolParams) error }
func NewPoolClient ¶
func NewPoolClient() PoolClient
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.