generate

package
v0.0.0-...-516d531 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

CredHub credential types for generating credentials

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	KeyLength        int      `json:"key_length,omitempty"`
	Duration         int      `json:"duration,omitempty"`
	CommonName       string   `json:"common_name,omitempty"`
	Organization     string   `json:"organization,omitempty"`
	OrganizationUnit string   `json:"organization_unit,omitempty"`
	Locality         string   `json:"locality,omitempty"`
	State            string   `json:"state,omitempty"`
	Country          string   `json:"country,omitempty"`
	AlternativeNames []string `json:"alternative_names,omitempty"`
	KeyUsage         []string `json:"key_usage,omitempty"`
	ExtendedKeyUsage []string `json:"extended_key_usage,omitempty"`
	Ca               string   `json:"ca"`
	IsCA             bool     `json:"is_ca,omitempty"`
	SelfSign         bool     `json:"self_sign,omitempty"`
}

type Password

type Password struct {
	Length         int  `json:"length,omitempty"`
	IncludeSpecial bool `json:"include_special,omitempty"`
	ExcludeNumber  bool `json:"exclude_number,omitempty"`
	ExcludeUpper   bool `json:"exclude_upper,omitempty"`
	ExcludeLower   bool `json:"exclude_lower,omitempty"`
}

type RSA

type RSA struct {
	KeyLength int `json:"key_length"`
}

type SSH

type SSH struct {
	Comment   string `json:"ssh_comment,omitempty"`
	KeyLength int    `json:"key_length"`
}

type User

type User struct {
	Username       string `json:"-"`
	Length         int    `json:"length,omitempty"`
	IncludeSpecial bool   `json:"include_special,omitempty"`
	ExcludeNumber  bool   `json:"exclude_number,omitempty"`
	ExcludeUpper   bool   `json:"exclude_upper,omitempty"`
	ExcludeLower   bool   `json:"exclude_lower,omitempty"`
}

Jump to

Keyboard shortcuts

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