github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/actor/v2v3action/actor.go (about) 1 // Package v2v3action contains business logic that involves both v2action 2 // and v3action 3 package v2v3action 4 5 // Warnings is a list of warnings returned back from the cloud controller 6 type Warnings []string 7 8 // Actor handles all business logic for Cloud Controller v2 and v3 operations. 9 type Actor struct { 10 V2Actor V2Actor 11 V3Actor V3Actor 12 } 13 14 // NewActor returns a new actor. 15 func NewActor(v2Actor V2Actor, v3Actor V3Actor) *Actor { 16 return &Actor{ 17 V2Actor: v2Actor, 18 V3Actor: v3Actor, 19 } 20 }