Documentation ¶
Overview ¶
* Copyright 2019 the Astrolabe contributors * SPDX-License-Identifier: Apache-2.0 * 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 2019 the Astrolabe contributors * SPDX-License-Identifier: Apache-2.0 * 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 NewProtectedEntityManager(confDirPath string, port int) (string, astrolabe.ProtectedEntityManager)
- type Astrolabe
- type DirectProtectedEntityManager
- func NewDirectProtectedEntityManager(petms []astrolabe.ProtectedEntityTypeManager, s3URLBase string) (returnPEM *DirectProtectedEntityManager)
- func NewDirectProtectedEntityManagerFromConfigDir(confDirPath string, s3URLBase string) *DirectProtectedEntityManager
- func NewDirectProtectedEntityManagerFromParamMap(configMap map[string]map[string]interface{}, s3URLBase string) *DirectProtectedEntityManager
- func (this *DirectProtectedEntityManager) GetProtectedEntity(ctx context.Context, id astrolabe.ProtectedEntityID) (astrolabe.ProtectedEntity, error)
- func (this *DirectProtectedEntityManager) GetProtectedEntityTypeManager(peType string) astrolabe.ProtectedEntityTypeManager
- func (this *DirectProtectedEntityManager) ListEntityTypeManagers() []astrolabe.ProtectedEntityTypeManager
- type OpenAPIAstrolabeHandler
- func (this OpenAPIAstrolabeHandler) AttachHandlers(api *operations.AstrolabeAPI)
- func (this OpenAPIAstrolabeHandler) CopyProtectedEntity(params operations.CopyProtectedEntityParams) middleware.Responder
- func (this OpenAPIAstrolabeHandler) CreateSnapshot(params operations.CreateSnapshotParams) middleware.Responder
- func (this OpenAPIAstrolabeHandler) GetProtectedEntityInfo(params operations.GetProtectedEntityInfoParams) middleware.Responder
- func (this OpenAPIAstrolabeHandler) ListProtectedEntities(params operations.ListProtectedEntitiesParams) middleware.Responder
- func (this OpenAPIAstrolabeHandler) ListServices(params operations.ListServicesParams) middleware.Responder
- func (this OpenAPIAstrolabeHandler) ListSnapshots(params operations.ListSnapshotsParams) middleware.Responder
- type ServiceAPI
- type ServiceS3
- type TaskManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProtectedEntityManager ¶
func NewProtectedEntityManager(confDirPath string, port int) (string, astrolabe.ProtectedEntityManager)
Types ¶
type Astrolabe ¶
type Astrolabe struct {
// contains filtered or unexported fields
}
func NewAstrolabe ¶
func NewAstrolabeRepository ¶
func NewAstrolabeRepository() *Astrolabe
func (*Astrolabe) ConnectAstrolabeAPIToEcho ¶
func (*Astrolabe) ConnectMiniS3ToEcho ¶
type DirectProtectedEntityManager ¶
type DirectProtectedEntityManager struct {
// contains filtered or unexported fields
}
func NewDirectProtectedEntityManager ¶
func NewDirectProtectedEntityManager(petms []astrolabe.ProtectedEntityTypeManager, s3URLBase string) (returnPEM *DirectProtectedEntityManager)
func NewDirectProtectedEntityManagerFromConfigDir ¶
func NewDirectProtectedEntityManagerFromConfigDir(confDirPath string, s3URLBase string) *DirectProtectedEntityManager
func NewDirectProtectedEntityManagerFromParamMap ¶
func NewDirectProtectedEntityManagerFromParamMap(configMap map[string]map[string]interface{}, s3URLBase string) *DirectProtectedEntityManager
func (*DirectProtectedEntityManager) GetProtectedEntity ¶
func (this *DirectProtectedEntityManager) GetProtectedEntity(ctx context.Context, id astrolabe.ProtectedEntityID) (astrolabe.ProtectedEntity, error)
func (*DirectProtectedEntityManager) GetProtectedEntityTypeManager ¶
func (this *DirectProtectedEntityManager) GetProtectedEntityTypeManager(peType string) astrolabe.ProtectedEntityTypeManager
func (*DirectProtectedEntityManager) ListEntityTypeManagers ¶
func (this *DirectProtectedEntityManager) ListEntityTypeManagers() []astrolabe.ProtectedEntityTypeManager
type OpenAPIAstrolabeHandler ¶
type OpenAPIAstrolabeHandler struct {
// contains filtered or unexported fields
}
func NewOpenAPIAstrolabeHandler ¶
func NewOpenAPIAstrolabeHandler(pem astrolabe.ProtectedEntityManager, tm TaskManager) OpenAPIAstrolabeHandler
func (OpenAPIAstrolabeHandler) AttachHandlers ¶
func (this OpenAPIAstrolabeHandler) AttachHandlers(api *operations.AstrolabeAPI)
func (OpenAPIAstrolabeHandler) CopyProtectedEntity ¶
func (this OpenAPIAstrolabeHandler) CopyProtectedEntity(params operations.CopyProtectedEntityParams) middleware.Responder
func (OpenAPIAstrolabeHandler) CreateSnapshot ¶
func (this OpenAPIAstrolabeHandler) CreateSnapshot(params operations.CreateSnapshotParams) middleware.Responder
func (OpenAPIAstrolabeHandler) GetProtectedEntityInfo ¶
func (this OpenAPIAstrolabeHandler) GetProtectedEntityInfo(params operations.GetProtectedEntityInfoParams) middleware.Responder
func (OpenAPIAstrolabeHandler) ListProtectedEntities ¶
func (this OpenAPIAstrolabeHandler) ListProtectedEntities(params operations.ListProtectedEntitiesParams) middleware.Responder
func (OpenAPIAstrolabeHandler) ListServices ¶
func (this OpenAPIAstrolabeHandler) ListServices(params operations.ListServicesParams) middleware.Responder
func (OpenAPIAstrolabeHandler) ListSnapshots ¶
func (this OpenAPIAstrolabeHandler) ListSnapshots(params operations.ListSnapshotsParams) middleware.Responder
type ServiceAPI ¶
type ServiceAPI struct {
// contains filtered or unexported fields
}
func NewServiceAPI ¶
func NewServiceAPI(petm astrolabe.ProtectedEntityTypeManager) *ServiceAPI
type ServiceS3 ¶
type ServiceS3 struct {
// contains filtered or unexported fields
}
func NewServiceS3 ¶
func NewServiceS3(petm astrolabe.ProtectedEntityTypeManager) *ServiceS3
type TaskManager ¶
type TaskManager struct {
// contains filtered or unexported fields
}
func NewTaskManager ¶
func NewTaskManager() TaskManager
func (*TaskManager) AddTask ¶
func (this *TaskManager) AddTask(addTask astrolabe.Task)
func (*TaskManager) ListTasks ¶
func (this *TaskManager) ListTasks() []astrolabe.TaskID