credentials

package
v0.0.0-...-04fe7af Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

CredHub credential types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Name             string `json:"name" yaml:"name"`
	VersionCreatedAt string `json:"version_created_at" yaml:"version_created_at"`
}

Base fields of a credential

type Certificate

type Certificate struct {
	Metadata `yaml:",inline"`
	Value    values.Certificate `json:"value"`
}

A Certificate type credential

type Credential

type Credential struct {
	Metadata `yaml:",inline"`
	Value    interface{} `json:"value"`
}

A generic credential

Used when the Type of the credential is not known ahead of time.

Value will be as unmarshalled by https://golang.org/pkg/encoding/json/#Unmarshal

type FindResults

type FindResults struct {
	Credentials []Base `json:"credentials" yaml:"credentials"`
}

Types needed for Find functionality

type JSON

type JSON struct {
	Metadata `yaml:",inline"`
	Value    values.JSON `json:"value"`
}

A JSON type credential

type Metadata

type Metadata struct {
	Id   string `json:"id"`
	Base `yaml:",inline"`
	Type string `json:"type"`
}

type Password

type Password struct {
	Metadata `yaml:",inline"`
	Value    values.Password `json:"value"`
}

A Password type credential

type Path

type Path struct {
	Path string `json:"path" yaml:"path"`
}

type Paths

type Paths struct {
	Paths []Path `json:"paths" yaml:"paths"`
}

type RSA

type RSA struct {
	Metadata `yaml:",inline"`
	Value    values.RSA `json:"value"`
}

An RSA type credential

type SSH

type SSH struct {
	Metadata `yaml:",inline"`
	Value    struct {
		values.SSH           `yaml:",inline"`
		PublicKeyFingerprint string `json:"public_key_fingerprint" yaml:"public_key_fingerprint"`
	} `json:"value"`
}

An SSH type credential

type User

type User struct {
	Metadata `yaml:",inline"`
	Value    struct {
		values.User  `yaml:",inline"`
		PasswordHash string `json:"password_hash" yaml:"password_hash"`
	} `json:"value"`
}

A User type credential

type Value

type Value struct {
	Metadata `yaml:",inline"`
	Value    values.Value `json:"value"`
}

A Value type credential

Directories

Path Synopsis
CredHub credential types for generating credentials
CredHub credential types for generating credentials
CredHub credential value types
CredHub credential value types

Jump to

Keyboard shortcuts

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