Documentation ¶
Index ¶
- Constants
- func LoadConfigFromFile(file string) (*v1.ServerConfig, error)
- type CA
- func (ca *CA) ConfigToBytes() ([]byte, error)
- func (ca *CA) GetHomeDir() string
- func (ca *CA) GetServerConfig() *v1.ServerConfig
- func (ca *CA) GetType() config.Type
- func (ca *CA) HealthCheck(parentURL, certPath string) error
- func (ca *CA) Init() (err error)
- func (ca *CA) IsBeingUpdated()
- func (ca *CA) IsHSMEnabled() bool
- func (ca *CA) IsPostgresReachable(db lib.CAConfigDB) bool
- func (ca *CA) OverrideServerConfig(newConfig *v1.ServerConfig) (err error)
- func (ca *CA) ParseCABlock() (map[string][]byte, error)
- func (ca *CA) ParseCrypto() (map[string][]byte, error)
- func (ca *CA) ParseEnrollmentCACrypto() (map[string][]byte, error)
- func (ca *CA) ParseTLSCACrypto() (map[string][]byte, error)
- func (ca *CA) RemoveHomeDir() error
- func (ca *CA) SetMountPaths()
- func (ca *CA) SetPKCS11Defaults(serverConfig *v1.ServerConfig)
- func (ca *CA) ViperUnmarshal(configFile string) (*lib.ServerConfig, error)
- func (ca *CA) WriteConfig() (err error)
- type CAConfig
- type Config
- type ConfigOptions
- type HSM
- type HSMDaemon
- type HSMInitJobTimeouts
- type IBPCA
- type Initializer
- type Response
- type SW
Constants ¶
View Source
const ( // HSMClient is the name of container that contain the HSM client library HSMClient = "hsm-client" // CertGen is the name of container that runs the command to generate the certificate for the CA CertGen = "certgen" )
Variables ¶
This section is empty.
Functions ¶
func LoadConfigFromFile ¶
func LoadConfigFromFile(file string) (*v1.ServerConfig, error)
Types ¶
type CA ¶
type CA struct { CN string Config CAConfig Viper *viper.Viper Type config.Type SqliteDir string UsingHSMProxy bool // contains filtered or unexported fields }
func (*CA) ConfigToBytes ¶
func (*CA) GetHomeDir ¶
func (*CA) GetServerConfig ¶
func (ca *CA) GetServerConfig() *v1.ServerConfig
func (*CA) HealthCheck ¶
func (*CA) IsBeingUpdated ¶
func (ca *CA) IsBeingUpdated()
func (*CA) IsHSMEnabled ¶
func (*CA) IsPostgresReachable ¶
func (ca *CA) IsPostgresReachable(db lib.CAConfigDB) bool
func (*CA) OverrideServerConfig ¶
func (ca *CA) OverrideServerConfig(newConfig *v1.ServerConfig) (err error)
func (*CA) ParseEnrollmentCACrypto ¶
func (*CA) RemoveHomeDir ¶
func (*CA) SetMountPaths ¶
func (ca *CA) SetMountPaths()
func (*CA) SetPKCS11Defaults ¶
func (ca *CA) SetPKCS11Defaults(serverConfig *v1.ServerConfig)
func (*CA) ViperUnmarshal ¶
func (ca *CA) ViperUnmarshal(configFile string) (*lib.ServerConfig, error)
ViperUnmarshal as this is what fabric-ca uses when it reads it's configuration file
func (*CA) WriteConfig ¶
type CAConfig ¶
type CAConfig interface { GetServerConfig() *v1.ServerConfig ParseCABlock() (map[string][]byte, error) ParseDBBlock() (map[string][]byte, error) ParseTLSBlock() (map[string][]byte, error) ParseOperationsBlock() (map[string][]byte, error) ParseIntermediateBlock() (map[string][]byte, error) SetServerConfig(*v1.ServerConfig) SetMountPaths(config.Type) GetHomeDir() string SetUpdate(bool) UsingPKCS11() bool }
type Config ¶
type Config struct { CADefaultConfigPath string `json:"cadefaultconfigpath"` TLSCADefaultConfigPath string `json:"tlscadefaultconfigpath"` CAOverrideConfigPath string `json:"caoverrideconfigpath"` TLSCAOverrideConfigPath string `json:"tlscaoverrideconfigpath"` DeploymentFile string PVCFile string ServiceFile string RoleFile string ServiceAccountFile string RoleBindingFile string ConfigMapFile string IngressFile string Ingressv1beta1File string RouteFile string }
type ConfigOptions ¶
type HSM ¶
type HSM struct { Config *config.HSMConfig Timeouts HSMInitJobTimeouts Client controller.Client Scheme *runtime.Scheme }
HSM implements the ability to initialize HSM CA
type HSMDaemon ¶
type HSMDaemon struct { Config *config.HSMConfig Scheme *runtime.Scheme Timeouts HSMInitJobTimeouts Client controller.Client }
HSMDaemon implements the ability to initialize HSM Daemon based CA
type HSMInitJobTimeouts ¶
type HSMInitJobTimeouts struct { JobStart common.Duration `json:"jobStart" yaml:"jobStart"` JobCompletion common.Duration `json:"jobCompletion" yaml:"jobCompletion"` }
HSMInitJobTimeouts defines timeouts properties
type IBPCA ¶
type IBPCA interface { OverrideServerConfig(newConfig *v1.ServerConfig) (err error) ViperUnmarshal(configFile string) (*lib.ServerConfig, error) ParseCrypto() (map[string][]byte, error) ParseCABlock() (map[string][]byte, error) GetServerConfig() *v1.ServerConfig WriteConfig() (err error) RemoveHomeDir() error IsBeingUpdated() ConfigToBytes() ([]byte, error) GetHomeDir() string Init() (err error) SetMountPaths() GetType() config.Type }
type Initializer ¶
type Initializer struct { Timeouts HSMInitJobTimeouts Client k8sclient.Client Scheme *runtime.Scheme }
func (*Initializer) Create ¶
func (i *Initializer) Create(instance *current.IBPCA, overrides *v1.ServerConfig, ca IBPCA) (*Response, error)
func (*Initializer) Update ¶
func (i *Initializer) Update(instance *current.IBPCA, overrides *v1.ServerConfig, ca IBPCA) (*Response, error)
Click to show internal directories.
Click to hide internal directories.