service

package
v0.0.0-...-9febfc8 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Overview

Copyright 2022 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnqueueAssetAdditionOrDeletion

func EnqueueAssetAdditionOrDeletion(ctx context.Context, assetInstanceId string, operation string, delay int64) error

EnqueueAssetInstance enqueues a asset instance creattion/deletion task.

Types

type AssetHandler

type AssetHandler struct {
	proto.UnimplementedAssetServer
}

func (*AssetHandler) Create

Creates the given Asset.

func (*AssetHandler) Delete

Deletes the given Asset.

func (*AssetHandler) Get

Retrieves a Asset for a given unique value.

func (*AssetHandler) GetAssetConfiguration

Given the asset Id get all the information required to generate asset configuration file in cel_ctl

func (*AssetHandler) GetDefaultResources

Based on different asset types there may be additional resources that must be created by default necessary to generate the asset & host configuration files in cel_ctl

func (*AssetHandler) GetHostConfiguration

Given the resource Ids get all the information required to generate host configuration file in cel_ctl

func (*AssetHandler) List

Lists all Assets.

func (*AssetHandler) Update

Update a single asset in Enterprise Asset.

type AssetInstanceHandler

type AssetInstanceHandler struct {
	proto.UnimplementedAssetInstanceServer
}

func (*AssetInstanceHandler) Create

Creates the given AssetInstance.

func (*AssetInstanceHandler) Delete

Deletes the given AssetInstance.

func (*AssetInstanceHandler) FetchLogs

Fetch the Deployment Logs associated with Asset Instance Id

func (*AssetInstanceHandler) Get

Retrieves an AssetInstance for a given unique value.

func (*AssetInstanceHandler) List

Lists all AssetInstance.

func (*AssetInstanceHandler) TriggerAssetDeletion

func (e *AssetInstanceHandler) TriggerAssetDeletion(ctx context.Context, in *emptypb.Empty) (*emptypb.Empty, error)

Collect the records which are ready for deletion and add those to cloud task

func (*AssetInstanceHandler) TriggerDeployment

Based on type, TriggerDeployment either creates or updates an asset instance with an available project to carry out a deployment on. Returns the project information like projectId, projectPrefix, etc.

func (*AssetInstanceHandler) Update

Updates a single AssetInstance.

type AssetResourceHandler

type AssetResourceHandler struct {
	proto.UnimplementedAssetResourceServer
}

func (*AssetResourceHandler) Create

Creates the given AssetResourceEntity.

func (*AssetResourceHandler) Delete

Deletes the given AssetResource entity.

func (*AssetResourceHandler) Get

Retrieves a AssetResource entity for a given unique value.

func (*AssetResourceHandler) List

Lists all AssetResource entities.

func (*AssetResourceHandler) Update

Update a single ssetResource entity.

type ResourceHandler

type ResourceHandler struct {
	proto.UnimplementedResourceServer
}

func (*ResourceHandler) Create

Creates the given Resource.

func (*ResourceHandler) Delete

Deletes the given Resource.

func (*ResourceHandler) Get

Retrieves a Resource for a given unique value.

func (*ResourceHandler) List

Lists all Resources.

func (*ResourceHandler) Update

Updates a single resource.

Jump to

Keyboard shortcuts

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