Documentation ¶
Index ¶
- Constants
- func CreateDiscoveryJson(oidcDiscoveryFileTemplate string, oidcProviderURL string) []byte
- func GenerateJwksFromPublicKeyPem(publicKey crypto.PublicKey) []byte
- func GenerateKeypair(keySize int) ([]byte, []byte, crypto.PublicKey)
- func GenerateS3URL(bucketName string) string
- func KeyIDFromPublicKey(publicKey interface{}) string
- func WriteToFile(filepath string, content []byte, mode fs.FileMode)
- type BucketBasics
- type Discovery
- type KeyResponse
Constants ¶
View Source
const (
AWS_REGION = types.BucketLocationConstraintCaCentral1
)
Variables ¶
This section is empty.
Functions ¶
func CreateDiscoveryJson ¶
func GenerateKeypair ¶
generate SSH keypair
func GenerateS3URL ¶
func KeyIDFromPublicKey ¶
func KeyIDFromPublicKey(publicKey interface{}) string
get keyID from public key - sauce https://github.com/Azure/azure-workload-identity/blob/9893baf454a961e03ac544c42e3e30cc87998927/pkg/cmd/jwks/root.go#L180-L202
Types ¶
type BucketBasics ¶
func CreateBucketBasics ¶
func CreateBucketBasics() BucketBasics
func (BucketBasics) CreateBucket ¶
func (basics BucketBasics) CreateBucket(bucketName string)
func (BucketBasics) UploadToS3 ¶
func (basics BucketBasics) UploadToS3(bucketName string, fileName string, key string)
type Discovery ¶
type Discovery struct { Issuer string `json:"issuer"` JwksUri string `json:"jwks_uri"` AuthorizationEndpoint string `json:"authorization_endpoint"` ResponseTypesSupported []string `json:"response_types_supported"` SubjectTypesSupported []string `json:"subject_types_supported"` IdTokenSigningAlgValues []string `json:"id_token_signing_alg_values_supported"` ClaimsSupported []string `json:"claims_supported"` }
type KeyResponse ¶
type KeyResponse struct {
Keys []jose.JSONWebKey `json:"keys"`
}
Click to show internal directories.
Click to hide internal directories.