Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewWithConfig (0.15 sec)

  1. internal/kms/kes.go

    	ReloadCertEvents <-chan tls.Certificate
    
    	// RootCAs is a set of root CA certificates
    	// to verify the KMS server TLS certificate.
    	RootCAs *x509.CertPool
    }
    
    // NewWithConfig returns a new KMS using the given
    // configuration.
    func NewWithConfig(config Config, logger Logger) (KMS, error) {
    	if len(config.Endpoints) == 0 {
    		return nil, errors.New("kms: no server endpoints")
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 16 15:43:39 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  2. cmd/common-main.go

    				DefaultKeyID:     env.Get(kms.EnvKESKeyName, ""),
    				Certificate:      certificate,
    				ReloadCertEvents: reloadCertEvents,
    				RootCAs:          rootCAs,
    			}
    		}
    
    		KMS, err := kms.NewWithConfig(kmsConf, KMSLogger{})
    		if err != nil {
    			logger.Fatal(err, "Unable to initialize a connection to KES as specified by the shell environment")
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
Back to top