github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/caas/kubernetes/provider/specs/secrets.go (about)

     1  // Copyright 2019 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package specs
     5  
     6  import (
     7  	core "k8s.io/api/core/v1"
     8  )
     9  
    10  // K8sSecret is a subset of v1.Secret which defines
    11  // attributes we expose for charms to set.
    12  type K8sSecret struct {
    13  	Name        string            `json:"name" yaml:"name"`
    14  	Type        core.SecretType   `json:"type" yaml:"type"`
    15  	Annotations map[string]string `json:"annotations,omitempty"`
    16  	Data        map[string]string `json:"data,omitempty" yaml:"data,omitempty"`
    17  	StringData  map[string]string `json:"stringData,omitempty" yaml:"stringData,omitempty"`
    18  }