github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/worker/caasoperator/remotestate/snapshot.go (about) 1 // Copyright 2018 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package remotestate 5 6 import "gopkg.in/juju/charm.v6" 7 8 // Snapshot is a snapshot of the remote state of the unit. 9 type Snapshot struct { 10 // CharmModifiedVersion is increased whenever the application's charm was 11 // changed in some way. 12 CharmModifiedVersion int 13 14 // CharmURL is the charm URL that the unit is 15 // expected to run. 16 CharmURL *charm.URL 17 18 // ForceCharmUpgrade reports whether the unit 19 // should upgrade even in an error state. 20 ForceCharmUpgrade bool 21 }