Documentation ¶
Overview ¶
Copyright © 2021 Christoph Swoboda
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 © 2021 Christoph Swoboda ¶
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 ¶
- Constants
- func GetCacheRoot() (string, error)
- func GetDistCache() (string, error)
- func GetRegisteredDistribution(id string) (string, error)
- func GetWorkspaceRoot() (string, error)
- func OpenDatabase() (*bolt.DB, error)
- func RegisterDistribution(id string, path string) error
- func RegisterInstance(id string, dist string) error
- func UnregisterDistribution(id string) error
- func UnregisterInstance(id string) error
- type RegisteredDistribution
- type RegisteredInstance
Constants ¶
const ( BucketDistributions string = "distributions" BucketInstances string = "instances" )
Variables ¶
This section is empty.
Functions ¶
func GetCacheRoot ¶
func GetDistCache ¶
func GetWorkspaceRoot ¶
func OpenDatabase ¶
func RegisterDistribution ¶
func RegisterInstance ¶
func UnregisterDistribution ¶
func UnregisterInstance ¶
Types ¶
type RegisteredDistribution ¶
type RegisteredDistribution struct {
Id string
}
func GetRegisteredDistributions ¶
func GetRegisteredDistributions() ([]RegisteredDistribution, error)
type RegisteredInstance ¶
func GetRegisteredInstances ¶
func GetRegisteredInstances() ([]RegisteredInstance, error)