Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultKeyType = "bech32" DefaultAccountPrefix = "nibipub" DefaultConsensusPrefix = "nibivalconspub" )
View Source
const ( DefaultTmKmsImage = "ghcr.io/iqlusioninc/tmkms" DefaultTmkmsCpu = "100m" DefaultTmkmsMemory = "64Mi" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainConfig ¶
type ChainOption ¶
type ChainOption func(*ChainConfig)
func WithKeyFormat ¶
func WithKeyFormat(keyType, accountKeyPrefix, consensusKeyPrefix string) ChainOption
type Config ¶
type Config struct {
Image string `toml:"-"`
Chains []*ChainConfig `toml:"chain"`
Validators []*ValidatorConfig `toml:"validator"`
Providers map[string][]Provider `toml:"providers"`
PersistState bool `toml:"-"`
Resources corev1.ResourceRequirements `toml:"-"`
}
type HashicorpAdapter ¶
type HashicorpAdapter struct {
VaultAddress string `toml:"vault_addr"`
VaultCaCert string `toml:"vault_cacert,omitempty"`
VaultSkipVerify bool `toml:"vault_skip_verify,omitempty"`
CachePublicKey bool `toml:"cache_pk,omitempty"`
Endpoints *HashicorpEndpointsConfig `toml:"endpoints,omitempty"`
}
type HashicorpAuth ¶
type HashicorpKey ¶
type HashicorpKey struct {
ChainID string `toml:"chain_id"`
Key string `toml:"key"`
KeyType string `toml:"key_type,omitempty"`
Auth *HashicorpAuth `toml:"auth"`
}
type HashicorpProvider ¶
type HashicorpProvider struct {
Keys []*HashicorpKey `toml:"keys"`
Adapter *HashicorpAdapter `toml:"adapter"`
CertificateSecret *corev1.SecretKeySelector `toml:"-"`
TokenSecret *corev1.SecretKeySelector `toml:"-"`
AutoRenewToken bool `toml:"-"`
}
type KMS ¶
type KMS struct {
Name string
Owner metav1.Object
Client *kubernetes.Clientset
Scheme *runtime.Scheme
Config *Config
}
func (*KMS) GetContainersSpec ¶
func (*KMS) GetVolumes ¶
type Option ¶
type Option func(*Config)
func PersistState ¶
func WithChain ¶
func WithChain(chainID string, opts ...ChainOption) Option
func WithProvider ¶
func WithResources ¶
func WithResources(res corev1.ResourceRequirements) Option
func WithValidator ¶
func WithValidator(chainID, address string, opts ...ValidatorOption) Option
type ProtocolVersion ¶
type ProtocolVersion string
const ( ProtocolVersionLegacy ProtocolVersion = "legacy" ProtocolVersionV0_33 ProtocolVersion = "v0.33" ProtocolVersionV0_34 ProtocolVersion = "v0.34" )
type Provider ¶
type Provider interface {
// contains filtered or unexported methods
}
func NewHashicorpProvider ¶
func NewHashicorpProvider(chainID, address, key string, token, ca *corev1.SecretKeySelector, autoRenewToken, skipVerify bool) Provider
type ValidatorConfig ¶
type ValidatorConfig struct {
ChainID string `toml:"chain_id"`
Address string `toml:"addr"`
ProtocolVersion ProtocolVersion `toml:"protocol_version"`
Reconnect bool `toml:"reconnect"`
SecretKey string `toml:"secret_key"`
}
type ValidatorOption ¶
type ValidatorOption func(*ValidatorConfig)
func WithProtocolVersion ¶
func WithProtocolVersion(v ProtocolVersion) ValidatorOption
func WithReconnect ¶
func WithReconnect(v bool) ValidatorOption
Click to show internal directories.
Click to hide internal directories.