camapi

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(client *conjurapi.Client, policyBranch string, policyContent io.Reader, policyFilePath string, ignorePolicyVariable bool) (*conjurapi.PolicyResponse, error)

func EnableAuthnIAM

func EnableAuthnIAM(client *conjurapi.Client, serviceID string) error

func FindApp

func FindApp(client *conjurapi.Client, appName string) error

func FindNamespace

func FindNamespace(client *conjurapi.Client, namespaceName string) error

func GetCurrentNamespace

func GetCurrentNamespace() (string, error)

func GetCurrentSecretVersion

func GetCurrentSecretVersion(client *conjurapi.Client, variableID string) int

func GetNewApplicationPolicy

func GetNewApplicationPolicy(client *conjurapi.Client, appName string) (io.Reader, error)

func GetSafeConsumersGroup

func GetSafeConsumersGroup(client *conjurapi.Client, safeName string) (string, error)

func GetSafes

func GetSafes(client *conjurapi.Client) ([]string, error)

func GetSecret

func GetSecret(client *conjurapi.Client, variableID string) ([]byte, error)

func GetSecretVersion

func GetSecretVersion(client *conjurapi.Client, variableID string, version int) ([]byte, error)

func GetSetAppSafePolicy

func GetSetAppSafePolicy(client *conjurapi.Client, consumersGroup string, appName string) (io.Reader, error)

func GetSetApplicationAuthnIamPolicy

func GetSetApplicationAuthnIamPolicy(client *conjurapi.Client, appName string, serviceID string, awsAccount string, iamRoleName string) (io.Reader, error)

func List

func List(client *conjurapi.Client, filter *conjurapi.ResourceFilter) ([]string, error)

func Login

func Login() (*conjurapi.Client, error)

func NewApp

func NewApp(client *conjurapi.Client, appName string) error

func NewNamespace

func NewNamespace(client *conjurapi.Client, namespaceName string) error

func NewSafe added in v0.0.2

func NewSafe(client *conjurapi.Client, safeName string) error

func NewSecret added in v0.0.2

func NewSecret(client *conjurapi.Client, safeName string, secretName string, secretValue string) error

func OpenNamespace

func OpenNamespace(client *conjurapi.Client, namespaceName string) error

func Replace

func Replace(client *conjurapi.Client, policyBranch string, policyContent io.Reader, policyFilePath string, ignorePolicyVariable bool) (*conjurapi.PolicyResponse, error)

func Rollback

func Rollback(client *conjurapi.Client, policyBranch string, version int) (*conjurapi.PolicyResponse, error)

func SetAppAuthn

func SetAppAuthn(client *conjurapi.Client, namespaceName string, appName string) error

func SetAppAuthnIAM

func SetAppAuthnIAM(client *conjurapi.Client, namespaceName string, appName string, serviceID string, accountNumber string, iamRoleName string) error

func SetAppAuthnK8S

func SetAppAuthnK8S(client *conjurapi.Client, namespaceName string, appName string, serviceID string) error

func SetAppSafe

func SetAppSafe(client *conjurapi.Client, namespaceName string, appName string, safeName string) error

func SetNamespaceAuthnIAM

func SetNamespaceAuthnIAM(client *conjurapi.Client, namespaceName string, serviceID string) error

func SetNamespaceAuthnK8S

func SetNamespaceAuthnK8S(client *conjurapi.Client, namespaceName string, serviceID string) error

func SetNamespaceSafe

func SetNamespaceSafe(client *conjurapi.Client, namespaceName string, safeName string) error

func UpdatePolicyVariable

func UpdatePolicyVariable(client *conjurapi.Client, policyBranch string, policyContent io.Reader, appendPolicy bool) error

Types

type AppResponse

type AppResponse struct {
	Namespace      string
	App            string
	Safes          []string
	Authenticators []string
	ApiKey         string
}

func GetApp

func GetApp(client *conjurapi.Client, namespaceName string, appName string) (AppResponse, error)

type NamespaceResponse added in v0.0.2

type NamespaceResponse struct {
	Name           string
	Safes          []string
	Authenticators []string
	Apps           []string
}

func GetNamespace added in v0.0.2

func GetNamespace(client *conjurapi.Client, namespaceName string) (NamespaceResponse, error)

Jump to

Keyboard shortcuts

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