Documentation
¶
Overview ¶
Copyright 2025 Cloudbase Solutions SRL
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
Copyright 2025 Cloudbase Solutions SRL
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
Copyright 2025 Cloudbase Solutions SRL
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
Copyright 2025 Cloudbase Solutions SRL
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
Copyright 2025 Cloudbase Solutions SRL
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
Copyright 2025 Cloudbase Solutions SRL
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
Index ¶
- func DeleteEntity(entityID string)
- func DeleteEntityPool(entityID string, poolID string)
- func DeleteEntityScaleSet(entityID string, scaleSetID uint)
- func DeleteGiteaCredentials(id uint)
- func DeleteGithubCredentials(id uint)
- func DeleteInstanceCache(name string)
- func FindPoolsMatchingAllTags(entityID string, tags []string) []params.Pool
- func GetAllEntities() []params.ForgeEntity
- func GetAllGiteaCredentials() []params.ForgeCredentials
- func GetAllGiteaCredentialsAsMap() map[uint]params.ForgeCredentials
- func GetAllGithubCredentials() []params.ForgeCredentials
- func GetAllGithubCredentialsAsMap() map[uint]params.ForgeCredentials
- func GetAllInstancesCache() []params.Instance
- func GetAllPools() []params.Pool
- func GetAllScaleSets() []params.ScaleSet
- func GetEntitiesUsingCredentials(creds params.ForgeCredentials) []params.ForgeEntity
- func GetEntity(entityID string) (params.ForgeEntity, bool)
- func GetEntityPool(entityID string, poolID string) (params.Pool, bool)
- func GetEntityPools(entityID string) []params.Pool
- func GetEntityScaleSet(entityID string, scaleSetID uint) (params.ScaleSet, bool)
- func GetEntityScaleSets(entityID string) []params.ScaleSet
- func GetGiteaCredentials(id uint) (params.ForgeCredentials, bool)
- func GetGithubClient(entityID string) (common.GithubClient, bool)
- func GetGithubCredentials(id uint) (params.ForgeCredentials, bool)
- func GetGithubToolsCache(entityID string) ([]commonParams.RunnerApplicationDownload, error)
- func GetInstanceCache(name string) (params.Instance, bool)
- func GetInstancesForPool(poolID string) []params.Instance
- func GetInstancesForScaleSet(scaleSetID uint) []params.Instance
- func ReplaceEntityPools(entityID string, pools []params.Pool)
- func ReplaceEntityScaleSets(entityID string, scaleSets []params.ScaleSet)
- func SetCredentialsRateLimit(credsID uint, rateLimit params.GithubRateLimit)
- func SetEntity(entity params.ForgeEntity)
- func SetEntityPool(entityID string, pool params.Pool)
- func SetEntityScaleSet(entityID string, scaleSet params.ScaleSet)
- func SetGiteaCredentials(credentials params.ForgeCredentials)
- func SetGithubClient(entityID string, client common.GithubClient)
- func SetGithubCredentials(credentials params.ForgeCredentials)
- func SetGithubToolsCache(entity params.ForgeEntity, tools []commonParams.RunnerApplicationDownload)
- func SetGithubToolsCacheError(entity params.ForgeEntity, err error)
- func SetInstanceCache(instance params.Instance)
- func UpdateCredentialsInAffectedEntities(creds params.ForgeCredentials)
- type CredentialCache
- func (g *CredentialCache) DeleteCredentials(id uint)
- func (g *CredentialCache) GetAllCredentials() []params.ForgeCredentials
- func (g *CredentialCache) GetAllCredentialsAsMap() map[uint]params.ForgeCredentials
- func (g *CredentialCache) GetCredentials(id uint) (params.ForgeCredentials, bool)
- func (g *CredentialCache) SetCredentials(credentials params.ForgeCredentials)
- func (g *CredentialCache) SetCredentialsRateLimit(credsID uint, rateLimit params.GithubRateLimit)
- type EntityCache
- func (e *EntityCache) DeleteEntity(entityID string)
- func (e *EntityCache) DeleteEntityPool(entityID string, poolID string)
- func (e *EntityCache) DeleteEntityScaleSet(entityID string, scaleSetID uint)
- func (e *EntityCache) FindPoolsMatchingAllTags(entityID string, tags []string) []params.Pool
- func (e *EntityCache) GetAllEntities() []params.ForgeEntity
- func (e *EntityCache) GetAllPools() []params.Pool
- func (e *EntityCache) GetAllScaleSets() []params.ScaleSet
- func (e *EntityCache) GetEntitiesUsingCredentials(creds params.ForgeCredentials) []params.ForgeEntity
- func (e *EntityCache) GetEntity(entityID string) (params.ForgeEntity, bool)
- func (e *EntityCache) GetEntityPool(entityID string, poolID string) (params.Pool, bool)
- func (e *EntityCache) GetEntityPools(entityID string) []params.Pool
- func (e *EntityCache) GetEntityScaleSet(entityID string, scaleSetID uint) (params.ScaleSet, bool)
- func (e *EntityCache) GetEntityScaleSets(entityID string) []params.ScaleSet
- func (e *EntityCache) ReplaceEntityPools(entityID string, pools []params.Pool)
- func (e *EntityCache) ReplaceEntityScaleSets(entityID string, scaleSets []params.ScaleSet)
- func (e *EntityCache) SetEntity(entity params.ForgeEntity)
- func (e *EntityCache) SetEntityPool(entityID string, pool params.Pool)
- func (e *EntityCache) SetEntityScaleSet(entityID string, scaleSet params.ScaleSet)
- func (e *EntityCache) UpdateCredentialsInAffectedEntities(creds params.ForgeCredentials)
- type EntityItem
- type GithubClientCache
- type GithubEntityTools
- type GithubToolsCache
- type InstanceCache
- func (i *InstanceCache) DeleteInstance(name string)
- func (i *InstanceCache) GetAllInstances() []params.Instance
- func (i *InstanceCache) GetInstance(name string) (params.Instance, bool)
- func (i *InstanceCache) GetInstancesForPool(poolID string) []params.Instance
- func (i *InstanceCache) GetInstancesForScaleSet(scaleSetID uint) []params.Instance
- func (i *InstanceCache) SetInstance(instance params.Instance)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteEntity ¶
func DeleteEntity(entityID string)
func DeleteEntityPool ¶
func DeleteEntityScaleSet ¶
func DeleteGiteaCredentials ¶
func DeleteGiteaCredentials(id uint)
func DeleteGithubCredentials ¶
func DeleteGithubCredentials(id uint)
func DeleteInstanceCache ¶
func DeleteInstanceCache(name string)
func GetAllEntities ¶
func GetAllEntities() []params.ForgeEntity
func GetAllGiteaCredentials ¶
func GetAllGiteaCredentials() []params.ForgeCredentials
func GetAllGiteaCredentialsAsMap ¶
func GetAllGiteaCredentialsAsMap() map[uint]params.ForgeCredentials
func GetAllGithubCredentials ¶
func GetAllGithubCredentials() []params.ForgeCredentials
func GetAllGithubCredentialsAsMap ¶
func GetAllGithubCredentialsAsMap() map[uint]params.ForgeCredentials
func GetAllInstancesCache ¶
func GetAllPools ¶
func GetAllScaleSets ¶
func GetEntitiesUsingCredentials ¶
func GetEntitiesUsingCredentials(creds params.ForgeCredentials) []params.ForgeEntity
func GetEntityPools ¶
func GetEntityScaleSet ¶
func GetEntityScaleSets ¶
func GetGiteaCredentials ¶
func GetGiteaCredentials(id uint) (params.ForgeCredentials, bool)
func GetGithubClient ¶
func GetGithubClient(entityID string) (common.GithubClient, bool)
func GetGithubCredentials ¶
func GetGithubCredentials(id uint) (params.ForgeCredentials, bool)
func GetGithubToolsCache ¶
func GetGithubToolsCache(entityID string) ([]commonParams.RunnerApplicationDownload, error)
func GetInstancesForPool ¶
func GetInstancesForScaleSet ¶
func ReplaceEntityPools ¶
func ReplaceEntityScaleSets ¶
func SetCredentialsRateLimit ¶
func SetCredentialsRateLimit(credsID uint, rateLimit params.GithubRateLimit)
func SetEntity ¶
func SetEntity(entity params.ForgeEntity)
func SetEntityPool ¶
func SetEntityScaleSet ¶
func SetGiteaCredentials ¶
func SetGiteaCredentials(credentials params.ForgeCredentials)
func SetGithubClient ¶
func SetGithubClient(entityID string, client common.GithubClient)
func SetGithubCredentials ¶
func SetGithubCredentials(credentials params.ForgeCredentials)
func SetGithubToolsCache ¶
func SetGithubToolsCache(entity params.ForgeEntity, tools []commonParams.RunnerApplicationDownload)
func SetGithubToolsCacheError ¶
func SetGithubToolsCacheError(entity params.ForgeEntity, err error)
func SetInstanceCache ¶
func UpdateCredentialsInAffectedEntities ¶
func UpdateCredentialsInAffectedEntities(creds params.ForgeCredentials)
Types ¶
type CredentialCache ¶
type CredentialCache struct {
// contains filtered or unexported fields
}
func (*CredentialCache) DeleteCredentials ¶
func (g *CredentialCache) DeleteCredentials(id uint)
func (*CredentialCache) GetAllCredentials ¶
func (g *CredentialCache) GetAllCredentials() []params.ForgeCredentials
func (*CredentialCache) GetAllCredentialsAsMap ¶
func (g *CredentialCache) GetAllCredentialsAsMap() map[uint]params.ForgeCredentials
func (*CredentialCache) GetCredentials ¶
func (g *CredentialCache) GetCredentials(id uint) (params.ForgeCredentials, bool)
func (*CredentialCache) SetCredentials ¶
func (g *CredentialCache) SetCredentials(credentials params.ForgeCredentials)
func (*CredentialCache) SetCredentialsRateLimit ¶
func (g *CredentialCache) SetCredentialsRateLimit(credsID uint, rateLimit params.GithubRateLimit)
type EntityCache ¶
type EntityCache struct {
// contains filtered or unexported fields
}
func (*EntityCache) DeleteEntity ¶
func (e *EntityCache) DeleteEntity(entityID string)
func (*EntityCache) DeleteEntityPool ¶
func (e *EntityCache) DeleteEntityPool(entityID string, poolID string)
func (*EntityCache) DeleteEntityScaleSet ¶
func (e *EntityCache) DeleteEntityScaleSet(entityID string, scaleSetID uint)
func (*EntityCache) FindPoolsMatchingAllTags ¶
func (e *EntityCache) FindPoolsMatchingAllTags(entityID string, tags []string) []params.Pool
func (*EntityCache) GetAllEntities ¶
func (e *EntityCache) GetAllEntities() []params.ForgeEntity
func (*EntityCache) GetAllPools ¶
func (e *EntityCache) GetAllPools() []params.Pool
func (*EntityCache) GetAllScaleSets ¶
func (e *EntityCache) GetAllScaleSets() []params.ScaleSet
func (*EntityCache) GetEntitiesUsingCredentials ¶
func (e *EntityCache) GetEntitiesUsingCredentials(creds params.ForgeCredentials) []params.ForgeEntity
func (*EntityCache) GetEntity ¶
func (e *EntityCache) GetEntity(entityID string) (params.ForgeEntity, bool)
func (*EntityCache) GetEntityPool ¶
func (*EntityCache) GetEntityPools ¶
func (e *EntityCache) GetEntityPools(entityID string) []params.Pool
func (*EntityCache) GetEntityScaleSet ¶
func (*EntityCache) GetEntityScaleSets ¶
func (e *EntityCache) GetEntityScaleSets(entityID string) []params.ScaleSet
func (*EntityCache) ReplaceEntityPools ¶
func (e *EntityCache) ReplaceEntityPools(entityID string, pools []params.Pool)
func (*EntityCache) ReplaceEntityScaleSets ¶
func (e *EntityCache) ReplaceEntityScaleSets(entityID string, scaleSets []params.ScaleSet)
func (*EntityCache) SetEntity ¶
func (e *EntityCache) SetEntity(entity params.ForgeEntity)
func (*EntityCache) SetEntityPool ¶
func (e *EntityCache) SetEntityPool(entityID string, pool params.Pool)
func (*EntityCache) SetEntityScaleSet ¶
func (e *EntityCache) SetEntityScaleSet(entityID string, scaleSet params.ScaleSet)
func (*EntityCache) UpdateCredentialsInAffectedEntities ¶
func (e *EntityCache) UpdateCredentialsInAffectedEntities(creds params.ForgeCredentials)
type EntityItem ¶
type GithubClientCache ¶
type GithubClientCache struct {
// contains filtered or unexported fields
}
func (*GithubClientCache) GetClient ¶
func (g *GithubClientCache) GetClient(entityID string) (common.GithubClient, bool)
func (*GithubClientCache) SetClient ¶
func (g *GithubClientCache) SetClient(entityID string, client common.GithubClient)
type GithubEntityTools ¶
type GithubEntityTools struct {
// contains filtered or unexported fields
}
type GithubToolsCache ¶
type GithubToolsCache struct {
// contains filtered or unexported fields
}
func (*GithubToolsCache) Get ¶
func (g *GithubToolsCache) Get(entityID string) ([]commonParams.RunnerApplicationDownload, error)
func (*GithubToolsCache) Set ¶
func (g *GithubToolsCache) Set(entity params.ForgeEntity, tools []commonParams.RunnerApplicationDownload)
func (*GithubToolsCache) SetToolsError ¶
func (g *GithubToolsCache) SetToolsError(entity params.ForgeEntity, err error)
type InstanceCache ¶
type InstanceCache struct {
// contains filtered or unexported fields
}
func (*InstanceCache) DeleteInstance ¶
func (i *InstanceCache) DeleteInstance(name string)
func (*InstanceCache) GetAllInstances ¶
func (i *InstanceCache) GetAllInstances() []params.Instance
func (*InstanceCache) GetInstance ¶
func (i *InstanceCache) GetInstance(name string) (params.Instance, bool)
func (*InstanceCache) GetInstancesForPool ¶
func (i *InstanceCache) GetInstancesForPool(poolID string) []params.Instance
func (*InstanceCache) GetInstancesForScaleSet ¶
func (i *InstanceCache) GetInstancesForScaleSet(scaleSetID uint) []params.Instance
func (*InstanceCache) SetInstance ¶
func (i *InstanceCache) SetInstance(instance params.Instance)
Click to show internal directories.
Click to hide internal directories.