mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 05:45:46 +00:00
fe678e9da1
* Add 'GetCluster' function to HCP client * Sync cluster data inside Link controller * Add access mode to HCP Link * Sync AccessLevel property * Fix imports and remove outdated comments * Switch accessMode to access level * Add comment around HCPClientFn * Fix spacing in link.proto * Add helper for writing status. Fix reconciliation loop
25 lines
519 B
Protocol Buffer
25 lines
519 B
Protocol Buffer
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
syntax = "proto3";
|
|
|
|
package hashicorp.consul.hcp.v2;
|
|
|
|
import "pbresource/annotations.proto";
|
|
|
|
enum AccessLevel {
|
|
ACCESS_LEVEL_UNSPECIFIED = 0;
|
|
ACCESS_LEVEL_GLOBAL_READ_WRITE = 1;
|
|
ACCESS_LEVEL_GLOBAL_READ_ONLY = 2;
|
|
}
|
|
|
|
message Link {
|
|
option (hashicorp.consul.resource.spec) = {scope: SCOPE_CLUSTER};
|
|
|
|
string resource_id = 1;
|
|
string client_id = 2;
|
|
string client_secret = 3;
|
|
string hcp_cluster_url = 4;
|
|
AccessLevel access_level = 5;
|
|
}
|