import ( "github.com/codedellemc/libstorage/api/types" ) // ... ctx := &types.Context{ HostConfig: map[string]interface{}{ "Host": "localhost", "Port": 8000, }, Initiator: &types.Node{ ID: "node-1", Transport: "tcp", }, RequestInfo: &types.RequestInfo{ RequestID: "123", UserID: "user-1", UserGroups: []string{"admin"}, }, // ... }
import ( "github.com/codedellemc/libstorage/api/types" ) // ... debug := &types.Debug{ LogLevel: "info", Debug: true, Trace: true, Output: "/var/log/libstorage.log", } ctx := &types.Context{ // ... Debug: debug, }In summary, `Context` and `Debug` are both structs defined within the `github.com/codedellemc/libstorage/api/types` package. They are used to store information related to the context and debugging of volume operations, respectively.