github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/core/devices/kubernetes.go (about)

     1  // Copyright 2018 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package devices
     5  
     6  // KubernetesDeviceParams is a fully specified set of parameters for devices allocation,
     7  // derived from one or more of user-specified device constraints, a
     8  // device definition, and charm device metadata.
     9  type KubernetesDeviceParams struct {
    10  	// Type is the device type or device-class.
    11  	Type DeviceType `bson:"type"`
    12  
    13  	// Count is the number of devices that the user has asked for - count min and max are the
    14  	// number of devices the charm requires.
    15  	Count int64 `bson:"count"`
    16  
    17  	// Attributes is a collection of key value pairs device related (node affinity labels/tags etc.).
    18  	Attributes map[string]string `bson:"attributes"`
    19  }