chore: Add license headers to all files
This commit is contained in:
1 parent
dcb499ed4f
commit
3c29308673
1775 files changed
+5331
No files matched your search
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
function create_account() {
|
||||
export BP="${DEFAULT_PASSWORD}"
|
||||
boundary accounts create password -login-name $1 -password env://BP -auth-method-id $DEFAULT_AMPW
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
function login() {
|
||||
export BP="${DEFAULT_PASSWORD}"
|
||||
boundary authenticate password -auth-method-id $DEFAULT_AMPW -login-name $1 -password env://BP
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
function read_token() {
|
||||
if [[ "x$1" == "x" ]]
|
||||
then
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
function has_authorized_action() {
|
||||
# accepts the output of a read on a arbitrary resource that has authorized_actions in its
|
||||
# output and the action to expect in the list as the second argument:
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
function connect_nc() {
|
||||
local id=$1
|
||||
# Note: When this command returns, the session immediately goes into a "canceling" state
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
load _authorized_actions
|
||||
|
||||
function create_vault_ssh_certificate_library() {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
load _authorized_actions
|
||||
|
||||
function create_static_credential_store() {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
load _authorized_actions
|
||||
|
||||
function create_username_password_credential() {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
load _authorized_actions
|
||||
|
||||
function create_group() {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
export BOUNDARY_ADDR="${BOUNDARY_ADDR:-http://127.0.0.1:9200}"
|
||||
export DEFAULT_PASSWORD="${DEFAULT_PASSWORD:-password}"
|
||||
export DEFAULT_LOGIN="${DEFAULT_LOGIN:-admin}"
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
load _authorized_actions
|
||||
|
||||
function create_host_catalog() {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
load _authorized_actions
|
||||
|
||||
function create_host_set() {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
load _authorized_actions
|
||||
|
||||
function create_host() {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
load _authorized_actions
|
||||
|
||||
function create_role() {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
load _authorized_actions
|
||||
|
||||
function create_scope() {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
load _authorized_actions
|
||||
|
||||
function list_sessions_include_terminated() {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
load _authorized_actions
|
||||
|
||||
function add_target_brokered_credential_sources() {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
load _authorized_actions
|
||||
|
||||
export TGT_NAME='test'
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
load _authorized_actions
|
||||
|
||||
function create_user() {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
|
||||
function vault_write_boundary_policy() {
|
||||
(
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
function version() {
|
||||
boundary version -format json
|
||||
}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
load _authorized_actions
|
||||
|
||||
function read_worker() {
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
|
||||
# TERM isn't set automatically in CI so we need to make sure it's always there.
|
||||
export TERM=${TERM:=dumb}
|
||||
|
||||
Reference in new issue
Block a user