blob: d6c249ea9a45903288623f774227291c9c82c077 [file] [log] [blame]
Jian Lic4604302020-12-25 02:24:16 +09001/*
2 * Copyright 2020-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.kubevirtnode.api;
17
18/**
19 * Service for administering inventory of KubeVirt API configs.
20 */
21public interface KubevirtApiConfigAdminService extends KubevirtApiConfigService {
22
23 /**
24 * Creates a API config.
25 *
26 * @param config KubeVirt API server config
27 */
28 void createApiConfig(KubevirtApiConfig config);
29
30 /**
31 * Updates the API config.
32 *
33 * @param config KubeVirt API server config
34 */
35 void updateApiConfig(KubevirtApiConfig config);
36
37 /**
38 * Removes the KubeVirt API config with the given endpoint.
39 * Endpoint comprises of scheme (HTTP), IP address and port
40 *
41 * @param endpoint KubeVirt API endpoint
42 * @return removed KubeVirt API server config; null if no config
43 * associated with the endpoint
44 */
45 KubevirtApiConfig removeApiConfig(String endpoint);
46}