From 636b4120f1fa20e15f6e91a697d45d9c9c41210c Mon Sep 17 00:00:00 2001 From: Jeremy Rickard Date: Fri, 3 Aug 2018 11:57:00 -0600 Subject: [PATCH 1/7] Update dependencies to add service fabric mesh via new azure-sdk-go --- Gopkg.lock | 75 +- Gopkg.toml | 2 +- providers/vic/vic_provider.go | 2 +- .../mgmt/servicefabricmesh/models.go | 233 + .../servicefabricmesh/application.go | 439 + .../servicefabricmesh/client.go | 51 + .../servicefabricmesh/codepackage.go | 117 + .../servicefabricmesh/models.go | 1835 ++++ .../servicefabricmesh/network.go | 441 + .../servicefabricmesh/operations.go | 126 + .../servicefabricmesh/replica.go | 210 + .../servicefabricmesh/service.go | 205 + .../servicefabricmesh/version.go | 30 + .../servicefabricmesh/volume.go | 443 + .../Azure/azure-sdk-for-go/version/version.go | 2 +- .../Azure/go-autorest/autorest/adal/config.go | 8 +- .../Azure/go-autorest/autorest/adal/token.go | 417 +- .../Azure/go-autorest/autorest/azure/async.go | 1039 +- .../go-autorest/autorest/azure/auth/auth.go | 444 + .../Azure/go-autorest/autorest/azure/azure.go | 75 +- .../Azure/go-autorest/autorest/azure/rp.go | 2 +- .../Azure/go-autorest/autorest/client.go | 27 +- .../Azure/go-autorest/autorest/utility.go | 5 +- .../autorest/validation/validation.go | 23 +- .../Azure/go-autorest/autorest/version.go | 4 +- .../Azure/go-autorest/logger/logger.go | 328 + .../Azure/go-autorest/version/version.go | 37 + vendor/github.com/pborman/uuid/.travis.yml | 9 - .../github.com/pborman/uuid/CONTRIBUTING.md | 10 - vendor/github.com/pborman/uuid/README.md | 13 - .../github.com/pborman/uuid/marshal_test.go | 124 - vendor/github.com/pborman/uuid/node.go | 29 +- vendor/github.com/pborman/uuid/node_js.go | 12 - vendor/github.com/pborman/uuid/node_net.go | 36 - vendor/github.com/pborman/uuid/seq_test.go | 66 - vendor/github.com/pborman/uuid/sql_test.go | 96 - vendor/github.com/pborman/uuid/uuid_test.go | 552 -- vendor/github.com/pborman/uuid/version1.go | 4 +- vendor/github.com/vmware/vic/LICENSE | 8320 +---------------- .../github.com/vmware/vic/doc/bundle/NOTICE | 10 +- .../lib/apiservers/engine/errors/errors.go | 14 + .../apiservers/engine/proxy/archive_proxy.go | 18 +- .../engine/proxy/container_proxy.go | 247 +- .../apiservers/engine/proxy/storage_proxy.go | 213 +- .../apiservers/engine/proxy/stream_proxy.go | 183 +- .../apiservers/engine/proxy/system_proxy.go | 35 +- .../client/containers/commit_parameters.go | 22 + .../containers/container_remove_parameters.go | 22 + .../containers/container_rename_parameters.go | 22 + .../containers/container_signal_parameters.go | 22 + .../containers/container_wait_parameters.go | 22 + .../client/containers/create_parameters.go | 22 + .../get_container_info_parameters.go | 22 + .../get_container_list_parameters.go | 22 + .../get_container_logs_parameters.go | 22 + .../get_container_stats_parameters.go | 22 + .../client/containers/get_parameters.go | 22 + .../client/containers/get_state_parameters.go | 22 + .../containers/state_change_parameters.go | 22 + .../client/events/get_events_parameters.go | 32 +- .../container_close_stdin_parameters.go | 22 + .../container_get_stderr_parameters.go | 22 + .../container_get_stdout_parameters.go | 22 + .../container_resize_parameters.go | 22 + .../container_set_stdin_parameters.go | 22 + .../interaction_bind_parameters.go | 22 + .../interaction_join_parameters.go | 22 + .../interaction_unbind_parameters.go | 22 + .../client/kv/delete_value_parameters.go | 22 + .../client/kv/get_value_parameters.go | 22 + .../client/kv/put_value_parameters.go | 22 + .../client/logging/logging_bind_parameters.go | 22 + .../client/logging/logging_join_parameters.go | 22 + .../logging/logging_unbind_parameters.go | 22 + .../client/misc/get_v_c_h_info_parameters.go | 32 +- .../client/scopes/add_container_parameters.go | 22 + .../scopes/bind_container_parameters.go | 22 + .../client/scopes/create_scope_parameters.go | 22 + .../client/scopes/delete_scope_parameters.go | 22 + .../get_container_endpoints_parameters.go | 22 + .../client/scopes/list_all_parameters.go | 32 +- .../client/scopes/list_parameters.go | 22 + .../scopes/remove_container_parameters.go | 22 + .../scopes/unbind_container_parameters.go | 22 + .../storage/create_image_store_parameters.go | 22 + .../storage/create_volume_parameters.go | 22 + .../client/storage/delete_image_parameters.go | 22 + .../storage/export_archive_parameters.go | 22 + .../client/storage/get_image_parameters.go | 22 + .../storage/get_image_tar_parameters.go | 22 + .../client/storage/get_volume_parameters.go | 22 + .../client/storage/image_join_parameters.go | 22 + .../storage/import_archive_parameters.go | 22 + .../client/storage/list_images_parameters.go | 22 + .../client/storage/list_volumes_parameters.go | 22 + .../storage/remove_volume_parameters.go | 22 + .../client/storage/stat_path_parameters.go | 22 + .../client/storage/volume_join_parameters.go | 22 + .../storage/volume_stores_list_parameters.go | 32 +- .../client/storage/write_image_parameters.go | 22 + .../portlayer/client/tasks/bind_parameters.go | 22 + .../client/tasks/inspect_parameters.go | 22 + .../portlayer/client/tasks/join_parameters.go | 22 + .../client/tasks/remove_parameters.go | 22 + .../portlayer/client/tasks/tasks_client.go | 20 +- .../client/tasks/unbind_parameters.go | 22 + .../portlayer/client/tasks/wait_parameters.go | 22 + .../portlayer/client/tasks/wait_responses.go | 10 +- .../portlayer/models/task_inspect_response.go | 4 +- .../vic/lib/config/executor/container_vm.go | 5 +- .../vmware/vic/lib/constants/constants.go | 9 +- .../vmware/vic/pkg/trace/operation.go | 35 +- .../github.com/vmware/vic/pkg/trace/trace.go | 17 +- .../vic/pkg/vsphere/extraconfig/decode.go | 4 +- .../pkg/vsphere/extraconfig/decode_linux.go | 2 +- .../vic/pkg/vsphere/extraconfig/encode.go | 4 +- .../pkg/vsphere/extraconfig/encode_linux.go | 2 +- .../vic/pkg/vsphere/extraconfig/keys.go | 134 +- .../vic/pkg/vsphere/extraconfig/secret.go | 2 +- .../vmware/vic/pkg/vsphere/session/session.go | 52 +- .../golang.org/x/crypto/pkcs12/bmp-string.go | 50 + vendor/golang.org/x/crypto/pkcs12/crypto.go | 131 + vendor/golang.org/x/crypto/pkcs12/errors.go | 23 + .../x/crypto/pkcs12/internal/rc2/rc2.go | 271 + vendor/golang.org/x/crypto/pkcs12/mac.go | 45 + vendor/golang.org/x/crypto/pkcs12/pbkdf.go | 170 + vendor/golang.org/x/crypto/pkcs12/pkcs12.go | 346 + vendor/golang.org/x/crypto/pkcs12/safebags.go | 57 + .../k8s.io/apimachinery/pkg/util/uuid/BUILD | 30 - .../apiserver/pkg/server/httplog/httplog.go | 11 +- 130 files changed, 9430 insertions(+), 9975 deletions(-) create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/preview/servicefabricmesh/mgmt/servicefabricmesh/models.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/application.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/client.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/codepackage.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/models.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/network.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/operations.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/replica.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/service.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/version.go create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/volume.go create mode 100644 vendor/github.com/Azure/go-autorest/autorest/azure/auth/auth.go create mode 100644 vendor/github.com/Azure/go-autorest/logger/logger.go create mode 100644 vendor/github.com/Azure/go-autorest/version/version.go delete mode 100644 vendor/github.com/pborman/uuid/.travis.yml delete mode 100644 vendor/github.com/pborman/uuid/CONTRIBUTING.md delete mode 100644 vendor/github.com/pborman/uuid/README.md delete mode 100644 vendor/github.com/pborman/uuid/marshal_test.go delete mode 100644 vendor/github.com/pborman/uuid/node_js.go delete mode 100644 vendor/github.com/pborman/uuid/node_net.go delete mode 100644 vendor/github.com/pborman/uuid/seq_test.go delete mode 100644 vendor/github.com/pborman/uuid/sql_test.go delete mode 100644 vendor/github.com/pborman/uuid/uuid_test.go create mode 100644 vendor/golang.org/x/crypto/pkcs12/bmp-string.go create mode 100644 vendor/golang.org/x/crypto/pkcs12/crypto.go create mode 100644 vendor/golang.org/x/crypto/pkcs12/errors.go create mode 100644 vendor/golang.org/x/crypto/pkcs12/internal/rc2/rc2.go create mode 100644 vendor/golang.org/x/crypto/pkcs12/mac.go create mode 100644 vendor/golang.org/x/crypto/pkcs12/pbkdf.go create mode 100644 vendor/golang.org/x/crypto/pkcs12/pkcs12.go create mode 100644 vendor/golang.org/x/crypto/pkcs12/safebags.go delete mode 100644 vendor/k8s.io/apimachinery/pkg/util/uuid/BUILD diff --git a/Gopkg.lock b/Gopkg.lock index 7d6746289..9b7b44f90 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -4,11 +4,13 @@ [[projects]] name = "github.com/Azure/azure-sdk-for-go" packages = [ + "profiles/preview/preview/servicefabricmesh/mgmt/servicefabricmesh", "services/batch/2017-09-01.6.0/batch", + "services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh", "version" ] - revision = "51228ee60b238eaa5a9d53adc82ebd8b321bca4f" - version = "v15.1.1" + revision = "4e8cbbfb1aeab140cd0fa97fd16b64ee18c3ca6a" + version = "v19.1.0" [[projects]] branch = "master" @@ -25,12 +27,15 @@ "autorest", "autorest/adal", "autorest/azure", + "autorest/azure/auth", "autorest/date", "autorest/to", - "autorest/validation" + "autorest/validation", + "logger", + "version" ] - revision = "eaa7994b2278094c904d31993d26f56324db3052" - version = "v10.8.1" + revision = "dd94e014aaf16d1df746762e392aa201c1b4c461" + version = "v10.15.0" [[projects]] name = "github.com/BurntSushi/toml" @@ -238,6 +243,15 @@ revision = "1ee720e18fe98dceda6039bdd005ffbcb359d343" version = "v0.5.6" +[[projects]] + branch = "master" + name = "github.com/docker/spdystream" + packages = [ + ".", + "spdy" + ] + revision = "bc6354cbbc295e925e4c611ffe90c1f287ee54db" + [[projects]] branch = "master" name = "github.com/flynn/go-shlex" @@ -391,6 +405,12 @@ revision = "53c1911da2b537f792e7cafcb446b05ffe33b996" version = "v1.6.1" +[[projects]] + name = "github.com/gorilla/websocket" + packages = ["."] + revision = "ea4d1f681babbce9545c9c5f3d5194a789c89f5b" + version = "v1.2.0" + [[projects]] branch = "master" name = "github.com/hashicorp/hcl" @@ -577,6 +597,12 @@ packages = ["specs-go"] revision = "1c7c27d043c2a5e513a44084d2b10d77d1402b8c" +[[projects]] + name = "github.com/pborman/uuid" + packages = ["."] + revision = "e790cca94e6cc75c7064b1332e63811d4aae1a53" + version = "v1.1" + [[projects]] name = "github.com/pelletier/go-toml" packages = ["."] @@ -756,7 +782,7 @@ "pkg/vsphere/session", "pkg/vsphere/sys" ] - revision = "24e7742b481d328dc0d5b68c992750b7aef4550d" + revision = "0fd01769dd5f4077763f3426a830709a9e986f1e" [[projects]] branch = "master" @@ -792,6 +818,8 @@ name = "golang.org/x/crypto" packages = [ "nacl/secretbox", + "pkcs12", + "pkcs12/internal/rc2", "poly1305", "salsa20/salsa", "ssh/terminal" @@ -811,7 +839,8 @@ "internal/socks", "internal/timeseries", "proxy", - "trace" + "trace", + "websocket" ] revision = "f73e4c9ed3b7ebdd5f699a16a880c2b1994e50dd" @@ -942,6 +971,7 @@ "pkg/api/errors", "pkg/api/meta", "pkg/api/resource", + "pkg/apis/meta/internalversion", "pkg/apis/meta/v1", "pkg/apis/meta/v1/unstructured", "pkg/apis/meta/v1beta1", @@ -962,22 +992,36 @@ "pkg/util/clock", "pkg/util/errors", "pkg/util/framer", + "pkg/util/httpstream", + "pkg/util/httpstream/spdy", "pkg/util/intstr", "pkg/util/json", "pkg/util/net", + "pkg/util/remotecommand", "pkg/util/runtime", "pkg/util/sets", + "pkg/util/uuid", "pkg/util/validation", "pkg/util/validation/field", "pkg/util/wait", "pkg/util/yaml", "pkg/version", "pkg/watch", + "third_party/forked/golang/netutil", "third_party/forked/golang/reflect" ] revision = "302974c03f7e50f16561ba237db776ab93594ef6" version = "kubernetes-1.10.0" +[[projects]] + branch = "master" + name = "k8s.io/apiserver" + packages = [ + "pkg/server/httplog", + "pkg/util/wsstream" + ] + revision = "25e79651c7e569b0ebcd97affc0fe7f1ffcbee94" + [[projects]] name = "k8s.io/client-go" packages = [ @@ -1056,8 +1100,11 @@ "tools/clientcmd/api/v1", "tools/metrics", "tools/reference", + "tools/remotecommand", "transport", + "transport/spdy", "util/cert", + "util/exec", "util/flowcontrol", "util/homedir", "util/integer" @@ -1067,13 +1114,23 @@ [[projects]] name = "k8s.io/kubernetes" - packages = ["pkg/kubelet/apis/cri/runtime/v1alpha2"] + packages = [ + "pkg/apis/core", + "pkg/kubelet/apis/cri/runtime/v1alpha2", + "pkg/kubelet/server/remotecommand" + ] revision = "81753b10df112992bf51bbc2c2f85208aad78335" version = "v1.10.2" +[[projects]] + branch = "master" + name = "k8s.io/utils" + packages = ["exec"] + revision = "045dc31ee5c40e8240241ce28dc24d7b56130373" + [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "8f3ca80656c580339bc7105912693cf126c4952c476e7052cbd9de4ef73d9e75" + inputs-digest = "92f9554609e1a532f5f4a2dd5f9e77ca4a1b342f6808b9423f961ce9dfc8095d" solver-name = "gps-cdcl" solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml index d0dd2053a..f5483ca39 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -57,7 +57,7 @@ [[constraint]] name = "github.com/Azure/azure-sdk-for-go" - version = "15.1.1" + version = "19.1.0" [[constraint]] name = "github.com/lawrencegripper/pod2docker" diff --git a/providers/vic/vic_provider.go b/providers/vic/vic_provider.go index 5d170736f..75498e7d3 100644 --- a/providers/vic/vic_provider.go +++ b/providers/vic/vic_provider.go @@ -49,7 +49,7 @@ type VicProvider struct { client *client.PortLayer imageStore proxy.ImageStore isolationProxy proxy.IsolationProxy - systemProxy vicproxy.VicSystemProxy + systemProxy *vicproxy.VicSystemProxy } const ( diff --git a/vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/preview/servicefabricmesh/mgmt/servicefabricmesh/models.go b/vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/preview/servicefabricmesh/mgmt/servicefabricmesh/models.go new file mode 100644 index 000000000..5ad4704a3 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/preview/servicefabricmesh/mgmt/servicefabricmesh/models.go @@ -0,0 +1,233 @@ +// +build go1.9 + +// Copyright 2018 Microsoft Corporation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// This code was auto-generated by: +// github.com/Azure/azure-sdk-for-go/tools/profileBuilder + +package servicefabricmesh + +import original "github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh" + +type ApplicationClient = original.ApplicationClient + +const ( + DefaultBaseURI = original.DefaultBaseURI +) + +type BaseClient = original.BaseClient +type CodePackageClient = original.CodePackageClient +type ApplicationResourceStatus = original.ApplicationResourceStatus + +const ( + Creating ApplicationResourceStatus = original.Creating + Deleting ApplicationResourceStatus = original.Deleting + Failed ApplicationResourceStatus = original.Failed + Invalid ApplicationResourceStatus = original.Invalid + Ready ApplicationResourceStatus = original.Ready + Upgrading ApplicationResourceStatus = original.Upgrading +) + +type DiagnosticsSinkKind = original.DiagnosticsSinkKind + +const ( + DiagnosticsSinkKindAzureInternalMonitoringPipeline DiagnosticsSinkKind = original.DiagnosticsSinkKindAzureInternalMonitoringPipeline + DiagnosticsSinkKindInvalid DiagnosticsSinkKind = original.DiagnosticsSinkKindInvalid +) + +type HealthState = original.HealthState + +const ( + HealthStateError HealthState = original.HealthStateError + HealthStateInvalid HealthState = original.HealthStateInvalid + HealthStateOk HealthState = original.HealthStateOk + HealthStateUnknown HealthState = original.HealthStateUnknown + HealthStateWarning HealthState = original.HealthStateWarning +) + +type IngressQoSLevel = original.IngressQoSLevel + +const ( + Bronze IngressQoSLevel = original.Bronze +) + +type Kind = original.Kind + +const ( + KindAzureInternalMonitoringPipeline Kind = original.KindAzureInternalMonitoringPipeline + KindDiagnosticsSinkProperties Kind = original.KindDiagnosticsSinkProperties +) + +type OperatingSystemTypes = original.OperatingSystemTypes + +const ( + Linux OperatingSystemTypes = original.Linux + Windows OperatingSystemTypes = original.Windows +) + +type ServiceResourceStatus = original.ServiceResourceStatus + +const ( + ServiceResourceStatusActive ServiceResourceStatus = original.ServiceResourceStatusActive + ServiceResourceStatusCreating ServiceResourceStatus = original.ServiceResourceStatusCreating + ServiceResourceStatusDeleting ServiceResourceStatus = original.ServiceResourceStatusDeleting + ServiceResourceStatusFailed ServiceResourceStatus = original.ServiceResourceStatusFailed + ServiceResourceStatusUnknown ServiceResourceStatus = original.ServiceResourceStatusUnknown + ServiceResourceStatusUpgrading ServiceResourceStatus = original.ServiceResourceStatusUpgrading +) + +type ApplicationProperties = original.ApplicationProperties +type ApplicationResourceDescription = original.ApplicationResourceDescription +type ApplicationResourceDescriptionList = original.ApplicationResourceDescriptionList +type ApplicationResourceDescriptionListIterator = original.ApplicationResourceDescriptionListIterator +type ApplicationResourceDescriptionListPage = original.ApplicationResourceDescriptionListPage +type ApplicationResourceProperties = original.ApplicationResourceProperties +type AvailableOperationDisplay = original.AvailableOperationDisplay +type AzureInternalMonitoringPipelineSinkDescription = original.AzureInternalMonitoringPipelineSinkDescription +type ContainerCodePackageProperties = original.ContainerCodePackageProperties +type ContainerEvent = original.ContainerEvent +type ContainerInstanceView = original.ContainerInstanceView +type ContainerLabel = original.ContainerLabel +type ContainerLogs = original.ContainerLogs +type ContainerState = original.ContainerState +type ContainerVolume = original.ContainerVolume +type DiagnosticsDescription = original.DiagnosticsDescription +type DiagnosticsRef = original.DiagnosticsRef +type BasicDiagnosticsSinkProperties = original.BasicDiagnosticsSinkProperties +type DiagnosticsSinkProperties = original.DiagnosticsSinkProperties +type EndpointProperties = original.EndpointProperties +type EnvironmentVariable = original.EnvironmentVariable +type ErrorModel = original.ErrorModel +type ImageRegistryCredential = original.ImageRegistryCredential +type IngressConfig = original.IngressConfig +type Layer4IngressConfig = original.Layer4IngressConfig +type ManagedProxyResource = original.ManagedProxyResource +type NetworkProperties = original.NetworkProperties +type NetworkRef = original.NetworkRef +type NetworkResourceDescription = original.NetworkResourceDescription +type NetworkResourceDescriptionList = original.NetworkResourceDescriptionList +type NetworkResourceDescriptionListIterator = original.NetworkResourceDescriptionListIterator +type NetworkResourceDescriptionListPage = original.NetworkResourceDescriptionListPage +type NetworkResourceProperties = original.NetworkResourceProperties +type OperationListResult = original.OperationListResult +type OperationListResultIterator = original.OperationListResultIterator +type OperationListResultPage = original.OperationListResultPage +type OperationResult = original.OperationResult +type ProvisionedResourceProperties = original.ProvisionedResourceProperties +type ProxyResource = original.ProxyResource +type Resource = original.Resource +type ResourceLimits = original.ResourceLimits +type ResourceRequests = original.ResourceRequests +type ResourceRequirements = original.ResourceRequirements +type ServiceList = original.ServiceList +type ServiceListIterator = original.ServiceListIterator +type ServiceListPage = original.ServiceListPage +type ServiceReplicaDescription = original.ServiceReplicaDescription +type ServiceReplicaList = original.ServiceReplicaList +type ServiceReplicaListIterator = original.ServiceReplicaListIterator +type ServiceReplicaListPage = original.ServiceReplicaListPage +type ServiceReplicaProperties = original.ServiceReplicaProperties +type ServiceResourceDescription = original.ServiceResourceDescription +type ServiceResourceProperties = original.ServiceResourceProperties +type Setting = original.Setting +type TrackedResource = original.TrackedResource +type VolumeProperties = original.VolumeProperties +type VolumeProviderParametersAzureFile = original.VolumeProviderParametersAzureFile +type VolumeResourceDescription = original.VolumeResourceDescription +type VolumeResourceDescriptionList = original.VolumeResourceDescriptionList +type VolumeResourceDescriptionListIterator = original.VolumeResourceDescriptionListIterator +type VolumeResourceDescriptionListPage = original.VolumeResourceDescriptionListPage +type VolumeResourceProperties = original.VolumeResourceProperties +type NetworkClient = original.NetworkClient +type OperationsClient = original.OperationsClient +type ReplicaClient = original.ReplicaClient +type ServiceClient = original.ServiceClient +type VolumeClient = original.VolumeClient + +func NewApplicationClient(subscriptionID string) ApplicationClient { + return original.NewApplicationClient(subscriptionID) +} +func NewApplicationClientWithBaseURI(baseURI string, subscriptionID string) ApplicationClient { + return original.NewApplicationClientWithBaseURI(baseURI, subscriptionID) +} +func New(subscriptionID string) BaseClient { + return original.New(subscriptionID) +} +func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { + return original.NewWithBaseURI(baseURI, subscriptionID) +} +func NewCodePackageClient(subscriptionID string) CodePackageClient { + return original.NewCodePackageClient(subscriptionID) +} +func NewCodePackageClientWithBaseURI(baseURI string, subscriptionID string) CodePackageClient { + return original.NewCodePackageClientWithBaseURI(baseURI, subscriptionID) +} +func PossibleApplicationResourceStatusValues() []ApplicationResourceStatus { + return original.PossibleApplicationResourceStatusValues() +} +func PossibleDiagnosticsSinkKindValues() []DiagnosticsSinkKind { + return original.PossibleDiagnosticsSinkKindValues() +} +func PossibleHealthStateValues() []HealthState { + return original.PossibleHealthStateValues() +} +func PossibleIngressQoSLevelValues() []IngressQoSLevel { + return original.PossibleIngressQoSLevelValues() +} +func PossibleKindValues() []Kind { + return original.PossibleKindValues() +} +func PossibleOperatingSystemTypesValues() []OperatingSystemTypes { + return original.PossibleOperatingSystemTypesValues() +} +func PossibleServiceResourceStatusValues() []ServiceResourceStatus { + return original.PossibleServiceResourceStatusValues() +} +func NewNetworkClient(subscriptionID string) NetworkClient { + return original.NewNetworkClient(subscriptionID) +} +func NewNetworkClientWithBaseURI(baseURI string, subscriptionID string) NetworkClient { + return original.NewNetworkClientWithBaseURI(baseURI, subscriptionID) +} +func NewOperationsClient(subscriptionID string) OperationsClient { + return original.NewOperationsClient(subscriptionID) +} +func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { + return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID) +} +func NewReplicaClient(subscriptionID string) ReplicaClient { + return original.NewReplicaClient(subscriptionID) +} +func NewReplicaClientWithBaseURI(baseURI string, subscriptionID string) ReplicaClient { + return original.NewReplicaClientWithBaseURI(baseURI, subscriptionID) +} +func NewServiceClient(subscriptionID string) ServiceClient { + return original.NewServiceClient(subscriptionID) +} +func NewServiceClientWithBaseURI(baseURI string, subscriptionID string) ServiceClient { + return original.NewServiceClientWithBaseURI(baseURI, subscriptionID) +} +func UserAgent() string { + return original.UserAgent() + " profiles/preview" +} +func Version() string { + return original.Version() +} +func NewVolumeClient(subscriptionID string) VolumeClient { + return original.NewVolumeClient(subscriptionID) +} +func NewVolumeClientWithBaseURI(baseURI string, subscriptionID string) VolumeClient { + return original.NewVolumeClientWithBaseURI(baseURI, subscriptionID) +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/application.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/application.go new file mode 100644 index 000000000..2f362a40c --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/application.go @@ -0,0 +1,439 @@ +package servicefabricmesh + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "net/http" +) + +// ApplicationClient is the service Fabric Mesh Management Client +type ApplicationClient struct { + BaseClient +} + +// NewApplicationClient creates an instance of the ApplicationClient client. +func NewApplicationClient(subscriptionID string) ApplicationClient { + return NewApplicationClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewApplicationClientWithBaseURI creates an instance of the ApplicationClient client. +func NewApplicationClientWithBaseURI(baseURI string, subscriptionID string) ApplicationClient { + return ApplicationClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Create creates an application resource with the specified name and description. If an application with the same name +// already exists, then its description is updated to the one indicated in this request. +// +// Use network resources to provide public connectivity to the services of an application. +// Parameters: +// resourceGroupName - azure resource group name +// applicationName - the identity of the application. +// applicationResourceDescription - description for creating an application resource. +func (client ApplicationClient) Create(ctx context.Context, resourceGroupName string, applicationName string, applicationResourceDescription ApplicationResourceDescription) (result ApplicationResourceDescription, err error) { + if err := validation.Validate([]validation.Validation{ + {TargetValue: applicationResourceDescription, + Constraints: []validation.Constraint{{Target: "applicationResourceDescription.ApplicationResourceProperties", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("servicefabricmesh.ApplicationClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, applicationName, applicationResourceDescription) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "Create", nil, "Failure preparing request") + return + } + + resp, err := client.CreateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "Create", resp, "Failure sending request") + return + } + + result, err = client.CreateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "Create", resp, "Failure responding to request") + } + + return +} + +// CreatePreparer prepares the Create request. +func (client ApplicationClient) CreatePreparer(ctx context.Context, resourceGroupName string, applicationName string, applicationResourceDescription ApplicationResourceDescription) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationName": applicationName, + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationName}", pathParameters), + autorest.WithJSON(applicationResourceDescription), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationClient) CreateSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client ApplicationClient) CreateResponder(resp *http.Response) (result ApplicationResourceDescription, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the application resource identified by the name. +// Parameters: +// resourceGroupName - azure resource group name +// applicationName - the identity of the application. +func (client ApplicationClient) Delete(ctx context.Context, resourceGroupName string, applicationName string) (result autorest.Response, err error) { + req, err := client.DeletePreparer(ctx, resourceGroupName, applicationName) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "Delete", resp, "Failure responding to request") + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client ApplicationClient) DeletePreparer(ctx context.Context, resourceGroupName string, applicationName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationName": applicationName, + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationClient) DeleteSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client ApplicationClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the information about the application resource with a given name. The information includes the information +// about the application's services and other runtime properties. +// Parameters: +// resourceGroupName - azure resource group name +// applicationName - the identity of the application. +func (client ApplicationClient) Get(ctx context.Context, resourceGroupName string, applicationName string) (result ApplicationResourceDescription, err error) { + req, err := client.GetPreparer(ctx, resourceGroupName, applicationName) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client ApplicationClient) GetPreparer(ctx context.Context, resourceGroupName string, applicationName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationName": applicationName, + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ApplicationClient) GetResponder(resp *http.Response) (result ApplicationResourceDescription, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByResourceGroup gets the information about all application resources in a given resource group. The information +// includes the information about the application's services and other runtime properties. +// Parameters: +// resourceGroupName - azure resource group name +func (client ApplicationClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ApplicationResourceDescriptionListPage, err error) { + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.ardl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.ardl, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "ListByResourceGroup", resp, "Failure responding to request") + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client ApplicationClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client ApplicationClient) ListByResourceGroupResponder(resp *http.Response) (result ApplicationResourceDescriptionList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client ApplicationClient) listByResourceGroupNextResults(lastResults ApplicationResourceDescriptionList) (result ApplicationResourceDescriptionList, err error) { + req, err := lastResults.applicationResourceDescriptionListPreparer() + if err != nil { + return result, autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client ApplicationClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ApplicationResourceDescriptionListIterator, err error) { + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// ListBySubscription gets the information about all application resources in a given subscription. The information +// includes the information about the application's services and other runtime properties. +func (client ApplicationClient) ListBySubscription(ctx context.Context) (result ApplicationResourceDescriptionListPage, err error) { + result.fn = client.listBySubscriptionNextResults + req, err := client.ListBySubscriptionPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "ListBySubscription", nil, "Failure preparing request") + return + } + + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.ardl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "ListBySubscription", resp, "Failure sending request") + return + } + + result.ardl, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "ListBySubscription", resp, "Failure responding to request") + } + + return +} + +// ListBySubscriptionPreparer prepares the ListBySubscription request. +func (client ApplicationClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabricMesh/applications", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListBySubscriptionSender sends the ListBySubscription request. The method will close the +// http.Response Body if it receives an error. +func (client ApplicationClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always +// closes the http.Response Body. +func (client ApplicationClient) ListBySubscriptionResponder(resp *http.Response) (result ApplicationResourceDescriptionList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listBySubscriptionNextResults retrieves the next set of results, if any. +func (client ApplicationClient) listBySubscriptionNextResults(lastResults ApplicationResourceDescriptionList) (result ApplicationResourceDescriptionList, err error) { + req, err := lastResults.applicationResourceDescriptionListPreparer() + if err != nil { + return result, autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "listBySubscriptionNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "listBySubscriptionNextResults", resp, "Failure sending next results request") + } + result, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ApplicationClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required. +func (client ApplicationClient) ListBySubscriptionComplete(ctx context.Context) (result ApplicationResourceDescriptionListIterator, err error) { + result.page, err = client.ListBySubscription(ctx) + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/client.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/client.go new file mode 100644 index 000000000..b854fb79d --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/client.go @@ -0,0 +1,51 @@ +// Package servicefabricmesh implements the Azure ARM Servicefabricmesh service API version 2018-07-01-preview. +// +// Service Fabric Mesh Management Client +package servicefabricmesh + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/Azure/go-autorest/autorest" +) + +const ( + // DefaultBaseURI is the default URI used for the service Servicefabricmesh + DefaultBaseURI = "https://management.azure.com" +) + +// BaseClient is the base client for Servicefabricmesh. +type BaseClient struct { + autorest.Client + BaseURI string + SubscriptionID string +} + +// New creates an instance of the BaseClient client. +func New(subscriptionID string) BaseClient { + return NewWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewWithBaseURI creates an instance of the BaseClient client. +func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { + return BaseClient{ + Client: autorest.NewClientWithUserAgent(UserAgent()), + BaseURI: baseURI, + SubscriptionID: subscriptionID, + } +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/codepackage.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/codepackage.go new file mode 100644 index 000000000..70eec946f --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/codepackage.go @@ -0,0 +1,117 @@ +package servicefabricmesh + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "net/http" +) + +// CodePackageClient is the service Fabric Mesh Management Client +type CodePackageClient struct { + BaseClient +} + +// NewCodePackageClient creates an instance of the CodePackageClient client. +func NewCodePackageClient(subscriptionID string) CodePackageClient { + return NewCodePackageClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewCodePackageClientWithBaseURI creates an instance of the CodePackageClient client. +func NewCodePackageClientWithBaseURI(baseURI string, subscriptionID string) CodePackageClient { + return CodePackageClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// GetContainerLog get the logs for the container of a given code package of an application. +// Parameters: +// resourceGroupName - azure resource group name +// applicationName - the identity of the application. +// serviceName - the identity of the service. +// replicaName - the identity of the service replica. +// codePackageName - the name of the code package. +// tail - number of lines to show from the end of the logs. Default is 100. +func (client CodePackageClient) GetContainerLog(ctx context.Context, resourceGroupName string, applicationName string, serviceName string, replicaName string, codePackageName string, tail *int32) (result ContainerLogs, err error) { + req, err := client.GetContainerLogPreparer(ctx, resourceGroupName, applicationName, serviceName, replicaName, codePackageName, tail) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.CodePackageClient", "GetContainerLog", nil, "Failure preparing request") + return + } + + resp, err := client.GetContainerLogSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicefabricmesh.CodePackageClient", "GetContainerLog", resp, "Failure sending request") + return + } + + result, err = client.GetContainerLogResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.CodePackageClient", "GetContainerLog", resp, "Failure responding to request") + } + + return +} + +// GetContainerLogPreparer prepares the GetContainerLog request. +func (client CodePackageClient) GetContainerLogPreparer(ctx context.Context, resourceGroupName string, applicationName string, serviceName string, replicaName string, codePackageName string, tail *int32) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationName": applicationName, + "codePackageName": codePackageName, + "replicaName": replicaName, + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": serviceName, + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + if tail != nil { + queryParameters["tail"] = autorest.Encode("query", *tail) + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationName}/services/{serviceName}/replicas/{replicaName}/codePackages/{codePackageName}/logs", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetContainerLogSender sends the GetContainerLog request. The method will close the +// http.Response Body if it receives an error. +func (client CodePackageClient) GetContainerLogSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetContainerLogResponder handles the response to the GetContainerLog request. The method always +// closes the http.Response Body. +func (client CodePackageClient) GetContainerLogResponder(resp *http.Response) (result ContainerLogs, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/models.go new file mode 100644 index 000000000..95f1cc8d7 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/models.go @@ -0,0 +1,1835 @@ +package servicefabricmesh + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "encoding/json" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/date" + "github.com/Azure/go-autorest/autorest/to" + "net/http" +) + +// ApplicationResourceStatus enumerates the values for application resource status. +type ApplicationResourceStatus string + +const ( + // Creating ... + Creating ApplicationResourceStatus = "Creating" + // Deleting ... + Deleting ApplicationResourceStatus = "Deleting" + // Failed ... + Failed ApplicationResourceStatus = "Failed" + // Invalid ... + Invalid ApplicationResourceStatus = "Invalid" + // Ready ... + Ready ApplicationResourceStatus = "Ready" + // Upgrading ... + Upgrading ApplicationResourceStatus = "Upgrading" +) + +// PossibleApplicationResourceStatusValues returns an array of possible values for the ApplicationResourceStatus const type. +func PossibleApplicationResourceStatusValues() []ApplicationResourceStatus { + return []ApplicationResourceStatus{Creating, Deleting, Failed, Invalid, Ready, Upgrading} +} + +// DiagnosticsSinkKind enumerates the values for diagnostics sink kind. +type DiagnosticsSinkKind string + +const ( + // DiagnosticsSinkKindAzureInternalMonitoringPipeline Diagnostics settings for Geneva. + DiagnosticsSinkKindAzureInternalMonitoringPipeline DiagnosticsSinkKind = "AzureInternalMonitoringPipeline" + // DiagnosticsSinkKindInvalid Indicates an invalid sink kind. All Service Fabric enumerations have the + // invalid type. + DiagnosticsSinkKindInvalid DiagnosticsSinkKind = "Invalid" +) + +// PossibleDiagnosticsSinkKindValues returns an array of possible values for the DiagnosticsSinkKind const type. +func PossibleDiagnosticsSinkKindValues() []DiagnosticsSinkKind { + return []DiagnosticsSinkKind{DiagnosticsSinkKindAzureInternalMonitoringPipeline, DiagnosticsSinkKindInvalid} +} + +// HealthState enumerates the values for health state. +type HealthState string + +const ( + // HealthStateError Indicates the health state is at an error level. Error health state should be + // investigated, as they can impact the correct functionality of the cluster. The value is 3. + HealthStateError HealthState = "Error" + // HealthStateInvalid Indicates an invalid health state. All Service Fabric enumerations have the invalid + // type. The value is zero. + HealthStateInvalid HealthState = "Invalid" + // HealthStateOk Indicates the health state is okay. The value is 1. + HealthStateOk HealthState = "Ok" + // HealthStateUnknown Indicates an unknown health status. The value is 65535. + HealthStateUnknown HealthState = "Unknown" + // HealthStateWarning Indicates the health state is at a warning level. The value is 2. + HealthStateWarning HealthState = "Warning" +) + +// PossibleHealthStateValues returns an array of possible values for the HealthState const type. +func PossibleHealthStateValues() []HealthState { + return []HealthState{HealthStateError, HealthStateInvalid, HealthStateOk, HealthStateUnknown, HealthStateWarning} +} + +// IngressQoSLevel enumerates the values for ingress qo s level. +type IngressQoSLevel string + +const ( + // Bronze ... + Bronze IngressQoSLevel = "Bronze" +) + +// PossibleIngressQoSLevelValues returns an array of possible values for the IngressQoSLevel const type. +func PossibleIngressQoSLevelValues() []IngressQoSLevel { + return []IngressQoSLevel{Bronze} +} + +// Kind enumerates the values for kind. +type Kind string + +const ( + // KindAzureInternalMonitoringPipeline ... + KindAzureInternalMonitoringPipeline Kind = "AzureInternalMonitoringPipeline" + // KindDiagnosticsSinkProperties ... + KindDiagnosticsSinkProperties Kind = "DiagnosticsSinkProperties" +) + +// PossibleKindValues returns an array of possible values for the Kind const type. +func PossibleKindValues() []Kind { + return []Kind{KindAzureInternalMonitoringPipeline, KindDiagnosticsSinkProperties} +} + +// OperatingSystemTypes enumerates the values for operating system types. +type OperatingSystemTypes string + +const ( + // Linux ... + Linux OperatingSystemTypes = "Linux" + // Windows ... + Windows OperatingSystemTypes = "Windows" +) + +// PossibleOperatingSystemTypesValues returns an array of possible values for the OperatingSystemTypes const type. +func PossibleOperatingSystemTypesValues() []OperatingSystemTypes { + return []OperatingSystemTypes{Linux, Windows} +} + +// ServiceResourceStatus enumerates the values for service resource status. +type ServiceResourceStatus string + +const ( + // ServiceResourceStatusActive ... + ServiceResourceStatusActive ServiceResourceStatus = "Active" + // ServiceResourceStatusCreating ... + ServiceResourceStatusCreating ServiceResourceStatus = "Creating" + // ServiceResourceStatusDeleting ... + ServiceResourceStatusDeleting ServiceResourceStatus = "Deleting" + // ServiceResourceStatusFailed ... + ServiceResourceStatusFailed ServiceResourceStatus = "Failed" + // ServiceResourceStatusUnknown ... + ServiceResourceStatusUnknown ServiceResourceStatus = "Unknown" + // ServiceResourceStatusUpgrading ... + ServiceResourceStatusUpgrading ServiceResourceStatus = "Upgrading" +) + +// PossibleServiceResourceStatusValues returns an array of possible values for the ServiceResourceStatus const type. +func PossibleServiceResourceStatusValues() []ServiceResourceStatus { + return []ServiceResourceStatus{ServiceResourceStatusActive, ServiceResourceStatusCreating, ServiceResourceStatusDeleting, ServiceResourceStatusFailed, ServiceResourceStatusUnknown, ServiceResourceStatusUpgrading} +} + +// ApplicationProperties this type describes properties of an application resource. +type ApplicationProperties struct { + // Description - User readable description of the application. + Description *string `json:"description,omitempty"` + // DebugParams - Internal use. + DebugParams *string `json:"debugParams,omitempty"` + // Services - describes the services in the application. + Services *[]ServiceResourceDescription `json:"services,omitempty"` + // HealthState - Describes the health state of an application resource. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' + HealthState HealthState `json:"healthState,omitempty"` + // UnhealthyEvaluation - When the application's health state is not 'Ok', this additional details from service fabric Health Manager for the user to know why the application is marked unhealthy. + UnhealthyEvaluation *string `json:"unhealthyEvaluation,omitempty"` + // Status - Status of the application resource. Possible values include: 'Invalid', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + Status ApplicationResourceStatus `json:"status,omitempty"` + // StatusDetails - Gives additional information about the current status of the application deployment. + StatusDetails *string `json:"statusDetails,omitempty"` + // ServiceNames - Names of the services in the application. + ServiceNames *[]string `json:"serviceNames,omitempty"` + // Diagnostics - Describes the diagnostics definition and usage for an application resource. + Diagnostics *DiagnosticsDescription `json:"diagnostics,omitempty"` +} + +// ApplicationResourceDescription this type describes an application resource. +type ApplicationResourceDescription struct { + autorest.Response `json:"-"` + // ApplicationResourceProperties - This type describes properties of an application resource. + *ApplicationResourceProperties `json:"properties,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ID - Fully qualified identifier for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - The name of the resource + Name *string `json:"name,omitempty"` + // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type *string `json:"type,omitempty"` + // Location - The geo-location where the resource lives + Location *string `json:"location,omitempty"` +} + +// MarshalJSON is the custom marshaler for ApplicationResourceDescription. +func (ard ApplicationResourceDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ard.ApplicationResourceProperties != nil { + objectMap["properties"] = ard.ApplicationResourceProperties + } + if ard.Tags != nil { + objectMap["tags"] = ard.Tags + } + if ard.ID != nil { + objectMap["id"] = ard.ID + } + if ard.Name != nil { + objectMap["name"] = ard.Name + } + if ard.Type != nil { + objectMap["type"] = ard.Type + } + if ard.Location != nil { + objectMap["location"] = ard.Location + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ApplicationResourceDescription struct. +func (ard *ApplicationResourceDescription) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var applicationResourceProperties ApplicationResourceProperties + err = json.Unmarshal(*v, &applicationResourceProperties) + if err != nil { + return err + } + ard.ApplicationResourceProperties = &applicationResourceProperties + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + ard.Tags = tags + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + ard.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ard.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ard.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + ard.Location = &location + } + } + } + + return nil +} + +// ApplicationResourceDescriptionList a pageable list of application resources. +type ApplicationResourceDescriptionList struct { + autorest.Response `json:"-"` + // Value - One page of the list. + Value *[]ApplicationResourceDescription `json:"value,omitempty"` + // NextLink - URI to fetch the next page of the list. + NextLink *string `json:"nextLink,omitempty"` +} + +// ApplicationResourceDescriptionListIterator provides access to a complete listing of +// ApplicationResourceDescription values. +type ApplicationResourceDescriptionListIterator struct { + i int + page ApplicationResourceDescriptionListPage +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ApplicationResourceDescriptionListIterator) Next() error { + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err := iter.page.Next() + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ApplicationResourceDescriptionListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ApplicationResourceDescriptionListIterator) Response() ApplicationResourceDescriptionList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ApplicationResourceDescriptionListIterator) Value() ApplicationResourceDescription { + if !iter.page.NotDone() { + return ApplicationResourceDescription{} + } + return iter.page.Values()[iter.i] +} + +// IsEmpty returns true if the ListResult contains no values. +func (ardl ApplicationResourceDescriptionList) IsEmpty() bool { + return ardl.Value == nil || len(*ardl.Value) == 0 +} + +// applicationResourceDescriptionListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (ardl ApplicationResourceDescriptionList) applicationResourceDescriptionListPreparer() (*http.Request, error) { + if ardl.NextLink == nil || len(to.String(ardl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare(&http.Request{}, + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(ardl.NextLink))) +} + +// ApplicationResourceDescriptionListPage contains a page of ApplicationResourceDescription values. +type ApplicationResourceDescriptionListPage struct { + fn func(ApplicationResourceDescriptionList) (ApplicationResourceDescriptionList, error) + ardl ApplicationResourceDescriptionList +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ApplicationResourceDescriptionListPage) Next() error { + next, err := page.fn(page.ardl) + if err != nil { + return err + } + page.ardl = next + return nil +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ApplicationResourceDescriptionListPage) NotDone() bool { + return !page.ardl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ApplicationResourceDescriptionListPage) Response() ApplicationResourceDescriptionList { + return page.ardl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ApplicationResourceDescriptionListPage) Values() []ApplicationResourceDescription { + if page.ardl.IsEmpty() { + return nil + } + return *page.ardl.Value +} + +// ApplicationResourceProperties this type describes properties of an application resource. +type ApplicationResourceProperties struct { + // ProvisioningState - State of the resource. + ProvisioningState *string `json:"provisioningState,omitempty"` + // Description - User readable description of the application. + Description *string `json:"description,omitempty"` + // DebugParams - Internal use. + DebugParams *string `json:"debugParams,omitempty"` + // Services - describes the services in the application. + Services *[]ServiceResourceDescription `json:"services,omitempty"` + // HealthState - Describes the health state of an application resource. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' + HealthState HealthState `json:"healthState,omitempty"` + // UnhealthyEvaluation - When the application's health state is not 'Ok', this additional details from service fabric Health Manager for the user to know why the application is marked unhealthy. + UnhealthyEvaluation *string `json:"unhealthyEvaluation,omitempty"` + // Status - Status of the application resource. Possible values include: 'Invalid', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + Status ApplicationResourceStatus `json:"status,omitempty"` + // StatusDetails - Gives additional information about the current status of the application deployment. + StatusDetails *string `json:"statusDetails,omitempty"` + // ServiceNames - Names of the services in the application. + ServiceNames *[]string `json:"serviceNames,omitempty"` + // Diagnostics - Describes the diagnostics definition and usage for an application resource. + Diagnostics *DiagnosticsDescription `json:"diagnostics,omitempty"` +} + +// AvailableOperationDisplay an operation available at the listed Azure resource provider. +type AvailableOperationDisplay struct { + // Provider - Name of the operation provider. + Provider *string `json:"provider,omitempty"` + // Resource - Name of the resource on which the operation is available. + Resource *string `json:"resource,omitempty"` + // Operation - Name of the available operation. + Operation *string `json:"operation,omitempty"` + // Description - Description of the available operation. + Description *string `json:"description,omitempty"` +} + +// AzureInternalMonitoringPipelineSinkDescription diagnostics settings for Geneva. +type AzureInternalMonitoringPipelineSinkDescription struct { + // AccountName - Azure Internal monitoring pipeline account. + AccountName *string `json:"accountName,omitempty"` + // Namespace - Azure Internal monitoring pipeline account namespace. + Namespace *string `json:"namespace,omitempty"` + // MaConfigURL - Azure Internal monitoring agent configuration. + MaConfigURL *string `json:"maConfigUrl,omitempty"` + // FluentdConfigURL - Azure Internal monitoring agent fluentd configuration. + FluentdConfigURL interface{} `json:"fluentdConfigUrl,omitempty"` + // AutoKeyConfigURL - Azure Internal monitoring pipeline autokey associated with the certificate. + AutoKeyConfigURL *string `json:"autoKeyConfigUrl,omitempty"` + // Name - Name of the sink. This value is referenced by DiagnosticsReferenceDescription + Name *string `json:"name,omitempty"` + // Description - A description of the sink. + Description *string `json:"description,omitempty"` + // Kind - Possible values include: 'KindDiagnosticsSinkProperties', 'KindAzureInternalMonitoringPipeline' + Kind Kind `json:"kind,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureInternalMonitoringPipelineSinkDescription. +func (aimpsd AzureInternalMonitoringPipelineSinkDescription) MarshalJSON() ([]byte, error) { + aimpsd.Kind = KindAzureInternalMonitoringPipeline + objectMap := make(map[string]interface{}) + if aimpsd.AccountName != nil { + objectMap["accountName"] = aimpsd.AccountName + } + if aimpsd.Namespace != nil { + objectMap["namespace"] = aimpsd.Namespace + } + if aimpsd.MaConfigURL != nil { + objectMap["maConfigUrl"] = aimpsd.MaConfigURL + } + objectMap["fluentdConfigUrl"] = aimpsd.FluentdConfigURL + if aimpsd.AutoKeyConfigURL != nil { + objectMap["autoKeyConfigUrl"] = aimpsd.AutoKeyConfigURL + } + if aimpsd.Name != nil { + objectMap["name"] = aimpsd.Name + } + if aimpsd.Description != nil { + objectMap["description"] = aimpsd.Description + } + if aimpsd.Kind != "" { + objectMap["kind"] = aimpsd.Kind + } + return json.Marshal(objectMap) +} + +// AsAzureInternalMonitoringPipelineSinkDescription is the BasicDiagnosticsSinkProperties implementation for AzureInternalMonitoringPipelineSinkDescription. +func (aimpsd AzureInternalMonitoringPipelineSinkDescription) AsAzureInternalMonitoringPipelineSinkDescription() (*AzureInternalMonitoringPipelineSinkDescription, bool) { + return &aimpsd, true +} + +// AsDiagnosticsSinkProperties is the BasicDiagnosticsSinkProperties implementation for AzureInternalMonitoringPipelineSinkDescription. +func (aimpsd AzureInternalMonitoringPipelineSinkDescription) AsDiagnosticsSinkProperties() (*DiagnosticsSinkProperties, bool) { + return nil, false +} + +// AsBasicDiagnosticsSinkProperties is the BasicDiagnosticsSinkProperties implementation for AzureInternalMonitoringPipelineSinkDescription. +func (aimpsd AzureInternalMonitoringPipelineSinkDescription) AsBasicDiagnosticsSinkProperties() (BasicDiagnosticsSinkProperties, bool) { + return &aimpsd, true +} + +// ContainerCodePackageProperties describes a container and its runtime properties. +type ContainerCodePackageProperties struct { + // Name - The name of the code package. + Name *string `json:"name,omitempty"` + // Image - The Container image to use. + Image *string `json:"image,omitempty"` + // ImageRegistryCredential - Image registry credential. + ImageRegistryCredential *ImageRegistryCredential `json:"imageRegistryCredential,omitempty"` + // Entrypoint - Override for the default entry point in the container. + Entrypoint *string `json:"entrypoint,omitempty"` + // Commands - Command array to execute within the container in exec form. + Commands *[]string `json:"commands,omitempty"` + // EnvironmentVariables - The environment variables to set in this container + EnvironmentVariables *[]EnvironmentVariable `json:"environmentVariables,omitempty"` + // Settings - The settings to set in this container. The setting file path can be fetched from environment variable "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The path for Linux container is "/var/secrets". + Settings *[]Setting `json:"settings,omitempty"` + // Labels - The labels to set in this container. + Labels *[]ContainerLabel `json:"labels,omitempty"` + // Endpoints - The endpoints exposed by this container. + Endpoints *[]EndpointProperties `json:"endpoints,omitempty"` + // Resources - This type describes the resource requirements for a container or a service. + Resources *ResourceRequirements `json:"resources,omitempty"` + // VolumeRefs - The volumes to be attached to the container. + VolumeRefs *[]ContainerVolume `json:"volumeRefs,omitempty"` + // InstanceView - Runtime information of a container instance. + InstanceView *ContainerInstanceView `json:"instanceView,omitempty"` + // Diagnostics - Reference to sinks in DiagnosticsDescription. + Diagnostics *DiagnosticsRef `json:"diagnostics,omitempty"` +} + +// ContainerEvent a container event. +type ContainerEvent struct { + // Name - The name of the container event. + Name *string `json:"name,omitempty"` + // Count - The count of the event. + Count *int32 `json:"count,omitempty"` + // FirstTimestamp - Date/time of the first event. + FirstTimestamp *string `json:"firstTimestamp,omitempty"` + // LastTimestamp - Date/time of the last event. + LastTimestamp *string `json:"lastTimestamp,omitempty"` + // Message - The event message + Message *string `json:"message,omitempty"` + // Type - The event type. + Type *string `json:"type,omitempty"` +} + +// ContainerInstanceView runtime information of a container instance. +type ContainerInstanceView struct { + // RestartCount - The number of times the container has been restarted. + RestartCount *int32 `json:"restartCount,omitempty"` + // CurrentState - Current container instance state. + CurrentState *ContainerState `json:"currentState,omitempty"` + // PreviousState - Previous container instance state. + PreviousState *ContainerState `json:"previousState,omitempty"` + // Events - The events of this container instance. + Events *[]ContainerEvent `json:"events,omitempty"` +} + +// ContainerLabel describes a container label. +type ContainerLabel struct { + // Name - The name of the container label. + Name *string `json:"name,omitempty"` + // Value - The value of the container label. + Value *string `json:"value,omitempty"` +} + +// ContainerLogs the logs of the container. +type ContainerLogs struct { + autorest.Response `json:"-"` + // Content - content of the log. + Content *string `json:"content,omitempty"` +} + +// ContainerState the container state. +type ContainerState struct { + // State - The state of this container + State *string `json:"state,omitempty"` + // StartTime - Date/time when the container state started. + StartTime *date.Time `json:"startTime,omitempty"` + // ExitCode - The container exit code. + ExitCode *string `json:"exitCode,omitempty"` + // FinishTime - Date/time when the container state finished. + FinishTime *date.Time `json:"finishTime,omitempty"` + // DetailStatus - Human-readable status of this state. + DetailStatus *string `json:"detailStatus,omitempty"` +} + +// ContainerVolume describes how a volume is attached to a container. +type ContainerVolume struct { + // Name - Name of the volume. + Name *string `json:"name,omitempty"` + // ReadOnly - The flag indicating whether the volume is read only. Default is 'false'. + ReadOnly *bool `json:"readOnly,omitempty"` + // DestinationPath - The path within the container at which the volume should be mounted. Only valid path characters are allowed. + DestinationPath *string `json:"destinationPath,omitempty"` +} + +// DiagnosticsDescription describes the diagnostics options available +type DiagnosticsDescription struct { + // Sinks - List of supported sinks that can be referenced. + Sinks *[]BasicDiagnosticsSinkProperties `json:"sinks,omitempty"` + // Enabled - Status of whether or not sinks are enabled. + Enabled *bool `json:"enabled,omitempty"` + // DefaultSinkRefs - The sinks to be used if diagnostics is enabled. Sink choices can be overridden at the service and code package level. + DefaultSinkRefs *[]string `json:"defaultSinkRefs,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for DiagnosticsDescription struct. +func (dd *DiagnosticsDescription) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sinks": + if v != nil { + sinks, err := unmarshalBasicDiagnosticsSinkPropertiesArray(*v) + if err != nil { + return err + } + dd.Sinks = &sinks + } + case "enabled": + if v != nil { + var enabled bool + err = json.Unmarshal(*v, &enabled) + if err != nil { + return err + } + dd.Enabled = &enabled + } + case "defaultSinkRefs": + if v != nil { + var defaultSinkRefs []string + err = json.Unmarshal(*v, &defaultSinkRefs) + if err != nil { + return err + } + dd.DefaultSinkRefs = &defaultSinkRefs + } + } + } + + return nil +} + +// DiagnosticsRef reference to sinks in DiagnosticsDescription. +type DiagnosticsRef struct { + // Enabled - Status of whether or not sinks are enabled. + Enabled *bool `json:"enabled,omitempty"` + // SinkRefs - List of sinks to be used if enabled. References the list of sinks in DiagnosticsDescription. + SinkRefs *[]string `json:"sinkRefs,omitempty"` +} + +// BasicDiagnosticsSinkProperties properties of a DiagnosticsSink. +type BasicDiagnosticsSinkProperties interface { + AsAzureInternalMonitoringPipelineSinkDescription() (*AzureInternalMonitoringPipelineSinkDescription, bool) + AsDiagnosticsSinkProperties() (*DiagnosticsSinkProperties, bool) +} + +// DiagnosticsSinkProperties properties of a DiagnosticsSink. +type DiagnosticsSinkProperties struct { + // Name - Name of the sink. This value is referenced by DiagnosticsReferenceDescription + Name *string `json:"name,omitempty"` + // Description - A description of the sink. + Description *string `json:"description,omitempty"` + // Kind - Possible values include: 'KindDiagnosticsSinkProperties', 'KindAzureInternalMonitoringPipeline' + Kind Kind `json:"kind,omitempty"` +} + +func unmarshalBasicDiagnosticsSinkProperties(body []byte) (BasicDiagnosticsSinkProperties, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["kind"] { + case string(KindAzureInternalMonitoringPipeline): + var aimpsd AzureInternalMonitoringPipelineSinkDescription + err := json.Unmarshal(body, &aimpsd) + return aimpsd, err + default: + var dsp DiagnosticsSinkProperties + err := json.Unmarshal(body, &dsp) + return dsp, err + } +} +func unmarshalBasicDiagnosticsSinkPropertiesArray(body []byte) ([]BasicDiagnosticsSinkProperties, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + dspArray := make([]BasicDiagnosticsSinkProperties, len(rawMessages)) + + for index, rawMessage := range rawMessages { + dsp, err := unmarshalBasicDiagnosticsSinkProperties(*rawMessage) + if err != nil { + return nil, err + } + dspArray[index] = dsp + } + return dspArray, nil +} + +// MarshalJSON is the custom marshaler for DiagnosticsSinkProperties. +func (dsp DiagnosticsSinkProperties) MarshalJSON() ([]byte, error) { + dsp.Kind = KindDiagnosticsSinkProperties + objectMap := make(map[string]interface{}) + if dsp.Name != nil { + objectMap["name"] = dsp.Name + } + if dsp.Description != nil { + objectMap["description"] = dsp.Description + } + if dsp.Kind != "" { + objectMap["kind"] = dsp.Kind + } + return json.Marshal(objectMap) +} + +// AsAzureInternalMonitoringPipelineSinkDescription is the BasicDiagnosticsSinkProperties implementation for DiagnosticsSinkProperties. +func (dsp DiagnosticsSinkProperties) AsAzureInternalMonitoringPipelineSinkDescription() (*AzureInternalMonitoringPipelineSinkDescription, bool) { + return nil, false +} + +// AsDiagnosticsSinkProperties is the BasicDiagnosticsSinkProperties implementation for DiagnosticsSinkProperties. +func (dsp DiagnosticsSinkProperties) AsDiagnosticsSinkProperties() (*DiagnosticsSinkProperties, bool) { + return &dsp, true +} + +// AsBasicDiagnosticsSinkProperties is the BasicDiagnosticsSinkProperties implementation for DiagnosticsSinkProperties. +func (dsp DiagnosticsSinkProperties) AsBasicDiagnosticsSinkProperties() (BasicDiagnosticsSinkProperties, bool) { + return &dsp, true +} + +// EndpointProperties describes a container endpoint. +type EndpointProperties struct { + // Name - The name of the endpoint. + Name *string `json:"name,omitempty"` + // Port - Port used by the container. + Port *int32 `json:"port,omitempty"` +} + +// EnvironmentVariable describes an environment variable for the container. +type EnvironmentVariable struct { + // Name - The name of the environment variable. + Name *string `json:"name,omitempty"` + // Value - The value of the environment variable. + Value *string `json:"value,omitempty"` +} + +// ErrorModel the error details. +type ErrorModel struct { + // Code - The error code. + Code *string `json:"code,omitempty"` + // Message - The error message. + Message *string `json:"message,omitempty"` +} + +// ImageRegistryCredential image registry credential. +type ImageRegistryCredential struct { + // Server - Docker image registry server, without protocol such as `http` and `https`. + Server *string `json:"server,omitempty"` + // Username - The username for the private registry. + Username *string `json:"username,omitempty"` + // Password - The password for the private registry. + Password *string `json:"password,omitempty"` +} + +// IngressConfig describes public connectivity configuration for the network. +type IngressConfig struct { + // QosLevel - The QoS tier for ingress. Possible values include: 'Bronze' + QosLevel IngressQoSLevel `json:"qosLevel,omitempty"` + // Layer4 - Configuration for layer4 public connectivity for this network. + Layer4 *[]Layer4IngressConfig `json:"layer4,omitempty"` + // PublicIPAddress - The public IP address for reaching this network. + PublicIPAddress *string `json:"publicIPAddress,omitempty"` +} + +// Layer4IngressConfig describes the layer4 configuration for public connectivity for this network. +type Layer4IngressConfig struct { + // Name - Layer4 ingress config name. + Name *string `json:"name,omitempty"` + // PublicPort - Specifies the public port at which the service endpoint below needs to be exposed. + PublicPort *int32 `json:"publicPort,omitempty"` + // ApplicationName - The application name which contains the service to be exposed. + ApplicationName *string `json:"applicationName,omitempty"` + // ServiceName - The service whose endpoint needs to be exposed at the public port. + ServiceName *string `json:"serviceName,omitempty"` + // EndpointName - The service endpoint that needs to be exposed. + EndpointName *string `json:"endpointName,omitempty"` +} + +// ManagedProxyResource the resource model definition for Azure Resource Manager proxy resource. It will have +// everything other than required location and tags. This proxy resource is explicitly created or updated by +// including it in the parent resource. +type ManagedProxyResource struct { + // ID - Fully qualified identifier for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - The name of the resource + Name *string `json:"name,omitempty"` + // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type *string `json:"type,omitempty"` +} + +// NetworkProperties describes a network. +type NetworkProperties struct { + // Description - User readable description of the network. + Description *string `json:"description,omitempty"` + // AddressPrefix - the address prefix for this network. + AddressPrefix *string `json:"addressPrefix,omitempty"` + // IngressConfig - Configuration for public connectivity for this network. + IngressConfig *IngressConfig `json:"ingressConfig,omitempty"` +} + +// NetworkRef describes a network reference in a service. +type NetworkRef struct { + // Name - Name of the network. + Name *string `json:"name,omitempty"` +} + +// NetworkResourceDescription this type describes a network resource. +type NetworkResourceDescription struct { + autorest.Response `json:"-"` + // NetworkResourceProperties - Describes properties of a network resource. + *NetworkResourceProperties `json:"properties,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ID - Fully qualified identifier for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - The name of the resource + Name *string `json:"name,omitempty"` + // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type *string `json:"type,omitempty"` + // Location - The geo-location where the resource lives + Location *string `json:"location,omitempty"` +} + +// MarshalJSON is the custom marshaler for NetworkResourceDescription. +func (nrd NetworkResourceDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if nrd.NetworkResourceProperties != nil { + objectMap["properties"] = nrd.NetworkResourceProperties + } + if nrd.Tags != nil { + objectMap["tags"] = nrd.Tags + } + if nrd.ID != nil { + objectMap["id"] = nrd.ID + } + if nrd.Name != nil { + objectMap["name"] = nrd.Name + } + if nrd.Type != nil { + objectMap["type"] = nrd.Type + } + if nrd.Location != nil { + objectMap["location"] = nrd.Location + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for NetworkResourceDescription struct. +func (nrd *NetworkResourceDescription) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var networkResourceProperties NetworkResourceProperties + err = json.Unmarshal(*v, &networkResourceProperties) + if err != nil { + return err + } + nrd.NetworkResourceProperties = &networkResourceProperties + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + nrd.Tags = tags + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + nrd.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + nrd.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + nrd.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + nrd.Location = &location + } + } + } + + return nil +} + +// NetworkResourceDescriptionList a pageable list of network resources. +type NetworkResourceDescriptionList struct { + autorest.Response `json:"-"` + // Value - One page of the list. + Value *[]NetworkResourceDescription `json:"value,omitempty"` + // NextLink - URI to fetch the next page of the list. + NextLink *string `json:"nextLink,omitempty"` +} + +// NetworkResourceDescriptionListIterator provides access to a complete listing of NetworkResourceDescription +// values. +type NetworkResourceDescriptionListIterator struct { + i int + page NetworkResourceDescriptionListPage +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *NetworkResourceDescriptionListIterator) Next() error { + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err := iter.page.Next() + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter NetworkResourceDescriptionListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter NetworkResourceDescriptionListIterator) Response() NetworkResourceDescriptionList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter NetworkResourceDescriptionListIterator) Value() NetworkResourceDescription { + if !iter.page.NotDone() { + return NetworkResourceDescription{} + } + return iter.page.Values()[iter.i] +} + +// IsEmpty returns true if the ListResult contains no values. +func (nrdl NetworkResourceDescriptionList) IsEmpty() bool { + return nrdl.Value == nil || len(*nrdl.Value) == 0 +} + +// networkResourceDescriptionListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (nrdl NetworkResourceDescriptionList) networkResourceDescriptionListPreparer() (*http.Request, error) { + if nrdl.NextLink == nil || len(to.String(nrdl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare(&http.Request{}, + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(nrdl.NextLink))) +} + +// NetworkResourceDescriptionListPage contains a page of NetworkResourceDescription values. +type NetworkResourceDescriptionListPage struct { + fn func(NetworkResourceDescriptionList) (NetworkResourceDescriptionList, error) + nrdl NetworkResourceDescriptionList +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *NetworkResourceDescriptionListPage) Next() error { + next, err := page.fn(page.nrdl) + if err != nil { + return err + } + page.nrdl = next + return nil +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page NetworkResourceDescriptionListPage) NotDone() bool { + return !page.nrdl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page NetworkResourceDescriptionListPage) Response() NetworkResourceDescriptionList { + return page.nrdl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page NetworkResourceDescriptionListPage) Values() []NetworkResourceDescription { + if page.nrdl.IsEmpty() { + return nil + } + return *page.nrdl.Value +} + +// NetworkResourceProperties describes properties of a network resource. +type NetworkResourceProperties struct { + // ProvisioningState - State of the resource. + ProvisioningState *string `json:"provisioningState,omitempty"` + // Description - User readable description of the network. + Description *string `json:"description,omitempty"` + // AddressPrefix - the address prefix for this network. + AddressPrefix *string `json:"addressPrefix,omitempty"` + // IngressConfig - Configuration for public connectivity for this network. + IngressConfig *IngressConfig `json:"ingressConfig,omitempty"` +} + +// OperationListResult describes the result of the request to list Service Fabric operations. +type OperationListResult struct { + autorest.Response `json:"-"` + // Value - List of Service Fabric operations supported by the Microsoft.ServiceFabric resource provider. + Value *[]OperationResult `json:"value,omitempty"` + // NextLink - URL to get the next set of operation list results if there are any. + NextLink *string `json:"nextLink,omitempty"` +} + +// OperationListResultIterator provides access to a complete listing of OperationResult values. +type OperationListResultIterator struct { + i int + page OperationListResultPage +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *OperationListResultIterator) Next() error { + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err := iter.page.Next() + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter OperationListResultIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter OperationListResultIterator) Response() OperationListResult { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter OperationListResultIterator) Value() OperationResult { + if !iter.page.NotDone() { + return OperationResult{} + } + return iter.page.Values()[iter.i] +} + +// IsEmpty returns true if the ListResult contains no values. +func (olr OperationListResult) IsEmpty() bool { + return olr.Value == nil || len(*olr.Value) == 0 +} + +// operationListResultPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (olr OperationListResult) operationListResultPreparer() (*http.Request, error) { + if olr.NextLink == nil || len(to.String(olr.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare(&http.Request{}, + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(olr.NextLink))) +} + +// OperationListResultPage contains a page of OperationResult values. +type OperationListResultPage struct { + fn func(OperationListResult) (OperationListResult, error) + olr OperationListResult +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *OperationListResultPage) Next() error { + next, err := page.fn(page.olr) + if err != nil { + return err + } + page.olr = next + return nil +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page OperationListResultPage) NotDone() bool { + return !page.olr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page OperationListResultPage) Response() OperationListResult { + return page.olr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page OperationListResultPage) Values() []OperationResult { + if page.olr.IsEmpty() { + return nil + } + return *page.olr.Value +} + +// OperationResult list of operations available at the listed Azure resource provider. +type OperationResult struct { + // Name - The name of the operation. + Name *string `json:"name,omitempty"` + // Display - The object that represents the operation. + Display *AvailableOperationDisplay `json:"display,omitempty"` + // Origin - Origin result + Origin *string `json:"origin,omitempty"` + // NextLink - The URL to use for getting the next set of results. + NextLink *string `json:"nextLink,omitempty"` +} + +// ProvisionedResourceProperties describes common properties of a provisioned resource. +type ProvisionedResourceProperties struct { + // ProvisioningState - State of the resource. + ProvisioningState *string `json:"provisioningState,omitempty"` +} + +// ProxyResource the resource model definition for Azure Resource Manager proxy resource. It will have everything +// other than required location and tags. +type ProxyResource struct { + // ID - Fully qualified identifier for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - The name of the resource + Name *string `json:"name,omitempty"` + // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type *string `json:"type,omitempty"` + // Location - The geo-location where the resource lives + Location *string `json:"location,omitempty"` +} + +// Resource the resource model definition for Azure Resource Manager resource. +type Resource struct { + // ID - Fully qualified identifier for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - The name of the resource + Name *string `json:"name,omitempty"` + // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type *string `json:"type,omitempty"` + // Location - The geo-location where the resource lives + Location *string `json:"location,omitempty"` +} + +// ResourceLimits this type describes the resource limits for a given container. It describes the most amount of +// resources a container is allowed to use before being restarted. +type ResourceLimits struct { + // MemoryInGB - The memory limit in GB. + MemoryInGB *float64 `json:"memoryInGB,omitempty"` + // CPU - CPU limits in cores. At present, only full cores are supported. + CPU *float64 `json:"cpu,omitempty"` +} + +// ResourceRequests this type describes the requested resources for a given container. It describes the least +// amount of resources required for the container. A container can consume more than requested resources up to the +// specified limits before being restarted. Currently, the requested resources are treated as limits. +type ResourceRequests struct { + // MemoryInGB - The memory request in GB for this container. + MemoryInGB *float64 `json:"memoryInGB,omitempty"` + // CPU - Requested number of CPU cores. At present, only full cores are supported. + CPU *float64 `json:"cpu,omitempty"` +} + +// ResourceRequirements this type describes the resource requirements for a container or a service. +type ResourceRequirements struct { + // Requests - Describes the requested resources for a given container. + Requests *ResourceRequests `json:"requests,omitempty"` + // Limits - Describes the maximum limits on the resources for a given container. + Limits *ResourceLimits `json:"limits,omitempty"` +} + +// ServiceList a pageable list of all services in an application. +type ServiceList struct { + autorest.Response `json:"-"` + // Value - One page of the list. + Value *[]ServiceResourceDescription `json:"value,omitempty"` + // NextLink - URI to fetch the next page of the list. + NextLink *string `json:"nextLink,omitempty"` +} + +// ServiceListIterator provides access to a complete listing of ServiceResourceDescription values. +type ServiceListIterator struct { + i int + page ServiceListPage +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ServiceListIterator) Next() error { + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err := iter.page.Next() + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ServiceListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ServiceListIterator) Response() ServiceList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ServiceListIterator) Value() ServiceResourceDescription { + if !iter.page.NotDone() { + return ServiceResourceDescription{} + } + return iter.page.Values()[iter.i] +} + +// IsEmpty returns true if the ListResult contains no values. +func (sl ServiceList) IsEmpty() bool { + return sl.Value == nil || len(*sl.Value) == 0 +} + +// serviceListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (sl ServiceList) serviceListPreparer() (*http.Request, error) { + if sl.NextLink == nil || len(to.String(sl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare(&http.Request{}, + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(sl.NextLink))) +} + +// ServiceListPage contains a page of ServiceResourceDescription values. +type ServiceListPage struct { + fn func(ServiceList) (ServiceList, error) + sl ServiceList +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ServiceListPage) Next() error { + next, err := page.fn(page.sl) + if err != nil { + return err + } + page.sl = next + return nil +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ServiceListPage) NotDone() bool { + return !page.sl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ServiceListPage) Response() ServiceList { + return page.sl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ServiceListPage) Values() []ServiceResourceDescription { + if page.sl.IsEmpty() { + return nil + } + return *page.sl.Value +} + +// ServiceReplicaDescription this type describes a replica of a service resource. +type ServiceReplicaDescription struct { + autorest.Response `json:"-"` + // ReplicaName - Name of the replica. + ReplicaName *string `json:"replicaName,omitempty"` + // OsType - The Operating system type required by the code in service. + // . Possible values include: 'Linux', 'Windows' + OsType OperatingSystemTypes `json:"osType,omitempty"` + // CodePackages - Describes the set of code packages that forms the service. A code package describes the container and the properties for running it. All the code packages are started together on the same host and share the same context (network, process etc.). + CodePackages *[]ContainerCodePackageProperties `json:"codePackages,omitempty"` + // NetworkRefs - The names of the private networks that this service needs to be part of. + NetworkRefs *[]NetworkRef `json:"networkRefs,omitempty"` + // Diagnostics - Reference to sinks in DiagnosticsDescription. + Diagnostics *DiagnosticsRef `json:"diagnostics,omitempty"` +} + +// ServiceReplicaList a pageable list of replicas of a service resource. +type ServiceReplicaList struct { + autorest.Response `json:"-"` + // Value - One page of the list. + Value *[]ServiceReplicaDescription `json:"value,omitempty"` + // NextLink - URI to fetch the next page of the list. + NextLink *string `json:"nextLink,omitempty"` +} + +// ServiceReplicaListIterator provides access to a complete listing of ServiceReplicaDescription values. +type ServiceReplicaListIterator struct { + i int + page ServiceReplicaListPage +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ServiceReplicaListIterator) Next() error { + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err := iter.page.Next() + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ServiceReplicaListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ServiceReplicaListIterator) Response() ServiceReplicaList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ServiceReplicaListIterator) Value() ServiceReplicaDescription { + if !iter.page.NotDone() { + return ServiceReplicaDescription{} + } + return iter.page.Values()[iter.i] +} + +// IsEmpty returns true if the ListResult contains no values. +func (srl ServiceReplicaList) IsEmpty() bool { + return srl.Value == nil || len(*srl.Value) == 0 +} + +// serviceReplicaListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (srl ServiceReplicaList) serviceReplicaListPreparer() (*http.Request, error) { + if srl.NextLink == nil || len(to.String(srl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare(&http.Request{}, + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(srl.NextLink))) +} + +// ServiceReplicaListPage contains a page of ServiceReplicaDescription values. +type ServiceReplicaListPage struct { + fn func(ServiceReplicaList) (ServiceReplicaList, error) + srl ServiceReplicaList +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ServiceReplicaListPage) Next() error { + next, err := page.fn(page.srl) + if err != nil { + return err + } + page.srl = next + return nil +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ServiceReplicaListPage) NotDone() bool { + return !page.srl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ServiceReplicaListPage) Response() ServiceReplicaList { + return page.srl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ServiceReplicaListPage) Values() []ServiceReplicaDescription { + if page.srl.IsEmpty() { + return nil + } + return *page.srl.Value +} + +// ServiceReplicaProperties describes the properties of a service replica. +type ServiceReplicaProperties struct { + // OsType - The Operating system type required by the code in service. + // . Possible values include: 'Linux', 'Windows' + OsType OperatingSystemTypes `json:"osType,omitempty"` + // CodePackages - Describes the set of code packages that forms the service. A code package describes the container and the properties for running it. All the code packages are started together on the same host and share the same context (network, process etc.). + CodePackages *[]ContainerCodePackageProperties `json:"codePackages,omitempty"` + // NetworkRefs - The names of the private networks that this service needs to be part of. + NetworkRefs *[]NetworkRef `json:"networkRefs,omitempty"` + // Diagnostics - Reference to sinks in DiagnosticsDescription. + Diagnostics *DiagnosticsRef `json:"diagnostics,omitempty"` +} + +// ServiceResourceDescription this type describes a service resource. +type ServiceResourceDescription struct { + autorest.Response `json:"-"` + // ServiceResourceProperties - This type describes properties of a service resource. + *ServiceResourceProperties `json:"properties,omitempty"` + // ID - Fully qualified identifier for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - The name of the resource + Name *string `json:"name,omitempty"` + // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type *string `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServiceResourceDescription. +func (srd ServiceResourceDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if srd.ServiceResourceProperties != nil { + objectMap["properties"] = srd.ServiceResourceProperties + } + if srd.ID != nil { + objectMap["id"] = srd.ID + } + if srd.Name != nil { + objectMap["name"] = srd.Name + } + if srd.Type != nil { + objectMap["type"] = srd.Type + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ServiceResourceDescription struct. +func (srd *ServiceResourceDescription) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var serviceResourceProperties ServiceResourceProperties + err = json.Unmarshal(*v, &serviceResourceProperties) + if err != nil { + return err + } + srd.ServiceResourceProperties = &serviceResourceProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + srd.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + srd.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + srd.Type = &typeVar + } + } + } + + return nil +} + +// ServiceResourceProperties this type describes properties of a service resource. +type ServiceResourceProperties struct { + // Description - User readable description of the service. + Description *string `json:"description,omitempty"` + // ReplicaCount - The number of replicas of the service to create. Defaults to 1 if not specified. + ReplicaCount *int32 `json:"replicaCount,omitempty"` + // HealthState - The health state of a resource such as Application, Service, or Network. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' + HealthState HealthState `json:"healthState,omitempty"` + // Status - Represents the status of the service. Possible values include: 'ServiceResourceStatusUnknown', 'ServiceResourceStatusActive', 'ServiceResourceStatusUpgrading', 'ServiceResourceStatusDeleting', 'ServiceResourceStatusCreating', 'ServiceResourceStatusFailed' + Status ServiceResourceStatus `json:"status,omitempty"` + // OsType - The Operating system type required by the code in service. + // . Possible values include: 'Linux', 'Windows' + OsType OperatingSystemTypes `json:"osType,omitempty"` + // CodePackages - Describes the set of code packages that forms the service. A code package describes the container and the properties for running it. All the code packages are started together on the same host and share the same context (network, process etc.). + CodePackages *[]ContainerCodePackageProperties `json:"codePackages,omitempty"` + // NetworkRefs - The names of the private networks that this service needs to be part of. + NetworkRefs *[]NetworkRef `json:"networkRefs,omitempty"` + // Diagnostics - Reference to sinks in DiagnosticsDescription. + Diagnostics *DiagnosticsRef `json:"diagnostics,omitempty"` +} + +// Setting describes a setting for the container. +type Setting struct { + // Name - The name of the setting. + Name *string `json:"name,omitempty"` + // Value - The value of the setting. + Value *string `json:"value,omitempty"` +} + +// TrackedResource the resource model definition for Azure Resource Manager tracked top-level resource. +type TrackedResource struct { + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ID - Fully qualified identifier for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - The name of the resource + Name *string `json:"name,omitempty"` + // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type *string `json:"type,omitempty"` + // Location - The geo-location where the resource lives + Location *string `json:"location,omitempty"` +} + +// MarshalJSON is the custom marshaler for TrackedResource. +func (tr TrackedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if tr.Tags != nil { + objectMap["tags"] = tr.Tags + } + if tr.ID != nil { + objectMap["id"] = tr.ID + } + if tr.Name != nil { + objectMap["name"] = tr.Name + } + if tr.Type != nil { + objectMap["type"] = tr.Type + } + if tr.Location != nil { + objectMap["location"] = tr.Location + } + return json.Marshal(objectMap) +} + +// VolumeProperties this type describes properties of a volume resource. +type VolumeProperties struct { + // Description - User readable description of the volume. + Description *string `json:"description,omitempty"` + // Provider - Provider of the volume. + Provider *string `json:"provider,omitempty"` + // AzureFileParameters - This type describes a volume provided by an Azure Files file share. + AzureFileParameters *VolumeProviderParametersAzureFile `json:"azureFileParameters,omitempty"` +} + +// VolumeProviderParametersAzureFile this type describes a volume provided by an Azure Files file share. +type VolumeProviderParametersAzureFile struct { + // AccountName - Name of the Azure storage account for the File Share. + AccountName *string `json:"accountName,omitempty"` + // AccountKey - Access key of the Azure storage account for the File Share. + AccountKey *string `json:"accountKey,omitempty"` + // ShareName - Name of the Azure Files file share that provides storage for the volume. + ShareName *string `json:"shareName,omitempty"` +} + +// VolumeResourceDescription this type describes a volume resource. +type VolumeResourceDescription struct { + autorest.Response `json:"-"` + // VolumeResourceProperties - Describes properties of a volume resource. + *VolumeResourceProperties `json:"properties,omitempty"` + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ID - Fully qualified identifier for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty"` + // Name - The name of the resource + Name *string `json:"name,omitempty"` + // Type - The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type *string `json:"type,omitempty"` + // Location - The geo-location where the resource lives + Location *string `json:"location,omitempty"` +} + +// MarshalJSON is the custom marshaler for VolumeResourceDescription. +func (vrd VolumeResourceDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if vrd.VolumeResourceProperties != nil { + objectMap["properties"] = vrd.VolumeResourceProperties + } + if vrd.Tags != nil { + objectMap["tags"] = vrd.Tags + } + if vrd.ID != nil { + objectMap["id"] = vrd.ID + } + if vrd.Name != nil { + objectMap["name"] = vrd.Name + } + if vrd.Type != nil { + objectMap["type"] = vrd.Type + } + if vrd.Location != nil { + objectMap["location"] = vrd.Location + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for VolumeResourceDescription struct. +func (vrd *VolumeResourceDescription) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var volumeResourceProperties VolumeResourceProperties + err = json.Unmarshal(*v, &volumeResourceProperties) + if err != nil { + return err + } + vrd.VolumeResourceProperties = &volumeResourceProperties + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + vrd.Tags = tags + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + vrd.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + vrd.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vrd.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + vrd.Location = &location + } + } + } + + return nil +} + +// VolumeResourceDescriptionList a pageable list of volume resources. +type VolumeResourceDescriptionList struct { + autorest.Response `json:"-"` + // Value - One page of the list. + Value *[]VolumeResourceDescription `json:"value,omitempty"` + // NextLink - URI to fetch the next page of the list. + NextLink *string `json:"nextLink,omitempty"` +} + +// VolumeResourceDescriptionListIterator provides access to a complete listing of VolumeResourceDescription values. +type VolumeResourceDescriptionListIterator struct { + i int + page VolumeResourceDescriptionListPage +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *VolumeResourceDescriptionListIterator) Next() error { + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err := iter.page.Next() + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter VolumeResourceDescriptionListIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter VolumeResourceDescriptionListIterator) Response() VolumeResourceDescriptionList { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter VolumeResourceDescriptionListIterator) Value() VolumeResourceDescription { + if !iter.page.NotDone() { + return VolumeResourceDescription{} + } + return iter.page.Values()[iter.i] +} + +// IsEmpty returns true if the ListResult contains no values. +func (vrdl VolumeResourceDescriptionList) IsEmpty() bool { + return vrdl.Value == nil || len(*vrdl.Value) == 0 +} + +// volumeResourceDescriptionListPreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (vrdl VolumeResourceDescriptionList) volumeResourceDescriptionListPreparer() (*http.Request, error) { + if vrdl.NextLink == nil || len(to.String(vrdl.NextLink)) < 1 { + return nil, nil + } + return autorest.Prepare(&http.Request{}, + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(vrdl.NextLink))) +} + +// VolumeResourceDescriptionListPage contains a page of VolumeResourceDescription values. +type VolumeResourceDescriptionListPage struct { + fn func(VolumeResourceDescriptionList) (VolumeResourceDescriptionList, error) + vrdl VolumeResourceDescriptionList +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *VolumeResourceDescriptionListPage) Next() error { + next, err := page.fn(page.vrdl) + if err != nil { + return err + } + page.vrdl = next + return nil +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page VolumeResourceDescriptionListPage) NotDone() bool { + return !page.vrdl.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page VolumeResourceDescriptionListPage) Response() VolumeResourceDescriptionList { + return page.vrdl +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page VolumeResourceDescriptionListPage) Values() []VolumeResourceDescription { + if page.vrdl.IsEmpty() { + return nil + } + return *page.vrdl.Value +} + +// VolumeResourceProperties describes properties of a volume resource. +type VolumeResourceProperties struct { + // ProvisioningState - State of the resource. + ProvisioningState *string `json:"provisioningState,omitempty"` + // Description - User readable description of the volume. + Description *string `json:"description,omitempty"` + // Provider - Provider of the volume. + Provider *string `json:"provider,omitempty"` + // AzureFileParameters - This type describes a volume provided by an Azure Files file share. + AzureFileParameters *VolumeProviderParametersAzureFile `json:"azureFileParameters,omitempty"` +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/network.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/network.go new file mode 100644 index 000000000..ddcef5bca --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/network.go @@ -0,0 +1,441 @@ +package servicefabricmesh + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "net/http" +) + +// NetworkClient is the service Fabric Mesh Management Client +type NetworkClient struct { + BaseClient +} + +// NewNetworkClient creates an instance of the NetworkClient client. +func NewNetworkClient(subscriptionID string) NetworkClient { + return NewNetworkClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewNetworkClientWithBaseURI creates an instance of the NetworkClient client. +func NewNetworkClientWithBaseURI(baseURI string, subscriptionID string) NetworkClient { + return NetworkClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Create creates a network resource with the specified name and description. If a network with the same name already +// exists, then its description is updated to the one indicated in this request. +// +// Use network resources to create private network and configure public connectivity for services within your +// application. +// Parameters: +// resourceGroupName - azure resource group name +// networkName - the identity of the network. +// networkResourceDescription - description for creating a network resource. +func (client NetworkClient) Create(ctx context.Context, resourceGroupName string, networkName string, networkResourceDescription NetworkResourceDescription) (result NetworkResourceDescription, err error) { + if err := validation.Validate([]validation.Validation{ + {TargetValue: networkResourceDescription, + Constraints: []validation.Constraint{{Target: "networkResourceDescription.NetworkResourceProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "networkResourceDescription.NetworkResourceProperties.AddressPrefix", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + return result, validation.NewError("servicefabricmesh.NetworkClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, networkName, networkResourceDescription) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "Create", nil, "Failure preparing request") + return + } + + resp, err := client.CreateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "Create", resp, "Failure sending request") + return + } + + result, err = client.CreateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "Create", resp, "Failure responding to request") + } + + return +} + +// CreatePreparer prepares the Create request. +func (client NetworkClient) CreatePreparer(ctx context.Context, resourceGroupName string, networkName string, networkResourceDescription NetworkResourceDescription) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkName": networkName, + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/networks/{networkName}", pathParameters), + autorest.WithJSON(networkResourceDescription), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client NetworkClient) CreateSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client NetworkClient) CreateResponder(resp *http.Response) (result NetworkResourceDescription, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the network resource identified by the name. +// Parameters: +// resourceGroupName - azure resource group name +// networkName - the identity of the network. +func (client NetworkClient) Delete(ctx context.Context, resourceGroupName string, networkName string) (result autorest.Response, err error) { + req, err := client.DeletePreparer(ctx, resourceGroupName, networkName) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "Delete", resp, "Failure responding to request") + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client NetworkClient) DeletePreparer(ctx context.Context, resourceGroupName string, networkName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkName": networkName, + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/networks/{networkName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client NetworkClient) DeleteSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client NetworkClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the information about the network resource with a given name. This information includes the network +// description and other runtime information. +// Parameters: +// resourceGroupName - azure resource group name +// networkName - the identity of the network. +func (client NetworkClient) Get(ctx context.Context, resourceGroupName string, networkName string) (result NetworkResourceDescription, err error) { + req, err := client.GetPreparer(ctx, resourceGroupName, networkName) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client NetworkClient) GetPreparer(ctx context.Context, resourceGroupName string, networkName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "networkName": networkName, + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/networks/{networkName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client NetworkClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client NetworkClient) GetResponder(resp *http.Response) (result NetworkResourceDescription, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByResourceGroup gets the information about all network resources in a given resource group. The information +// includes the network description and other runtime properties. +// Parameters: +// resourceGroupName - azure resource group name +func (client NetworkClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result NetworkResourceDescriptionListPage, err error) { + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.nrdl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.nrdl, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "ListByResourceGroup", resp, "Failure responding to request") + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client NetworkClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/networks", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client NetworkClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client NetworkClient) ListByResourceGroupResponder(resp *http.Response) (result NetworkResourceDescriptionList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client NetworkClient) listByResourceGroupNextResults(lastResults NetworkResourceDescriptionList) (result NetworkResourceDescriptionList, err error) { + req, err := lastResults.networkResourceDescriptionListPreparer() + if err != nil { + return result, autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client NetworkClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result NetworkResourceDescriptionListIterator, err error) { + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// ListBySubscription gets the information about all network resources in a given subscription. The information +// includes the network description and other runtime properties. +func (client NetworkClient) ListBySubscription(ctx context.Context) (result NetworkResourceDescriptionListPage, err error) { + result.fn = client.listBySubscriptionNextResults + req, err := client.ListBySubscriptionPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "ListBySubscription", nil, "Failure preparing request") + return + } + + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.nrdl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "ListBySubscription", resp, "Failure sending request") + return + } + + result.nrdl, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "ListBySubscription", resp, "Failure responding to request") + } + + return +} + +// ListBySubscriptionPreparer prepares the ListBySubscription request. +func (client NetworkClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabricMesh/networks", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListBySubscriptionSender sends the ListBySubscription request. The method will close the +// http.Response Body if it receives an error. +func (client NetworkClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always +// closes the http.Response Body. +func (client NetworkClient) ListBySubscriptionResponder(resp *http.Response) (result NetworkResourceDescriptionList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listBySubscriptionNextResults retrieves the next set of results, if any. +func (client NetworkClient) listBySubscriptionNextResults(lastResults NetworkResourceDescriptionList) (result NetworkResourceDescriptionList, err error) { + req, err := lastResults.networkResourceDescriptionListPreparer() + if err != nil { + return result, autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "listBySubscriptionNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "listBySubscriptionNextResults", resp, "Failure sending next results request") + } + result, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.NetworkClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required. +func (client NetworkClient) ListBySubscriptionComplete(ctx context.Context) (result NetworkResourceDescriptionListIterator, err error) { + result.page, err = client.ListBySubscription(ctx) + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/operations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/operations.go new file mode 100644 index 000000000..41e38d871 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/operations.go @@ -0,0 +1,126 @@ +package servicefabricmesh + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "net/http" +) + +// OperationsClient is the service Fabric Mesh Management Client +type OperationsClient struct { + BaseClient +} + +// NewOperationsClient creates an instance of the OperationsClient client. +func NewOperationsClient(subscriptionID string) OperationsClient { + return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client. +func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { + return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// List lists all the available operations provided by Service Fabric SeaBreeze resource provider. +func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error) { + result.fn = client.listNextResults + req, err := client.ListPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.OperationsClient", "List", nil, "Failure preparing request") + return + } + + resp, err := client.ListSender(req) + if err != nil { + result.olr.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicefabricmesh.OperationsClient", "List", resp, "Failure sending request") + return + } + + result.olr, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.OperationsClient", "List", resp, "Failure responding to request") + } + + return +} + +// ListPreparer prepares the List request. +func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPath("/providers/Microsoft.ServiceFabricMesh/operations"), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSender sends the List request. The method will close the +// http.Response Body if it receives an error. +func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) +} + +// ListResponder handles the response to the List request. The method always +// closes the http.Response Body. +func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listNextResults retrieves the next set of results, if any. +func (client OperationsClient) listNextResults(lastResults OperationListResult) (result OperationListResult, err error) { + req, err := lastResults.operationListResultPreparer() + if err != nil { + return result, autorest.NewErrorWithError(err, "servicefabricmesh.OperationsClient", "listNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "servicefabricmesh.OperationsClient", "listNextResults", resp, "Failure sending next results request") + } + result, err = client.ListResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.OperationsClient", "listNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListComplete enumerates all values, automatically crossing page boundaries as required. +func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error) { + result.page, err = client.List(ctx) + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/replica.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/replica.go new file mode 100644 index 000000000..ad37938df --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/replica.go @@ -0,0 +1,210 @@ +package servicefabricmesh + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "net/http" +) + +// ReplicaClient is the service Fabric Mesh Management Client +type ReplicaClient struct { + BaseClient +} + +// NewReplicaClient creates an instance of the ReplicaClient client. +func NewReplicaClient(subscriptionID string) ReplicaClient { + return NewReplicaClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewReplicaClientWithBaseURI creates an instance of the ReplicaClient client. +func NewReplicaClientWithBaseURI(baseURI string, subscriptionID string) ReplicaClient { + return ReplicaClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get gets the information about the specified replica of a given service of an application. The information includes +// the runtime properties of the replica instance. +// Parameters: +// resourceGroupName - azure resource group name +// applicationName - the identity of the application. +// serviceName - the identity of the service. +// replicaName - the identity of the service replica. +func (client ReplicaClient) Get(ctx context.Context, resourceGroupName string, applicationName string, serviceName string, replicaName string) (result ServiceReplicaDescription, err error) { + req, err := client.GetPreparer(ctx, resourceGroupName, applicationName, serviceName, replicaName) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ReplicaClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicefabricmesh.ReplicaClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ReplicaClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client ReplicaClient) GetPreparer(ctx context.Context, resourceGroupName string, applicationName string, serviceName string, replicaName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationName": applicationName, + "replicaName": replicaName, + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": serviceName, + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationName}/services/{serviceName}/replicas/{replicaName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ReplicaClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ReplicaClient) GetResponder(resp *http.Response) (result ServiceReplicaDescription, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByServiceName gets the information about all replicas of a given service of an application. The information +// includes the runtime properties of the replica instance. +// Parameters: +// resourceGroupName - azure resource group name +// applicationName - the identity of the application. +// serviceName - the identity of the service. +func (client ReplicaClient) ListByServiceName(ctx context.Context, resourceGroupName string, applicationName string, serviceName string) (result ServiceReplicaListPage, err error) { + result.fn = client.listByServiceNameNextResults + req, err := client.ListByServiceNamePreparer(ctx, resourceGroupName, applicationName, serviceName) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ReplicaClient", "ListByServiceName", nil, "Failure preparing request") + return + } + + resp, err := client.ListByServiceNameSender(req) + if err != nil { + result.srl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicefabricmesh.ReplicaClient", "ListByServiceName", resp, "Failure sending request") + return + } + + result.srl, err = client.ListByServiceNameResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ReplicaClient", "ListByServiceName", resp, "Failure responding to request") + } + + return +} + +// ListByServiceNamePreparer prepares the ListByServiceName request. +func (client ReplicaClient) ListByServiceNamePreparer(ctx context.Context, resourceGroupName string, applicationName string, serviceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationName": applicationName, + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": serviceName, + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationName}/services/{serviceName}/replicas", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByServiceNameSender sends the ListByServiceName request. The method will close the +// http.Response Body if it receives an error. +func (client ReplicaClient) ListByServiceNameSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByServiceNameResponder handles the response to the ListByServiceName request. The method always +// closes the http.Response Body. +func (client ReplicaClient) ListByServiceNameResponder(resp *http.Response) (result ServiceReplicaList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByServiceNameNextResults retrieves the next set of results, if any. +func (client ReplicaClient) listByServiceNameNextResults(lastResults ServiceReplicaList) (result ServiceReplicaList, err error) { + req, err := lastResults.serviceReplicaListPreparer() + if err != nil { + return result, autorest.NewErrorWithError(err, "servicefabricmesh.ReplicaClient", "listByServiceNameNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByServiceNameSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "servicefabricmesh.ReplicaClient", "listByServiceNameNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByServiceNameResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ReplicaClient", "listByServiceNameNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByServiceNameComplete enumerates all values, automatically crossing page boundaries as required. +func (client ReplicaClient) ListByServiceNameComplete(ctx context.Context, resourceGroupName string, applicationName string, serviceName string) (result ServiceReplicaListIterator, err error) { + result.page, err = client.ListByServiceName(ctx, resourceGroupName, applicationName, serviceName) + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/service.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/service.go new file mode 100644 index 000000000..307371fb9 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/service.go @@ -0,0 +1,205 @@ +package servicefabricmesh + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "net/http" +) + +// ServiceClient is the service Fabric Mesh Management Client +type ServiceClient struct { + BaseClient +} + +// NewServiceClient creates an instance of the ServiceClient client. +func NewServiceClient(subscriptionID string) ServiceClient { + return NewServiceClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewServiceClientWithBaseURI creates an instance of the ServiceClient client. +func NewServiceClientWithBaseURI(baseURI string, subscriptionID string) ServiceClient { + return ServiceClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Get the operation returns the properties of the service. +// Parameters: +// resourceGroupName - azure resource group name +// applicationName - the identity of the application. +// serviceName - the identity of the service. +func (client ServiceClient) Get(ctx context.Context, resourceGroupName string, applicationName string, serviceName string) (result ServiceResourceDescription, err error) { + req, err := client.GetPreparer(ctx, resourceGroupName, applicationName, serviceName) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ServiceClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicefabricmesh.ServiceClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ServiceClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client ServiceClient) GetPreparer(ctx context.Context, resourceGroupName string, applicationName string, serviceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationName": applicationName, + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": serviceName, + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationName}/services/{serviceName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client ServiceClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client ServiceClient) GetResponder(resp *http.Response) (result ServiceResourceDescription, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByApplicationName gets the information about all services of a given service of an application. The information +// includes the runtime properties of the service instance. +// Parameters: +// resourceGroupName - azure resource group name +// applicationName - the identity of the application. +func (client ServiceClient) ListByApplicationName(ctx context.Context, resourceGroupName string, applicationName string) (result ServiceListPage, err error) { + result.fn = client.listByApplicationNameNextResults + req, err := client.ListByApplicationNamePreparer(ctx, resourceGroupName, applicationName) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ServiceClient", "ListByApplicationName", nil, "Failure preparing request") + return + } + + resp, err := client.ListByApplicationNameSender(req) + if err != nil { + result.sl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicefabricmesh.ServiceClient", "ListByApplicationName", resp, "Failure sending request") + return + } + + result.sl, err = client.ListByApplicationNameResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ServiceClient", "ListByApplicationName", resp, "Failure responding to request") + } + + return +} + +// ListByApplicationNamePreparer prepares the ListByApplicationName request. +func (client ServiceClient) ListByApplicationNamePreparer(ctx context.Context, resourceGroupName string, applicationName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "applicationName": applicationName, + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationName}/services", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByApplicationNameSender sends the ListByApplicationName request. The method will close the +// http.Response Body if it receives an error. +func (client ServiceClient) ListByApplicationNameSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByApplicationNameResponder handles the response to the ListByApplicationName request. The method always +// closes the http.Response Body. +func (client ServiceClient) ListByApplicationNameResponder(resp *http.Response) (result ServiceList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByApplicationNameNextResults retrieves the next set of results, if any. +func (client ServiceClient) listByApplicationNameNextResults(lastResults ServiceList) (result ServiceList, err error) { + req, err := lastResults.serviceListPreparer() + if err != nil { + return result, autorest.NewErrorWithError(err, "servicefabricmesh.ServiceClient", "listByApplicationNameNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByApplicationNameSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "servicefabricmesh.ServiceClient", "listByApplicationNameNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByApplicationNameResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.ServiceClient", "listByApplicationNameNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByApplicationNameComplete enumerates all values, automatically crossing page boundaries as required. +func (client ServiceClient) ListByApplicationNameComplete(ctx context.Context, resourceGroupName string, applicationName string) (result ServiceListIterator, err error) { + result.page, err = client.ListByApplicationName(ctx, resourceGroupName, applicationName) + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/version.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/version.go new file mode 100644 index 000000000..6f8bfc012 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/version.go @@ -0,0 +1,30 @@ +package servicefabricmesh + +import "github.com/Azure/azure-sdk-for-go/version" + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "Azure-SDK-For-Go/" + version.Number + " servicefabricmesh/2018-07-01-preview" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/volume.go b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/volume.go new file mode 100644 index 000000000..726df0e67 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh/volume.go @@ -0,0 +1,443 @@ +package servicefabricmesh + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "context" + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" + "net/http" +) + +// VolumeClient is the service Fabric Mesh Management Client +type VolumeClient struct { + BaseClient +} + +// NewVolumeClient creates an instance of the VolumeClient client. +func NewVolumeClient(subscriptionID string) VolumeClient { + return NewVolumeClientWithBaseURI(DefaultBaseURI, subscriptionID) +} + +// NewVolumeClientWithBaseURI creates an instance of the VolumeClient client. +func NewVolumeClientWithBaseURI(baseURI string, subscriptionID string) VolumeClient { + return VolumeClient{NewWithBaseURI(baseURI, subscriptionID)} +} + +// Create creates a volume resource with the specified name and description. If a volume with the same name already +// exists, then its description is updated to the one indicated in this request. +// Parameters: +// resourceGroupName - azure resource group name +// volumeName - the identity of the volume. +// volumeResourceDescription - description for creating a volume resource. +func (client VolumeClient) Create(ctx context.Context, resourceGroupName string, volumeName string, volumeResourceDescription VolumeResourceDescription) (result VolumeResourceDescription, err error) { + if err := validation.Validate([]validation.Validation{ + {TargetValue: volumeResourceDescription, + Constraints: []validation.Constraint{{Target: "volumeResourceDescription.VolumeResourceProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "volumeResourceDescription.VolumeResourceProperties.Provider", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "volumeResourceDescription.VolumeResourceProperties.AzureFileParameters", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "volumeResourceDescription.VolumeResourceProperties.AzureFileParameters.AccountName", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "volumeResourceDescription.VolumeResourceProperties.AzureFileParameters.ShareName", Name: validation.Null, Rule: true, Chain: nil}, + }}, + }}}}}); err != nil { + return result, validation.NewError("servicefabricmesh.VolumeClient", "Create", err.Error()) + } + + req, err := client.CreatePreparer(ctx, resourceGroupName, volumeName, volumeResourceDescription) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "Create", nil, "Failure preparing request") + return + } + + resp, err := client.CreateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "Create", resp, "Failure sending request") + return + } + + result, err = client.CreateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "Create", resp, "Failure responding to request") + } + + return +} + +// CreatePreparer prepares the Create request. +func (client VolumeClient) CreatePreparer(ctx context.Context, resourceGroupName string, volumeName string, volumeResourceDescription VolumeResourceDescription) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "volumeName": volumeName, + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPut(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/volumes/{volumeName}", pathParameters), + autorest.WithJSON(volumeResourceDescription), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CreateSender sends the Create request. The method will close the +// http.Response Body if it receives an error. +func (client VolumeClient) CreateSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// CreateResponder handles the response to the Create request. The method always +// closes the http.Response Body. +func (client VolumeClient) CreateResponder(resp *http.Response) (result VolumeResourceDescription, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// Delete deletes the volume identified by the name. +// Parameters: +// resourceGroupName - azure resource group name +// volumeName - the identity of the volume. +func (client VolumeClient) Delete(ctx context.Context, resourceGroupName string, volumeName string) (result autorest.Response, err error) { + req, err := client.DeletePreparer(ctx, resourceGroupName, volumeName) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "Delete", nil, "Failure preparing request") + return + } + + resp, err := client.DeleteSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "Delete", resp, "Failure sending request") + return + } + + result, err = client.DeleteResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "Delete", resp, "Failure responding to request") + } + + return +} + +// DeletePreparer prepares the Delete request. +func (client VolumeClient) DeletePreparer(ctx context.Context, resourceGroupName string, volumeName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "volumeName": volumeName, + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsDelete(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/volumes/{volumeName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// DeleteSender sends the Delete request. The method will close the +// http.Response Body if it receives an error. +func (client VolumeClient) DeleteSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// DeleteResponder handles the response to the Delete request. The method always +// closes the http.Response Body. +func (client VolumeClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), + autorest.ByClosing()) + result.Response = resp + return +} + +// Get gets the information about the volume resource with a given name. This information includes the volume +// description and other runtime information. +// Parameters: +// resourceGroupName - azure resource group name +// volumeName - the identity of the volume. +func (client VolumeClient) Get(ctx context.Context, resourceGroupName string, volumeName string) (result VolumeResourceDescription, err error) { + req, err := client.GetPreparer(ctx, resourceGroupName, volumeName) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "Get", nil, "Failure preparing request") + return + } + + resp, err := client.GetSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "Get", resp, "Failure sending request") + return + } + + result, err = client.GetResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "Get", resp, "Failure responding to request") + } + + return +} + +// GetPreparer prepares the Get request. +func (client VolumeClient) GetPreparer(ctx context.Context, resourceGroupName string, volumeName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "volumeName": volumeName, + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/volumes/{volumeName}", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetSender sends the Get request. The method will close the +// http.Response Body if it receives an error. +func (client VolumeClient) GetSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetResponder handles the response to the Get request. The method always +// closes the http.Response Body. +func (client VolumeClient) GetResponder(resp *http.Response) (result VolumeResourceDescription, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// ListByResourceGroup gets the information about all volume resources in a given resource group. The information +// includes the volume description and other runtime information. +// Parameters: +// resourceGroupName - azure resource group name +func (client VolumeClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result VolumeResourceDescriptionListPage, err error) { + result.fn = client.listByResourceGroupNextResults + req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "ListByResourceGroup", nil, "Failure preparing request") + return + } + + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.vrdl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "ListByResourceGroup", resp, "Failure sending request") + return + } + + result.vrdl, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "ListByResourceGroup", resp, "Failure responding to request") + } + + return +} + +// ListByResourceGroupPreparer prepares the ListByResourceGroup request. +func (client VolumeClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/volumes", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the +// http.Response Body if it receives an error. +func (client VolumeClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always +// closes the http.Response Body. +func (client VolumeClient) ListByResourceGroupResponder(resp *http.Response) (result VolumeResourceDescriptionList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listByResourceGroupNextResults retrieves the next set of results, if any. +func (client VolumeClient) listByResourceGroupNextResults(lastResults VolumeResourceDescriptionList) (result VolumeResourceDescriptionList, err error) { + req, err := lastResults.volumeResourceDescriptionListPreparer() + if err != nil { + return result, autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListByResourceGroupSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") + } + result, err = client.ListByResourceGroupResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. +func (client VolumeClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result VolumeResourceDescriptionListIterator, err error) { + result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) + return +} + +// ListBySubscription gets the information about all volume resources in a given subscription. The information includes +// the volume description and other runtime information. +func (client VolumeClient) ListBySubscription(ctx context.Context) (result VolumeResourceDescriptionListPage, err error) { + result.fn = client.listBySubscriptionNextResults + req, err := client.ListBySubscriptionPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "ListBySubscription", nil, "Failure preparing request") + return + } + + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.vrdl.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "ListBySubscription", resp, "Failure sending request") + return + } + + result.vrdl, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "ListBySubscription", resp, "Failure responding to request") + } + + return +} + +// ListBySubscriptionPreparer prepares the ListBySubscription request. +func (client VolumeClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-07-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabricMesh/volumes", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListBySubscriptionSender sends the ListBySubscription request. The method will close the +// http.Response Body if it receives an error. +func (client VolumeClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always +// closes the http.Response Body. +func (client VolumeClient) ListBySubscriptionResponder(resp *http.Response) (result VolumeResourceDescriptionList, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listBySubscriptionNextResults retrieves the next set of results, if any. +func (client VolumeClient) listBySubscriptionNextResults(lastResults VolumeResourceDescriptionList) (result VolumeResourceDescriptionList, err error) { + req, err := lastResults.volumeResourceDescriptionListPreparer() + if err != nil { + return result, autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "listBySubscriptionNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListBySubscriptionSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "listBySubscriptionNextResults", resp, "Failure sending next results request") + } + result, err = client.ListBySubscriptionResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "servicefabricmesh.VolumeClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required. +func (client VolumeClient) ListBySubscriptionComplete(ctx context.Context) (result VolumeResourceDescriptionListIterator, err error) { + result.page, err = client.ListBySubscription(ctx) + return +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/version/version.go b/vendor/github.com/Azure/azure-sdk-for-go/version/version.go index 3f8c8a8df..315304387 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/version/version.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/version/version.go @@ -18,4 +18,4 @@ package version // Changes may cause incorrect behavior and will be lost if the code is regenerated. // Number contains the semantic version of this SDK. -const Number = "v15.1.1" +const Number = "v19.1.0" diff --git a/vendor/github.com/Azure/go-autorest/autorest/adal/config.go b/vendor/github.com/Azure/go-autorest/autorest/adal/config.go index f570d540a..bee5e61dd 100644 --- a/vendor/github.com/Azure/go-autorest/autorest/adal/config.go +++ b/vendor/github.com/Azure/go-autorest/autorest/adal/config.go @@ -26,10 +26,10 @@ const ( // OAuthConfig represents the endpoints needed // in OAuth operations type OAuthConfig struct { - AuthorityEndpoint url.URL - AuthorizeEndpoint url.URL - TokenEndpoint url.URL - DeviceCodeEndpoint url.URL + AuthorityEndpoint url.URL `json:"authorityEndpoint"` + AuthorizeEndpoint url.URL `json:"authorizeEndpoint"` + TokenEndpoint url.URL `json:"tokenEndpoint"` + DeviceCodeEndpoint url.URL `json:"deviceCodeEndpoint"` } // IsZero returns true if the OAuthConfig object is zero-initialized. diff --git a/vendor/github.com/Azure/go-autorest/autorest/adal/token.go b/vendor/github.com/Azure/go-autorest/autorest/adal/token.go index 67c5a0b0b..32aea8389 100644 --- a/vendor/github.com/Azure/go-autorest/autorest/adal/token.go +++ b/vendor/github.com/Azure/go-autorest/autorest/adal/token.go @@ -22,8 +22,10 @@ import ( "crypto/x509" "encoding/base64" "encoding/json" + "errors" "fmt" "io/ioutil" + "math" "net" "net/http" "net/url" @@ -33,6 +35,7 @@ import ( "time" "github.com/Azure/go-autorest/autorest/date" + "github.com/Azure/go-autorest/version" "github.com/dgrijalva/jwt-go" ) @@ -59,6 +62,9 @@ const ( // msiEndpoint is the well known endpoint for getting MSI authentications tokens msiEndpoint = "http://169.254.169.254/metadata/identity/oauth2/token" + + // the default number of attempts to refresh an MSI authentication token + defaultMaxMSIRefreshAttempts = 5 ) // OAuthTokenProvider is an interface which should be implemented by an access token retriever @@ -136,6 +142,12 @@ func (t *Token) OAuthToken() string { return t.AccessToken } +// ServicePrincipalSecret is an interface that allows various secret mechanism to fill the form +// that is submitted when acquiring an oAuth token. +type ServicePrincipalSecret interface { + SetAuthenticationValues(spt *ServicePrincipalToken, values *url.Values) error +} + // ServicePrincipalNoSecret represents a secret type that contains no secret // meaning it is not valid for fetching a fresh token. This is used by Manual type ServicePrincipalNoSecret struct { @@ -147,15 +159,19 @@ func (noSecret *ServicePrincipalNoSecret) SetAuthenticationValues(spt *ServicePr return fmt.Errorf("Manually created ServicePrincipalToken does not contain secret material to retrieve a new access token") } -// ServicePrincipalSecret is an interface that allows various secret mechanism to fill the form -// that is submitted when acquiring an oAuth token. -type ServicePrincipalSecret interface { - SetAuthenticationValues(spt *ServicePrincipalToken, values *url.Values) error +// MarshalJSON implements the json.Marshaler interface. +func (noSecret ServicePrincipalNoSecret) MarshalJSON() ([]byte, error) { + type tokenType struct { + Type string `json:"type"` + } + return json.Marshal(tokenType{ + Type: "ServicePrincipalNoSecret", + }) } // ServicePrincipalTokenSecret implements ServicePrincipalSecret for client_secret type authorization. type ServicePrincipalTokenSecret struct { - ClientSecret string + ClientSecret string `json:"value"` } // SetAuthenticationValues is a method of the interface ServicePrincipalSecret. @@ -165,49 +181,24 @@ func (tokenSecret *ServicePrincipalTokenSecret) SetAuthenticationValues(spt *Ser return nil } +// MarshalJSON implements the json.Marshaler interface. +func (tokenSecret ServicePrincipalTokenSecret) MarshalJSON() ([]byte, error) { + type tokenType struct { + Type string `json:"type"` + Value string `json:"value"` + } + return json.Marshal(tokenType{ + Type: "ServicePrincipalTokenSecret", + Value: tokenSecret.ClientSecret, + }) +} + // ServicePrincipalCertificateSecret implements ServicePrincipalSecret for generic RSA cert auth with signed JWTs. type ServicePrincipalCertificateSecret struct { Certificate *x509.Certificate PrivateKey *rsa.PrivateKey } -// ServicePrincipalMSISecret implements ServicePrincipalSecret for machines running the MSI Extension. -type ServicePrincipalMSISecret struct { -} - -// ServicePrincipalUsernamePasswordSecret implements ServicePrincipalSecret for username and password auth. -type ServicePrincipalUsernamePasswordSecret struct { - Username string - Password string -} - -// ServicePrincipalAuthorizationCodeSecret implements ServicePrincipalSecret for authorization code auth. -type ServicePrincipalAuthorizationCodeSecret struct { - ClientSecret string - AuthorizationCode string - RedirectURI string -} - -// SetAuthenticationValues is a method of the interface ServicePrincipalSecret. -func (secret *ServicePrincipalAuthorizationCodeSecret) SetAuthenticationValues(spt *ServicePrincipalToken, v *url.Values) error { - v.Set("code", secret.AuthorizationCode) - v.Set("client_secret", secret.ClientSecret) - v.Set("redirect_uri", secret.RedirectURI) - return nil -} - -// SetAuthenticationValues is a method of the interface ServicePrincipalSecret. -func (secret *ServicePrincipalUsernamePasswordSecret) SetAuthenticationValues(spt *ServicePrincipalToken, v *url.Values) error { - v.Set("username", secret.Username) - v.Set("password", secret.Password) - return nil -} - -// SetAuthenticationValues is a method of the interface ServicePrincipalSecret. -func (msiSecret *ServicePrincipalMSISecret) SetAuthenticationValues(spt *ServicePrincipalToken, v *url.Values) error { - return nil -} - // SignJwt returns the JWT signed with the certificate's private key. func (secret *ServicePrincipalCertificateSecret) SignJwt(spt *ServicePrincipalToken) (string, error) { hasher := sha1.New() @@ -228,9 +219,9 @@ func (secret *ServicePrincipalCertificateSecret) SignJwt(spt *ServicePrincipalTo token := jwt.New(jwt.SigningMethodRS256) token.Header["x5t"] = thumbprint token.Claims = jwt.MapClaims{ - "aud": spt.oauthConfig.TokenEndpoint.String(), - "iss": spt.clientID, - "sub": spt.clientID, + "aud": spt.inner.OauthConfig.TokenEndpoint.String(), + "iss": spt.inner.ClientID, + "sub": spt.inner.ClientID, "jti": base64.URLEncoding.EncodeToString(jti), "nbf": time.Now().Unix(), "exp": time.Now().Add(time.Hour * 24).Unix(), @@ -253,19 +244,151 @@ func (secret *ServicePrincipalCertificateSecret) SetAuthenticationValues(spt *Se return nil } +// MarshalJSON implements the json.Marshaler interface. +func (secret ServicePrincipalCertificateSecret) MarshalJSON() ([]byte, error) { + return nil, errors.New("marshalling ServicePrincipalCertificateSecret is not supported") +} + +// ServicePrincipalMSISecret implements ServicePrincipalSecret for machines running the MSI Extension. +type ServicePrincipalMSISecret struct { +} + +// SetAuthenticationValues is a method of the interface ServicePrincipalSecret. +func (msiSecret *ServicePrincipalMSISecret) SetAuthenticationValues(spt *ServicePrincipalToken, v *url.Values) error { + return nil +} + +// MarshalJSON implements the json.Marshaler interface. +func (msiSecret ServicePrincipalMSISecret) MarshalJSON() ([]byte, error) { + return nil, errors.New("marshalling ServicePrincipalMSISecret is not supported") +} + +// ServicePrincipalUsernamePasswordSecret implements ServicePrincipalSecret for username and password auth. +type ServicePrincipalUsernamePasswordSecret struct { + Username string `json:"username"` + Password string `json:"password"` +} + +// SetAuthenticationValues is a method of the interface ServicePrincipalSecret. +func (secret *ServicePrincipalUsernamePasswordSecret) SetAuthenticationValues(spt *ServicePrincipalToken, v *url.Values) error { + v.Set("username", secret.Username) + v.Set("password", secret.Password) + return nil +} + +// MarshalJSON implements the json.Marshaler interface. +func (secret ServicePrincipalUsernamePasswordSecret) MarshalJSON() ([]byte, error) { + type tokenType struct { + Type string `json:"type"` + Username string `json:"username"` + Password string `json:"password"` + } + return json.Marshal(tokenType{ + Type: "ServicePrincipalUsernamePasswordSecret", + Username: secret.Username, + Password: secret.Password, + }) +} + +// ServicePrincipalAuthorizationCodeSecret implements ServicePrincipalSecret for authorization code auth. +type ServicePrincipalAuthorizationCodeSecret struct { + ClientSecret string `json:"value"` + AuthorizationCode string `json:"authCode"` + RedirectURI string `json:"redirect"` +} + +// SetAuthenticationValues is a method of the interface ServicePrincipalSecret. +func (secret *ServicePrincipalAuthorizationCodeSecret) SetAuthenticationValues(spt *ServicePrincipalToken, v *url.Values) error { + v.Set("code", secret.AuthorizationCode) + v.Set("client_secret", secret.ClientSecret) + v.Set("redirect_uri", secret.RedirectURI) + return nil +} + +// MarshalJSON implements the json.Marshaler interface. +func (secret ServicePrincipalAuthorizationCodeSecret) MarshalJSON() ([]byte, error) { + type tokenType struct { + Type string `json:"type"` + Value string `json:"value"` + AuthCode string `json:"authCode"` + Redirect string `json:"redirect"` + } + return json.Marshal(tokenType{ + Type: "ServicePrincipalAuthorizationCodeSecret", + Value: secret.ClientSecret, + AuthCode: secret.AuthorizationCode, + Redirect: secret.RedirectURI, + }) +} + // ServicePrincipalToken encapsulates a Token created for a Service Principal. type ServicePrincipalToken struct { - token Token - secret ServicePrincipalSecret - oauthConfig OAuthConfig - clientID string - resource string - autoRefresh bool - refreshLock *sync.RWMutex - refreshWithin time.Duration - sender Sender - + inner servicePrincipalToken + refreshLock *sync.RWMutex + sender Sender refreshCallbacks []TokenRefreshCallback + // MaxMSIRefreshAttempts is the maximum number of attempts to refresh an MSI token. + MaxMSIRefreshAttempts int +} + +// MarshalTokenJSON returns the marshalled inner token. +func (spt ServicePrincipalToken) MarshalTokenJSON() ([]byte, error) { + return json.Marshal(spt.inner.Token) +} + +// SetRefreshCallbacks replaces any existing refresh callbacks with the specified callbacks. +func (spt *ServicePrincipalToken) SetRefreshCallbacks(callbacks []TokenRefreshCallback) { + spt.refreshCallbacks = callbacks +} + +// MarshalJSON implements the json.Marshaler interface. +func (spt ServicePrincipalToken) MarshalJSON() ([]byte, error) { + return json.Marshal(spt.inner) +} + +// UnmarshalJSON implements the json.Unmarshaler interface. +func (spt *ServicePrincipalToken) UnmarshalJSON(data []byte) error { + // need to determine the token type + raw := map[string]interface{}{} + err := json.Unmarshal(data, &raw) + if err != nil { + return err + } + secret := raw["secret"].(map[string]interface{}) + switch secret["type"] { + case "ServicePrincipalNoSecret": + spt.inner.Secret = &ServicePrincipalNoSecret{} + case "ServicePrincipalTokenSecret": + spt.inner.Secret = &ServicePrincipalTokenSecret{} + case "ServicePrincipalCertificateSecret": + return errors.New("unmarshalling ServicePrincipalCertificateSecret is not supported") + case "ServicePrincipalMSISecret": + return errors.New("unmarshalling ServicePrincipalMSISecret is not supported") + case "ServicePrincipalUsernamePasswordSecret": + spt.inner.Secret = &ServicePrincipalUsernamePasswordSecret{} + case "ServicePrincipalAuthorizationCodeSecret": + spt.inner.Secret = &ServicePrincipalAuthorizationCodeSecret{} + default: + return fmt.Errorf("unrecognized token type '%s'", secret["type"]) + } + err = json.Unmarshal(data, &spt.inner) + if err != nil { + return err + } + spt.refreshLock = &sync.RWMutex{} + spt.sender = &http.Client{} + return nil +} + +// internal type used for marshalling/unmarshalling +type servicePrincipalToken struct { + Token Token `json:"token"` + Secret ServicePrincipalSecret `json:"secret"` + OauthConfig OAuthConfig `json:"oauth"` + ClientID string `json:"clientID"` + Resource string `json:"resource"` + AutoRefresh bool `json:"autoRefresh"` + RefreshWithin time.Duration `json:"refreshWithin"` } func validateOAuthConfig(oac OAuthConfig) error { @@ -290,13 +413,15 @@ func NewServicePrincipalTokenWithSecret(oauthConfig OAuthConfig, id string, reso return nil, fmt.Errorf("parameter 'secret' cannot be nil") } spt := &ServicePrincipalToken{ - oauthConfig: oauthConfig, - secret: secret, - clientID: id, - resource: resource, - autoRefresh: true, + inner: servicePrincipalToken{ + OauthConfig: oauthConfig, + Secret: secret, + ClientID: id, + Resource: resource, + AutoRefresh: true, + RefreshWithin: defaultRefresh, + }, refreshLock: &sync.RWMutex{}, - refreshWithin: defaultRefresh, sender: &http.Client{}, refreshCallbacks: callbacks, } @@ -327,7 +452,39 @@ func NewServicePrincipalTokenFromManualToken(oauthConfig OAuthConfig, clientID s return nil, err } - spt.token = token + spt.inner.Token = token + + return spt, nil +} + +// NewServicePrincipalTokenFromManualTokenSecret creates a ServicePrincipalToken using the supplied token and secret +func NewServicePrincipalTokenFromManualTokenSecret(oauthConfig OAuthConfig, clientID string, resource string, token Token, secret ServicePrincipalSecret, callbacks ...TokenRefreshCallback) (*ServicePrincipalToken, error) { + if err := validateOAuthConfig(oauthConfig); err != nil { + return nil, err + } + if err := validateStringParam(clientID, "clientID"); err != nil { + return nil, err + } + if err := validateStringParam(resource, "resource"); err != nil { + return nil, err + } + if secret == nil { + return nil, fmt.Errorf("parameter 'secret' cannot be nil") + } + if token.IsZero() { + return nil, fmt.Errorf("parameter 'token' cannot be zero-initialized") + } + spt, err := NewServicePrincipalTokenWithSecret( + oauthConfig, + clientID, + resource, + secret, + callbacks...) + if err != nil { + return nil, err + } + + spt.inner.Token = token return spt, nil } @@ -495,20 +652,23 @@ func newServicePrincipalTokenFromMSI(msiEndpoint, resource string, userAssignedI msiEndpointURL.RawQuery = v.Encode() spt := &ServicePrincipalToken{ - oauthConfig: OAuthConfig{ - TokenEndpoint: *msiEndpointURL, + inner: servicePrincipalToken{ + OauthConfig: OAuthConfig{ + TokenEndpoint: *msiEndpointURL, + }, + Secret: &ServicePrincipalMSISecret{}, + Resource: resource, + AutoRefresh: true, + RefreshWithin: defaultRefresh, }, - secret: &ServicePrincipalMSISecret{}, - resource: resource, - autoRefresh: true, - refreshLock: &sync.RWMutex{}, - refreshWithin: defaultRefresh, - sender: &http.Client{}, - refreshCallbacks: callbacks, + refreshLock: &sync.RWMutex{}, + sender: &http.Client{}, + refreshCallbacks: callbacks, + MaxMSIRefreshAttempts: defaultMaxMSIRefreshAttempts, } if userAssignedID != nil { - spt.clientID = *userAssignedID + spt.inner.ClientID = *userAssignedID } return spt, nil @@ -543,12 +703,12 @@ func (spt *ServicePrincipalToken) EnsureFresh() error { // EnsureFreshWithContext will refresh the token if it will expire within the refresh window (as set by // RefreshWithin) and autoRefresh flag is on. This method is safe for concurrent use. func (spt *ServicePrincipalToken) EnsureFreshWithContext(ctx context.Context) error { - if spt.autoRefresh && spt.token.WillExpireIn(spt.refreshWithin) { + if spt.inner.AutoRefresh && spt.inner.Token.WillExpireIn(spt.inner.RefreshWithin) { // take the write lock then check to see if the token was already refreshed spt.refreshLock.Lock() defer spt.refreshLock.Unlock() - if spt.token.WillExpireIn(spt.refreshWithin) { - return spt.refreshInternal(ctx, spt.resource) + if spt.inner.Token.WillExpireIn(spt.inner.RefreshWithin) { + return spt.refreshInternal(ctx, spt.inner.Resource) } } return nil @@ -558,7 +718,7 @@ func (spt *ServicePrincipalToken) EnsureFreshWithContext(ctx context.Context) er func (spt *ServicePrincipalToken) InvokeRefreshCallbacks(token Token) error { if spt.refreshCallbacks != nil { for _, callback := range spt.refreshCallbacks { - err := callback(spt.token) + err := callback(spt.inner.Token) if err != nil { return fmt.Errorf("adal: TokenRefreshCallback handler failed. Error = '%v'", err) } @@ -578,7 +738,7 @@ func (spt *ServicePrincipalToken) Refresh() error { func (spt *ServicePrincipalToken) RefreshWithContext(ctx context.Context) error { spt.refreshLock.Lock() defer spt.refreshLock.Unlock() - return spt.refreshInternal(ctx, spt.resource) + return spt.refreshInternal(ctx, spt.inner.Resource) } // RefreshExchange refreshes the token, but for a different resource. @@ -596,7 +756,7 @@ func (spt *ServicePrincipalToken) RefreshExchangeWithContext(ctx context.Context } func (spt *ServicePrincipalToken) getGrantType() string { - switch spt.secret.(type) { + switch spt.inner.Secret.(type) { case *ServicePrincipalUsernamePasswordSecret: return OAuthGrantTypeUserPass case *ServicePrincipalAuthorizationCodeSecret: @@ -615,22 +775,31 @@ func isIMDS(u url.URL) bool { } func (spt *ServicePrincipalToken) refreshInternal(ctx context.Context, resource string) error { - req, err := http.NewRequest(http.MethodPost, spt.oauthConfig.TokenEndpoint.String(), nil) + req, err := http.NewRequest(http.MethodPost, spt.inner.OauthConfig.TokenEndpoint.String(), nil) if err != nil { return fmt.Errorf("adal: Failed to build the refresh request. Error = '%v'", err) } + req.Header.Add("User-Agent", version.UserAgent()) req = req.WithContext(ctx) - if !isIMDS(spt.oauthConfig.TokenEndpoint) { + if !isIMDS(spt.inner.OauthConfig.TokenEndpoint) { v := url.Values{} - v.Set("client_id", spt.clientID) + v.Set("client_id", spt.inner.ClientID) v.Set("resource", resource) - if spt.token.RefreshToken != "" { + if spt.inner.Token.RefreshToken != "" { v.Set("grant_type", OAuthGrantTypeRefreshToken) - v.Set("refresh_token", spt.token.RefreshToken) + v.Set("refresh_token", spt.inner.Token.RefreshToken) + // web apps must specify client_secret when refreshing tokens + // see https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-protocols-oauth-code#refreshing-the-access-tokens + if spt.getGrantType() == OAuthGrantTypeAuthorizationCode { + err := spt.inner.Secret.SetAuthenticationValues(spt, &v) + if err != nil { + return err + } + } } else { v.Set("grant_type", spt.getGrantType()) - err := spt.secret.SetAuthenticationValues(spt, &v) + err := spt.inner.Secret.SetAuthenticationValues(spt, &v) if err != nil { return err } @@ -643,14 +812,14 @@ func (spt *ServicePrincipalToken) refreshInternal(ctx context.Context, resource req.Body = body } - if _, ok := spt.secret.(*ServicePrincipalMSISecret); ok { + if _, ok := spt.inner.Secret.(*ServicePrincipalMSISecret); ok { req.Method = http.MethodGet req.Header.Set(metadataHeader, "true") } var resp *http.Response - if isIMDS(spt.oauthConfig.TokenEndpoint) { - resp, err = retry(spt.sender, req) + if isIMDS(spt.inner.OauthConfig.TokenEndpoint) { + resp, err = retryForIMDS(spt.sender, req, spt.MaxMSIRefreshAttempts) } else { resp, err = spt.sender.Do(req) } @@ -684,12 +853,14 @@ func (spt *ServicePrincipalToken) refreshInternal(ctx context.Context, resource return fmt.Errorf("adal: Failed to unmarshal the service principal token during refresh. Error = '%v' JSON = '%s'", err, string(rb)) } - spt.token = token + spt.inner.Token = token return spt.InvokeRefreshCallbacks(token) } -func retry(sender Sender, req *http.Request) (resp *http.Response, err error) { +// retry logic specific to retrieving a token from the IMDS endpoint +func retryForIMDS(sender Sender, req *http.Request, maxAttempts int) (resp *http.Response, err error) { + // copied from client.go due to circular dependency retries := []int{ http.StatusRequestTimeout, // 408 http.StatusTooManyRequests, // 429 @@ -698,8 +869,10 @@ func retry(sender Sender, req *http.Request) (resp *http.Response, err error) { http.StatusServiceUnavailable, // 503 http.StatusGatewayTimeout, // 504 } - // Extra retry status codes requered - retries = append(retries, http.StatusNotFound, + // extra retry status codes specific to IMDS + retries = append(retries, + http.StatusNotFound, + http.StatusGone, // all remaining 5xx http.StatusNotImplemented, http.StatusHTTPVersionNotSupported, @@ -709,36 +882,52 @@ func retry(sender Sender, req *http.Request) (resp *http.Response, err error) { http.StatusNotExtended, http.StatusNetworkAuthenticationRequired) + // see https://docs.microsoft.com/en-us/azure/active-directory/managed-service-identity/how-to-use-vm-token#retry-guidance + + const maxDelay time.Duration = 60 * time.Second + attempt := 0 - maxAttempts := 5 + delay := time.Duration(0) for attempt < maxAttempts { resp, err = sender.Do(req) // retry on temporary network errors, e.g. transient network failures. - if (err != nil && !isTemporaryNetworkError(err)) || resp.StatusCode == http.StatusOK || !containsInt(retries, resp.StatusCode) { + // if we don't receive a response then assume we can't connect to the + // endpoint so we're likely not running on an Azure VM so don't retry. + if (err != nil && !isTemporaryNetworkError(err)) || resp == nil || resp.StatusCode == http.StatusOK || !containsInt(retries, resp.StatusCode) { return } - if !delay(resp, req.Context().Done()) { - select { - case <-time.After(time.Second): - attempt++ - case <-req.Context().Done(): - err = req.Context().Err() - return - } + // perform exponential backoff with a cap. + // must increment attempt before calculating delay. + attempt++ + // the base value of 2 is the "delta backoff" as specified in the guidance doc + delay += (time.Duration(math.Pow(2, float64(attempt))) * time.Second) + if delay > maxDelay { + delay = maxDelay + } + + select { + case <-time.After(delay): + // intentionally left blank + case <-req.Context().Done(): + err = req.Context().Err() + return } } return } +// returns true if the specified error is a temporary network error or false if it's not. +// if the error doesn't implement the net.Error interface the return value is true. func isTemporaryNetworkError(err error) bool { - if netErr, ok := err.(net.Error); ok && netErr.Temporary() { + if netErr, ok := err.(net.Error); !ok || (ok && netErr.Temporary()) { return true } return false } +// returns true if slice ints contains the value n func containsInt(ints []int, n int) bool { for _, i := range ints { if i == n { @@ -748,31 +937,15 @@ func containsInt(ints []int, n int) bool { return false } -func delay(resp *http.Response, cancel <-chan struct{}) bool { - if resp == nil { - return false - } - retryAfter, _ := strconv.Atoi(resp.Header.Get("Retry-After")) - if resp.StatusCode == http.StatusTooManyRequests && retryAfter > 0 { - select { - case <-time.After(time.Duration(retryAfter) * time.Second): - return true - case <-cancel: - return false - } - } - return false -} - // SetAutoRefresh enables or disables automatic refreshing of stale tokens. func (spt *ServicePrincipalToken) SetAutoRefresh(autoRefresh bool) { - spt.autoRefresh = autoRefresh + spt.inner.AutoRefresh = autoRefresh } // SetRefreshWithin sets the interval within which if the token will expire, EnsureFresh will // refresh the token. func (spt *ServicePrincipalToken) SetRefreshWithin(d time.Duration) { - spt.refreshWithin = d + spt.inner.RefreshWithin = d return } @@ -784,12 +957,12 @@ func (spt *ServicePrincipalToken) SetSender(s Sender) { spt.sender = s } func (spt *ServicePrincipalToken) OAuthToken() string { spt.refreshLock.RLock() defer spt.refreshLock.RUnlock() - return spt.token.OAuthToken() + return spt.inner.Token.OAuthToken() } // Token returns a copy of the current token. func (spt *ServicePrincipalToken) Token() Token { spt.refreshLock.RLock() defer spt.refreshLock.RUnlock() - return spt.token + return spt.inner.Token } diff --git a/vendor/github.com/Azure/go-autorest/autorest/azure/async.go b/vendor/github.com/Azure/go-autorest/autorest/azure/async.go index a58e5ef3f..cda1e180a 100644 --- a/vendor/github.com/Azure/go-autorest/autorest/azure/async.go +++ b/vendor/github.com/Azure/go-autorest/autorest/azure/async.go @@ -21,11 +21,11 @@ import ( "fmt" "io/ioutil" "net/http" + "net/url" "strings" "time" "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/date" ) const ( @@ -44,84 +44,85 @@ var pollingCodes = [...]int{http.StatusNoContent, http.StatusAccepted, http.Stat // Future provides a mechanism to access the status and results of an asynchronous request. // Since futures are stateful they should be passed by value to avoid race conditions. type Future struct { - req *http.Request - resp *http.Response - ps pollingState + req *http.Request // legacy + pt pollingTracker } // NewFuture returns a new Future object initialized with the specified request. +// Deprecated: Please use NewFutureFromResponse instead. func NewFuture(req *http.Request) Future { return Future{req: req} } -// Response returns the last HTTP response or nil if there isn't one. +// NewFutureFromResponse returns a new Future object initialized +// with the initial response from an asynchronous operation. +func NewFutureFromResponse(resp *http.Response) (Future, error) { + pt, err := createPollingTracker(resp) + if err != nil { + return Future{}, err + } + return Future{pt: pt}, nil +} + +// Response returns the last HTTP response. func (f Future) Response() *http.Response { - return f.resp + if f.pt == nil { + return nil + } + return f.pt.latestResponse() } // Status returns the last status message of the operation. func (f Future) Status() string { - if f.ps.State == "" { - return "Unknown" + if f.pt == nil { + return "" } - return f.ps.State + return f.pt.pollingStatus() } // PollingMethod returns the method used to monitor the status of the asynchronous operation. func (f Future) PollingMethod() PollingMethodType { - return f.ps.PollingMethod + if f.pt == nil { + return PollingUnknown + } + return f.pt.pollingMethod() } // Done queries the service to see if the operation has completed. func (f *Future) Done(sender autorest.Sender) (bool, error) { - // exit early if this future has terminated - if f.ps.hasTerminated() { - return true, f.errorInfo() + // support for legacy Future implementation + if f.req != nil { + resp, err := sender.Do(f.req) + if err != nil { + return false, err + } + pt, err := createPollingTracker(resp) + if err != nil { + return false, err + } + f.pt = pt + f.req = nil } - resp, err := sender.Do(f.req) - f.resp = resp - if err != nil { + // end legacy + if f.pt == nil { + return false, autorest.NewError("Future", "Done", "future is not initialized") + } + if f.pt.hasTerminated() { + return true, f.pt.pollingError() + } + if err := f.pt.pollForStatus(sender); err != nil { return false, err } - - if !autorest.ResponseHasStatusCode(resp, pollingCodes[:]...) { - // check response body for error content - if resp.Body != nil { - type respErr struct { - ServiceError ServiceError `json:"error"` - } - re := respErr{} - - defer resp.Body.Close() - b, err := ioutil.ReadAll(resp.Body) - if err != nil { - return false, err - } - err = json.Unmarshal(b, &re) - if err != nil { - return false, err - } - return false, re.ServiceError - } - - // try to return something meaningful - return false, ServiceError{ - Code: fmt.Sprintf("%v", resp.StatusCode), - Message: resp.Status, - } + if err := f.pt.checkForErrors(); err != nil { + return f.pt.hasTerminated(), err } - - err = updatePollingState(resp, &f.ps) - if err != nil { + if err := f.pt.updatePollingState(f.pt.provisioningStateApplicable()); err != nil { return false, err } - - if f.ps.hasTerminated() { - return true, f.errorInfo() + if err := f.pt.updateHeaders(); err != nil { + return false, err } - - f.req, err = newPollingRequest(f.ps) - return false, err + return f.pt.hasTerminated(), f.pt.pollingError() } // GetPollingDelay returns a duration the application should wait before checking @@ -129,11 +130,15 @@ func (f *Future) Done(sender autorest.Sender) (bool, error) { // the service via the Retry-After response header. If the header wasn't returned // then the function returns the zero-value time.Duration and false. func (f Future) GetPollingDelay() (time.Duration, bool) { - if f.resp == nil { + if f.pt == nil { + return 0, false + } + resp := f.pt.latestResponse() + if resp == nil { return 0, false } - retry := f.resp.Header.Get(autorest.HeaderRetryAfter) + retry := resp.Header.Get(autorest.HeaderRetryAfter) if retry == "" { return 0, false } @@ -150,14 +155,22 @@ func (f Future) GetPollingDelay() (time.Duration, bool) { // running operation has completed, the provided context is cancelled, or the client's // polling duration has been exceeded. It will retry failed polling attempts based on // the retry value defined in the client up to the maximum retry attempts. +// Deprecated: Please use WaitForCompletionRef() instead. func (f Future) WaitForCompletion(ctx context.Context, client autorest.Client) error { + return f.WaitForCompletionRef(ctx, client) +} + +// WaitForCompletionRef will return when one of the following conditions is met: the long +// running operation has completed, the provided context is cancelled, or the client's +// polling duration has been exceeded. It will retry failed polling attempts based on +// the retry value defined in the client up to the maximum retry attempts. +func (f *Future) WaitForCompletionRef(ctx context.Context, client autorest.Client) error { ctx, cancel := context.WithTimeout(ctx, client.PollingDuration) defer cancel() - done, err := f.Done(client) for attempts := 0; !done; done, err = f.Done(client) { if attempts >= client.RetryAttempts { - return autorest.NewErrorWithError(err, "azure", "WaitForCompletion", f.resp, "the number of retries has been exceeded") + return autorest.NewErrorWithError(err, "Future", "WaitForCompletion", f.pt.latestResponse(), "the number of retries has been exceeded") } // we want delayAttempt to be zero in the non-error case so // that DelayForBackoff doesn't perform exponential back-off @@ -181,162 +194,692 @@ func (f Future) WaitForCompletion(ctx context.Context, client autorest.Client) e // wait until the delay elapses or the context is cancelled delayElapsed := autorest.DelayForBackoff(delay, delayAttempt, ctx.Done()) if !delayElapsed { - return autorest.NewErrorWithError(ctx.Err(), "azure", "WaitForCompletion", f.resp, "context has been cancelled") + return autorest.NewErrorWithError(ctx.Err(), "Future", "WaitForCompletion", f.pt.latestResponse(), "context has been cancelled") } } return err } -// if the operation failed the polling state will contain -// error information and implements the error interface -func (f *Future) errorInfo() error { - if !f.ps.hasSucceeded() { - return f.ps - } - return nil -} - // MarshalJSON implements the json.Marshaler interface. func (f Future) MarshalJSON() ([]byte, error) { - return json.Marshal(&f.ps) + return json.Marshal(f.pt) } // UnmarshalJSON implements the json.Unmarshaler interface. func (f *Future) UnmarshalJSON(data []byte) error { - err := json.Unmarshal(data, &f.ps) + // unmarshal into JSON object to determine the tracker type + obj := map[string]interface{}{} + err := json.Unmarshal(data, &obj) if err != nil { return err } - f.req, err = newPollingRequest(f.ps) - return err + if obj["method"] == nil { + return autorest.NewError("Future", "UnmarshalJSON", "missing 'method' property") + } + method := obj["method"].(string) + switch strings.ToUpper(method) { + case http.MethodDelete: + f.pt = &pollingTrackerDelete{} + case http.MethodPatch: + f.pt = &pollingTrackerPatch{} + case http.MethodPost: + f.pt = &pollingTrackerPost{} + case http.MethodPut: + f.pt = &pollingTrackerPut{} + default: + return autorest.NewError("Future", "UnmarshalJSON", "unsupoorted method '%s'", method) + } + // now unmarshal into the tracker + return json.Unmarshal(data, &f.pt) } // PollingURL returns the URL used for retrieving the status of the long-running operation. -// For LROs that use the Location header the final URL value is used to retrieve the result. func (f Future) PollingURL() string { - return f.ps.URI + if f.pt == nil { + return "" + } + return f.pt.pollingURL() +} + +// GetResult should be called once polling has completed successfully. +// It makes the final GET call to retrieve the resultant payload. +func (f Future) GetResult(sender autorest.Sender) (*http.Response, error) { + if f.pt.finalGetURL() == "" { + // we can end up in this situation if the async operation returns a 200 + // with no polling URLs. in that case return the response which should + // contain the JSON payload (only do this for successful terminal cases). + if lr := f.pt.latestResponse(); lr != nil && f.pt.hasSucceeded() { + return lr, nil + } + return nil, autorest.NewError("Future", "GetResult", "missing URL for retrieving result") + } + req, err := http.NewRequest(http.MethodGet, f.pt.finalGetURL(), nil) + if err != nil { + return nil, err + } + return sender.Do(req) +} + +type pollingTracker interface { + // these methods can differ per tracker + + // checks the response headers and status code to determine the polling mechanism + updateHeaders() error + + // checks the response for tracker-specific error conditions + checkForErrors() error + + // returns true if provisioning state should be checked + provisioningStateApplicable() bool + + // methods common to all trackers + + // initializes the tracker's internal state, call this when the tracker is created + initializeState() error + + // makes an HTTP request to check the status of the LRO + pollForStatus(sender autorest.Sender) error + + // updates internal tracker state, call this after each call to pollForStatus + updatePollingState(provStateApl bool) error + + // returns the error response from the service, can be nil + pollingError() error + + // returns the polling method being used + pollingMethod() PollingMethodType + + // returns the state of the LRO as returned from the service + pollingStatus() string + + // returns the URL used for polling status + pollingURL() string + + // returns the URL used for the final GET to retrieve the resource + finalGetURL() string + + // returns true if the LRO is in a terminal state + hasTerminated() bool + + // returns true if the LRO is in a failed terminal state + hasFailed() bool + + // returns true if the LRO is in a successful terminal state + hasSucceeded() bool + + // returns the cached HTTP response after a call to pollForStatus(), can be nil + latestResponse() *http.Response +} + +type pollingTrackerBase struct { + // resp is the last response, either from the submission of the LRO or from polling + resp *http.Response + + // method is the HTTP verb, this is needed for deserialization + Method string `json:"method"` + + // rawBody is the raw JSON response body + rawBody map[string]interface{} + + // denotes if polling is using async-operation or location header + Pm PollingMethodType `json:"pollingMethod"` + + // the URL to poll for status + URI string `json:"pollingURI"` + + // the state of the LRO as returned from the service + State string `json:"lroState"` + + // the URL to GET for the final result + FinalGetURI string `json:"resultURI"` + + // used to hold an error object returned from the service + Err *ServiceError `json:"error,omitempty"` +} + +func (pt *pollingTrackerBase) initializeState() error { + // determine the initial polling state based on response body and/or HTTP status + // code. this is applicable to the initial LRO response, not polling responses! + pt.Method = pt.resp.Request.Method + if err := pt.updateRawBody(); err != nil { + return err + } + switch pt.resp.StatusCode { + case http.StatusOK: + if ps := pt.getProvisioningState(); ps != nil { + pt.State = *ps + } else { + pt.State = operationSucceeded + } + case http.StatusCreated: + if ps := pt.getProvisioningState(); ps != nil { + pt.State = *ps + } else { + pt.State = operationInProgress + } + case http.StatusAccepted: + pt.State = operationInProgress + case http.StatusNoContent: + pt.State = operationSucceeded + default: + pt.State = operationFailed + pt.updateErrorFromResponse() + } + return nil +} + +func (pt pollingTrackerBase) getProvisioningState() *string { + if pt.rawBody != nil && pt.rawBody["properties"] != nil { + p := pt.rawBody["properties"].(map[string]interface{}) + if ps := p["provisioningState"]; ps != nil { + s := ps.(string) + return &s + } + } + return nil +} + +func (pt *pollingTrackerBase) updateRawBody() error { + pt.rawBody = map[string]interface{}{} + if pt.resp.ContentLength != 0 { + defer pt.resp.Body.Close() + b, err := ioutil.ReadAll(pt.resp.Body) + if err != nil { + return autorest.NewErrorWithError(err, "pollingTrackerBase", "updateRawBody", nil, "failed to read response body") + } + // put the body back so it's available to other callers + pt.resp.Body = ioutil.NopCloser(bytes.NewReader(b)) + if err = json.Unmarshal(b, &pt.rawBody); err != nil { + return autorest.NewErrorWithError(err, "pollingTrackerBase", "updateRawBody", nil, "failed to unmarshal response body") + } + } + return nil +} + +func (pt *pollingTrackerBase) pollForStatus(sender autorest.Sender) error { + req, err := http.NewRequest(http.MethodGet, pt.URI, nil) + if err != nil { + return autorest.NewErrorWithError(err, "pollingTrackerBase", "pollForStatus", nil, "failed to create HTTP request") + } + // attach the context from the original request if available (it will be absent for deserialized futures) + if pt.resp != nil { + req = req.WithContext(pt.resp.Request.Context()) + } + pt.resp, err = sender.Do(req) + if err != nil { + return autorest.NewErrorWithError(err, "pollingTrackerBase", "pollForStatus", nil, "failed to send HTTP request") + } + if autorest.ResponseHasStatusCode(pt.resp, pollingCodes[:]...) { + // reset the service error on success case + pt.Err = nil + err = pt.updateRawBody() + } else { + // check response body for error content + pt.updateErrorFromResponse() + } + return err +} + +// attempts to unmarshal a ServiceError type from the response body. +// if that fails then make a best attempt at creating something meaningful. +func (pt *pollingTrackerBase) updateErrorFromResponse() { + var err error + if pt.resp.ContentLength != 0 { + type respErr struct { + ServiceError *ServiceError `json:"error"` + } + re := respErr{} + defer pt.resp.Body.Close() + var b []byte + b, err = ioutil.ReadAll(pt.resp.Body) + if err != nil { + goto Default + } + if err = json.Unmarshal(b, &re); err != nil { + goto Default + } + // unmarshalling the error didn't yield anything, try unwrapped error + if re.ServiceError == nil { + err = json.Unmarshal(b, &re.ServiceError) + if err != nil { + goto Default + } + } + if re.ServiceError != nil { + pt.Err = re.ServiceError + return + } + } +Default: + se := &ServiceError{ + Code: fmt.Sprintf("HTTP status code %v", pt.resp.StatusCode), + Message: pt.resp.Status, + } + if err != nil { + se.InnerError = make(map[string]interface{}) + se.InnerError["unmarshalError"] = err.Error() + } + pt.Err = se +} + +func (pt *pollingTrackerBase) updatePollingState(provStateApl bool) error { + if pt.Pm == PollingAsyncOperation && pt.rawBody["status"] != nil { + pt.State = pt.rawBody["status"].(string) + } else { + if pt.resp.StatusCode == http.StatusAccepted { + pt.State = operationInProgress + } else if provStateApl { + if ps := pt.getProvisioningState(); ps != nil { + pt.State = *ps + } else { + pt.State = operationSucceeded + } + } else { + return autorest.NewError("pollingTrackerBase", "updatePollingState", "the response from the async operation has an invalid status code") + } + } + // if the operation has failed update the error state + if pt.hasFailed() { + pt.updateErrorFromResponse() + } + return nil +} + +func (pt pollingTrackerBase) pollingError() error { + if pt.Err == nil { + return nil + } + return pt.Err +} + +func (pt pollingTrackerBase) pollingMethod() PollingMethodType { + return pt.Pm +} + +func (pt pollingTrackerBase) pollingStatus() string { + return pt.State +} + +func (pt pollingTrackerBase) pollingURL() string { + return pt.URI +} + +func (pt pollingTrackerBase) finalGetURL() string { + return pt.FinalGetURI +} + +func (pt pollingTrackerBase) hasTerminated() bool { + return strings.EqualFold(pt.State, operationCanceled) || strings.EqualFold(pt.State, operationFailed) || strings.EqualFold(pt.State, operationSucceeded) +} + +func (pt pollingTrackerBase) hasFailed() bool { + return strings.EqualFold(pt.State, operationCanceled) || strings.EqualFold(pt.State, operationFailed) +} + +func (pt pollingTrackerBase) hasSucceeded() bool { + return strings.EqualFold(pt.State, operationSucceeded) +} + +func (pt pollingTrackerBase) latestResponse() *http.Response { + return pt.resp +} + +// error checking common to all trackers +func (pt pollingTrackerBase) baseCheckForErrors() error { + // for Azure-AsyncOperations the response body cannot be nil or empty + if pt.Pm == PollingAsyncOperation { + if pt.resp.Body == nil || pt.resp.ContentLength == 0 { + return autorest.NewError("pollingTrackerBase", "baseCheckForErrors", "for Azure-AsyncOperation response body cannot be nil") + } + if pt.rawBody["status"] == nil { + return autorest.NewError("pollingTrackerBase", "baseCheckForErrors", "missing status property in Azure-AsyncOperation response body") + } + } + return nil +} + +// DELETE + +type pollingTrackerDelete struct { + pollingTrackerBase +} + +func (pt *pollingTrackerDelete) updateHeaders() error { + // for 201 the Location header is required + if pt.resp.StatusCode == http.StatusCreated { + if lh, err := getURLFromLocationHeader(pt.resp); err != nil { + return err + } else if lh == "" { + return autorest.NewError("pollingTrackerDelete", "updateHeaders", "missing Location header in 201 response") + } else { + pt.URI = lh + } + pt.Pm = PollingLocation + pt.FinalGetURI = pt.URI + } + // for 202 prefer the Azure-AsyncOperation header but fall back to Location if necessary + if pt.resp.StatusCode == http.StatusAccepted { + ao, err := getURLFromAsyncOpHeader(pt.resp) + if err != nil { + return err + } else if ao != "" { + pt.URI = ao + pt.Pm = PollingAsyncOperation + } + // if the Location header is invalid and we already have a polling URL + // then we don't care if the Location header URL is malformed. + if lh, err := getURLFromLocationHeader(pt.resp); err != nil && pt.URI == "" { + return err + } else if lh != "" { + if ao == "" { + pt.URI = lh + pt.Pm = PollingLocation + } + // when both headers are returned we use the value in the Location header for the final GET + pt.FinalGetURI = lh + } + // make sure a polling URL was found + if pt.URI == "" { + return autorest.NewError("pollingTrackerPost", "updateHeaders", "didn't get any suitable polling URLs in 202 response") + } + } + return nil +} + +func (pt pollingTrackerDelete) checkForErrors() error { + return pt.baseCheckForErrors() +} + +func (pt pollingTrackerDelete) provisioningStateApplicable() bool { + return pt.resp.StatusCode == http.StatusOK || pt.resp.StatusCode == http.StatusNoContent +} + +// PATCH + +type pollingTrackerPatch struct { + pollingTrackerBase +} + +func (pt *pollingTrackerPatch) updateHeaders() error { + // by default we can use the original URL for polling and final GET + if pt.URI == "" { + pt.URI = pt.resp.Request.URL.String() + } + if pt.FinalGetURI == "" { + pt.FinalGetURI = pt.resp.Request.URL.String() + } + if pt.Pm == PollingUnknown { + pt.Pm = PollingRequestURI + } + // for 201 it's permissible for no headers to be returned + if pt.resp.StatusCode == http.StatusCreated { + if ao, err := getURLFromAsyncOpHeader(pt.resp); err != nil { + return err + } else if ao != "" { + pt.URI = ao + pt.Pm = PollingAsyncOperation + } + } + // for 202 prefer the Azure-AsyncOperation header but fall back to Location if necessary + // note the absense of the "final GET" mechanism for PATCH + if pt.resp.StatusCode == http.StatusAccepted { + ao, err := getURLFromAsyncOpHeader(pt.resp) + if err != nil { + return err + } else if ao != "" { + pt.URI = ao + pt.Pm = PollingAsyncOperation + } + if ao == "" { + if lh, err := getURLFromLocationHeader(pt.resp); err != nil { + return err + } else if lh == "" { + return autorest.NewError("pollingTrackerPatch", "updateHeaders", "didn't get any suitable polling URLs in 202 response") + } else { + pt.URI = lh + pt.Pm = PollingLocation + } + } + } + return nil +} + +func (pt pollingTrackerPatch) checkForErrors() error { + return pt.baseCheckForErrors() +} + +func (pt pollingTrackerPatch) provisioningStateApplicable() bool { + return pt.resp.StatusCode == http.StatusOK || pt.resp.StatusCode == http.StatusCreated +} + +// POST + +type pollingTrackerPost struct { + pollingTrackerBase +} + +func (pt *pollingTrackerPost) updateHeaders() error { + // 201 requires Location header + if pt.resp.StatusCode == http.StatusCreated { + if lh, err := getURLFromLocationHeader(pt.resp); err != nil { + return err + } else if lh == "" { + return autorest.NewError("pollingTrackerPost", "updateHeaders", "missing Location header in 201 response") + } else { + pt.URI = lh + pt.FinalGetURI = lh + pt.Pm = PollingLocation + } + } + // for 202 prefer the Azure-AsyncOperation header but fall back to Location if necessary + if pt.resp.StatusCode == http.StatusAccepted { + ao, err := getURLFromAsyncOpHeader(pt.resp) + if err != nil { + return err + } else if ao != "" { + pt.URI = ao + pt.Pm = PollingAsyncOperation + } + // if the Location header is invalid and we already have a polling URL + // then we don't care if the Location header URL is malformed. + if lh, err := getURLFromLocationHeader(pt.resp); err != nil && pt.URI == "" { + return err + } else if lh != "" { + if ao == "" { + pt.URI = lh + pt.Pm = PollingLocation + } + // when both headers are returned we use the value in the Location header for the final GET + pt.FinalGetURI = lh + } + // make sure a polling URL was found + if pt.URI == "" { + return autorest.NewError("pollingTrackerPost", "updateHeaders", "didn't get any suitable polling URLs in 202 response") + } + } + return nil +} + +func (pt pollingTrackerPost) checkForErrors() error { + return pt.baseCheckForErrors() +} + +func (pt pollingTrackerPost) provisioningStateApplicable() bool { + return pt.resp.StatusCode == http.StatusOK || pt.resp.StatusCode == http.StatusNoContent +} + +// PUT + +type pollingTrackerPut struct { + pollingTrackerBase +} + +func (pt *pollingTrackerPut) updateHeaders() error { + // by default we can use the original URL for polling and final GET + if pt.URI == "" { + pt.URI = pt.resp.Request.URL.String() + } + if pt.FinalGetURI == "" { + pt.FinalGetURI = pt.resp.Request.URL.String() + } + if pt.Pm == PollingUnknown { + pt.Pm = PollingRequestURI + } + // for 201 it's permissible for no headers to be returned + if pt.resp.StatusCode == http.StatusCreated { + if ao, err := getURLFromAsyncOpHeader(pt.resp); err != nil { + return err + } else if ao != "" { + pt.URI = ao + pt.Pm = PollingAsyncOperation + } + } + // for 202 prefer the Azure-AsyncOperation header but fall back to Location if necessary + if pt.resp.StatusCode == http.StatusAccepted { + ao, err := getURLFromAsyncOpHeader(pt.resp) + if err != nil { + return err + } else if ao != "" { + pt.URI = ao + pt.Pm = PollingAsyncOperation + } + // if the Location header is invalid and we already have a polling URL + // then we don't care if the Location header URL is malformed. + if lh, err := getURLFromLocationHeader(pt.resp); err != nil && pt.URI == "" { + return err + } else if lh != "" { + if ao == "" { + pt.URI = lh + pt.Pm = PollingLocation + } + // when both headers are returned we use the value in the Location header for the final GET + pt.FinalGetURI = lh + } + // make sure a polling URL was found + if pt.URI == "" { + return autorest.NewError("pollingTrackerPut", "updateHeaders", "didn't get any suitable polling URLs in 202 response") + } + } + return nil +} + +func (pt pollingTrackerPut) checkForErrors() error { + err := pt.baseCheckForErrors() + if err != nil { + return err + } + // if there are no LRO headers then the body cannot be empty + ao, err := getURLFromAsyncOpHeader(pt.resp) + if err != nil { + return err + } + lh, err := getURLFromLocationHeader(pt.resp) + if err != nil { + return err + } + if ao == "" && lh == "" && len(pt.rawBody) == 0 { + return autorest.NewError("pollingTrackerPut", "checkForErrors", "the response did not contain a body") + } + return nil +} + +func (pt pollingTrackerPut) provisioningStateApplicable() bool { + return pt.resp.StatusCode == http.StatusOK || pt.resp.StatusCode == http.StatusCreated +} + +// creates a polling tracker based on the verb of the original request +func createPollingTracker(resp *http.Response) (pollingTracker, error) { + var pt pollingTracker + switch strings.ToUpper(resp.Request.Method) { + case http.MethodDelete: + pt = &pollingTrackerDelete{pollingTrackerBase: pollingTrackerBase{resp: resp}} + case http.MethodPatch: + pt = &pollingTrackerPatch{pollingTrackerBase: pollingTrackerBase{resp: resp}} + case http.MethodPost: + pt = &pollingTrackerPost{pollingTrackerBase: pollingTrackerBase{resp: resp}} + case http.MethodPut: + pt = &pollingTrackerPut{pollingTrackerBase: pollingTrackerBase{resp: resp}} + default: + return nil, autorest.NewError("azure", "createPollingTracker", "unsupported HTTP method %s", resp.Request.Method) + } + if err := pt.initializeState(); err != nil { + return pt, err + } + // this initializes the polling header values, we do this during creation in case the + // initial response send us invalid values; this way the API call will return a non-nil + // error (not doing this means the error shows up in Future.Done) + return pt, pt.updateHeaders() +} + +// gets the polling URL from the Azure-AsyncOperation header. +// ensures the URL is well-formed and absolute. +func getURLFromAsyncOpHeader(resp *http.Response) (string, error) { + s := resp.Header.Get(http.CanonicalHeaderKey(headerAsyncOperation)) + if s == "" { + return "", nil + } + if !isValidURL(s) { + return "", autorest.NewError("azure", "getURLFromAsyncOpHeader", "invalid polling URL '%s'", s) + } + return s, nil +} + +// gets the polling URL from the Location header. +// ensures the URL is well-formed and absolute. +func getURLFromLocationHeader(resp *http.Response) (string, error) { + s := resp.Header.Get(http.CanonicalHeaderKey(autorest.HeaderLocation)) + if s == "" { + return "", nil + } + if !isValidURL(s) { + return "", autorest.NewError("azure", "getURLFromLocationHeader", "invalid polling URL '%s'", s) + } + return s, nil +} + +// verify that the URL is valid and absolute +func isValidURL(s string) bool { + u, err := url.Parse(s) + return err == nil && u.IsAbs() } // DoPollForAsynchronous returns a SendDecorator that polls if the http.Response is for an Azure // long-running operation. It will delay between requests for the duration specified in the -// RetryAfter header or, if the header is absent, the passed delay. Polling may be canceled by -// closing the optional channel on the http.Request. +// RetryAfter header or, if the header is absent, the passed delay. Polling may be canceled via +// the context associated with the http.Request. +// Deprecated: Prefer using Futures to allow for non-blocking async operations. func DoPollForAsynchronous(delay time.Duration) autorest.SendDecorator { return func(s autorest.Sender) autorest.Sender { - return autorest.SenderFunc(func(r *http.Request) (resp *http.Response, err error) { - resp, err = s.Do(r) + return autorest.SenderFunc(func(r *http.Request) (*http.Response, error) { + resp, err := s.Do(r) if err != nil { return resp, err } if !autorest.ResponseHasStatusCode(resp, pollingCodes[:]...) { return resp, nil } - - ps := pollingState{} - for err == nil { - err = updatePollingState(resp, &ps) - if err != nil { - break - } - if ps.hasTerminated() { - if !ps.hasSucceeded() { - err = ps - } - break - } - - r, err = newPollingRequest(ps) - if err != nil { - return resp, err - } - r = r.WithContext(resp.Request.Context()) - - delay = autorest.GetRetryAfter(resp, delay) - resp, err = autorest.SendWithSender(s, r, - autorest.AfterDelay(delay)) + future, err := NewFutureFromResponse(resp) + if err != nil { + return resp, err } - - return resp, err + // retry until either the LRO completes or we receive an error + var done bool + for done, err = future.Done(s); !done && err == nil; done, err = future.Done(s) { + // check for Retry-After delay, if not present use the specified polling delay + if pd, ok := future.GetPollingDelay(); ok { + delay = pd + } + // wait until the delay elapses or the context is cancelled + if delayElapsed := autorest.DelayForBackoff(delay, 0, r.Context().Done()); !delayElapsed { + return future.Response(), + autorest.NewErrorWithError(r.Context().Err(), "azure", "DoPollForAsynchronous", future.Response(), "context has been cancelled") + } + } + return future.Response(), err }) } } -func getAsyncOperation(resp *http.Response) string { - return resp.Header.Get(http.CanonicalHeaderKey(headerAsyncOperation)) -} - -func hasSucceeded(state string) bool { - return strings.EqualFold(state, operationSucceeded) -} - -func hasTerminated(state string) bool { - return strings.EqualFold(state, operationCanceled) || strings.EqualFold(state, operationFailed) || strings.EqualFold(state, operationSucceeded) -} - -func hasFailed(state string) bool { - return strings.EqualFold(state, operationFailed) -} - -type provisioningTracker interface { - state() string - hasSucceeded() bool - hasTerminated() bool -} - -type operationResource struct { - // Note: - // The specification states services should return the "id" field. However some return it as - // "operationId". - ID string `json:"id"` - OperationID string `json:"operationId"` - Name string `json:"name"` - Status string `json:"status"` - Properties map[string]interface{} `json:"properties"` - OperationError ServiceError `json:"error"` - StartTime date.Time `json:"startTime"` - EndTime date.Time `json:"endTime"` - PercentComplete float64 `json:"percentComplete"` -} - -func (or operationResource) state() string { - return or.Status -} - -func (or operationResource) hasSucceeded() bool { - return hasSucceeded(or.state()) -} - -func (or operationResource) hasTerminated() bool { - return hasTerminated(or.state()) -} - -type provisioningProperties struct { - ProvisioningState string `json:"provisioningState"` -} - -type provisioningStatus struct { - Properties provisioningProperties `json:"properties,omitempty"` - ProvisioningError ServiceError `json:"error,omitempty"` -} - -func (ps provisioningStatus) state() string { - return ps.Properties.ProvisioningState -} - -func (ps provisioningStatus) hasSucceeded() bool { - return hasSucceeded(ps.state()) -} - -func (ps provisioningStatus) hasTerminated() bool { - return hasTerminated(ps.state()) -} - -func (ps provisioningStatus) hasProvisioningError() bool { - // code and message are required fields so only check them - return len(ps.ProvisioningError.Code) > 0 || - len(ps.ProvisioningError.Message) > 0 -} - // PollingMethodType defines a type used for enumerating polling mechanisms. type PollingMethodType string @@ -347,151 +890,13 @@ const ( // PollingLocation indicates the polling method uses the Location header. PollingLocation PollingMethodType = "Location" + // PollingRequestURI indicates the polling method uses the original request URI. + PollingRequestURI PollingMethodType = "RequestURI" + // PollingUnknown indicates an unknown polling method and is the default value. PollingUnknown PollingMethodType = "" ) -type pollingState struct { - PollingMethod PollingMethodType `json:"pollingMethod"` - URI string `json:"uri"` - State string `json:"state"` - ServiceError *ServiceError `json:"error,omitempty"` -} - -func (ps pollingState) hasSucceeded() bool { - return hasSucceeded(ps.State) -} - -func (ps pollingState) hasTerminated() bool { - return hasTerminated(ps.State) -} - -func (ps pollingState) hasFailed() bool { - return hasFailed(ps.State) -} - -func (ps pollingState) Error() string { - s := fmt.Sprintf("Long running operation terminated with status '%s'", ps.State) - if ps.ServiceError != nil { - s = fmt.Sprintf("%s: %+v", s, *ps.ServiceError) - } - return s -} - -// updatePollingState maps the operation status -- retrieved from either a provisioningState -// field, the status field of an OperationResource, or inferred from the HTTP status code -- -// into a well-known states. Since the process begins from the initial request, the state -// always comes from either a the provisioningState returned or is inferred from the HTTP -// status code. Subsequent requests will read an Azure OperationResource object if the -// service initially returned the Azure-AsyncOperation header. The responseFormat field notes -// the expected response format. -func updatePollingState(resp *http.Response, ps *pollingState) error { - // Determine the response shape - // -- The first response will always be a provisioningStatus response; only the polling requests, - // depending on the header returned, may be something otherwise. - var pt provisioningTracker - if ps.PollingMethod == PollingAsyncOperation { - pt = &operationResource{} - } else { - pt = &provisioningStatus{} - } - - // If this is the first request (that is, the polling response shape is unknown), determine how - // to poll and what to expect - if ps.PollingMethod == PollingUnknown { - req := resp.Request - if req == nil { - return autorest.NewError("azure", "updatePollingState", "Azure Polling Error - Original HTTP request is missing") - } - - // Prefer the Azure-AsyncOperation header - ps.URI = getAsyncOperation(resp) - if ps.URI != "" { - ps.PollingMethod = PollingAsyncOperation - } else { - ps.PollingMethod = PollingLocation - } - - // Else, use the Location header - if ps.URI == "" { - ps.URI = autorest.GetLocation(resp) - } - - // Lastly, requests against an existing resource, use the last request URI - if ps.URI == "" { - m := strings.ToUpper(req.Method) - if m == http.MethodPatch || m == http.MethodPut || m == http.MethodGet { - ps.URI = req.URL.String() - } - } - } - - // Read and interpret the response (saving the Body in case no polling is necessary) - b := &bytes.Buffer{} - err := autorest.Respond(resp, - autorest.ByCopying(b), - autorest.ByUnmarshallingJSON(pt), - autorest.ByClosing()) - resp.Body = ioutil.NopCloser(b) - if err != nil { - return err - } - - // Interpret the results - // -- Terminal states apply regardless - // -- Unknown states are per-service inprogress states - // -- Otherwise, infer state from HTTP status code - if pt.hasTerminated() { - ps.State = pt.state() - } else if pt.state() != "" { - ps.State = operationInProgress - } else { - switch resp.StatusCode { - case http.StatusAccepted: - ps.State = operationInProgress - - case http.StatusNoContent, http.StatusCreated, http.StatusOK: - ps.State = operationSucceeded - - default: - ps.State = operationFailed - } - } - - if strings.EqualFold(ps.State, operationInProgress) && ps.URI == "" { - return autorest.NewError("azure", "updatePollingState", "Azure Polling Error - Unable to obtain polling URI for %s %s", resp.Request.Method, resp.Request.URL) - } - - // For failed operation, check for error code and message in - // -- Operation resource - // -- Response - // -- Otherwise, Unknown - if ps.hasFailed() { - if or, ok := pt.(*operationResource); ok { - ps.ServiceError = &or.OperationError - } else if p, ok := pt.(*provisioningStatus); ok && p.hasProvisioningError() { - ps.ServiceError = &p.ProvisioningError - } else { - ps.ServiceError = &ServiceError{ - Code: "Unknown", - Message: "None", - } - } - } - return nil -} - -func newPollingRequest(ps pollingState) (*http.Request, error) { - reqPoll, err := autorest.Prepare(&http.Request{}, - autorest.AsGet(), - autorest.WithBaseURL(ps.URI)) - if err != nil { - return nil, autorest.NewErrorWithError(err, "azure", "newPollingRequest", nil, "Failure creating poll request to %s", ps.URI) - } - - return reqPoll, nil -} - // AsyncOpIncompleteError is the type that's returned from a future that has not completed. type AsyncOpIncompleteError struct { // FutureType is the name of the type composed of a azure.Future. diff --git a/vendor/github.com/Azure/go-autorest/autorest/azure/auth/auth.go b/vendor/github.com/Azure/go-autorest/autorest/azure/auth/auth.go new file mode 100644 index 000000000..a14b87900 --- /dev/null +++ b/vendor/github.com/Azure/go-autorest/autorest/azure/auth/auth.go @@ -0,0 +1,444 @@ +package auth + +// Copyright 2017 Microsoft Corporation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import ( + "bytes" + "crypto/rsa" + "crypto/x509" + "encoding/binary" + "encoding/json" + "errors" + "fmt" + "io/ioutil" + "log" + "os" + "strings" + "unicode/utf16" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/adal" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/dimchansky/utfbom" + "golang.org/x/crypto/pkcs12" +) + +// NewAuthorizerFromEnvironment creates an Authorizer configured from environment variables in the order: +// 1. Client credentials +// 2. Client certificate +// 3. Username password +// 4. MSI +func NewAuthorizerFromEnvironment() (autorest.Authorizer, error) { + settings, err := getAuthenticationSettings() + if err != nil { + return nil, err + } + + if settings.resource == "" { + settings.resource = settings.environment.ResourceManagerEndpoint + } + + return settings.getAuthorizer() +} + +// NewAuthorizerFromEnvironmentWithResource creates an Authorizer configured from environment variables in the order: +// 1. Client credentials +// 2. Client certificate +// 3. Username password +// 4. MSI +func NewAuthorizerFromEnvironmentWithResource(resource string) (autorest.Authorizer, error) { + settings, err := getAuthenticationSettings() + if err != nil { + return nil, err + } + settings.resource = resource + return settings.getAuthorizer() +} + +type settings struct { + tenantID string + clientID string + clientSecret string + certificatePath string + certificatePassword string + username string + password string + envName string + resource string + environment azure.Environment +} + +func getAuthenticationSettings() (s settings, err error) { + s = settings{ + tenantID: os.Getenv("AZURE_TENANT_ID"), + clientID: os.Getenv("AZURE_CLIENT_ID"), + clientSecret: os.Getenv("AZURE_CLIENT_SECRET"), + certificatePath: os.Getenv("AZURE_CERTIFICATE_PATH"), + certificatePassword: os.Getenv("AZURE_CERTIFICATE_PASSWORD"), + username: os.Getenv("AZURE_USERNAME"), + password: os.Getenv("AZURE_PASSWORD"), + envName: os.Getenv("AZURE_ENVIRONMENT"), + resource: os.Getenv("AZURE_AD_RESOURCE"), + } + + if s.envName == "" { + s.environment = azure.PublicCloud + } else { + s.environment, err = azure.EnvironmentFromName(s.envName) + } + return +} + +func (settings settings) getAuthorizer() (autorest.Authorizer, error) { + //1.Client Credentials + if settings.clientSecret != "" { + config := NewClientCredentialsConfig(settings.clientID, settings.clientSecret, settings.tenantID) + config.AADEndpoint = settings.environment.ActiveDirectoryEndpoint + config.Resource = settings.resource + return config.Authorizer() + } + + //2. Client Certificate + if settings.certificatePath != "" { + config := NewClientCertificateConfig(settings.certificatePath, settings.certificatePassword, settings.clientID, settings.tenantID) + config.AADEndpoint = settings.environment.ActiveDirectoryEndpoint + config.Resource = settings.resource + return config.Authorizer() + } + + //3. Username Password + if settings.username != "" && settings.password != "" { + config := NewUsernamePasswordConfig(settings.username, settings.password, settings.clientID, settings.tenantID) + config.AADEndpoint = settings.environment.ActiveDirectoryEndpoint + config.Resource = settings.resource + return config.Authorizer() + } + + // 4. MSI + config := NewMSIConfig() + config.Resource = settings.resource + config.ClientID = settings.clientID + return config.Authorizer() +} + +// NewAuthorizerFromFile creates an Authorizer configured from a configuration file. +func NewAuthorizerFromFile(baseURI string) (autorest.Authorizer, error) { + fileLocation := os.Getenv("AZURE_AUTH_LOCATION") + if fileLocation == "" { + return nil, errors.New("auth file not found. Environment variable AZURE_AUTH_LOCATION is not set") + } + + contents, err := ioutil.ReadFile(fileLocation) + if err != nil { + return nil, err + } + + // Auth file might be encoded + decoded, err := decode(contents) + if err != nil { + return nil, err + } + + file := file{} + err = json.Unmarshal(decoded, &file) + if err != nil { + return nil, err + } + + resource, err := getResourceForToken(file, baseURI) + if err != nil { + return nil, err + } + + config, err := adal.NewOAuthConfig(file.ActiveDirectoryEndpoint, file.TenantID) + if err != nil { + return nil, err + } + + spToken, err := adal.NewServicePrincipalToken(*config, file.ClientID, file.ClientSecret, resource) + if err != nil { + return nil, err + } + + return autorest.NewBearerAuthorizer(spToken), nil +} + +// File represents the authentication file +type file struct { + ClientID string `json:"clientId,omitempty"` + ClientSecret string `json:"clientSecret,omitempty"` + SubscriptionID string `json:"subscriptionId,omitempty"` + TenantID string `json:"tenantId,omitempty"` + ActiveDirectoryEndpoint string `json:"activeDirectoryEndpointUrl,omitempty"` + ResourceManagerEndpoint string `json:"resourceManagerEndpointUrl,omitempty"` + GraphResourceID string `json:"activeDirectoryGraphResourceId,omitempty"` + SQLManagementEndpoint string `json:"sqlManagementEndpointUrl,omitempty"` + GalleryEndpoint string `json:"galleryEndpointUrl,omitempty"` + ManagementEndpoint string `json:"managementEndpointUrl,omitempty"` +} + +func decode(b []byte) ([]byte, error) { + reader, enc := utfbom.Skip(bytes.NewReader(b)) + + switch enc { + case utfbom.UTF16LittleEndian: + u16 := make([]uint16, (len(b)/2)-1) + err := binary.Read(reader, binary.LittleEndian, &u16) + if err != nil { + return nil, err + } + return []byte(string(utf16.Decode(u16))), nil + case utfbom.UTF16BigEndian: + u16 := make([]uint16, (len(b)/2)-1) + err := binary.Read(reader, binary.BigEndian, &u16) + if err != nil { + return nil, err + } + return []byte(string(utf16.Decode(u16))), nil + } + return ioutil.ReadAll(reader) +} + +func getResourceForToken(f file, baseURI string) (string, error) { + // Compare dafault base URI from the SDK to the endpoints from the public cloud + // Base URI and token resource are the same string. This func finds the authentication + // file field that matches the SDK base URI. The SDK defines the public cloud + // endpoint as its default base URI + if !strings.HasSuffix(baseURI, "/") { + baseURI += "/" + } + switch baseURI { + case azure.PublicCloud.ServiceManagementEndpoint: + return f.ManagementEndpoint, nil + case azure.PublicCloud.ResourceManagerEndpoint: + return f.ResourceManagerEndpoint, nil + case azure.PublicCloud.ActiveDirectoryEndpoint: + return f.ActiveDirectoryEndpoint, nil + case azure.PublicCloud.GalleryEndpoint: + return f.GalleryEndpoint, nil + case azure.PublicCloud.GraphEndpoint: + return f.GraphResourceID, nil + } + return "", fmt.Errorf("auth: base URI not found in endpoints") +} + +// NewClientCredentialsConfig creates an AuthorizerConfig object configured to obtain an Authorizer through Client Credentials. +// Defaults to Public Cloud and Resource Manager Endpoint. +func NewClientCredentialsConfig(clientID string, clientSecret string, tenantID string) ClientCredentialsConfig { + return ClientCredentialsConfig{ + ClientID: clientID, + ClientSecret: clientSecret, + TenantID: tenantID, + Resource: azure.PublicCloud.ResourceManagerEndpoint, + AADEndpoint: azure.PublicCloud.ActiveDirectoryEndpoint, + } +} + +// NewClientCertificateConfig creates a ClientCertificateConfig object configured to obtain an Authorizer through client certificate. +// Defaults to Public Cloud and Resource Manager Endpoint. +func NewClientCertificateConfig(certificatePath string, certificatePassword string, clientID string, tenantID string) ClientCertificateConfig { + return ClientCertificateConfig{ + CertificatePath: certificatePath, + CertificatePassword: certificatePassword, + ClientID: clientID, + TenantID: tenantID, + Resource: azure.PublicCloud.ResourceManagerEndpoint, + AADEndpoint: azure.PublicCloud.ActiveDirectoryEndpoint, + } +} + +// NewUsernamePasswordConfig creates an UsernamePasswordConfig object configured to obtain an Authorizer through username and password. +// Defaults to Public Cloud and Resource Manager Endpoint. +func NewUsernamePasswordConfig(username string, password string, clientID string, tenantID string) UsernamePasswordConfig { + return UsernamePasswordConfig{ + Username: username, + Password: password, + ClientID: clientID, + TenantID: tenantID, + Resource: azure.PublicCloud.ResourceManagerEndpoint, + AADEndpoint: azure.PublicCloud.ActiveDirectoryEndpoint, + } +} + +// NewMSIConfig creates an MSIConfig object configured to obtain an Authorizer through MSI. +func NewMSIConfig() MSIConfig { + return MSIConfig{ + Resource: azure.PublicCloud.ResourceManagerEndpoint, + } +} + +// NewDeviceFlowConfig creates a DeviceFlowConfig object configured to obtain an Authorizer through device flow. +// Defaults to Public Cloud and Resource Manager Endpoint. +func NewDeviceFlowConfig(clientID string, tenantID string) DeviceFlowConfig { + return DeviceFlowConfig{ + ClientID: clientID, + TenantID: tenantID, + Resource: azure.PublicCloud.ResourceManagerEndpoint, + AADEndpoint: azure.PublicCloud.ActiveDirectoryEndpoint, + } +} + +//AuthorizerConfig provides an authorizer from the configuration provided. +type AuthorizerConfig interface { + Authorizer() (autorest.Authorizer, error) +} + +// ClientCredentialsConfig provides the options to get a bearer authorizer from client credentials. +type ClientCredentialsConfig struct { + ClientID string + ClientSecret string + TenantID string + AADEndpoint string + Resource string +} + +// Authorizer gets the authorizer from client credentials. +func (ccc ClientCredentialsConfig) Authorizer() (autorest.Authorizer, error) { + oauthConfig, err := adal.NewOAuthConfig(ccc.AADEndpoint, ccc.TenantID) + if err != nil { + return nil, err + } + + spToken, err := adal.NewServicePrincipalToken(*oauthConfig, ccc.ClientID, ccc.ClientSecret, ccc.Resource) + if err != nil { + return nil, fmt.Errorf("failed to get oauth token from client credentials: %v", err) + } + + return autorest.NewBearerAuthorizer(spToken), nil +} + +// ClientCertificateConfig provides the options to get a bearer authorizer from a client certificate. +type ClientCertificateConfig struct { + ClientID string + CertificatePath string + CertificatePassword string + TenantID string + AADEndpoint string + Resource string +} + +// Authorizer gets an authorizer object from client certificate. +func (ccc ClientCertificateConfig) Authorizer() (autorest.Authorizer, error) { + oauthConfig, err := adal.NewOAuthConfig(ccc.AADEndpoint, ccc.TenantID) + + certData, err := ioutil.ReadFile(ccc.CertificatePath) + if err != nil { + return nil, fmt.Errorf("failed to read the certificate file (%s): %v", ccc.CertificatePath, err) + } + + certificate, rsaPrivateKey, err := decodePkcs12(certData, ccc.CertificatePassword) + if err != nil { + return nil, fmt.Errorf("failed to decode pkcs12 certificate while creating spt: %v", err) + } + + spToken, err := adal.NewServicePrincipalTokenFromCertificate(*oauthConfig, ccc.ClientID, certificate, rsaPrivateKey, ccc.Resource) + + if err != nil { + return nil, fmt.Errorf("failed to get oauth token from certificate auth: %v", err) + } + + return autorest.NewBearerAuthorizer(spToken), nil +} + +// DeviceFlowConfig provides the options to get a bearer authorizer using device flow authentication. +type DeviceFlowConfig struct { + ClientID string + TenantID string + AADEndpoint string + Resource string +} + +// Authorizer gets the authorizer from device flow. +func (dfc DeviceFlowConfig) Authorizer() (autorest.Authorizer, error) { + oauthClient := &autorest.Client{} + oauthConfig, err := adal.NewOAuthConfig(dfc.AADEndpoint, dfc.TenantID) + deviceCode, err := adal.InitiateDeviceAuth(oauthClient, *oauthConfig, dfc.ClientID, dfc.Resource) + if err != nil { + return nil, fmt.Errorf("failed to start device auth flow: %s", err) + } + + log.Println(*deviceCode.Message) + + token, err := adal.WaitForUserCompletion(oauthClient, deviceCode) + if err != nil { + return nil, fmt.Errorf("failed to finish device auth flow: %s", err) + } + + spToken, err := adal.NewServicePrincipalTokenFromManualToken(*oauthConfig, dfc.ClientID, dfc.Resource, *token) + if err != nil { + return nil, fmt.Errorf("failed to get oauth token from device flow: %v", err) + } + + return autorest.NewBearerAuthorizer(spToken), nil +} + +func decodePkcs12(pkcs []byte, password string) (*x509.Certificate, *rsa.PrivateKey, error) { + privateKey, certificate, err := pkcs12.Decode(pkcs, password) + if err != nil { + return nil, nil, err + } + + rsaPrivateKey, isRsaKey := privateKey.(*rsa.PrivateKey) + if !isRsaKey { + return nil, nil, fmt.Errorf("PKCS#12 certificate must contain an RSA private key") + } + + return certificate, rsaPrivateKey, nil +} + +// UsernamePasswordConfig provides the options to get a bearer authorizer from a username and a password. +type UsernamePasswordConfig struct { + ClientID string + Username string + Password string + TenantID string + AADEndpoint string + Resource string +} + +// Authorizer gets the authorizer from a username and a password. +func (ups UsernamePasswordConfig) Authorizer() (autorest.Authorizer, error) { + + oauthConfig, err := adal.NewOAuthConfig(ups.AADEndpoint, ups.TenantID) + + spToken, err := adal.NewServicePrincipalTokenFromUsernamePassword(*oauthConfig, ups.ClientID, ups.Username, ups.Password, ups.Resource) + + if err != nil { + return nil, fmt.Errorf("failed to get oauth token from username and password auth: %v", err) + } + + return autorest.NewBearerAuthorizer(spToken), nil +} + +// MSIConfig provides the options to get a bearer authorizer through MSI. +type MSIConfig struct { + Resource string + ClientID string +} + +// Authorizer gets the authorizer from MSI. +func (mc MSIConfig) Authorizer() (autorest.Authorizer, error) { + msiEndpoint, err := adal.GetMSIVMEndpoint() + if err != nil { + return nil, err + } + + spToken, err := adal.NewServicePrincipalTokenFromMSI(msiEndpoint, mc.Resource) + if err != nil { + return nil, fmt.Errorf("failed to get oauth token from MSI: %v", err) + } + + return autorest.NewBearerAuthorizer(spToken), nil +} diff --git a/vendor/github.com/Azure/go-autorest/autorest/azure/azure.go b/vendor/github.com/Azure/go-autorest/autorest/azure/azure.go index 18d029526..3a0a439ff 100644 --- a/vendor/github.com/Azure/go-autorest/autorest/azure/azure.go +++ b/vendor/github.com/Azure/go-autorest/autorest/azure/azure.go @@ -44,11 +44,12 @@ const ( // ServiceError encapsulates the error response from an Azure service. // It adhears to the OData v4 specification for error responses. type ServiceError struct { - Code string `json:"code"` - Message string `json:"message"` - Target *string `json:"target"` - Details []map[string]interface{} `json:"details"` - InnerError map[string]interface{} `json:"innererror"` + Code string `json:"code"` + Message string `json:"message"` + Target *string `json:"target"` + Details []map[string]interface{} `json:"details"` + InnerError map[string]interface{} `json:"innererror"` + AdditionalInfo []map[string]interface{} `json:"additionalInfo"` } func (se ServiceError) Error() string { @@ -74,6 +75,14 @@ func (se ServiceError) Error() string { result += fmt.Sprintf(" InnerError=%v", string(d)) } + if se.AdditionalInfo != nil { + d, err := json.Marshal(se.AdditionalInfo) + if err != nil { + result += fmt.Sprintf(" AdditionalInfo=%v", se.AdditionalInfo) + } + result += fmt.Sprintf(" AdditionalInfo=%v", string(d)) + } + return result } @@ -86,44 +95,47 @@ func (se *ServiceError) UnmarshalJSON(b []byte) error { // http://docs.oasis-open.org/odata/odata-json-format/v4.0/os/odata-json-format-v4.0-os.html#_Toc372793091 type serviceError1 struct { - Code string `json:"code"` - Message string `json:"message"` - Target *string `json:"target"` - Details []map[string]interface{} `json:"details"` - InnerError map[string]interface{} `json:"innererror"` + Code string `json:"code"` + Message string `json:"message"` + Target *string `json:"target"` + Details []map[string]interface{} `json:"details"` + InnerError map[string]interface{} `json:"innererror"` + AdditionalInfo []map[string]interface{} `json:"additionalInfo"` } type serviceError2 struct { - Code string `json:"code"` - Message string `json:"message"` - Target *string `json:"target"` - Details map[string]interface{} `json:"details"` - InnerError map[string]interface{} `json:"innererror"` + Code string `json:"code"` + Message string `json:"message"` + Target *string `json:"target"` + Details map[string]interface{} `json:"details"` + InnerError map[string]interface{} `json:"innererror"` + AdditionalInfo []map[string]interface{} `json:"additionalInfo"` } se1 := serviceError1{} err := json.Unmarshal(b, &se1) if err == nil { - se.populate(se1.Code, se1.Message, se1.Target, se1.Details, se1.InnerError) + se.populate(se1.Code, se1.Message, se1.Target, se1.Details, se1.InnerError, se1.AdditionalInfo) return nil } se2 := serviceError2{} err = json.Unmarshal(b, &se2) if err == nil { - se.populate(se2.Code, se2.Message, se2.Target, nil, se2.InnerError) + se.populate(se2.Code, se2.Message, se2.Target, nil, se2.InnerError, se2.AdditionalInfo) se.Details = append(se.Details, se2.Details) return nil } return err } -func (se *ServiceError) populate(code, message string, target *string, details []map[string]interface{}, inner map[string]interface{}) { +func (se *ServiceError) populate(code, message string, target *string, details []map[string]interface{}, inner map[string]interface{}, additional []map[string]interface{}) { se.Code = code se.Message = message se.Target = target se.Details = details se.InnerError = inner + se.AdditionalInfo = additional } // RequestError describes an error response returned by Azure service. @@ -279,16 +291,29 @@ func WithErrorUnlessStatusCode(codes ...int) autorest.RespondDecorator { resp.Body = ioutil.NopCloser(&b) if decodeErr != nil { return fmt.Errorf("autorest/azure: error response cannot be parsed: %q error: %v", b.String(), decodeErr) - } else if e.ServiceError == nil { + } + if e.ServiceError == nil { // Check if error is unwrapped ServiceError - if err := json.Unmarshal(b.Bytes(), &e.ServiceError); err != nil || e.ServiceError.Message == "" { - e.ServiceError = &ServiceError{ - Code: "Unknown", - Message: "Unknown service error", - } + if err := json.Unmarshal(b.Bytes(), &e.ServiceError); err != nil { + return err } } - + if e.ServiceError.Message == "" { + // if we're here it means the returned error wasn't OData v4 compliant. + // try to unmarshal the body as raw JSON in hopes of getting something. + rawBody := map[string]interface{}{} + if err := json.Unmarshal(b.Bytes(), &rawBody); err != nil { + return err + } + e.ServiceError = &ServiceError{ + Code: "Unknown", + Message: "Unknown service error", + } + if len(rawBody) > 0 { + e.ServiceError.Details = []map[string]interface{}{rawBody} + } + } + e.Response = resp e.RequestID = ExtractRequestID(resp) if e.StatusCode == nil { e.StatusCode = resp.StatusCode diff --git a/vendor/github.com/Azure/go-autorest/autorest/azure/rp.go b/vendor/github.com/Azure/go-autorest/autorest/azure/rp.go index 65ad0afc8..bd34f0ed5 100644 --- a/vendor/github.com/Azure/go-autorest/autorest/azure/rp.go +++ b/vendor/github.com/Azure/go-autorest/autorest/azure/rp.go @@ -64,7 +64,7 @@ func DoRetryWithRegistration(client autorest.Client) autorest.SendDecorator { } } } - return resp, fmt.Errorf("failed request: %s", err) + return resp, err }) } } diff --git a/vendor/github.com/Azure/go-autorest/autorest/client.go b/vendor/github.com/Azure/go-autorest/autorest/client.go index 4e92dcad0..5c558c83a 100644 --- a/vendor/github.com/Azure/go-autorest/autorest/client.go +++ b/vendor/github.com/Azure/go-autorest/autorest/client.go @@ -22,8 +22,11 @@ import ( "log" "net/http" "net/http/cookiejar" - "runtime" + "strings" "time" + + "github.com/Azure/go-autorest/logger" + "github.com/Azure/go-autorest/version" ) const ( @@ -41,15 +44,6 @@ const ( ) var ( - // defaultUserAgent builds a string containing the Go version, system archityecture and OS, - // and the go-autorest version. - defaultUserAgent = fmt.Sprintf("Go/%s (%s-%s) go-autorest/%s", - runtime.Version(), - runtime.GOARCH, - runtime.GOOS, - Version(), - ) - // StatusCodesForRetry are a defined group of status code for which the client will retry StatusCodesForRetry = []int{ http.StatusRequestTimeout, // 408 @@ -179,7 +173,7 @@ func NewClientWithUserAgent(ua string) Client { PollingDuration: DefaultPollingDuration, RetryAttempts: DefaultRetryAttempts, RetryDuration: DefaultRetryDuration, - UserAgent: defaultUserAgent, + UserAgent: version.UserAgent(), } c.Sender = c.sender() c.AddToUserAgent(ua) @@ -216,8 +210,17 @@ func (c Client) Do(r *http.Request) (*http.Response, error) { } return resp, NewErrorWithError(err, "autorest/Client", "Do", nil, "Preparing request failed") } - + logger.Instance.WriteRequest(r, logger.Filter{ + Header: func(k string, v []string) (bool, []string) { + // remove the auth token from the log + if strings.EqualFold(k, "Authorization") || strings.EqualFold(k, "Ocp-Apim-Subscription-Key") { + v = []string{"**REDACTED**"} + } + return true, v + }, + }) resp, err := SendWithSender(c.sender(), r) + logger.Instance.WriteResponse(resp, logger.Filter{}) Respond(resp, c.ByInspecting()) return resp, err } diff --git a/vendor/github.com/Azure/go-autorest/autorest/utility.go b/vendor/github.com/Azure/go-autorest/autorest/utility.go index f3a42bfc2..bfddd90b5 100644 --- a/vendor/github.com/Azure/go-autorest/autorest/utility.go +++ b/vendor/github.com/Azure/go-autorest/autorest/utility.go @@ -218,9 +218,10 @@ func IsTokenRefreshError(err error) bool { return false } -// IsTemporaryNetworkError returns true if the specified error is a temporary network error. +// IsTemporaryNetworkError returns true if the specified error is a temporary network error or false +// if it's not. If the error doesn't implement the net.Error interface the return value is true. func IsTemporaryNetworkError(err error) bool { - if netErr, ok := err.(net.Error); ok && netErr.Temporary() { + if netErr, ok := err.(net.Error); !ok || (ok && netErr.Temporary()) { return true } return false diff --git a/vendor/github.com/Azure/go-autorest/autorest/validation/validation.go b/vendor/github.com/Azure/go-autorest/autorest/validation/validation.go index d886e0b3f..ae987f8fa 100644 --- a/vendor/github.com/Azure/go-autorest/autorest/validation/validation.go +++ b/vendor/github.com/Azure/go-autorest/autorest/validation/validation.go @@ -136,29 +136,29 @@ func validatePtr(x reflect.Value, v Constraint) error { func validateInt(x reflect.Value, v Constraint) error { i := x.Int() - r, ok := v.Rule.(int) + r, ok := toInt64(v.Rule) if !ok { return createError(x, v, fmt.Sprintf("rule must be integer value for %v constraint; got: %v", v.Name, v.Rule)) } switch v.Name { case MultipleOf: - if i%int64(r) != 0 { + if i%r != 0 { return createError(x, v, fmt.Sprintf("value must be a multiple of %v", r)) } case ExclusiveMinimum: - if i <= int64(r) { + if i <= r { return createError(x, v, fmt.Sprintf("value must be greater than %v", r)) } case ExclusiveMaximum: - if i >= int64(r) { + if i >= r { return createError(x, v, fmt.Sprintf("value must be less than %v", r)) } case InclusiveMinimum: - if i < int64(r) { + if i < r { return createError(x, v, fmt.Sprintf("value must be greater than or equal to %v", r)) } case InclusiveMaximum: - if i > int64(r) { + if i > r { return createError(x, v, fmt.Sprintf("value must be less than or equal to %v", r)) } default: @@ -388,6 +388,17 @@ func createError(x reflect.Value, v Constraint, err string) error { v.Target, v.Name, getInterfaceValue(x), err) } +func toInt64(v interface{}) (int64, bool) { + if i64, ok := v.(int64); ok { + return i64, true + } + // older generators emit max constants as int, so if int64 fails fall back to int + if i32, ok := v.(int); ok { + return int64(i32), true + } + return 0, false +} + // NewErrorWithValidationError appends package type and method name in // validation error. // diff --git a/vendor/github.com/Azure/go-autorest/autorest/version.go b/vendor/github.com/Azure/go-autorest/autorest/version.go index d265055f5..3c6451546 100644 --- a/vendor/github.com/Azure/go-autorest/autorest/version.go +++ b/vendor/github.com/Azure/go-autorest/autorest/version.go @@ -1,5 +1,7 @@ package autorest +import "github.com/Azure/go-autorest/version" + // Copyright 2017 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -16,5 +18,5 @@ package autorest // Version returns the semantic version (see http://semver.org). func Version() string { - return "v10.8.1" + return version.Number } diff --git a/vendor/github.com/Azure/go-autorest/logger/logger.go b/vendor/github.com/Azure/go-autorest/logger/logger.go new file mode 100644 index 000000000..b3cf876d4 --- /dev/null +++ b/vendor/github.com/Azure/go-autorest/logger/logger.go @@ -0,0 +1,328 @@ +package logger + +// Copyright 2017 Microsoft Corporation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import ( + "bytes" + "fmt" + "io" + "io/ioutil" + "net/http" + "net/url" + "os" + "strings" + "sync" + "time" +) + +// LevelType tells a logger the minimum level to log. When code reports a log entry, +// the LogLevel indicates the level of the log entry. The logger only records entries +// whose level is at least the level it was told to log. See the Log* constants. +// For example, if a logger is configured with LogError, then LogError, LogPanic, +// and LogFatal entries will be logged; lower level entries are ignored. +type LevelType uint32 + +const ( + // LogNone tells a logger not to log any entries passed to it. + LogNone LevelType = iota + + // LogFatal tells a logger to log all LogFatal entries passed to it. + LogFatal + + // LogPanic tells a logger to log all LogPanic and LogFatal entries passed to it. + LogPanic + + // LogError tells a logger to log all LogError, LogPanic and LogFatal entries passed to it. + LogError + + // LogWarning tells a logger to log all LogWarning, LogError, LogPanic and LogFatal entries passed to it. + LogWarning + + // LogInfo tells a logger to log all LogInfo, LogWarning, LogError, LogPanic and LogFatal entries passed to it. + LogInfo + + // LogDebug tells a logger to log all LogDebug, LogInfo, LogWarning, LogError, LogPanic and LogFatal entries passed to it. + LogDebug +) + +const ( + logNone = "NONE" + logFatal = "FATAL" + logPanic = "PANIC" + logError = "ERROR" + logWarning = "WARNING" + logInfo = "INFO" + logDebug = "DEBUG" + logUnknown = "UNKNOWN" +) + +// ParseLevel converts the specified string into the corresponding LevelType. +func ParseLevel(s string) (lt LevelType, err error) { + switch strings.ToUpper(s) { + case logFatal: + lt = LogFatal + case logPanic: + lt = LogPanic + case logError: + lt = LogError + case logWarning: + lt = LogWarning + case logInfo: + lt = LogInfo + case logDebug: + lt = LogDebug + default: + err = fmt.Errorf("bad log level '%s'", s) + } + return +} + +// String implements the stringer interface for LevelType. +func (lt LevelType) String() string { + switch lt { + case LogNone: + return logNone + case LogFatal: + return logFatal + case LogPanic: + return logPanic + case LogError: + return logError + case LogWarning: + return logWarning + case LogInfo: + return logInfo + case LogDebug: + return logDebug + default: + return logUnknown + } +} + +// Filter defines functions for filtering HTTP request/response content. +type Filter struct { + // URL returns a potentially modified string representation of a request URL. + URL func(u *url.URL) string + + // Header returns a potentially modified set of values for the specified key. + // To completely exclude the header key/values return false. + Header func(key string, val []string) (bool, []string) + + // Body returns a potentially modified request/response body. + Body func(b []byte) []byte +} + +func (f Filter) processURL(u *url.URL) string { + if f.URL == nil { + return u.String() + } + return f.URL(u) +} + +func (f Filter) processHeader(k string, val []string) (bool, []string) { + if f.Header == nil { + return true, val + } + return f.Header(k, val) +} + +func (f Filter) processBody(b []byte) []byte { + if f.Body == nil { + return b + } + return f.Body(b) +} + +// Writer defines methods for writing to a logging facility. +type Writer interface { + // Writeln writes the specified message with the standard log entry header and new-line character. + Writeln(level LevelType, message string) + + // Writef writes the specified format specifier with the standard log entry header and no new-line character. + Writef(level LevelType, format string, a ...interface{}) + + // WriteRequest writes the specified HTTP request to the logger if the log level is greater than + // or equal to LogInfo. The request body, if set, is logged at level LogDebug or higher. + // Custom filters can be specified to exclude URL, header, and/or body content from the log. + // By default no request content is excluded. + WriteRequest(req *http.Request, filter Filter) + + // WriteResponse writes the specified HTTP response to the logger if the log level is greater than + // or equal to LogInfo. The response body, if set, is logged at level LogDebug or higher. + // Custom filters can be specified to exclude URL, header, and/or body content from the log. + // By default no respone content is excluded. + WriteResponse(resp *http.Response, filter Filter) +} + +// Instance is the default log writer initialized during package init. +// This can be replaced with a custom implementation as required. +var Instance Writer + +// default log level +var logLevel = LogNone + +// Level returns the value specified in AZURE_GO_AUTOREST_LOG_LEVEL. +// If no value was specified the default value is LogNone. +// Custom loggers can call this to retrieve the configured log level. +func Level() LevelType { + return logLevel +} + +func init() { + // separated for testing purposes + initDefaultLogger() +} + +func initDefaultLogger() { + // init with nilLogger so callers don't have to do a nil check on Default + Instance = nilLogger{} + llStr := strings.ToLower(os.Getenv("AZURE_GO_SDK_LOG_LEVEL")) + if llStr == "" { + return + } + var err error + logLevel, err = ParseLevel(llStr) + if err != nil { + fmt.Fprintf(os.Stderr, "go-autorest: failed to parse log level: %s\n", err.Error()) + return + } + if logLevel == LogNone { + return + } + // default to stderr + dest := os.Stderr + lfStr := os.Getenv("AZURE_GO_SDK_LOG_FILE") + if strings.EqualFold(lfStr, "stdout") { + dest = os.Stdout + } else if lfStr != "" { + lf, err := os.Create(lfStr) + if err == nil { + dest = lf + } else { + fmt.Fprintf(os.Stderr, "go-autorest: failed to create log file, using stderr: %s\n", err.Error()) + } + } + Instance = fileLogger{ + logLevel: logLevel, + mu: &sync.Mutex{}, + logFile: dest, + } +} + +// the nil logger does nothing +type nilLogger struct{} + +func (nilLogger) Writeln(LevelType, string) {} + +func (nilLogger) Writef(LevelType, string, ...interface{}) {} + +func (nilLogger) WriteRequest(*http.Request, Filter) {} + +func (nilLogger) WriteResponse(*http.Response, Filter) {} + +// A File is used instead of a Logger so the stream can be flushed after every write. +type fileLogger struct { + logLevel LevelType + mu *sync.Mutex // for synchronizing writes to logFile + logFile *os.File +} + +func (fl fileLogger) Writeln(level LevelType, message string) { + fl.Writef(level, "%s\n", message) +} + +func (fl fileLogger) Writef(level LevelType, format string, a ...interface{}) { + if fl.logLevel >= level { + fl.mu.Lock() + defer fl.mu.Unlock() + fmt.Fprintf(fl.logFile, "%s %s", entryHeader(level), fmt.Sprintf(format, a...)) + fl.logFile.Sync() + } +} + +func (fl fileLogger) WriteRequest(req *http.Request, filter Filter) { + if req == nil || fl.logLevel < LogInfo { + return + } + b := &bytes.Buffer{} + fmt.Fprintf(b, "%s REQUEST: %s %s\n", entryHeader(LogInfo), req.Method, filter.processURL(req.URL)) + // dump headers + for k, v := range req.Header { + if ok, mv := filter.processHeader(k, v); ok { + fmt.Fprintf(b, "%s: %s\n", k, strings.Join(mv, ",")) + } + } + if fl.shouldLogBody(req.Header, req.Body) { + // dump body + body, err := ioutil.ReadAll(req.Body) + if err == nil { + fmt.Fprintln(b, string(filter.processBody(body))) + if nc, ok := req.Body.(io.Seeker); ok { + // rewind to the beginning + nc.Seek(0, io.SeekStart) + } else { + // recreate the body + req.Body = ioutil.NopCloser(bytes.NewReader(body)) + } + } else { + fmt.Fprintf(b, "failed to read body: %v\n", err) + } + } + fl.mu.Lock() + defer fl.mu.Unlock() + fmt.Fprintf(fl.logFile, b.String()) + fl.logFile.Sync() +} + +func (fl fileLogger) WriteResponse(resp *http.Response, filter Filter) { + if resp == nil || fl.logLevel < LogInfo { + return + } + b := &bytes.Buffer{} + fmt.Fprintf(b, "%s RESPONSE: %d %s\n", entryHeader(LogInfo), resp.StatusCode, filter.processURL(resp.Request.URL)) + // dump headers + for k, v := range resp.Header { + if ok, mv := filter.processHeader(k, v); ok { + fmt.Fprintf(b, "%s: %s\n", k, strings.Join(mv, ",")) + } + } + if fl.shouldLogBody(resp.Header, resp.Body) { + // dump body + defer resp.Body.Close() + body, err := ioutil.ReadAll(resp.Body) + if err == nil { + fmt.Fprintln(b, string(filter.processBody(body))) + resp.Body = ioutil.NopCloser(bytes.NewReader(body)) + } else { + fmt.Fprintf(b, "failed to read body: %v\n", err) + } + } + fl.mu.Lock() + defer fl.mu.Unlock() + fmt.Fprintf(fl.logFile, b.String()) + fl.logFile.Sync() +} + +// returns true if the provided body should be included in the log +func (fl fileLogger) shouldLogBody(header http.Header, body io.ReadCloser) bool { + ct := header.Get("Content-Type") + return fl.logLevel >= LogDebug && body != nil && strings.Index(ct, "application/octet-stream") == -1 +} + +// creates standard header for log entries, it contains a timestamp and the log level +func entryHeader(level LevelType) string { + // this format provides a fixed number of digits so the size of the timestamp is constant + return fmt.Sprintf("(%s) %s:", time.Now().Format("2006-01-02T15:04:05.0000000Z07:00"), level.String()) +} diff --git a/vendor/github.com/Azure/go-autorest/version/version.go b/vendor/github.com/Azure/go-autorest/version/version.go new file mode 100644 index 000000000..b9e3e96d8 --- /dev/null +++ b/vendor/github.com/Azure/go-autorest/version/version.go @@ -0,0 +1,37 @@ +package version + +// Copyright 2017 Microsoft Corporation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import ( + "fmt" + "runtime" +) + +// Number contains the semantic version of this SDK. +const Number = "v10.15.0" + +var ( + userAgent = fmt.Sprintf("Go/%s (%s-%s) go-autorest/%s", + runtime.Version(), + runtime.GOARCH, + runtime.GOOS, + Number, + ) +) + +// UserAgent returns a string containing the Go version, system archityecture and OS, and the go-autorest version. +func UserAgent() string { + return userAgent +} diff --git a/vendor/github.com/pborman/uuid/.travis.yml b/vendor/github.com/pborman/uuid/.travis.yml deleted file mode 100644 index d8156a60b..000000000 --- a/vendor/github.com/pborman/uuid/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: go - -go: - - 1.4.3 - - 1.5.3 - - tip - -script: - - go test -v ./... diff --git a/vendor/github.com/pborman/uuid/CONTRIBUTING.md b/vendor/github.com/pborman/uuid/CONTRIBUTING.md deleted file mode 100644 index 04fdf09f1..000000000 --- a/vendor/github.com/pborman/uuid/CONTRIBUTING.md +++ /dev/null @@ -1,10 +0,0 @@ -# How to contribute - -We definitely welcome patches and contribution to this project! - -### Legal requirements - -In order to protect both you and ourselves, you will need to sign the -[Contributor License Agreement](https://cla.developers.google.com/clas). - -You may have already signed it for other Google projects. diff --git a/vendor/github.com/pborman/uuid/README.md b/vendor/github.com/pborman/uuid/README.md deleted file mode 100644 index b0396b274..000000000 --- a/vendor/github.com/pborman/uuid/README.md +++ /dev/null @@ -1,13 +0,0 @@ -This project was automatically exported from code.google.com/p/go-uuid - -# uuid ![build status](https://travis-ci.org/pborman/uuid.svg?branch=master) -The uuid package generates and inspects UUIDs based on [RFC 4122](http://tools.ietf.org/html/rfc4122) and DCE 1.1: Authentication and Security Services. - -###### Install -`go get github.com/pborman/uuid` - -###### Documentation -[![GoDoc](https://godoc.org/github.com/pborman/uuid?status.svg)](http://godoc.org/github.com/pborman/uuid) - -Full `go doc` style documentation for the package can be viewed online without installing this package by using the GoDoc site here: -http://godoc.org/github.com/pborman/uuid diff --git a/vendor/github.com/pborman/uuid/marshal_test.go b/vendor/github.com/pborman/uuid/marshal_test.go deleted file mode 100644 index 4e85b6bab..000000000 --- a/vendor/github.com/pborman/uuid/marshal_test.go +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright 2014 Google Inc. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package uuid - -import ( - "bytes" - "encoding/json" - "reflect" - "testing" -) - -var testUUID = Parse("f47ac10b-58cc-0372-8567-0e02b2c3d479") -var testArray = testUUID.Array() - -func TestJSON(t *testing.T) { - type S struct { - ID1 UUID - ID2 UUID - } - s1 := S{ID1: testUUID} - data, err := json.Marshal(&s1) - if err != nil { - t.Fatal(err) - } - var s2 S - if err := json.Unmarshal(data, &s2); err != nil { - t.Fatal(err) - } - if !reflect.DeepEqual(&s1, &s2) { - t.Errorf("got %#v, want %#v", s2, s1) - } -} - -func TestJSONArray(t *testing.T) { - type S struct { - ID1 Array - ID2 Array - } - s1 := S{ID1: testArray} - data, err := json.Marshal(&s1) - if err != nil { - t.Fatal(err) - } - var s2 S - if err := json.Unmarshal(data, &s2); err != nil { - t.Fatal(err) - } - if !reflect.DeepEqual(&s1, &s2) { - t.Errorf("got %#v, want %#v", s2, s1) - } -} - -func TestMarshal(t *testing.T) { - data, err := testUUID.MarshalBinary() - if err != nil { - t.Fatalf("MarhsalBinary returned unexpected error %v", err) - } - if !bytes.Equal(data, testUUID) { - t.Fatalf("MarhsalBinary returns %x, want %x", data, testUUID) - } - var u UUID - u.UnmarshalBinary(data) - if !Equal(data, u) { - t.Fatalf("UnmarhsalBinary returns %v, want %v", u, testUUID) - } -} - -func TestMarshalArray(t *testing.T) { - data, err := testArray.MarshalBinary() - if err != nil { - t.Fatalf("MarhsalBinary returned unexpected error %v", err) - } - if !bytes.Equal(data, testUUID) { - t.Fatalf("MarhsalBinary returns %x, want %x", data, testUUID) - } - var a Array - a.UnmarshalBinary(data) - if a != testArray { - t.Fatalf("UnmarhsalBinary returns %v, want %v", a, testArray) - } -} - -func TestMarshalTextArray(t *testing.T) { - data, err := testArray.MarshalText() - if err != nil { - t.Fatalf("MarhsalText returned unexpected error %v", err) - } - var a Array - a.UnmarshalText(data) - if a != testArray { - t.Fatalf("UnmarhsalText returns %v, want %v", a, testArray) - } -} - -func BenchmarkUUID_MarshalJSON(b *testing.B) { - x := &struct { - UUID UUID `json:"uuid"` - }{} - x.UUID = Parse("f47ac10b-58cc-0372-8567-0e02b2c3d479") - if x.UUID == nil { - b.Fatal("invalid uuid") - } - for i := 0; i < b.N; i++ { - js, err := json.Marshal(x) - if err != nil { - b.Fatalf("marshal json: %#v (%v)", js, err) - } - } -} - -func BenchmarkUUID_UnmarshalJSON(b *testing.B) { - js := []byte(`{"uuid":"f47ac10b-58cc-0372-8567-0e02b2c3d479"}`) - var x *struct { - UUID UUID `json:"uuid"` - } - for i := 0; i < b.N; i++ { - err := json.Unmarshal(js, &x) - if err != nil { - b.Fatalf("marshal json: %#v (%v)", js, err) - } - } -} diff --git a/vendor/github.com/pborman/uuid/node.go b/vendor/github.com/pborman/uuid/node.go index c1397cb17..42d60da8f 100644 --- a/vendor/github.com/pborman/uuid/node.go +++ b/vendor/github.com/pborman/uuid/node.go @@ -5,13 +5,15 @@ package uuid import ( + "net" "sync" ) var ( - nodeMu sync.Mutex - ifname string // name of interface being used - nodeID []byte // hardware for version 1 UUIDs + nodeMu sync.Mutex + interfaces []net.Interface // cached list of interfaces + ifname string // name of interface being used + nodeID []byte // hardware for version 1 UUIDs ) // NodeInterface returns the name of the interface from which the NodeID was @@ -32,18 +34,25 @@ func NodeInterface() string { func SetNodeInterface(name string) bool { defer nodeMu.Unlock() nodeMu.Lock() - if nodeID != nil { - return true - } return setNodeInterface(name) } func setNodeInterface(name string) bool { + if interfaces == nil { + var err error + interfaces, err = net.Interfaces() + if err != nil && name != "" { + return false + } + } - iname, addr := getHardwareInterface(name) // null implementation for js - if iname != "" && setNodeID(addr) { - ifname = iname - return true + for _, ifs := range interfaces { + if len(ifs.HardwareAddr) >= 6 && (name == "" || name == ifs.Name) { + if setNodeID(ifs.HardwareAddr) { + ifname = ifs.Name + return true + } + } } // We found no interfaces with a valid hardware address. If name diff --git a/vendor/github.com/pborman/uuid/node_js.go b/vendor/github.com/pborman/uuid/node_js.go deleted file mode 100644 index 24b78edc9..000000000 --- a/vendor/github.com/pborman/uuid/node_js.go +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright 2017 Google Inc. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build js - -package uuid - -// getHardwareInterface returns nil values for the JS version of the code. -// This remvoves the "net" dependency, because it is not used in the browser. -// Using the "net" library inflates the size of the transpiled JS code by 673k bytes. -func getHardwareInterface(name string) (string, []byte) { return "", nil } diff --git a/vendor/github.com/pborman/uuid/node_net.go b/vendor/github.com/pborman/uuid/node_net.go deleted file mode 100644 index 330b5447a..000000000 --- a/vendor/github.com/pborman/uuid/node_net.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2017 Google Inc. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build !js - -package uuid - -import "net" - -var interfaces []net.Interface // cached list of interfaces - -// getHardwareInterface returns the name and hardware address of interface name. -// If name is "" then the name and hardware address of one of the system's -// interfaces is returned. If no interfaces are found (name does not exist or -// there are no interfaces) then "", nil is returned. -// -// Only addresses of at least 6 bytes are returned. -func getHardwareInterface(name string) (string, []byte) { - if interfaces == nil { - var err error - interfaces, err = net.Interfaces() - if err != nil { - return "", nil - } - } - for _, ifs := range interfaces { - if len(ifs.HardwareAddr) >= 6 && (name == "" || name == ifs.Name) { - if setNodeID(ifs.HardwareAddr) { - ifname = ifs.Name - return ifname, nodeID - } - } - } - return "", nil -} diff --git a/vendor/github.com/pborman/uuid/seq_test.go b/vendor/github.com/pborman/uuid/seq_test.go deleted file mode 100644 index 3b3d1430d..000000000 --- a/vendor/github.com/pborman/uuid/seq_test.go +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2014 Google Inc. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package uuid - -import ( - "flag" - "runtime" - "testing" - "time" -) - -// This test is only run when --regressions is passed on the go test line. -var regressions = flag.Bool("regressions", false, "run uuid regression tests") - -// TestClockSeqRace tests for a particular race condition of returning two -// identical Version1 UUIDs. The duration of 1 minute was chosen as the race -// condition, before being fixed, nearly always occured in under 30 seconds. -func TestClockSeqRace(t *testing.T) { - if !*regressions { - t.Skip("skipping regression tests") - } - duration := time.Minute - - done := make(chan struct{}) - defer close(done) - - ch := make(chan UUID, 10000) - ncpu := runtime.NumCPU() - switch ncpu { - case 0, 1: - // We can't run the test effectively. - t.Skip("skipping race test, only one CPU detected") - return - default: - runtime.GOMAXPROCS(ncpu) - } - for i := 0; i < ncpu; i++ { - go func() { - for { - select { - case <-done: - return - case ch <- NewUUID(): - } - } - }() - } - - uuids := make(map[string]bool) - cnt := 0 - start := time.Now() - for u := range ch { - s := u.String() - if uuids[s] { - t.Errorf("duplicate uuid after %d in %v: %s", cnt, time.Since(start), s) - return - } - uuids[s] = true - if time.Since(start) > duration { - return - } - cnt++ - } -} diff --git a/vendor/github.com/pborman/uuid/sql_test.go b/vendor/github.com/pborman/uuid/sql_test.go deleted file mode 100644 index 103095156..000000000 --- a/vendor/github.com/pborman/uuid/sql_test.go +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright 2015 Google Inc. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package uuid - -import ( - "strings" - "testing" -) - -func TestScan(t *testing.T) { - var stringTest string = "f47ac10b-58cc-0372-8567-0e02b2c3d479" - var byteTest []byte = Parse(stringTest) - var badTypeTest int = 6 - var invalidTest string = "f47ac10b-58cc-0372-8567-0e02b2c3d4" - - // sunny day tests - - var uuid UUID - err := (&uuid).Scan(stringTest) - if err != nil { - t.Fatal(err) - } - - err = (&uuid).Scan([]byte(stringTest)) - if err != nil { - t.Fatal(err) - } - - err = (&uuid).Scan(byteTest) - if err != nil { - t.Fatal(err) - } - - // bad type tests - - err = (&uuid).Scan(badTypeTest) - if err == nil { - t.Error("int correctly parsed and shouldn't have") - } - if !strings.Contains(err.Error(), "unable to scan type") { - t.Error("attempting to parse an int returned an incorrect error message") - } - - // invalid/incomplete uuids - - err = (&uuid).Scan(invalidTest) - if err == nil { - t.Error("invalid uuid was parsed without error") - } - if !strings.Contains(err.Error(), "invalid UUID") { - t.Error("attempting to parse an invalid UUID returned an incorrect error message") - } - - err = (&uuid).Scan(byteTest[:len(byteTest)-2]) - if err == nil { - t.Error("invalid byte uuid was parsed without error") - } - if !strings.Contains(err.Error(), "invalid UUID") { - t.Error("attempting to parse an invalid byte UUID returned an incorrect error message") - } - - // empty tests - - uuid = nil - var emptySlice []byte - err = (&uuid).Scan(emptySlice) - if err != nil { - t.Fatal(err) - } - - if uuid != nil { - t.Error("UUID was not nil after scanning empty byte slice") - } - - uuid = nil - var emptyString string - err = (&uuid).Scan(emptyString) - if err != nil { - t.Fatal(err) - } - - if uuid != nil { - t.Error("UUID was not nil after scanning empty string") - } -} - -func TestValue(t *testing.T) { - stringTest := "f47ac10b-58cc-0372-8567-0e02b2c3d479" - uuid := Parse(stringTest) - val, _ := uuid.Value() - if val != stringTest { - t.Error("Value() did not return expected string") - } -} diff --git a/vendor/github.com/pborman/uuid/uuid_test.go b/vendor/github.com/pborman/uuid/uuid_test.go deleted file mode 100644 index 0d69bb8db..000000000 --- a/vendor/github.com/pborman/uuid/uuid_test.go +++ /dev/null @@ -1,552 +0,0 @@ -// Copyright 2011 Google Inc. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package uuid - -import ( - "bytes" - "fmt" - "os" - "runtime" - "strings" - "testing" - "time" -) - -type test struct { - in string - version Version - variant Variant - isuuid bool -} - -var tests = []test{ - {"f47ac10b-58cc-0372-8567-0e02b2c3d479", 0, RFC4122, true}, - {"f47ac10b-58cc-1372-8567-0e02b2c3d479", 1, RFC4122, true}, - {"f47ac10b-58cc-2372-8567-0e02b2c3d479", 2, RFC4122, true}, - {"f47ac10b-58cc-3372-8567-0e02b2c3d479", 3, RFC4122, true}, - {"f47ac10b-58cc-4372-8567-0e02b2c3d479", 4, RFC4122, true}, - {"f47ac10b-58cc-5372-8567-0e02b2c3d479", 5, RFC4122, true}, - {"f47ac10b-58cc-6372-8567-0e02b2c3d479", 6, RFC4122, true}, - {"f47ac10b-58cc-7372-8567-0e02b2c3d479", 7, RFC4122, true}, - {"f47ac10b-58cc-8372-8567-0e02b2c3d479", 8, RFC4122, true}, - {"f47ac10b-58cc-9372-8567-0e02b2c3d479", 9, RFC4122, true}, - {"f47ac10b-58cc-a372-8567-0e02b2c3d479", 10, RFC4122, true}, - {"f47ac10b-58cc-b372-8567-0e02b2c3d479", 11, RFC4122, true}, - {"f47ac10b-58cc-c372-8567-0e02b2c3d479", 12, RFC4122, true}, - {"f47ac10b-58cc-d372-8567-0e02b2c3d479", 13, RFC4122, true}, - {"f47ac10b-58cc-e372-8567-0e02b2c3d479", 14, RFC4122, true}, - {"f47ac10b-58cc-f372-8567-0e02b2c3d479", 15, RFC4122, true}, - - {"urn:uuid:f47ac10b-58cc-4372-0567-0e02b2c3d479", 4, Reserved, true}, - {"URN:UUID:f47ac10b-58cc-4372-0567-0e02b2c3d479", 4, Reserved, true}, - {"f47ac10b-58cc-4372-0567-0e02b2c3d479", 4, Reserved, true}, - {"f47ac10b-58cc-4372-1567-0e02b2c3d479", 4, Reserved, true}, - {"f47ac10b-58cc-4372-2567-0e02b2c3d479", 4, Reserved, true}, - {"f47ac10b-58cc-4372-3567-0e02b2c3d479", 4, Reserved, true}, - {"f47ac10b-58cc-4372-4567-0e02b2c3d479", 4, Reserved, true}, - {"f47ac10b-58cc-4372-5567-0e02b2c3d479", 4, Reserved, true}, - {"f47ac10b-58cc-4372-6567-0e02b2c3d479", 4, Reserved, true}, - {"f47ac10b-58cc-4372-7567-0e02b2c3d479", 4, Reserved, true}, - {"f47ac10b-58cc-4372-8567-0e02b2c3d479", 4, RFC4122, true}, - {"f47ac10b-58cc-4372-9567-0e02b2c3d479", 4, RFC4122, true}, - {"f47ac10b-58cc-4372-a567-0e02b2c3d479", 4, RFC4122, true}, - {"f47ac10b-58cc-4372-b567-0e02b2c3d479", 4, RFC4122, true}, - {"f47ac10b-58cc-4372-c567-0e02b2c3d479", 4, Microsoft, true}, - {"f47ac10b-58cc-4372-d567-0e02b2c3d479", 4, Microsoft, true}, - {"f47ac10b-58cc-4372-e567-0e02b2c3d479", 4, Future, true}, - {"f47ac10b-58cc-4372-f567-0e02b2c3d479", 4, Future, true}, - - {"f47ac10b158cc-5372-a567-0e02b2c3d479", 0, Invalid, false}, - {"f47ac10b-58cc25372-a567-0e02b2c3d479", 0, Invalid, false}, - {"f47ac10b-58cc-53723a567-0e02b2c3d479", 0, Invalid, false}, - {"f47ac10b-58cc-5372-a56740e02b2c3d479", 0, Invalid, false}, - {"f47ac10b-58cc-5372-a567-0e02-2c3d479", 0, Invalid, false}, - {"g47ac10b-58cc-4372-a567-0e02b2c3d479", 0, Invalid, false}, -} - -var constants = []struct { - c interface{} - name string -}{ - {Person, "Person"}, - {Group, "Group"}, - {Org, "Org"}, - {Invalid, "Invalid"}, - {RFC4122, "RFC4122"}, - {Reserved, "Reserved"}, - {Microsoft, "Microsoft"}, - {Future, "Future"}, - {Domain(17), "Domain17"}, - {Variant(42), "BadVariant42"}, -} - -func testTest(t *testing.T, in string, tt test) { - uuid := Parse(in) - if ok := (uuid != nil); ok != tt.isuuid { - t.Errorf("Parse(%s) got %v expected %v\b", in, ok, tt.isuuid) - } - if uuid == nil { - return - } - - if v := uuid.Variant(); v != tt.variant { - t.Errorf("Variant(%s) got %d expected %d\b", in, v, tt.variant) - } - if v, _ := uuid.Version(); v != tt.version { - t.Errorf("Version(%s) got %d expected %d\b", in, v, tt.version) - } -} - -func TestUUID(t *testing.T) { - for _, tt := range tests { - testTest(t, tt.in, tt) - testTest(t, strings.ToUpper(tt.in), tt) - } -} - -func TestConstants(t *testing.T) { - for x, tt := range constants { - v, ok := tt.c.(fmt.Stringer) - if !ok { - t.Errorf("%x: %v: not a stringer", x, v) - } else if s := v.String(); s != tt.name { - v, _ := tt.c.(int) - t.Errorf("%x: Constant %T:%d gives %q, expected %q", x, tt.c, v, s, tt.name) - } - } -} - -func TestRandomUUID(t *testing.T) { - m := make(map[string]bool) - for x := 1; x < 32; x++ { - uuid := NewRandom() - s := uuid.String() - if m[s] { - t.Errorf("NewRandom returned duplicated UUID %s", s) - } - m[s] = true - if v, _ := uuid.Version(); v != 4 { - t.Errorf("Random UUID of version %s", v) - } - if uuid.Variant() != RFC4122 { - t.Errorf("Random UUID is variant %d", uuid.Variant()) - } - } -} - -func TestNew(t *testing.T) { - m := make(map[string]bool) - for x := 1; x < 32; x++ { - s := New() - if m[s] { - t.Errorf("New returned duplicated UUID %s", s) - } - m[s] = true - uuid := Parse(s) - if uuid == nil { - t.Errorf("New returned %q which does not decode", s) - continue - } - if v, _ := uuid.Version(); v != 4 { - t.Errorf("Random UUID of version %s", v) - } - if uuid.Variant() != RFC4122 { - t.Errorf("Random UUID is variant %d", uuid.Variant()) - } - } -} - -func clockSeq(t *testing.T, uuid UUID) int { - seq, ok := uuid.ClockSequence() - if !ok { - t.Fatalf("%s: invalid clock sequence", uuid) - } - return seq -} - -func TestClockSeq(t *testing.T) { - // Fake time.Now for this test to return a monotonically advancing time; restore it at end. - defer func(orig func() time.Time) { timeNow = orig }(timeNow) - monTime := time.Now() - timeNow = func() time.Time { - monTime = monTime.Add(1 * time.Second) - return monTime - } - - SetClockSequence(-1) - uuid1 := NewUUID() - uuid2 := NewUUID() - - if clockSeq(t, uuid1) != clockSeq(t, uuid2) { - t.Errorf("clock sequence %d != %d", clockSeq(t, uuid1), clockSeq(t, uuid2)) - } - - SetClockSequence(-1) - uuid2 = NewUUID() - - // Just on the very off chance we generated the same sequence - // two times we try again. - if clockSeq(t, uuid1) == clockSeq(t, uuid2) { - SetClockSequence(-1) - uuid2 = NewUUID() - } - if clockSeq(t, uuid1) == clockSeq(t, uuid2) { - t.Errorf("Duplicate clock sequence %d", clockSeq(t, uuid1)) - } - - SetClockSequence(0x1234) - uuid1 = NewUUID() - if seq := clockSeq(t, uuid1); seq != 0x1234 { - t.Errorf("%s: expected seq 0x1234 got 0x%04x", uuid1, seq) - } -} - -func TestCoding(t *testing.T) { - text := "7d444840-9dc0-11d1-b245-5ffdce74fad2" - urn := "urn:uuid:7d444840-9dc0-11d1-b245-5ffdce74fad2" - data := UUID{ - 0x7d, 0x44, 0x48, 0x40, - 0x9d, 0xc0, - 0x11, 0xd1, - 0xb2, 0x45, - 0x5f, 0xfd, 0xce, 0x74, 0xfa, 0xd2, - } - if v := data.String(); v != text { - t.Errorf("%x: encoded to %s, expected %s", data, v, text) - } - if v := data.URN(); v != urn { - t.Errorf("%x: urn is %s, expected %s", data, v, urn) - } - - uuid := Parse(text) - if !Equal(uuid, data) { - t.Errorf("%s: decoded to %s, expected %s", text, uuid, data) - } -} - -func TestVersion1(t *testing.T) { - uuid1 := NewUUID() - uuid2 := NewUUID() - - if Equal(uuid1, uuid2) { - t.Errorf("%s:duplicate uuid", uuid1) - } - if v, _ := uuid1.Version(); v != 1 { - t.Errorf("%s: version %s expected 1", uuid1, v) - } - if v, _ := uuid2.Version(); v != 1 { - t.Errorf("%s: version %s expected 1", uuid2, v) - } - n1 := uuid1.NodeID() - n2 := uuid2.NodeID() - if !bytes.Equal(n1, n2) { - t.Errorf("Different nodes %x != %x", n1, n2) - } - t1, ok := uuid1.Time() - if !ok { - t.Errorf("%s: invalid time", uuid1) - } - t2, ok := uuid2.Time() - if !ok { - t.Errorf("%s: invalid time", uuid2) - } - q1, ok := uuid1.ClockSequence() - if !ok { - t.Errorf("%s: invalid clock sequence", uuid1) - } - q2, ok := uuid2.ClockSequence() - if !ok { - t.Errorf("%s: invalid clock sequence", uuid2) - } - - switch { - case t1 == t2 && q1 == q2: - t.Error("time stopped") - case t1 > t2 && q1 == q2: - t.Error("time reversed") - case t1 < t2 && q1 != q2: - t.Error("clock sequence chaned unexpectedly") - } -} - -func TestNode(t *testing.T) { - // This test is mostly to make sure we don't leave nodeMu locked. - ifname = "" - if ni := NodeInterface(); ni != "" { - t.Errorf("NodeInterface got %q, want %q", ni, "") - } - nodeID = nil // Reset global state for next test - if SetNodeInterface("xyzzy") { - t.Error("SetNodeInterface succeeded on a bad interface name") - } - nodeID = nil // Reset global state for next test - if !SetNodeInterface("") { - t.Error("SetNodeInterface failed") - } - - if runtime.GOARCH != "js" { - if ni := NodeInterface(); ni == "" { - t.Error("NodeInterface returned an empty string") - } - } - - ni := NodeID() - if len(ni) != 6 { - t.Errorf("ni got %d bytes, want 6", len(ni)) - } - hasData := false - for _, b := range ni { - if b != 0 { - hasData = true - } - } - if !hasData { - t.Error("nodeid is all zeros") - } - - id := []byte{1, 2, 3, 4, 5, 6, 7, 8} - SetNodeID(id) - ni = NodeID() - if !bytes.Equal(ni, id[:6]) { - t.Errorf("got nodeid %v, want %v", ni, id[:6]) - } - - if ni := NodeInterface(); ni != "user" { - t.Errorf("got inteface %q, want %q", ni, "user") - } -} - -func TestNodeAndTime(t *testing.T) { - // Time is February 5, 1998 12:30:23.136364800 AM GMT - - uuid := Parse("7d444840-9dc0-11d1-b245-5ffdce74fad2") - node := []byte{0x5f, 0xfd, 0xce, 0x74, 0xfa, 0xd2} - - ts, ok := uuid.Time() - if ok { - c := time.Unix(ts.UnixTime()) - want := time.Date(1998, 2, 5, 0, 30, 23, 136364800, time.UTC) - if !c.Equal(want) { - t.Errorf("Got time %v, want %v", c, want) - } - } else { - t.Errorf("%s: bad time", uuid) - } - if !bytes.Equal(node, uuid.NodeID()) { - t.Errorf("Expected node %v got %v", node, uuid.NodeID()) - } -} - -func TestMD5(t *testing.T) { - uuid := NewMD5(NameSpace_DNS, []byte("python.org")).String() - want := "6fa459ea-ee8a-3ca4-894e-db77e160355e" - if uuid != want { - t.Errorf("MD5: got %q expected %q", uuid, want) - } -} - -func TestSHA1(t *testing.T) { - uuid := NewSHA1(NameSpace_DNS, []byte("python.org")).String() - want := "886313e1-3b8a-5372-9b90-0c9aee199e5d" - if uuid != want { - t.Errorf("SHA1: got %q expected %q", uuid, want) - } -} - -func TestNodeID(t *testing.T) { - nid := []byte{1, 2, 3, 4, 5, 6} - nodeID = nil // Reset global state for next test - SetNodeInterface("") - s := NodeInterface() - if runtime.GOARCH != "js" { - if s == "" || s == "user" { - t.Errorf("NodeInterface %q after SetInterface", s) - } - } - node1 := NodeID() - if node1 == nil { - t.Error("NodeID nil after SetNodeInterface", s) - } - SetNodeID(nid) - s = NodeInterface() - if s != "user" { - t.Errorf("Expected NodeInterface %q got %q", "user", s) - } - node2 := NodeID() - if node2 == nil { - t.Error("NodeID nil after SetNodeID", s) - } - if bytes.Equal(node1, node2) { - t.Error("NodeID not changed after SetNodeID", s) - } else if !bytes.Equal(nid, node2) { - t.Errorf("NodeID is %x, expected %x", node2, nid) - } -} - -func testDCE(t *testing.T, name string, uuid UUID, domain Domain, id uint32) { - if uuid == nil { - t.Errorf("%s failed", name) - return - } - if v, _ := uuid.Version(); v != 2 { - t.Errorf("%s: %s: expected version 2, got %s", name, uuid, v) - return - } - if v, ok := uuid.Domain(); !ok || v != domain { - if !ok { - t.Errorf("%s: %d: Domain failed", name, uuid) - } else { - t.Errorf("%s: %s: expected domain %d, got %d", name, uuid, domain, v) - } - } - if v, ok := uuid.Id(); !ok || v != id { - if !ok { - t.Errorf("%s: %d: Id failed", name, uuid) - } else { - t.Errorf("%s: %s: expected id %d, got %d", name, uuid, id, v) - } - } -} - -func TestDCE(t *testing.T) { - testDCE(t, "NewDCESecurity", NewDCESecurity(42, 12345678), 42, 12345678) - testDCE(t, "NewDCEPerson", NewDCEPerson(), Person, uint32(os.Getuid())) - testDCE(t, "NewDCEGroup", NewDCEGroup(), Group, uint32(os.Getgid())) -} - -type badRand struct{} - -func (r badRand) Read(buf []byte) (int, error) { - for i, _ := range buf { - buf[i] = byte(i) - } - return len(buf), nil -} - -func TestBadRand(t *testing.T) { - SetRand(badRand{}) - uuid1 := New() - uuid2 := New() - if uuid1 != uuid2 { - t.Errorf("expected duplicates, got %q and %q", uuid1, uuid2) - } - SetRand(nil) - uuid1 = New() - uuid2 = New() - if uuid1 == uuid2 { - t.Errorf("unexpected duplicates, got %q", uuid1) - } -} - -func TestUUID_Array(t *testing.T) { - expect := Array{ - 0xf4, 0x7a, 0xc1, 0x0b, - 0x58, 0xcc, - 0x03, 0x72, - 0x85, 0x67, - 0x0e, 0x02, 0xb2, 0xc3, 0xd4, 0x79, - } - uuid := Parse("f47ac10b-58cc-0372-8567-0e02b2c3d479") - if uuid == nil { - t.Fatal("invalid uuid") - } - if uuid.Array() != expect { - t.Fatal("invalid array") - } -} - -func TestArray_UUID(t *testing.T) { - array := Array{ - 0xf4, 0x7a, 0xc1, 0x0b, - 0x58, 0xcc, - 0x03, 0x72, - 0x85, 0x67, - 0x0e, 0x02, 0xb2, 0xc3, 0xd4, 0x79, - } - expect := Parse("f47ac10b-58cc-0372-8567-0e02b2c3d479") - if expect == nil { - t.Fatal("invalid uuid") - } - if !bytes.Equal(array.UUID(), expect) { - t.Fatal("invalid uuid") - } -} - -func BenchmarkParse(b *testing.B) { - for i := 0; i < b.N; i++ { - uuid := Parse("f47ac10b-58cc-0372-8567-0e02b2c3d479") - if uuid == nil { - b.Fatal("invalid uuid") - } - } -} - -func BenchmarkNew(b *testing.B) { - for i := 0; i < b.N; i++ { - New() - } -} - -func BenchmarkUUID_String(b *testing.B) { - uuid := Parse("f47ac10b-58cc-0372-8567-0e02b2c3d479") - if uuid == nil { - b.Fatal("invalid uuid") - } - for i := 0; i < b.N; i++ { - if uuid.String() == "" { - b.Fatal("invalid uuid") - } - } -} - -func BenchmarkUUID_URN(b *testing.B) { - uuid := Parse("f47ac10b-58cc-0372-8567-0e02b2c3d479") - if uuid == nil { - b.Fatal("invalid uuid") - } - for i := 0; i < b.N; i++ { - if uuid.URN() == "" { - b.Fatal("invalid uuid") - } - } -} - -func BenchmarkUUID_Array(b *testing.B) { - expect := Array{ - 0xf4, 0x7a, 0xc1, 0x0b, - 0x58, 0xcc, - 0x03, 0x72, - 0x85, 0x67, - 0x0e, 0x02, 0xb2, 0xc3, 0xd4, 0x79, - } - uuid := Parse("f47ac10b-58cc-0372-8567-0e02b2c3d479") - if uuid == nil { - b.Fatal("invalid uuid") - } - for i := 0; i < b.N; i++ { - if uuid.Array() != expect { - b.Fatal("invalid array") - } - } -} - -func BenchmarkArray_UUID(b *testing.B) { - array := Array{ - 0xf4, 0x7a, 0xc1, 0x0b, - 0x58, 0xcc, - 0x03, 0x72, - 0x85, 0x67, - 0x0e, 0x02, 0xb2, 0xc3, 0xd4, 0x79, - } - expect := Parse("f47ac10b-58cc-0372-8567-0e02b2c3d479") - if expect == nil { - b.Fatal("invalid uuid") - } - for i := 0; i < b.N; i++ { - if !bytes.Equal(array.UUID(), expect) { - b.Fatal("invalid uuid") - } - } -} diff --git a/vendor/github.com/pborman/uuid/version1.go b/vendor/github.com/pborman/uuid/version1.go index 577af6a59..0127eacfa 100644 --- a/vendor/github.com/pborman/uuid/version1.go +++ b/vendor/github.com/pborman/uuid/version1.go @@ -15,7 +15,9 @@ import ( // SetClockSequence then it will be set automatically. If GetTime fails to // return the current NewUUID returns nil. func NewUUID() UUID { - SetNodeInterface("") + if nodeID == nil { + SetNodeInterface("") + } now, seq, err := GetTime() if err != nil { diff --git a/vendor/github.com/vmware/vic/LICENSE b/vendor/github.com/vmware/vic/LICENSE index 9a15d3572..042004fda 100644 --- a/vendor/github.com/vmware/vic/LICENSE +++ b/vendor/github.com/vmware/vic/LICENSE @@ -2,8203 +2,209 @@ LICENSE vSphere Integrated Containers Engine -Copyright (c) 2016-2017 VMware, Inc. All rights reserved. +Copyright (c) 2016-2018 VMware, Inc. All rights reserved. -This product is licensed to you under the Apache License version 2.0 (the -License). You may not use this product except in compliance with the License. +This product is licensed to you under the Apache License version 2.0 (the “License”). +You may not use this product except in compliance with the License. - Apache License Version 2.0, January 2004 -http://www.apache.org/licenses/ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. -"License" shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 9 of this document. +"License" shall mean the terms and conditions for use, reproduction, +and distribution as defined by Sections 1 through 9 of this document. -"Licensor" shall mean the copyright owner or entity authorized by the -copyright owner that is granting the License. +"Licensor" shall mean the copyright owner or entity authorized by +the copyright owner that is granting the License. -"Legal Entity" shall mean the union of the acting entity and all other -entities that control, are controlled by, or are under common control with -that entity. For the purposes of this definition, "control" means (i) the -power, direct or indirect, to cause the direction or management of such -entity, whether by contract or otherwise, or (ii) ownership of fifty percent -(50%) or more of the outstanding shares, or (iii) beneficial ownership of such -entity. +"Legal Entity" shall mean the union of the acting entity and all +other entities that control, are controlled by, or are under common +control with that entity. For the purposes of this definition, +"control" means (i) the power, direct or indirect, to cause the +direction or management of such entity, whether by contract or +otherwise, or (ii) ownership of fifty percent (50%) or more of the +outstanding shares, or (iii) beneficial ownership of such entity. -"You" (or "Your") shall mean an individual or Legal Entity exercising -permissions granted by this License. +"You" (or "Your") shall mean an individual or Legal Entity +exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, -including but not limited to software source code, documentation source, and -configuration files. +including but not limited to software source code, documentation +source, and configuration files. -"Object" form shall mean any form resulting from mechanical transformation or -translation of a Source form, including but not limited to compiled object -code, generated documentation, and conversions to other media types. +"Object" form shall mean any form resulting from mechanical +transformation or translation of a Source form, including but +not limited to compiled object code, generated documentation, +and conversions to other media types. -"Work" shall mean the work of authorship, whether in Source or Object form, -made available under the License, as indicated by a copyright notice that is -included in or attached to the work (an example is provided in the Appendix -below). +"Work" shall mean the work of authorship, whether in Source or +Object form, made available under the License, as indicated by a +copyright notice that is included in or attached to the work +(an example is provided in the Appendix below). -"Derivative Works" shall mean any work, whether in Source or Object form, that -is based on (or derived from) the Work and for which the editorial revisions, -annotations, elaborations, or other modifications represent, as a whole, an -original work of authorship. For the purposes of this License, Derivative -Works shall not include works that remain separable from, or merely link (or -bind by name) to the interfaces of, the Work and Derivative Works thereof. +"Derivative Works" shall mean any work, whether in Source or Object +form, that is based on (or derived from) the Work and for which the +editorial revisions, annotations, elaborations, or other modifications +represent, as a whole, an original work of authorship. For the purposes +of this License, Derivative Works shall not include works that remain +separable from, or merely link (or bind by name) to the interfaces of, +the Work and Derivative Works thereof. -"Contribution" shall mean any work of authorship, including the original -version of the Work and any modifications or additions to that Work or -Derivative Works thereof, that is intentionally submitted to Licensor for -inclusion in the Work by the copyright owner or by an individual or Legal -Entity authorized to submit on behalf of the copyright owner. For the purposes -of this definition, "submitted" means any form of electronic, verbal, or -written communication sent to the Licensor or its representatives, including -but not limited to communication on electronic mailing lists, source code -control systems, and issue tracking systems that are managed by, or on behalf -of, the Licensor for the purpose of discussing and improving the Work, but -excluding communication that is conspicuously marked or otherwise designated -in writing by the copyright owner as "Not a Contribution." +"Contribution" shall mean any work of authorship, including +the original version of the Work and any modifications or additions +to that Work or Derivative Works thereof, that is intentionally +submitted to Licensor for inclusion in the Work by the copyright owner +or by an individual or Legal Entity authorized to submit on behalf of +the copyright owner. For the purposes of this definition, "submitted" +means any form of electronic, verbal, or written communication sent +to the Licensor or its representatives, including but not limited to +communication on electronic mailing lists, source code control systems, +and issue tracking systems that are managed by, or on behalf of, the +Licensor for the purpose of discussing and improving the Work, but +excluding communication that is conspicuously marked or otherwise +designated in writing by the copyright owner as "Not a Contribution." -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf -of whom a Contribution has been received by Licensor and subsequently -incorporated within the Work. +"Contributor" shall mean Licensor and any individual or Legal Entity +on behalf of whom a Contribution has been received by Licensor and +subsequently incorporated within the Work. -2. Grant of Copyright License. Subject to the terms and conditions of this -License, each Contributor hereby grants to You a perpetual, worldwide, -non-exclusive, no-charge, royalty-free, irrevocable copyright license to -reproduce, prepare Derivative Works of, publicly display, publicly perform, -sublicense, and distribute the Work and such Derivative Works in Source or -Object form. +2. Grant of Copyright License. Subject to the terms and conditions of +this License, each Contributor hereby grants to You a perpetual, +worldwide, non-exclusive, no-charge, royalty-free, irrevocable +copyright license to reproduce, prepare Derivative Works of, +publicly display, publicly perform, sublicense, and distribute the +Work and such Derivative Works in Source or Object form. -3. Grant of Patent License. Subject to the terms and conditions of this -License, each Contributor hereby grants to You a perpetual, worldwide, -non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this -section) patent license to make, have made, use, offer to sell, sell, import, -and otherwise transfer the Work, where such license applies only to those -patent claims licensable by such Contributor that are necessarily infringed by -their Contribution(s) alone or by combination of their Contribution(s) with -the Work to which such Contribution(s) was submitted. If You institute patent -litigation against any entity (including a cross-claim or counterclaim in a -lawsuit) alleging that the Work or a Contribution incorporated within the Work -constitutes direct or contributory patent infringement, then any patent -licenses granted to You under this License for that Work shall terminate as of -the date such litigation is filed. +3. Grant of Patent License. Subject to the terms and conditions of +this License, each Contributor hereby grants to You a perpetual, +worldwide, non-exclusive, no-charge, royalty-free, irrevocable +(except as stated in this section) patent license to make, have made, +use, offer to sell, sell, import, and otherwise transfer the Work, +where such license applies only to those patent claims licensable +by such Contributor that are necessarily infringed by their +Contribution(s) alone or by combination of their Contribution(s) +with the Work to which such Contribution(s) was submitted. If You +institute patent litigation against any entity (including a +cross-claim or counterclaim in a lawsuit) alleging that the Work +or a Contribution incorporated within the Work constitutes direct +or contributory patent infringement, then any patent licenses +granted to You under this License for that Work shall terminate +as of the date such litigation is filed. -4. Redistribution. You may reproduce and distribute copies of the Work or -Derivative Works thereof in any medium, with or without modifications, and in -Source or Object form, provided that You meet the following conditions: +4. Redistribution. You may reproduce and distribute copies of the +Work or Derivative Works thereof in any medium, with or without +modifications, and in Source or Object form, provided that You +meet the following conditions: -(a) You must give any other recipients of the Work or Derivative Works a copy -of this License; and +(a) You must give any other recipients of the Work or +Derivative Works a copy of this License; and -(b) You must cause any modified files to carry prominent notices stating that -You changed the files; and +(b) You must cause any modified files to carry prominent notices +stating that You changed the files; and -(c) You must retain, in the Source form of any Derivative Works that You -distribute, all copyright, patent, trademark, and attribution notices from the -Source form of the Work, excluding those notices that do not pertain to any -part of the Derivative Works; and +(c) You must retain, in the Source form of any Derivative Works +that You distribute, all copyright, patent, trademark, and +attribution notices from the Source form of the Work, +excluding those notices that do not pertain to any part of +the Derivative Works; and -(d) If the Work includes a "NOTICE" text file as part of its distribution, -then any Derivative Works that You distribute must include a readable copy of -the attribution notices contained within such NOTICE file, excluding those -notices that do not pertain to any part of the Derivative Works, in at least -one of the following places: within a NOTICE text file distributed as part of -the Derivative Works; within the Source form or documentation, if provided -along with the Derivative Works; or, within a display generated by the -Derivative Works, if and wherever such third-party notices normally appear. -The contents of the NOTICE file are for informational purposes only and do not -modify the License. You may add Your own attribution notices within Derivative -Works that You distribute, alongside or as an addendum to the NOTICE text from -the Work, provided that such additional attribution notices cannot be -construed as modifying the License. +(d) If the Work includes a "NOTICE" text file as part of its +distribution, then any Derivative Works that You distribute must +include a readable copy of the attribution notices contained +within such NOTICE file, excluding those notices that do not +pertain to any part of the Derivative Works, in at least one +of the following places: within a NOTICE text file distributed +as part of the Derivative Works; within the Source form or +documentation, if provided along with the Derivative Works; or, +within a display generated by the Derivative Works, if and +wherever such third-party notices normally appear. The contents +of the NOTICE file are for informational purposes only and +do not modify the License. You may add Your own attribution +notices within Derivative Works that You distribute, alongside +or as an addendum to the NOTICE text from the Work, provided +that such additional attribution notices cannot be construed +as modifying the License. -You may add Your own copyright statement to Your modifications and may provide -additional or different license terms and conditions for use, reproduction, or -distribution of Your modifications, or for any such Derivative Works as a -whole, provided Your use, reproduction, and distribution of the Work otherwise -complies with the conditions stated in this License. +You may add Your own copyright statement to Your modifications and +may provide additional or different license terms and conditions +for use, reproduction, or distribution of Your modifications, or +for any such Derivative Works as a whole, provided Your use, +reproduction, and distribution of the Work otherwise complies with +the conditions stated in this License. -5. Submission of Contributions. Unless You explicitly state otherwise, any -Contribution intentionally submitted for inclusion in the Work by You to the -Licensor shall be under the terms and conditions of this License, without any -additional terms or conditions. Notwithstanding the above, nothing herein -shall supersede or modify the terms of any separate license agreement you may -have executed with Licensor regarding such Contributions. +5. Submission of Contributions. Unless You explicitly state otherwise, +any Contribution intentionally submitted for inclusion in the Work +by You to the Licensor shall be under the terms and conditions of +this License, without any additional terms or conditions. +Notwithstanding the above, nothing herein shall supersede or modify +the terms of any separate license agreement you may have executed +with Licensor regarding such Contributions. -6. Trademarks. This License does not grant permission to use the trade names, -trademarks, service marks, or product names of the Licensor, except as -required for reasonable and customary use in describing the origin of the Work -and reproducing the content of the NOTICE file. +6. Trademarks. This License does not grant permission to use the trade +names, trademarks, service marks, or product names of the Licensor, +except as required for reasonable and customary use in describing the +origin of the Work and reproducing the content of the NOTICE file. -7. Disclaimer of Warranty. Unless required by applicable law or agreed to in -writing, Licensor provides the Work (and each Contributor provides its -Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied, including, without limitation, any warranties -or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A +7. Disclaimer of Warranty. Unless required by applicable law or +agreed to in writing, Licensor provides the Work (and each +Contributor provides its Contributions) on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +implied, including, without limitation, any warranties or conditions +of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the -appropriateness of using or redistributing the Work and assume any risks -associated with Your exercise of permissions under this License. +appropriateness of using or redistributing the Work and assume any +risks associated with Your exercise of permissions under this License. -8. Limitation of Liability. In no event and under no legal theory, whether in -tort (including negligence), contract, or otherwise, unless required by -applicable law (such as deliberate and grossly negligent acts) or agreed to in -writing, shall any Contributor be liable to You for damages, including any -direct, indirect, special, incidental, or consequential damages of any -character arising as a result of this License or out of the use or inability -to use the Work (including but not limited to damages for loss of goodwill, -work stoppage, computer failure or malfunction, or any and all other -commercial damages or losses), even if such Contributor has been advised of -the possibility of such damages. +8. Limitation of Liability. In no event and under no legal theory, +whether in tort (including negligence), contract, or otherwise, +unless required by applicable law (such as deliberate and grossly +negligent acts) or agreed to in writing, shall any Contributor be +liable to You for damages, including any direct, indirect, special, +incidental, or consequential damages of any character arising as a +result of this License or out of the use or inability to use the +Work (including but not limited to damages for loss of goodwill, +work stoppage, computer failure or malfunction, or any and all +other commercial damages or losses), even if such Contributor +has been advised of the possibility of such damages. -9. Accepting Warranty or Additional Liability. While redistributing the Work -or Derivative Works thereof, You may choose to offer, and charge a fee for, -acceptance of support, warranty, indemnity, or other liability obligations -and/or rights consistent with this License. However, in accepting such -obligations, You may act only on Your own behalf and on Your sole -responsibility, not on behalf of any other Contributor, and only if You agree -to indemnify, defend, and hold each Contributor harmless for any liability -incurred by, or claims asserted against, such Contributor by reason of your -accepting any such warranty or additional liability. +9. Accepting Warranty or Additional Liability. While redistributing +the Work or Derivative Works thereof, You may choose to offer, +and charge a fee for, acceptance of support, warranty, indemnity, +or other liability obligations and/or rights consistent with this +License. However, in accepting such obligations, You may act only +on Your own behalf and on Your sole responsibility, not on behalf +of any other Contributor, and only if You agree to indemnify, +defend, and hold each Contributor harmless for any liability +incurred by, or claims asserted against, such Contributor by reason +of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. -To apply the Apache License to your work, attach the following boilerplate -notice, with the fields enclosed by brackets "[]" replaced with your own -identifying information. (Don't include the brackets!) The text should be -enclosed in the appropriate comment syntax for the file format. We also -recommend that a file or class name and description of purpose be included on -the same "printed page" as the copyright notice for easier identification -within third-party archives. +To apply the Apache License to your work, attach the following +boilerplate notice, with the fields enclosed by brackets "[]" +replaced with your own identifying information. (Don't include +the brackets!) The text should be enclosed in the appropriate +comment syntax for the file format. We also recommend that a +file or class name and description of purpose be included on the +same "printed page" as the copyright notice for easier +identification within third-party archives. Copyright [yyyy] [name of copyright owner] -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - -====================================================================== - -vSphere Integrated Containers Engine v1.3.0 GA includes a number of components -with separate copyright notices and license terms. This product does not -necessarily use all the open source components referred to below. Your use of -the source code for these components is subject to the terms and conditions of -the following licenses. - -====================================================================== - -The following copyright statements and licenses apply to various open source -software packages (or portions thereof) that are distributed with this VMware -Product. - -The VMware Product may also include other VMware components, which may contain -additional open source software packages. One or more such -open_source_licenses.txt files may therefore accompany this VMware Product. - -The VMware Product that includes this file does not necessarily use all the -open source software packages referred to below and may also only use portions -of a given package. - -=============== TABLE OF CONTENTS ============================= - -The following is a listing of the open source components detailed in this -document. This list is provided for your convenience; please read further if -you wish to review the copyright notice(s) and the full text of the license -associated with each component. - - -SECTION 1: BSD-STYLE, MIT-STYLE, OR SIMILAR STYLE LICENSES - - >>> agl_ed25519-master - >>> airbrake_gobrake_v2-c9d51adc624b5cc4c1bf8de730a09af4878ffe2d - >>> api_compute_v1-dfa61ae24628a06502b9c2805d983b57e89399b5 - >>> api_gensupport-dfa61ae24628a06502b9c2805d983b57e89399b5 - >>> api_googleapi-dfa61ae24628a06502b9c2805d983b57e89399b5 - >>> armon_go-metrics-f303b03b91d770a11a39677f1d3b55da4002bbcb - >>> armon_go-radix-4239b77079c7b5d1243b7b4736304ce8ddb6f0f2 - >>> asaskevich_govalidator-9699ab6b38bee2e02cd3fe8b99ecf67665395c96 - >>> azure_go-ansiterm-70b2c90b260171e829f1ebd7c17f600c11858dbe - >>> boltdb_bolt-b514920f8f2e0a68f857e5a12c774f385a59aef9 - >>> cenkalti_backoff-b02f2bbce11d7ea6b97f282ef1771b0fe2f65ef3 - >>> client9_misspell-9a1fc2456ac9e8c9b4cbe9d005b6e7adac0d357f - >>> codegangsta/inject-33e0aa1cb7c019ccc3fbe049a8262a6403d30504 - >>> codegangsta_cli-master - >>> cpuguy83_go-md2man_md2man-a65d4d2de4d5f7c74868dfa9b202a3c8be315aaa - >>> d2g_dhcp4-f0e4d29ff0231dce36e250b2ed9ff08412584bca - >>> deckarep_golang-set-1f0f4ff8d3fbef9328522993ce71c35890f67554 - >>> dustin_go-humanize-259d2a102b871d17f30e3cd9881a642961a1e486 - >>> gemnasium_logrus-airbrake-hook_v2-31e6fd4bd5a98d8ee7673d24bc54ec73c31810dd - >>> gizak_termui-798ffb9cbbe4073ef1f88e6069ca4a2c6aa6676b - >>> go-check_check-20d25e2804050c1cd24a7eea1e7a6447dd0e74ec - >>> go-martini/martini-22fa46961aabd2665cf3f1343b146d20028f5071 - >>> go-nfs-client-42fca177a36031d648551c751de1daf5f55dd4f0 - >>> godbus_dbus-230e4b23db2fd81c53eaa0073f76659d4849ce51 - >>> gogo_protobuf_gogoproto-6a92c871a8f5333cf106b2cdf937567208dbb2b7 - >>> gogo_protobuf_proto-6a92c871a8f5333cf106b2cdf937567208dbb2b7 - >>> gogo_protobuf_protoc-gen-gogo_descriptor-6a92c871a8f5333cf106b2cdf937567208dbb2b7 - >>> gogo_protobuf_sortkeys-6a92c871a8f5333cf106b2cdf937567208dbb2b7 - >>> gogo_protobuf_types-6a92c871a8f5333cf106b2cdf937567208dbb2b7 - >>> goji/param-d7f49fd7d1ed53fd562e737a8b5bbcc7e3d925e2 - >>> golang_lint-cb00e5669539f047b2f4c53a421a01b0c8e172c6 - >>> google_go-github_github-7a51fb928f52a196d5f31daefb8a489453ef54ff - >>> google_go-querystring_query-53e6ce116135b80d037921a7fdd5138cf32d7a8a - >>> google_uuid-f3f4b54b2fabcf1f11dcc939025bb0c109b00ed8 - >>> googleapis_gax-go-da06d194a00e19ce00d9011a13931c3f6f6887c7 - >>> gorilla_context-1c83b3eabd45b6d76072b66b746c20815fb2872d - >>> gorilla_mux-acf3be1b335c8ce30b2c8d51300984666f0ceefa - >>> gorilla_securecookie-fa5329f913702981df43dcb2a380bac429c810b5 - >>> gorilla_sessions-ca9ada44574153444b00d3fd9c8559e4cc95f896 - >>> gorilla_websocket-a91eba7f97777409bc2c443f5534d41dd20c5720 - >>> graylog2_go-gelf_gelf-master - >>> grpc-b1a2821ca5a4fd6b6e48ddfbb7d6d7584d839d21 - >>> hpcloud_tail-a30252cb686a21eb2d0b98132633053ec2f7f1e5 - >>> jessevdk_go-flags-97448c91aac742cbca3d020b3e769013a420a06f - >>> julienschmidt/httprouter-975b5c4c7c21c0e3d2764200bf2aa8e34657ae6e - >>> justinas/alice-1051eaf52fcafdd87ead59d28b065f1fcb8274ec - >>> kr_pty-f7ee69f31298ecbe5d2b349c711e2547a617d398 - >>> mailru_easyjson-99e922cf9de1bc0ab38310c277cff32c2147e747 - >>> martini-contrib/render-ec18f8345a1181146728238980606fb1d6f40e8c - >>> matryer_resync-d39c09a11215c84aab0b65e323fc47dd6e276af1 - >>> mattn_go-runewidth-14207d285c6c197daabb5c9793d63e7af9ab2d50 - >>> microsoft_go-winio-24a3e3d3fc7451805e09d11e11e95d9a0a4f205e - >>> microsoft_hcsshim-d327ca738085de7d617aa1df16d98fe7a64c2455 - >>> miekg_dns-ca336a1f95a6b89be9c250df26c7a41742eb4a6f - >>> mitchellh_go-wordwrap-ad45545899c7b13c020ea92b2072220eefad42b8 - >>> mitchellh_mapstructure-5a0325d7fafaac12dda6e7fb8bd222ec1b69875e - >>> mreiferson_go-httpclient-31f0106b4474f14bc441575c19d3a5fa21aa1f6c - >>> naoina_denco-9af2ba0e24214bac003821f4a501b131b2e04c75 - >>> nlopes_slack-f243c7602fdf906248fc1f165284daa4e4d2d09e - >>> nsf_termbox-go-91bae1bb5fa9ee504905ecbe7043fa30e92feaa3 - >>> opennota_urlesc-5fa9ff0392746aeae1c4b37fcc42c65afa7a9587 - >>> pkg_profile-8a808a6967b79da66deacfe508b26d398a69518f - >>> puerkitobio_purell-d69616f51cdfcd7514d6a380847a152dfc2a749d - >>> racksec_srslog-a974ba6f7fb527d2ddc73ee9c05d3e2ccc0af0dc - >>> rs/cors-8dd4211afb5d08dbb39a533b9bb9e4b486351df6 - >>> ryanuber_go-glob-256dc444b735e061061cf46c809487313d5b0065 - >>> sirupsen_logrus-d26492970760ca5d33129d2d799e34be5c4782eb - >>> smartystreets_assertions-287b4346dc4e71a038c346375a9d572453bc469b - >>> smartystreets_assertions_internal_oglematchers-287b4346dc4e71a038c346375a9d572453bc469b - >>> smartystreets_assertions_internal_oglemock-287b4346dc4e71a038c346375a9d572453bc469b - >>> smartystreets_assertions_internal_ogletest-287b4346dc4e71a038c346375a9d572453bc469b - >>> smartystreets_assertions_internal_reqtrace-287b4346dc4e71a038c346375a9d572453bc469b - >>> stretchr_objx-1a9d0bb9f541897e62256577b352fdbc1fb4fd94 - >>> tomb_v1-dd632973f1e7218eb1089048e0798ec9ae7dceb8 - >>> tylerb/graceful.v1-4654dfbb6ad53cb5e27f37d99b02e16c1872fbbb - >>> tylerb_graceful-d7d7a205e779a4738d38eda0671fff8bfc965f14 - >>> ugorji_go_codec-708a42d246822952f38190a8d8c4e6b16a0e600c - >>> urfave/negroni-ccc4a14984828dcb944e6f17fa4a967b18624f2b - >>> urfave_cli_v1-0bdeddeeb0f650497d603c4ad7b20cfe685682f6 - >>> x_crypto_acme-728b753d0135da6801d45a38e6f43ff55779c5c2 - >>> x_crypto_curve25519-728b753d0135da6801d45a38e6f43ff55779c5c2 - >>> x_crypto_ed25519-728b753d0135da6801d45a38e6f43ff55779c5c2 - >>> x_crypto_nacl_secretbox-728b753d0135da6801d45a38e6f43ff55779c5c2 - >>> x_crypto_poly1305-728b753d0135da6801d45a38e6f43ff55779c5c2 - >>> x_crypto_salsa20_salsa-728b753d0135da6801d45a38e6f43ff55779c5c2 - >>> x_crypto_ssh-728b753d0135da6801d45a38e6f43ff55779c5c2 - >>> x_net_context-a6577fac2d73be281a500b310739095313165611 - >>> x_net_http2-a6577fac2d73be281a500b310739095313165611 - >>> x_net_idna-a6577fac2d73be281a500b310739095313165611 - >>> x_net_internal_timeseries-a6577fac2d73be281a500b310739095313165611 - >>> x_net_lex_httplex-a6577fac2d73be281a500b310739095313165611 - >>> x_net_proxy-a6577fac2d73be281a500b310739095313165611 - >>> x_net_trace-a6577fac2d73be281a500b310739095313165611 - >>> x_net_websocket-a6577fac2d73be281a500b310739095313165611 - >>> x_oauth2-1611bb46e67abc64a71ecc5c3ae67f1cbbc2b921 - >>> x_sync_singleflight-5a06fca2c336a4b2b2fcb45702e8c47621b2aa2c - >>> x_sys_unix-99f16d856c9836c42d24e7ab64ea72916925fa97 - >>> x_sys_windows-99f16d856c9836c42d24e7ab64ea72916925fa97 - >>> x_text_internal-f28f36722d5ef2f9655ad3de1f248e3e52ad5ebd - >>> x_text_language-f28f36722d5ef2f9655ad3de1f248e3e52ad5ebd - >>> x_text_message-f28f36722d5ef2f9655ad3de1f248e3e52ad5ebd - >>> x_tools_go_ast_astutil-381149a2d6e5d8f319ccf04bfefc71e03a78b868 - >>> x_tools_go_buildutil-381149a2d6e5d8f319ccf04bfefc71e03a78b868 - >>> x_tools_go_gcexportdata-381149a2d6e5d8f319ccf04bfefc71e03a78b868 - >>> x_tools_go_gcimporter15-381149a2d6e5d8f319ccf04bfefc71e03a78b868 - >>> x_tools_go_loader-381149a2d6e5d8f319ccf04bfefc71e03a78b868 - >>> x_tools_imports-381149a2d6e5d8f319ccf04bfefc71e03a78b868 - >>> zenazn/goji-c05078ca81941f8e801bba3ddc0e6b86b7fdc893 - - - -SECTION 2: Apache License, V2.0 - - >>> appengine-ca59ef35f409df61fa4a5f8290ff289b37eccfb8 - >>> aws_aws-sdk-go_aws-master - >>> coreos_etcd_client-781196fa8746d6c34ace2a62898051af6dc46002 - >>> coreos_etcd_version-781196fa8746d6c34ace2a62898051af6dc46002 - >>> coreos_go-semver_semver-5e3acbb5668c4c3deb4842615c4098eb61fb6b1e - >>> docker_distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc - >>> docker_go-events-aa2e3b613fbbfdddbe055a7b9e3ce271cfd83eca - >>> docker_libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd - >>> docker_libtrust-9cbd2a1374f46905c68a4eb3694a130610adc62a - >>> go-openapi_analysis-d5a75b7d751ca3f11ad5d93cfe97405f2c3f6a47 - >>> go-openapi_errors-fc3f73a224499b047eda7191e5d22e1e9631e86f - >>> go-openapi_jsonpointer-779f45308c19820f1a69e9a4cd965f496e0da10f - >>> go-openapi_jsonreference-36d33bfe519efae5632669801b180bf1a245da3b - >>> go-openapi_loads-6bb6486231e079ea125c0f39994ed3d0c53399ed - >>> go-openapi_runtime-3b13ebb46790d871d74a6c2450fa4b1280f90854 - >>> go-openapi_spec-e072eb2390d3a03736a6eb617d30f48369160447 - >>> go-openapi_strfmt-0cb3db44c13bad3b3f567b762a66751972a310cc - >>> go-openapi_swag-96d7b9ebd181a1735a1c9ac87914f2b32fbf56c9 - >>> go-openapi_validate-035dcd74f1f61e83debe1c22950dc53556e7e4b2 - >>> go_compute_metadata-cd0da878c66091060d2e7403abd62192b3e387e0 - >>> go_internal-cd0da878c66091060d2e7403abd62192b3e387e0 - >>> golang_glog-23def4e6c14b4da8ac2ed8007337bc5eb5007998 - >>> golang_groupcache_lru-72d04f9fcdec7d3821820cc4a6f150eae553639a - >>> govmomi-v0.16.0 - >>> maruel_panicparse_stack-25bcac0d793cf4109483505a0d66e066a3a90a80 - >>> oxtoacart/bpool-4e1c5567d7c2dd59fa4c7c83d34c2f3528b025d6 - >>> syncutil_singleflight-7ce08ca145dbe0e66a127c447b80ee7914f3e4f9 - >>> vdemeester_shakers-24d7f1d6a71aa5d9cbe7390e4afb66b7eef9e1b3 - >>> vishvananda_netlink-482f7a52b758233521878cb6c5904b6bd63f3457 - >>> vishvananda_netns-604eaf189ee867d8c147fafc28def2394e878d25 - >>> yaml_v2-4c78c975fe7c825c6d1466c42be594d1d6f3aba6 - - - -SECTION 3: Mozilla Public License, V2.0 - - >>> d2g_dhcp4client-master - >>> hashicorp_go-cleanhttp-875fb671b3ddc66f8e2f0acc33829c8cb989a38d - >>> hashicorp_memberlist-cef12ad58224d55cf26caa9e3d239c2fcb3432a2 - - - -APPENDIX. Standard License Files - - >>> Apache License, V2.0 - - >>> Mozilla Public License, V2.0 - - >>> GNU Lesser General Public License, V3.0 - - >>> Creative Commons Attribution-ShareAlike, V4.0 - - >>> Creative Commons Attribution License, V3.0 - - >>> Creative Commons Attribution 4.0 International - - - ---------------- SECTION 1: BSD-STYLE, MIT-STYLE, OR SIMILAR STYLE LICENSES ----------- - -BSD-STYLE, MIT-STYLE, OR SIMILAR STYLE LICENSES are applicable to the -following component(s). - - ->>> agl_ed25519-master - -Copyright (c) 2012 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> airbrake_gobrake_v2-c9d51adc624b5cc4c1bf8de730a09af4878ffe2d - -Copyright (c) 2014 The Gobrake Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> api_compute_v1-dfa61ae24628a06502b9c2805d983b57e89399b5 - -Copyright (c) 2011 Google Inc. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> api_gensupport-dfa61ae24628a06502b9c2805d983b57e89399b5 - -Copyright (c) 2011 Google Inc. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -ADDITIONAL LICENSE INFORMATION: - -> Apache 2.0 - -google-api-go-client-dfa61ae24628a06502b9c2805d983b57e89399b5.tar.gz\google-api-go-client-dfa61ae24628a06502b9c2805d983b57e89399b5.tar\google-api-go-client-dfa61ae24628a06502b9c2805d983b57e89399b5\examples\pubsub.go - -Copyright 2017 Google Inc. All Rights Reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - -> BSD - -google-api-go-client-dfa61ae24628a06502b9c2805d983b57e89399b5.tar.gz\google-api-go-client-dfa61ae24628a06502b9c2805d983b57e89399b5.tar\google-api-go-client-dfa61ae24628a06502b9c2805d983b57e89399b5\examples\mapsengine.go - -Copyright 2014 The Go Authors. All rights reserved. Use of this source code -is governed by a BSD-style license that can be found in the LICENSE file. - -> MIT - -google-api-go-client-dfa61ae24628a06502b9c2805d983b57e89399b5.tar.gz\google-api-go-client-dfa61ae24628a06502b9c2805d983b57e89399b5.tar\google-api-go-client-dfa61ae24628a06502b9c2805d983b57e89399b5\googleapi\internal\uritemplates\LICENSE - -Copyright (c) 2013 Joshua Tacoma - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> api_googleapi-dfa61ae24628a06502b9c2805d983b57e89399b5 - -Copyright (c) 2011 Google Inc. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -ADDITIONAL LICENSE INFORMATION: - -> MIT - -google-api-go-client-dfa61ae24628a06502b9c2805d983b57e89399b5.tar.gz\google-api-go-client-dfa61ae24628a06502b9c2805d983b57e89399b5(1).tar\google-api-go-client-dfa61ae24628a06502b9c2805d983b57e89399b5\googleapi\internal\uritemplates\LICENSE - -Copyright (c) 2013 Joshua Tacoma - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -> Apache 2.0 - -google-api-go-client-dfa61ae24628a06502b9c2805d983b57e89399b5.tar.gz\google-api-go-client-dfa61ae24628a06502b9c2805d983b57e89399b5(1).tar\google-api-go-client-dfa61ae24628a06502b9c2805d983b57e89399b5\examples\compute.go - -Copyright 2017 Google Inc. All Rights Reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - - ->>> armon_go-metrics-f303b03b91d770a11a39677f1d3b55da4002bbcb - -The MIT License (MIT) Copyright (c) 2013 Armon Dadgar Permission is -hereby granted, free of charge, to any person obtaining a copy of this -software and associated documentation files (the "Software"), to deal in the -Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to -do so, subject to the following conditions: The above copyright notice -and this permission notice shall be included in all copies or substantial -portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT -WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE -WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF -CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - ->>> armon_go-radix-4239b77079c7b5d1243b7b4736304ce8ddb6f0f2 - -The MIT License (MIT) - -Copyright (c) 2014 Armon Dadgar - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> asaskevich_govalidator-9699ab6b38bee2e02cd3fe8b99ecf67665395c96 - -The MIT License (MIT) Copyright (c) 2014 Alex Saskevich Permission -is hereby granted, free of charge, to any person obtaining a copy of this -software and associated documentation files (the "Software"), to deal in the -Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: The above -copyright notice and this permission notice shall be included in all copies -or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS -IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT -LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR -PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN -ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - ->>> azure_go-ansiterm-70b2c90b260171e829f1ebd7c17f600c11858dbe - -The MIT License (MIT) - -Copyright (c) 2015 Microsoft Corporation - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> boltdb_bolt-b514920f8f2e0a68f857e5a12c774f385a59aef9 - -The MIT License (MIT) - -Copyright (c) 2013 Ben Johnson - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> cenkalti_backoff-b02f2bbce11d7ea6b97f282ef1771b0fe2f65ef3 - -The MIT License (MIT) Copyright (c) 2014 Cenk Alti Permission is -hereby granted, free of charge, to any person obtaining a copy of this -software and associated documentation files (the "Software"), to deal in the -Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to -do so, subject to the following conditions: The above copyright notice -and this permission notice shall be included in all copies or substantial -portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT -WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE -WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF -CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - ->>> client9_misspell-9a1fc2456ac9e8c9b4cbe9d005b6e7adac0d357f - -The MIT License (MIT) - -Copyright (c) 2015-2016 Nick Galbreath - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -ADDITIONAL LICENSE INFORMATION: - -> BSD-3 Clause - -misspell-9a1fc2456ac9e8c9b4cbe9d005b6e7adac0d357f.tar.gz\misspell-9a1fc2456ac9e8c9b4cbe9d005b6e7adac0d357f.tar\misspell-9a1fc2456ac9e8c9b4cbe9d005b6e7adac0d357f\stringreplacer\LICENSE - -Copyright (c) 2012 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> codegangsta/inject-33e0aa1cb7c019ccc3fbe049a8262a6403d30504 - -The MIT License (MIT) - -Copyright (c) 2013 Jeremy Saenz - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> codegangsta_cli-master - -MIT License - -Copyright (c) 2016 Jeremy Saenz & Contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> cpuguy83_go-md2man_md2man-a65d4d2de4d5f7c74868dfa9b202a3c8be315aaa - -The MIT License (MIT) Copyright (c) 2014 Brian Goff Permission is -hereby granted, free of charge, to any person obtaining a copy of this -software and associated documentation files (the "Software"), to deal in the -Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: The above -copyright notice and this permission notice shall be included in all copies -or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS -IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT -LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR -PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN -ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -ADDITIONAL LICENSE INFORMATION: -> BSD-2 -go-md2man-a65d4d2de4d5f7c74868dfa9b202a3c8be315aaa.tar.gz\go-md2man-a65d4d2de4d5f7c74868dfa9b202a3c8be315aaa.tar\go-md2man-a65d4d2de4d5f7c74868dfa9b202a3c8be315aaa\vendor\github.com\russross\blackfriday\LICENSE.txt -Copyright © 2011 Russ Ross All rights reserved. Redistribution and use -in source and binary forms, with or without modification, are permitted -provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, -this list of conditions and the following disclaimer. 2. Redistributions -in binary form must reproduce the above copyright notice, this list of -conditions and the following disclaimer in the documentation and/or other -materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY -THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED -WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH -DAMAGE. - - ->>> d2g_dhcp4-f0e4d29ff0231dce36e250b2ed9ff08412584bca - -Copyright (c) 2013 Skagerrak Software Limited. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Skagerrak Software Limited nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> deckarep_golang-set-1f0f4ff8d3fbef9328522993ce71c35890f67554 - -Open Source Initiative OSI - The MIT License (MIT):Licensing The MIT -License (MIT) Copyright (c) 2013 Ralph Caraveo (deckarep@gmail.com) -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: The above -copyright notice and this permission notice shall be included in all copies -or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS -IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT -LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR -PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN -ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - ->>> dustin_go-humanize-259d2a102b871d17f30e3cd9881a642961a1e486 - -Copyright (c) 2005-2008 Dustin Sallings Permission is -hereby granted, free of charge, to any person obtaining a copy of this -software and associated documentation files (the "Software"), to deal in the -Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: The above -copyright notice and this permission notice shall be included in all copies -or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS -IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT -LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR -PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN -ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - - ->>> gemnasium_logrus-airbrake-hook_v2-31e6fd4bd5a98d8ee7673d24bc54ec73c31810dd - -The MIT License (MIT) - -Copyright (c) 2015 Gemnasium - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> gizak_termui-798ffb9cbbe4073ef1f88e6069ca4a2c6aa6676b - -The MIT License (MIT) - -Copyright (c) 2015 Zack Guo - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> go-check_check-20d25e2804050c1cd24a7eea1e7a6447dd0e74ec - -Gocheck - A rich testing framework for Go - -Copyright (c) 2010-2013 Gustavo Niemeyer - -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. 2. Redistributions in binary -form must reproduce the above copyright notice, this list of conditions and -the following disclaimer in the documentation and/or other materials provided -with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -ADDITIONAL LICENSE INFORMATION: - -> BSD 3 - -check-20d25e2804050c1cd24a7eea1e7a6447dd0e74ec.tar.gz\check-20d25e2804050c1cd24a7eea1e7a6447dd0e74ec.tar\check-20d25e2804050c1cd24a7eea1e7a6447dd0e74ec\benchmark.go - - Copyright (c) 2012 The Go Authors. All rights reserved. - - Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its - contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> go-martini/martini-22fa46961aabd2665cf3f1343b146d20028f5071 - -The MIT License (MIT) - -Copyright (c) 2015 Jeremy Saenz - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> go-nfs-client-42fca177a36031d648551c751de1daf5f55dd4f0 - -Go-nfs-client version 0.1 - -Copyright © 2017 VMware, Inc. All rights reserved - -The BSD-2 license (the “License”) set forth below applies to all parts of the -Go-nfs-client project. You may not use this file except in compliance with -the License. - -BSD-2 License - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: • -Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. • Redistributions in -binary form must reproduce the above copyright notice, this list of conditions -and the following disclaimer in the documentation and/or other materials -provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT -HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -ADDITIONAL LICENSE INFORMATION: - -> Apache 2.0 - -go-nfs-client-42fca177a36031d648551c751de1daf5f55dd4f0.tar.gz\go-nfs-client-42fca177a36031d648551c751de1daf5f55dd4f0.tar\go-nfs-client-42fca177a36031d648551c751de1daf5f55dd4f0\nfs\util\log.go - - -Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: -BSD-2-Clause - -Copyright 2016 VMware, Inc. All Rights Reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - -http:www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - - ->>> godbus_dbus-230e4b23db2fd81c53eaa0073f76659d4849ce51 - -Copyright (c) 2013, Georg Reinke (), Google All -rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, -this list of conditions and the following disclaimer in the documentation -and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> gogo_protobuf_gogoproto-6a92c871a8f5333cf106b2cdf937567208dbb2b7 - -Protocol Buffers for Go with Gadgets - -Copyright (c) 2013, The GoGo Authors. All rights reserved. -http:github.com/gogo/protobuf - -Go support for Protocol Buffers - Google's data interchange format - -Copyright 2010 The Go Authors. All rights reserved. -https:github.com/golang/protobuf - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -ADDITIONAL LICENSE INFORMATION: - -> BSD 2 - -protobuf-6a92c871a8f5333cf106b2cdf937567208dbb2b7.tar.gz\protobuf-6a92c871a8f5333cf106b2cdf937567208dbb2b7.tar\protobuf-6a92c871a8f5333cf106b2cdf937567208dbb2b7\vanity\test\proto3.proto - - Protocol Buffers for Go with Gadgets - - Copyright (c) 2015, The GoGo Authors. All rights reserved. -http:github.com/gogo/protobuf - - Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> gogo_protobuf_proto-6a92c871a8f5333cf106b2cdf937567208dbb2b7 - -Protocol Buffers for Go with Gadgets Copyright (c) 2013, The GoGo -Authors. All rights reserved. http://github.com/gogo/protobuf Go -support for Protocol Buffers - Google's data interchange format Copyright -2010 The Go Authors. All rights reserved. -https://github.com/golang/protobuf Redistribution and use in source and -binary forms, with or without modification, are permitted provided that the -following conditions are met: - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -ADDITIONAL LICENSE INFORMATION: - -> BSD-2 -protobuf-6a92c871a8f5333cf106b2cdf937567208dbb2b7.tar.gz\protobuf-6a92c871a8f5333cf106b2cdf937567208dbb2b7.tar\protobuf-6a92c871a8f5333cf106b2cdf937567208dbb2b7\plugin\compare\compare.go -Protocol Buffers for Go with Gadgets - -Copyright (c) 2013, The GoGo Authors. All rights reserved. -http:github.com/gogo/protobuf - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS -IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> gogo_protobuf_protoc-gen-gogo_descriptor-6a92c871a8f5333cf106b2cdf937567208dbb2b7 - -Protocol Buffers for Go with Gadgets - -Copyright (c) 2013, The GoGo Authors. All rights reserved. -http:github.com/gogo/protobuf - -Go support for Protocol Buffers - Google's data interchange format - -Copyright 2010 The Go Authors. All rights reserved. -https:github.com/golang/protobuf - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -ADDITIONAL LICENSE INFORMATION: - -> BSD-2 clause - -protobuf-6a92c871a8f5333cf106b2cdf937567208dbb2b7.tar.gz\protobuf-6a92c871a8f5333cf106b2cdf937567208dbb2b7.tar\protobuf-6a92c871a8f5333cf106b2cdf937567208dbb2b7\codec\codec.go - -Copyright (c) 2015, The GoGo Authors. All rights reserved. -http:github.com/gogo/protobuf - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> gogo_protobuf_sortkeys-6a92c871a8f5333cf106b2cdf937567208dbb2b7 - -Protocol Buffers for Go with Gadgets - -Copyright (c) 2013, The GoGo Authors. All rights reserved. -http://github.com/gogo/protobuf - -Go support for Protocol Buffers - Google's data interchange format - -Copyright 2010 The Go Authors. All rights reserved. -https://github.com/golang/protobuf - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -ADDITIONAL LICNSE INFORMATION : - -> BSD-2 - -protobuf-6a92c871a8f5333cf106b2cdf937567208dbb2b7.tar.gz\protobuf-6a92c871a8f5333cf106b2cdf937567208dbb2b7.tar\protobuf-6a92c871a8f5333cf106b2cdf937567208dbb2b7\codec\codec.go - -Copyright (c) 2015, The GoGo Authors. All rights reserved. -http:github.com/gogo/protobuf - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> gogo_protobuf_types-6a92c871a8f5333cf106b2cdf937567208dbb2b7 - -Protocol Buffers for Go with Gadgets Copyright (c) 2013, The GoGo Authors. -All rights reserved. http://github.com/gogo/protobuf Go support for -Protocol Buffers - Google's data interchange format Copyright 2010 The Go -Authors. All rights reserved. https://github.com/golang/protobuf -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -ADDITIONAL LICENSE INFORMATION: -> BSD-2 - -protobuf-6a92c871a8f5333cf106b2cdf937567208dbb2b7.tar.gz\protobuf-6a92c871a8f5333cf106b2cdf937567208dbb2b7.tar\protobuf-6a92c871a8f5333cf106b2cdf937567208dbb2b7\plugin\compare\compare.go -Protocol Buffers for Go with Gadgets Copyright (c) 2013, The GoGo Authors. -All rights reserved. http:github.com/gogo/protobuf Redistribution and -use in source and binary forms, with or without modification, are permitted -provided that the following conditions are met: -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS -IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> goji/param-d7f49fd7d1ed53fd562e737a8b5bbcc7e3d925e2 - -Copyright (c) 2014, 2015 Carl Jackson (carl@avtok.com) - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> golang_lint-cb00e5669539f047b2f4c53a421a01b0c8e172c6 - -Copyright (c) 2013 The Go Authors. All rights reserved. Redistribution -and use in source and binary forms, with or without modification, are -permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> google_go-github_github-7a51fb928f52a196d5f31daefb8a489453ef54ff - -Copyright (c) 2013 The go-github AUTHORS. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ----------- - -Some documentation is taken from the GitHub Developer site -, which is available under the following -Creative Commons Attribution 3.0 License. This applies only to the go-github -source code and would not apply to any compiled binaries. - -THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE -COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY -COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS -AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. - -BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE -BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE -CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE -IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. - -1. Definitions - - a. "Adaptation" means a work based upon the Work, or upon the Work and other -pre-existing works, such as a translation, adaptation, derivative work, -arrangement of music or other alterations of a literary or artistic work, or -phonogram or performance and includes cinematographic adaptations or any other -form in which the Work may be recast, transformed, or adapted including in any -form recognizably derived from the original, except that a work that -constitutes a Collection will not be considered an Adaptation for the purpose -of this License. For the avoidance of doubt, where the Work is a musical work, -performance or phonogram, the synchronization of the Work in timed-relation -with a moving image ("synching") will be considered an Adaptation for the -purpose of this License. b. "Collection" means a collection of literary or -artistic works, such as encyclopedias and anthologies, or performances, -phonograms or broadcasts, or other works or subject matter other than works -listed in Section 1(f) below, which, by reason of the selection and -arrangement of their contents, constitute intellectual creations, in which the -Work is included in its entirety in unmodified form along with one or more -other contributions, each constituting separate and independent works in -themselves, which together are assembled into a collective whole. A work that -constitutes a Collection will not be considered an Adaptation (as defined -above) for the purposes of this License. c. "Distribute" means to make -available to the public the original and copies of the Work or Adaptation, as -appropriate, through sale or other transfer of ownership. d. "Licensor" means -the individual, individuals, entity or entities that offer(s) the Work under -the terms of this License. e. "Original Author" means, in the case of a -literary or artistic work, the individual, individuals, entity or entities who -created the Work or if no individual or entity can be identified, the -publisher; and in addition (i) in the case of a performance the actors, -singers, musicians, dancers, and other persons who act, sing, deliver, -declaim, play in, interpret or otherwise perform literary or artistic works or -expressions of folklore; (ii) in the case of a phonogram the producer being -the person or legal entity who first fixes the sounds of a performance or -other sounds; and, (iii) in the case of broadcasts, the organization that -transmits the broadcast. f. "Work" means the literary and/or artistic work -offered under the terms of this License including without limitation any -production in the literary, scientific and artistic domain, whatever may be -the mode or form of its expression including digital form, such as a book, -pamphlet and other writing; a lecture, address, sermon or other work of the -same nature; a dramatic or dramatico-musical work; a choreographic work or -entertainment in dumb show; a musical composition with or without words; a -cinematographic work to which are assimilated works expressed by a process -analogous to cinematography; a work of drawing, painting, architecture, -sculpture, engraving or lithography; a photographic work to which are -assimilated works expressed by a process analogous to photography; a work of -applied art; an illustration, map, plan, sketch or three-dimensional work -relative to geography, topography, architecture or science; a performance; a -broadcast; a phonogram; a compilation of data to the extent it is protected as -a copyrightable work; or a work performed by a variety or circus performer to -the extent it is not otherwise considered a literary or artistic work. g. -"You" means an individual or entity exercising rights under this License who -has not previously violated the terms of this License with respect to the -Work, or who has received express permission from the Licensor to exercise -rights under this License despite a previous violation. h. "Publicly Perform" -means to perform public recitations of the Work and to communicate to the -public those public recitations, by any means or process, including by wire or -wireless means or public digital performances; to make available to the public -Works in such a way that members of the public may access these Works from a -place and at a place individually chosen by them; to perform the Work to the -public by any means or process and the communication to the public of the -performances of the Work, including by public digital performance; to -broadcast and rebroadcast the Work by any means including signs, sounds or -images. i. "Reproduce" means to make copies of the Work by any means -including without limitation by sound or visual recordings and the right of -fixation and reproducing fixations of the Work, including storage of a -protected performance or phonogram in digital form or other electronic medium. - -2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, -or restrict any uses free from copyright or rights arising from limitations or -exceptions that are provided for in connection with the copyright protection -under copyright law or other applicable laws. - -3. License Grant. Subject to the terms and conditions of this License, -Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual -(for the duration of the applicable copyright) license to exercise the rights -in the Work as stated below: - - a. to Reproduce the Work, to incorporate the Work into one or more -Collections, and to Reproduce the Work as incorporated in the Collections; b. -to create and Reproduce Adaptations provided that any such Adaptation, -including any translation in any medium, takes reasonable steps to clearly -label, demarcate or otherwise identify that changes were made to the original -Work. For example, a translation could be marked "The original work was -translated from English to Spanish," or a modification could indicate "The -original work has been modified."; c. to Distribute and Publicly Perform the -Work including as incorporated in Collections; and, d. to Distribute and -Publicly Perform Adaptations. e. For the avoidance of doubt: - - i. Non-waivable Compulsory License Schemes. In those jurisdictions in -which the right to collect royalties through any statutory or compulsory -licensing scheme cannot be waived, the Licensor reserves the exclusive right -to collect such royalties for any exercise by You of the rights granted under -this License; ii. Waivable Compulsory License Schemes. In those jurisdictions -in which the right to collect royalties through any statutory or compulsory -licensing scheme can be waived, the Licensor waives the exclusive right to -collect such royalties for any exercise by You of the rights granted under -this License; and, iii. Voluntary License Schemes. The Licensor waives the -right to collect royalties, whether individually or, in the event that the -Licensor is a member of a collecting society that administers voluntary -licensing schemes, via that society, from any exercise by You of the rights -granted under this License. - -The above rights may be exercised in all media and formats whether now known -or hereafter devised. The above rights include the right to make such -modifications as are technically necessary to exercise the rights in other -media and formats. Subject to Section 8(f), all rights not expressly granted -by Licensor are hereby reserved. - -4. Restrictions. The license granted in Section 3 above is expressly made -subject to and limited by the following restrictions: - - a. You may Distribute or Publicly Perform the Work only under the terms of -this License. You must include a copy of, or the Uniform Resource Identifier -(URI) for, this License with every copy of the Work You Distribute or Publicly -Perform. You may not offer or impose any terms on the Work that restrict the -terms of this License or the ability of the recipient of the Work to exercise -the rights granted to that recipient under the terms of the License. You may -not sublicense the Work. You must keep intact all notices that refer to this -License and to the disclaimer of warranties with every copy of the Work You -Distribute or Publicly Perform. When You Distribute or Publicly Perform the -Work, You may not impose any effective technological measures on the Work that -restrict the ability of a recipient of the Work from You to exercise the -rights granted to that recipient under the terms of the License. This Section -4(a) applies to the Work as incorporated in a Collection, but this does not -require the Collection apart from the Work itself to be made subject to the -terms of this License. If You create a Collection, upon notice from any -Licensor You must, to the extent practicable, remove from the Collection any -credit as required by Section 4(b), as requested. If You create an Adaptation, -upon notice from any Licensor You must, to the extent practicable, remove from -the Adaptation any credit as required by Section 4(b), as requested. b. If -You Distribute, or Publicly Perform the Work or any Adaptations or -Collections, You must, unless a request has been made pursuant to Section -4(a), keep intact all copyright notices for the Work and provide, reasonable -to the medium or means You are utilizing: (i) the name of the Original Author -(or pseudonym, if applicable) if supplied, and/or if the Original Author -and/or Licensor designate another party or parties (e.g., a sponsor institute, -publishing entity, journal) for attribution ("Attribution Parties") in -Licensor's copyright notice, terms of service or by other reasonable means, -the name of such party or parties; (ii) the title of the Work if supplied; -(iii) to the extent reasonably practicable, the URI, if any, that Licensor -specifies to be associated with the Work, unless such URI does not refer to -the copyright notice or licensing information for the Work; and (iv) , -consistent with Section 3(b), in the case of an Adaptation, a credit -identifying the use of the Work in the Adaptation (e.g., "French translation -of the Work by Original Author," or "Screenplay based on original Work by -Original Author"). The credit required by this Section 4 (b) may be -implemented in any reasonable manner; provided, however, that in the case of a -Adaptation or Collection, at a minimum such credit will appear, if a credit -for all contributing authors of the Adaptation or Collection appears, then as -part of these credits and in a manner at least as prominent as the credits for -the other contributing authors. For the avoidance of doubt, You may only use -the credit required by this Section for the purpose of attribution in the -manner set out above and, by exercising Your rights under this License, You -may not implicitly or explicitly assert or imply any connection with, -sponsorship or endorsement by the Original Author, Licensor and/or Attribution -Parties, as appropriate, of You or Your use of the Work, without the separate, -express prior written permission of the Original Author, Licensor and/or -Attribution Parties. c. Except as otherwise agreed in writing by the Licensor -or as may be otherwise permitted by applicable law, if You Reproduce, -Distribute or Publicly Perform the Work either by itself or as part of any -Adaptations or Collections, You must not distort, mutilate, modify or take -other derogatory action in relation to the Work which would be prejudicial to -the Original Author's honor or reputation. Licensor agrees that in those -jurisdictions (e.g. Japan), in which any exercise of the right granted in -Section 3(b) of this License (the right to make Adaptations) would be deemed -to be a distortion, mutilation, modification or other derogatory action -prejudicial to the Original Author's honor and reputation, the Licensor will -waive or not assert, as appropriate, this Section, to the fullest extent -permitted by the applicable national law, to enable You to reasonably exercise -Your right under Section 3(b) of this License (right to make Adaptations) but -not otherwise. - -5. Representations, Warranties and Disclaimer - -UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS -THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND -CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, -WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A -PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER -DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT -DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED -WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. - -6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, -IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY -SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT -OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF -THE POSSIBILITY OF SUCH DAMAGES. - -7. Termination - - a. This License and the rights granted hereunder will terminate automatically -upon any breach by You of the terms of this License. Individuals or entities -who have received Adaptations or Collections from You under this License, -however, will not have their licenses terminated provided such individuals or -entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, -7, and 8 will survive any termination of this License. b. Subject to the -above terms and conditions, the license granted here is perpetual (for the -duration of the applicable copyright in the Work). Notwithstanding the above, -Licensor reserves the right to release the Work under different license terms -or to stop distributing the Work at any time; provided, however that any such -election will not serve to withdraw this License (or any other license that -has been, or is required to be, granted under the terms of this License), and -this License will continue in full force and effect unless terminated as -stated above. - -8. Miscellaneous - - a. Each time You Distribute or Publicly Perform the Work or a Collection, the -Licensor offers to the recipient a license to the Work on the same terms and -conditions as the license granted to You under this License. b. Each time You -Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient -a license to the original Work on the same terms and conditions as the license -granted to You under this License. c. If any provision of this License is -invalid or unenforceable under applicable law, it shall not affect the -validity or enforceability of the remainder of the terms of this License, and -without further action by the parties to this agreement, such provision shall -be reformed to the minimum extent necessary to make such provision valid and -enforceable. d. No term or provision of this License shall be deemed waived -and no breach consented to unless such waiver or consent shall be in writing -and signed by the party to be charged with such waiver or consent. e. This -License constitutes the entire agreement between the parties with respect to -the Work licensed here. There are no understandings, agreements or -representations with respect to the Work not specified here. Licensor shall -not be bound by any additional provisions that may appear in any communication -from You. This License may not be modified without the mutual written -agreement of the Licensor and You. f. The rights granted under, and the -subject matter referenced, in this License were drafted utilizing the -terminology of the Berne Convention for the Protection of Literary and -Artistic Works (as amended on September 28, 1979), the Rome Convention of -1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms -Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, -1971). These rights and subject matter take effect in the relevant -jurisdiction in which the License terms are sought to be enforced according to -the corresponding provisions of the implementation of those treaty provisions -in the applicable national law. If the standard suite of rights granted under -applicable copyright law includes additional rights not granted under this -License, such additional rights are deemed to be included in the License; this -License is not intended to restrict the license of any rights under applicable -law. - - -Creative Commons Notice - - Creative Commons is not a party to this License, and makes no warranty -whatsoever in connection with the Work. Creative Commons will not be liable to -You or any party on any legal theory for any damages whatsoever, including -without limitation any general, special, incidental or consequential damages -arising in connection to this license. Notwithstanding the foregoing two (2) -sentences, if Creative Commons has expressly identified itself as the Licensor -hereunder, it shall have all rights and obligations of Licensor. - - Except for the limited purpose of indicating to the public that the Work -is licensed under the CCPL, Creative Commons does not authorize the use by -either party of the trademark "Creative Commons" or any related trademark or -logo of Creative Commons without the prior written consent of Creative -Commons. Any permitted use will be in compliance with Creative Commons' -then-current trademark usage guidelines, as may be published on its website or -otherwise made available upon request from time to time. For the avoidance of -doubt, this trademark restriction does not form part of this License. - - Creative Commons may be contacted at http://creativecommons.org/. - - ->>> google_go-querystring_query-53e6ce116135b80d037921a7fdd5138cf32d7a8a - -Copyright (c) 2013 Google. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> google_uuid-f3f4b54b2fabcf1f11dcc939025bb0c109b00ed8 - -Copyright (c) 2009,2014 Google Inc. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -ADDITIONAL LICENSE INFORMATION: - -> BSD Style - -uuid-f3f4b54b2fabcf1f11dcc939025bb0c109b00ed8.tar.gz\uuid-f3f4b54b2fabcf1f11dcc939025bb0c109b00ed8.tar\uuid-f3f4b54b2fabcf1f11dcc939025bb0c109b00ed8\dce.go - -Copyright 2016 Google Inc. All rights reserved. Use of this source code is -governed by a BSD-style license that can be found in the LICENSE file. - - ->>> googleapis_gax-go-da06d194a00e19ce00d9011a13931c3f6f6887c7 - -Copyright 2016, Google Inc. All rights reserved. Redistribution and use in -source and binary forms, with or without modification, are permitted provided -that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> gorilla_context-1c83b3eabd45b6d76072b66b746c20815fb2872d - -Copyright (c) 2012 Rodrigo Moraes. All rights reserved. Redistribution -and use in source and binary forms, with or without modification, are -permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> gorilla_mux-acf3be1b335c8ce30b2c8d51300984666f0ceefa - -Copyright (c) 2012 Rodrigo Moraes. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> gorilla_securecookie-fa5329f913702981df43dcb2a380bac429c810b5 - -Copyright (c) 2012 Rodrigo Moraes. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> gorilla_sessions-ca9ada44574153444b00d3fd9c8559e4cc95f896 - -Copyright (c) 2012 Rodrigo Moraes. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> gorilla_websocket-a91eba7f97777409bc2c443f5534d41dd20c5720 - -Copyright (c) 2013 The Gorilla WebSocket Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. - -Redistributions in binary form must reproduce the above copyright notice, this -list of conditions and the following disclaimer in the documentation and/or -other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> graylog2_go-gelf_gelf-master - -Copyright 2012 SocialCode - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> grpc-b1a2821ca5a4fd6b6e48ddfbb7d6d7584d839d21 - -Copyright 2014, Google Inc. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the gRPC project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of gRPC, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of gRPC. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of gRPC or any code incorporated within this -implementation of gRPC constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of gRPC shall terminate as of the -date such litigation is filed. - - ->>> hpcloud_tail-a30252cb686a21eb2d0b98132633053ec2f7f1e5 - -The MIT License (MIT) - -© Copyright 2015 Hewlett Packard Enterprise Development LP Copyright (c) 2014 -ActiveState - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: The above copyright -notice and this permission notice shall be included in all copies or -substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -ADDITIONAL LICENSE INFORMATION: - -> BSD-3 clause - -tail-a30252cb686a21eb2d0b98132633053ec2f7f1e5.tar.gz\tail-a30252cb686a21eb2d0b98132633053ec2f7f1e5.tar\tail-a30252cb686a21eb2d0b98132633053ec2f7f1e5\vendor\gopkg.in\fsnotify.v1\LICENSE - -Copyright (c) 2012 The Go Authors. All rights reserved. Copyright (c) 2012 -fsnotify Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> jessevdk_go-flags-97448c91aac742cbca3d020b3e769013a420a06f - -Copyright (c) 2012 Jesse van den Kieboom. All rights reserved. Redistribution -and use in source and binary forms, with or without modification, are -permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its - contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> julienschmidt/httprouter-975b5c4c7c21c0e3d2764200bf2aa8e34657ae6e - -Copyright (c) 2013 Julien Schmidt. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: -Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. - -Redistributions in binary form must reproduce the above copyright notice, this -list of conditions and the following disclaimer in the documentation and/or -other materials provided with the distribution. - -The names of the contributors may not be used to endorse or promote products -derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL JULIEN SCHMIDT BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> justinas/alice-1051eaf52fcafdd87ead59d28b065f1fcb8274ec - -The MIT License (MIT) - -Copyright (c) 2014 Justinas Stankevicius - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> kr_pty-f7ee69f31298ecbe5d2b349c711e2547a617d398 - -Copyright (c) 2011 Keith Rarick - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> mailru_easyjson-99e922cf9de1bc0ab38310c277cff32c2147e747 - -Copyright (c) 2016 Mail.Ru Group - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: The above -copyright notice and this permission notice shall be included in all copies or -substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", -WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO -THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE -FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR -THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - ->>> martini-contrib/render-ec18f8345a1181146728238980606fb1d6f40e8c - -The MIT License (MIT) - -Copyright (c) 2013 Jeremy Saenz - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> matryer_resync-d39c09a11215c84aab0b65e323fc47dd6e276af1 - -The MIT License (MIT) - -Copyright (c) 2016 Mat Ryer - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> mattn_go-runewidth-14207d285c6c197daabb5c9793d63e7af9ab2d50 - -The MIT License (MIT) - -Copyright (c) 2016 Yasuhiro Matsumoto - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> microsoft_go-winio-24a3e3d3fc7451805e09d11e11e95d9a0a4f205e - -The MIT License (MIT) - -Copyright (c) 2015 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -ADDITIONAL LICENSE INFORMATION: - -> BSD-Style - -go-winio-24a3e3d3fc7451805e09d11e11e95d9a0a4f205e.tar.gz\go-winio-24a3e3d3fc7451805e09d11e11e95d9a0a4f205e.tar\go-winio-24a3e3d3fc7451805e09d11e11e95d9a0a4f205e\archive\tar\LICENSE - -Copyright (c) 2012 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> microsoft_hcsshim-d327ca738085de7d617aa1df16d98fe7a64c2455 - -The MIT License (MIT) - -Copyright (c) 2015 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> miekg_dns-ca336a1f95a6b89be9c250df26c7a41742eb4a6f - -Extensions of the original work are copyright (c) 2011 Miek Gieben - -As this is fork of the official Go code the same license applies: - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> mitchellh_go-wordwrap-ad45545899c7b13c020ea92b2072220eefad42b8 - -The MIT License (MIT) - -Copyright (c) 2014 Mitchell Hashimoto - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> mitchellh_mapstructure-5a0325d7fafaac12dda6e7fb8bd222ec1b69875e - -The MIT License (MIT) - -Copyright (c) 2013 Mitchell Hashimoto Permission is hereby granted, free -of charge, to any person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, copy, modify, -merge, publish, distribute, sublicense, and/or sell copies of the Software, -and to permit persons to whom the Software is furnished to do so, subject to -the following conditions: The above copyright notice and this permission -notice shall be included in all copies or substantial portions of the -Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO -EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -USE OR OTHER DEALINGS IN THE SOFTWARE. - - ->>> mreiferson_go-httpclient-31f0106b4474f14bc441575c19d3a5fa21aa1f6c - -The MIT License (MIT) Copyright (c) 2012 Matt Reiferson Permission -is hereby granted, free of charge, to any person obtaining a copy of this -software and associated documentation files (the "Software"), to deal in the -Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: The above -copyright notice and this permission notice shall be included in all copies -or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS -IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT -LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR -PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN -ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - ->>> naoina_denco-9af2ba0e24214bac003821f4a501b131b2e04c75 - -Copyright (c) 2014 Naoya Inada - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> nlopes_slack-f243c7602fdf906248fc1f165284daa4e4d2d09e - -Copyright (c) 2015, Norberto Lopes All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, -this list of conditions and the following disclaimer in the documentation -and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> nsf_termbox-go-91bae1bb5fa9ee504905ecbe7043fa30e92feaa3 - -Copyright (C) 2012 termbox-go authors Permission is hereby granted, free -of charge, to any person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, copy, modify, -merge, publish, distribute, sublicense, and/or sell copies of the Software, -and to permit persons to whom the Software is furnished to do so, subject to -the following conditions: The above copyright notice and this permission -notice shall be included in all copies or substantial portions of the -Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO -EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -USE OR OTHER DEALINGS IN THE SOFTWARE. - - ->>> opennota_urlesc-5fa9ff0392746aeae1c4b37fcc42c65afa7a9587 - -Copyright (c) 2012 The Go Authors. All rights reserved. Redistribution -and use in source and binary forms, with or without modification, are -permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> pkg_profile-8a808a6967b79da66deacfe508b26d398a69518f - -Copyright (c) 2013 Dave Cheney. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> puerkitobio_purell-d69616f51cdfcd7514d6a380847a152dfc2a749d - -Copyright (c) 2012, Martin Angers All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this -* list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, -* this list of conditions and the following disclaimer in the documentation -* and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of its contributors may be used -* to endorse or promote products derived from this software without specific -* prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> racksec_srslog-a974ba6f7fb527d2ddc73ee9c05d3e2ccc0af0dc - -Copyright (c) 2015 Rackspace. All rights reserved. Redistribution and use -in source and binary forms, with or without modification, are permitted -provided that the following conditions are met: -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> rs/cors-8dd4211afb5d08dbb39a533b9bb9e4b486351df6 - -Copyright (c) 2014 Olivier Poitrey - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> ryanuber_go-glob-256dc444b735e061061cf46c809487313d5b0065 - -The MIT License (MIT) - -Copyright (c) 2014 Ryan Uber - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> sirupsen_logrus-d26492970760ca5d33129d2d799e34be5c4782eb - -The MIT License (MIT) - -Copyright (c) 2014 Simon Eskildsen - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -ADDITIONAL LICENSE INFORMATION: - ->BSD – Style - -logrus-master.zip\logrus-master\terminal_notwindows.go - -Copyright 2011 The Go Authors. All rights reserved. Use of this source code -is governed by a BSD-style license that can be found in the LICENSE file. - - ->>> smartystreets_assertions-287b4346dc4e71a038c346375a9d572453bc469b - -Copyright (c) 2015 SmartyStreets, LLC - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -NOTE: Various optional and subordinate components carry their own licensing -requirements and restrictions. Use of those components is subject to the -terms and conditions outlined the respective license of each component. - -ADDITIONAL LICENSE INFORMATION: - -> Apache 2.0 - -assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar.gz\assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar\assertions-287b4346dc4e71a038c346375a9d572453bc469b\internal\reqtrace\reqtrace.go - - Copyright 2015 Google Inc. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - - http:www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - -> BSD 3 - -assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar.gz\assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar\assertions-287b4346dc4e71a038c346375a9d572453bc469b\internal\go-render\LICENSE - - Copyright (c) 2015 The Chromium Authors. All rights reserved. - - Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its - contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> smartystreets_assertions_internal_oglematchers-287b4346dc4e71a038c346375a9d572453bc469b - -Copyright (c) 2015 SmartyStreets, LLC Permission is hereby granted, free -of charge, to any person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, copy, modify, -merge, publish, distribute, sublicense, and/or sell copies of the Software, -and to permit persons to whom the Software is furnished to do so, subject -to the following conditions: The above copyright notice and this -permission notice shall be included in all copies or substantial portions -of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -USE OR OTHER DEALINGS IN THE SOFTWARE. NOTE: Various optional and -subordinate components carry their own licensing requirements and -restrictions. Use of those components is subject to the terms and -conditions outlined the respective license of each component. ADDITIONAL -LICENSE INFORMATION: -> Apache 2.0 -assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar.gz\assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar\assertions-287b4346dc4e71a038c346375a9d572453bc469b\internal\reqtrace\reqtrace.go -Copyright 2015 Google Inc. All Rights Reserved. Licensed under the Apache -License, Version 2.0 (the "License"); you may not use this file except in -compliance with the License. You may obtain a copy of the License at -http:www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations -under the License. -> BSD-3 -assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar.gz\assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar\assertions-287b4346dc4e71a038c346375a9d572453bc469b\internal\go-render\LICENSE - -Copyright (c) 2015 The Chromium Authors. All rights reserved. -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> smartystreets_assertions_internal_oglemock-287b4346dc4e71a038c346375a9d572453bc469b - -Copyright (c) 2015 SmartyStreets, LLC - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -NOTE: Various optional and subordinate components carry their own licensing -requirements and restrictions. Use of those components is subject to the -terms and conditions outlined the respective license of each component. - - -ADDITIONAL LICENSE INFORMATION: - -> BSD-3 Clause - -assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar.gz\assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar\assertions-287b4346dc4e71a038c346375a9d572453bc469b\internal\go-render\LICENSE - - -Copyright (c) 2015 The Chromium Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -> Apache 2.0 - -assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar.gz\assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar\assertions-287b4346dc4e71a038c346375a9d572453bc469b\internal\oglematchers\all_of.go - -Copyright 2011 Aaron Jacobs. All Rights Reserved. Author: -aaronjjacobs@gmail.com (Aaron Jacobs) - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - -http:www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - - ->>> smartystreets_assertions_internal_ogletest-287b4346dc4e71a038c346375a9d572453bc469b - -Copyright (c) 2015 SmartyStreets, LLC Permission is hereby granted, free -of charge, to any person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, copy, modify, -merge, publish, distribute, sublicense, and/or sell copies of the Software, -and to permit persons to whom the Software is furnished to do so, subject -to the following conditions: The above copyright notice and this -permission notice shall be included in all copies or substantial portions -of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -USE OR OTHER DEALINGS IN THE SOFTWARE. NOTE: Various optional and -subordinate components carry their own licensing requirements and -restrictions. Use of those components is subject to the terms and -conditions outlined the respective license of each component. ADDITIONAL -LICENSE INFORMATION: - -> Apache 2.0 - -assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar.gz\assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar\assertions-287b4346dc4e71a038c346375a9d572453bc469b\internal\reqtrace\reqtrace.go -Copyright 2015 Google Inc. All Rights Reserved. Licensed under the Apache -License, Version 2.0 (the "License"); you may not use this file except in -compliance with the License. You may obtain a copy of the License at -http:www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations -under the License. -> BSD-3 - -assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar.gz\assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar\assertions-287b4346dc4e71a038c346375a9d572453bc469b\internal\go-render\LICENSE - -Copyright (c) 2015 The Chromium Authors. All rights reserved. -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> smartystreets_assertions_internal_reqtrace-287b4346dc4e71a038c346375a9d572453bc469b - -Copyright (c) 2015 SmartyStreets, LLC Permission is hereby granted, free -of charge, to any person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, copy, modify, -merge, publish, distribute, sublicense, and/or sell copies of the Software, -and to permit persons to whom the Software is furnished to do so, subject -to the following conditions: The above copyright notice and this -permission notice shall be included in all copies or substantial portions -of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -USE OR OTHER DEALINGS IN THE SOFTWARE. NOTE: Various optional and -subordinate components carry their own licensing requirements and -restrictions. Use of those components is subject to the terms and -conditions outlined the respective license of each component. ADDITIONAL -LICENSE INFORMATION: - -> BSD-3 -assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar.gz\assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar\assertions-287b4346dc4e71a038c346375a9d572453bc469b\internal\go-render\LICENSE -Copyright (c) 2015 The Chromium Authors. All rights reserved. -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -> Apache 2.0 - -assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar.gz\assertions-287b4346dc4e71a038c346375a9d572453bc469b.tar\assertions-287b4346dc4e71a038c346375a9d572453bc469b\internal\oglematchers\transform_description.go -Copyright 2011 Aaron Jacobs. All Rights Reserved. Author: -aaronjjacobs@gmail.com (Aaron Jacobs) Licensed under the Apache License, -Version 2.0 (the "License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at -http:www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law -or agreed to in writing, software distributed under the License is -distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the specific language -governing permissions and limitations under the License. - - ->>> stretchr_objx-1a9d0bb9f541897e62256577b352fdbc1fb4fd94 - -objx - by Mat Ryer and Tyler Bunnell - -The MIT License (MIT) Copyright (c) 2014 Stretchr, Inc. Permission is -hereby granted, free of charge, to any person obtaining a copy of this -software and associated documentation files (the "Software"), to deal in the -Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: The above -copyright notice and this permission notice shall be included in all copies -or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS -IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT -LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR -PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN -ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - ->>> tomb_v1-dd632973f1e7218eb1089048e0798ec9ae7dceb8 - -tomb - support for clean goroutine termination in Go. - -Copyright (c) 2010-2011 - Gustavo Niemeyer All -rights reserved. Redistribution and use in source and binary forms, with -or without modification, are permitted provided that the following -conditions are met: - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - * notice, - this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from -this software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> tylerb/graceful.v1-4654dfbb6ad53cb5e27f37d99b02e16c1872fbbb - -The MIT License (MIT) - -Copyright (c) 2014 Tyler Bunnell - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -ADDITIONAL LICENSE INFORMATION: - -> Apache 2.0 - -graceful-1.2.15.zip\graceful-1.2.15\limit_listen.go - - -Copyright 2013 The etcd Authors - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - - ->>> tylerb_graceful-d7d7a205e779a4738d38eda0671fff8bfc965f14 - -The MIT License (MIT) - -Copyright (c) 2014 Tyler Bunnell - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -ADDITIONAL LICENSE INFORMATION: - - -> Apache 2.0 - - -graceful-d7d7a205e779a4738d38eda0671fff8bfc965f14.tar.gz\graceful-d7d7a205e779a4738d38eda0671fff8bfc965f14.tar\graceful-d7d7a205e779a4738d38eda0671fff8bfc965f14\limit_listen.go - - -Copyright 2013 The etcd Authors - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - -http:www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - - ->>> ugorji_go_codec-708a42d246822952f38190a8d8c4e6b16a0e600c - -The MIT License (MIT) - -Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> urfave/negroni-ccc4a14984828dcb944e6f17fa4a967b18624f2b - -The MIT License (MIT) - -Copyright (c) 2014 Jeremy Saenz - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> urfave_cli_v1-0bdeddeeb0f650497d603c4ad7b20cfe685682f6 - -MIT License - -Copyright (c) 2016 Jeremy Saenz & Contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ->>> x_crypto_acme-728b753d0135da6801d45a38e6f43ff55779c5c2 - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - -ADDITIONAL LICENSE INFORMATION: - -> MIT - -crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar.gz\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2\pkcs12\internal\rc2\rc2.go - -This code is licensed under the MIT license. - - ->>> x_crypto_curve25519-728b753d0135da6801d45a38e6f43ff55779c5c2 - -Copyright (c) 2009 The Go Authors. All rights reserved. Redistribution -and use in source and binary forms, with or without modification, are -permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Additional IP Rights Grant (Patents) "This implementation" means the -copyrightable works distributed by Google as part of the Go project. -Google hereby grants to You a perpetual, worldwide, non-exclusive, -no-charge, royalty-free, irrevocable (except as stated in this section) -patent license to make, have made, use, offer to sell, sell, import, -transfer and otherwise run, modify and propagate the contents of this -implementation of Go, where such license applies only to those patent -claims, both currently owned or controlled by Google and acquired in the -future, licensable by Google that are necessarily infringed by this -implementation of Go. This grant does not include claims that would be -infringed only as a consequence of further modification of this -implementation. If you or your agent or exclusive licensee institute or -order or agree to the institution of patent litigation against any entity -(including a cross-claim or counterclaim in a lawsuit) alleging that this -implementation of Go or any code incorporated within this implementation of -Go constitutes direct or contributory patent infringement, or inducement of -patent infringement, then any patent rights granted to you under this -License for this implementation of Go shall terminate as of the date such -litigation is filed. ADDITIONAL LICENSE INFORMATION: -> Public Domain -crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar.gz\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2\curve25519\square_amd64.s -This code was translated into a form compatible with 6a from the public -domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html -> MIT -crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar.gz\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2\pkcs12\internal\rc2\rc2.go -https://www.ietf.org/rfc/rfc2268.txt -http://people.csail.mit.edu/rivest/pubs/KRRR98.pdf This code is licensed -under the MIT license. - - ->>> x_crypto_ed25519-728b753d0135da6801d45a38e6f43ff55779c5c2 - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - -ADDITIONAL LICENSE INFORMATION: - -> MIT - -crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar.gz\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2\pkcs12\internal\rc2\rc2.go - -This code is licensed under the MIT license. - - ->>> x_crypto_nacl_secretbox-728b753d0135da6801d45a38e6f43ff55779c5c2 - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - -ADDITIONAL LICENSE INFORMATION: - -> MIT - -crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar.gz\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2\pkcs12\internal\rc2\rc2.go - -This code is licensed under the MIT license. - - ->>> x_crypto_poly1305-728b753d0135da6801d45a38e6f43ff55779c5c2 - -Copyright (c) 2009 The Go Authors. All rights reserved. Redistribution -and use in source and binary forms, with or without modification, are -permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Additional IP Rights Grant (Patents) "This implementation" means the -copyrightable works distributed by Google as part of the Go project. -Google hereby grants to You a perpetual, worldwide, non-exclusive, -no-charge, royalty-free, irrevocable (except as stated in this section) -patent license to make, have made, use, offer to sell, sell, import, -transfer and otherwise run, modify and propagate the contents of this -implementation of Go, where such license applies only to those patent -claims, both currently owned or controlled by Google and acquired in the -future, licensable by Google that are necessarily infringed by this -implementation of Go. This grant does not include claims that would be -infringed only as a consequence of further modification of this -implementation. If you or your agent or exclusive licensee institute or -order or agree to the institution of patent litigation against any entity -(including a cross-claim or counterclaim in a lawsuit) alleging that this -implementation of Go or any code incorporated within this implementation of -Go constitutes direct or contributory patent infringement, or inducement of -patent infringement, then any patent rights granted to you under this -License for this implementation of Go shall terminate as of the date such -litigation is filed. ADDITIONAL LICENSE INFORMATION: -> Public Domain - -crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar.gz\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2\curve25519\square_amd64.s - -This code was translated into a form compatible with 6a from the public -domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html -> MIT -crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar.gz\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2\pkcs12\internal\rc2\rc2.go -https://www.ietf.org/rfc/rfc2268.txt -http://people.csail.mit.edu/rivest/pubs/KRRR98.pdf This code is licensed -under the MIT license. - - ->>> x_crypto_salsa20_salsa-728b753d0135da6801d45a38e6f43ff55779c5c2 - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - - - -ADDITIONAL LICENSE INFORMATION: - - -> BSD Style - - -crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar.gz\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2\acme\acme.go - - -Copyright 2015 The Go Authors. All rights reserved. Use of this source code -is governed by a BSD-style license that can be found in the LICENSE file. - - -> Public Domain - -crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar.gz\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2\ed25519\internal\edwards25519\const.go - - -These values are from the public domain - - ->>> x_crypto_ssh-728b753d0135da6801d45a38e6f43ff55779c5c2 - -Copyright (c) 2009 The Go Authors. All rights reserved. Redistribution -and use in source and binary forms, with or without modification, are -permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Additional IP Rights Grant (Patents) "This implementation" means the -copyrightable works distributed by Google as part of the Go project. -Google hereby grants to You a perpetual, worldwide, non-exclusive, -no-charge, royalty-free, irrevocable (except as stated in this section) -patent license to make, have made, use, offer to sell, sell, import, -transfer and otherwise run, modify and propagate the contents of this -implementation of Go, where such license applies only to those patent -claims, both currently owned or controlled by Google and acquired in the -future, licensable by Google that are necessarily infringed by this -implementation of Go. This grant does not include claims that would be -infringed only as a consequence of further modification of this -implementation. If you or your agent or exclusive licensee institute or -order or agree to the institution of patent litigation against any entity -(including a cross-claim or counterclaim in a lawsuit) alleging that this -implementation of Go or any code incorporated within this implementation of -Go constitutes direct or contributory patent infringement, or inducement of -patent infringement, then any patent rights granted to you under this -License for this implementation of Go shall terminate as of the date such -litigation is filed. ADDITIONAL LICENSE INFORMATION: -> Public Domain - -crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar.gz\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2\curve25519\square_amd64.s - -This code was translated into a form compatible with 6a from the public -domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html -> MIT - -crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar.gz\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar\crypto-728b753d0135da6801d45a38e6f43ff55779c5c2\pkcs12\internal\rc2\rc2.go - -https://www.ietf.org/rfc/rfc2268.txt -http://people.csail.mit.edu/rivest/pubs/KRRR98.pdf This code is licensed -under the MIT license. - - ->>> x_net_context-a6577fac2d73be281a500b310739095313165611 - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - - - -ADDITIONAL LICENSE INFORMATION: - - -> BSD Style - -net-a6577fac2d73be281a500b310739095313165611.tar.gz\net-a6577fac2d73be281a500b310739095313165611.tar\net-a6577fac2d73be281a500b310739095313165611\CONTRIBUTING.md - -Unless otherwise noted, the Go source files are distributed under the -BSD-style license found in the LICENSE file. - - - -> BSD 2 Clause - -net-a6577fac2d73be281a500b310739095313165611.tar.gz\net-a6577fac2d73be281a500b310739095313165611.tar\net-a6577fac2d73be281a500b310739095313165611\html\testdata\webkit\README - - -The *.dat files in this directory are copied from The WebKit Open Source -Project, specifically $WEBKITROOT/LayoutTests/html5lib/resources. WebKit is -licensed under a BSD style license. http://webkit.org/coding/bsd-license.html -says: - -Copyright (C) 2009 Apple Inc. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, -this list of conditions and the following disclaimer in the documentation -and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS "AS IS" AND ANY -EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> x_net_http2-a6577fac2d73be281a500b310739095313165611 - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - - - -ADDITIONAL LICENSE INFORMATION: - -> BSD2 - -net-a6577fac2d73be281a500b310739095313165611.tar.gz\net-a6577fac2d73be281a500b310739095313165611.tar\net-a6577fac2d73be281a500b310739095313165611\html\testdata\webkit\README - -Copyright (C) 2009 Apple Inc. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, -this list of conditions and the following disclaimer in the documentation -and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS "AS IS" AND ANY -EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> x_net_idna-a6577fac2d73be281a500b310739095313165611 - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - -ADDITIONAL LICENSE INFORMATION: - -> W3C 3-clause BSD License - -net-a6577fac2d73be281a500b310739095313165611.tar.gz\net-a6577fac2d73be281a500b310739095313165611.tar\net-a6577fac2d73be281a500b310739095313165611\html\charset\testdata\README - -[PLEASE NOTE: VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS COMPONENT UNDER -THE TERMS OF THE W3C 3-clause BSD License. THE ORIGINAL LICENSE TERMS ARE -REPRODUCED BELOW ONLY AS A REFERENCE.] - -These test cases come from -http://www.w3.org/International/tests/repository/html5/the-input-byte-stream/results-basics - -Distributed under both the W3C Test Suite License -(http://www.w3.org/Consortium/Legal/2008/04-testsuite-license) and the W3C -3-clause BSD License (http://www.w3.org/Consortium/Legal/2008/03-bsd-license). -To contribute to a W3C Test Suite, see the policies and contribution forms -(http://www.w3.org/2004/10/27-testcases). - -> BSD-2 clause - -net-a6577fac2d73be281a500b310739095313165611.tar.gz\net-a6577fac2d73be281a500b310739095313165611.tar\net-a6577fac2d73be281a500b310739095313165611\html\testdata\webkit\README - -The *.dat files in this directory are copied from The WebKit Open Source -Project, specifically $WEBKITROOT/LayoutTests/html5lib/resources. WebKit is -licensed under a BSD style license. http://webkit.org/coding/bsd-license.html -says: - -Copyright (C) 2009 Apple Inc. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, -this list of conditions and the following disclaimer in the documentation -and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS "AS IS" AND ANY -EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> x_net_internal_timeseries-a6577fac2d73be281a500b310739095313165611 - -Copyright (c) 2009 The Go Authors. All rights reserved. Redistribution -and use in source and binary forms, with or without modification, are -permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Additional IP Rights Grant (Patents) "This implementation" means the -copyrightable works distributed by Google as part of the Go project. -Google hereby grants to You a perpetual, worldwide, non-exclusive, -no-charge, royalty-free, irrevocable (except as stated in this section) -patent license to make, have made, use, offer to sell, sell, import, -transfer and otherwise run, modify and propagate the contents of this -implementation of Go, where such license applies only to those patent -claims, both currently owned or controlled by Google and acquired in the -future, licensable by Google that are necessarily infringed by this -implementation of Go. This grant does not include claims that would be -infringed only as a consequence of further modification of this -implementation. If you or your agent or exclusive licensee institute or -order or agree to the institution of patent litigation against any entity -(including a cross-claim or counterclaim in a lawsuit) alleging that this -implementation of Go or any code incorporated within this implementation of -Go constitutes direct or contributory patent infringement, or inducement of -patent infringement, then any patent rights granted to you under this -License for this implementation of Go shall terminate as of the date such -litigation is filed. ADDITIONAL LICENSE INFORMATION: -> BSD-2 -net-a6577fac2d73be281a500b310739095313165611.tar.gz\net-a6577fac2d73be281a500b310739095313165611.tar\net-a6577fac2d73be281a500b310739095313165611\html\testdata\webkit\README - The *.dat files in this directory are copied from The WebKit Open Source -Project, specifically $WEBKITROOT/LayoutTests/html5lib/resources. WebKit is -licensed under a BSD style license. -http://webkit.org/coding/bsd-license.html says: Copyright (C) 2009 Apple -Inc. All rights reserved. Redistribution and use in source and binary -forms, with or without modification, are permitted provided that the -following conditions are met: 1. Redistributions of source code must -retain the above copyright notice, this list of conditions and the following -disclaimer. 2. Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH -DAMAGE. - - ->>> x_net_lex_httplex-a6577fac2d73be281a500b310739095313165611 - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - - ->>> x_net_proxy-a6577fac2d73be281a500b310739095313165611 - -Copyright (c) 2009 The Go Authors. All rights reserved. Redistribution -and use in source and binary forms, with or without modification, are -permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Additional IP Rights Grant (Patents) "This implementation" means the -copyrightable works distributed by Google as part of the Go project. -Google hereby grants to You a perpetual, worldwide, non-exclusive, -no-charge, royalty-free, irrevocable (except as stated in this section) -patent license to make, have made, use, offer to sell, sell, import, -transfer and otherwise run, modify and propagate the contents of this -implementation of Go, where such license applies only to those patent -claims, both currently owned or controlled by Google and acquired in the -future, licensable by Google that are necessarily infringed by this -implementation of Go. This grant does not include claims that would be -infringed only as a consequence of further modification of this -implementation. If you or your agent or exclusive licensee institute or -order or agree to the institution of patent litigation against any entity -(including a cross-claim or counterclaim in a lawsuit) alleging that this -implementation of Go or any code incorporated within this implementation of -Go constitutes direct or contributory patent infringement, or inducement of -patent infringement, then any patent rights granted to you under this -License for this implementation of Go shall terminate as of the date such -litigation is filed. ADDITIONAL LICENSE INFORMATION: -> BSD-2 -net-a6577fac2d73be281a500b310739095313165611.tar.gz\net-a6577fac2d73be281a500b310739095313165611.tar\net-a6577fac2d73be281a500b310739095313165611\html\testdata\webkit\README -The *.dat files in this directory are copied from The WebKit Open Source -Project, specifically $WEBKITROOT/LayoutTests/html5lib/resources. WebKit is -licensed under a BSD style license. -http://webkit.org/coding/bsd-license.html says: Copyright (C) 2009 Apple -Inc. All rights reserved. Redistribution and use in source and binary -forms, with or without modification, are permitted provided that the -following conditions are met: 1. Redistributions of source code must -retain the above copyright notice, this list of conditions and the following -disclaimer. 2. Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH -DAMAGE. - - ->>> x_net_trace-a6577fac2d73be281a500b310739095313165611 - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - - ->>> x_net_websocket-a6577fac2d73be281a500b310739095313165611 - -License: BSD-3 clause with Google Patents - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - -ADDITIONAL LICENSE INFORMATION: - -> BSD-2 clause - -net-a6577fac2d73be281a500b310739095313165611.tar.gz\net-a6577fac2d73be281a500b310739095313165611.tar\net-a6577fac2d73be281a500b310739095313165611\html\testdata\webkit\README - -Copyright (C) 2009 Apple Inc. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, -this list of conditions and the following disclaimer in the documentation -and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS "AS IS" AND ANY -EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> x_oauth2-1611bb46e67abc64a71ecc5c3ae67f1cbbc2b921 - -Copyright (c) 2009 The oauth2 Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> x_sync_singleflight-5a06fca2c336a4b2b2fcb45702e8c47621b2aa2c - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - - ->>> x_sys_unix-99f16d856c9836c42d24e7ab64ea72916925fa97 - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - - ->>> x_sys_windows-99f16d856c9836c42d24e7ab64ea72916925fa97 - -License: BSD-3 clause with Google Patents - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - - ->>> x_text_internal-f28f36722d5ef2f9655ad3de1f248e3e52ad5ebd - -Copyright (c) 2009 The Go Authors. All rights reserved. Redistribution -and use in source and binary forms, with or without modification, are -permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Additional IP Rights Grant (Patents) "This implementation" means the -copyrightable works distributed by Google as part of the Go project. -Google hereby grants to You a perpetual, worldwide, non-exclusive, -no-charge, royalty-free, irrevocable (except as stated in this section) -patent license to make, have made, use, offer to sell, sell, import, -transfer and otherwise run, modify and propagate the contents of this -implementation of Go, where such license applies only to those patent -claims, both currently owned or controlled by Google and acquired in the -future, licensable by Google that are necessarily infringed by this -implementation of Go. This grant does not include claims that would be -infringed only as a consequence of further modification of this -implementation. If you or your agent or exclusive licensee institute or -order or agree to the institution of patent litigation against any entity -(including a cross-claim or counterclaim in a lawsuit) alleging that this -implementation of Go or any code incorporated within this implementation of -Go constitutes direct or contributory patent infringement, or inducement of -patent infringement, then any patent rights granted to you under this -License for this implementation of Go shall terminate as of the date such -litigation is filed. - - ->>> x_text_language-f28f36722d5ef2f9655ad3de1f248e3e52ad5ebd - -Copyright (c) 2009 The Go Authors. All rights reserved. Redistribution -and use in source and binary forms, with or without modification, are -permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Additional IP Rights Grant (Patents) "This implementation" means the -copyrightable works distributed by Google as part of the Go project. -Google hereby grants to You a perpetual, worldwide, non-exclusive, -no-charge, royalty-free, irrevocable (except as stated in this section) -patent license to make, have made, use, offer to sell, sell, import, -transfer and otherwise run, modify and propagate the contents of this -implementation of Go, where such license applies only to those patent -claims, both currently owned or controlled by Google and acquired in the -future, licensable by Google that are necessarily infringed by this -implementation of Go. This grant does not include claims that would be -infringed only as a consequence of further modification of this -implementation. If you or your agent or exclusive licensee institute or -order or agree to the institution of patent litigation against any entity -(including a cross-claim or counterclaim in a lawsuit) alleging that this -implementation of Go or any code incorporated within this implementation of -Go constitutes direct or contributory patent infringement, or inducement of -patent infringement, then any patent rights granted to you under this -License for this implementation of Go shall terminate as of the date such -litigation is filed. - - ->>> x_text_message-f28f36722d5ef2f9655ad3de1f248e3e52ad5ebd - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - - ->>> x_tools_go_ast_astutil-381149a2d6e5d8f319ccf04bfefc71e03a78b868 - -Copyright (c) 2009 The Go Authors. All rights reserved. Redistribution -and use in source and binary forms, with or without modification, are -permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Additional IP Rights Grant (Patents) "This implementation" means the -copyrightable works distributed by Google as part of the Go project. -Google hereby grants to You a perpetual, worldwide, non-exclusive, -no-charge, royalty-free, irrevocable (except as stated in this section) -patent license to make, have made, use, offer to sell, sell, import, -transfer and otherwise run, modify and propagate the contents of this -implementation of Go, where such license applies only to those patent -claims, both currently owned or controlled by Google and acquired in the -future, licensable by Google that are necessarily infringed by this -implementation of Go. This grant does not include claims that would be -infringed only as a consequence of further modification of this -implementation. If you or your agent or exclusive licensee institute or -order or agree to the institution of patent litigation against any entity -(including a cross-claim or counterclaim in a lawsuit) alleging that this -implementation of Go or any code incorporated within this implementation of -Go constitutes direct or contributory patent infringement, or inducement of -patent infringement, then any patent rights granted to you under this -License for this implementation of Go shall terminate as of the date such -litigation is filed. ADDITIONAL LICENSE INFORMATION: -> MIT - -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\cmd\goyacc\yacc.go - Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. -Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) Portions -Copyright © 1997-1999 Vita Nuova Limited Portions Copyright © 2000-2007 Vita -Nuova Holdings Limited (www.vitanuova.com) Portions Copyright © 2004,2006 -Bruce Ellis Portions Copyright © 2005-2007 C H Forsyth -(forsyth@terzarima.net) Revisions Copyright © 2000-2007 Lucent Technologies -Inc. and others Portions Copyright © 2009 The Go Authors. All rights -reserved. Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including without -limitation the rights to use, copy, modify, merge, publish, distribute, -sublicense, and/or sell copies of the Software, and to permit persons to -whom the Software is furnished to do so, subject to the following -conditions: The above copyright notice and this permission notice shall -be included in all copies or substantial portions of the Software. THE -SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -> MIT - -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\godoc\static\jquery.treeview.js -[PLEASE NOTE: VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS COMPONENT UNDER -THE TERMS OF THE MIT LICENSE. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW -ONLY AS A REFERENCE.] Copyright (c) 2007 Jörn Zaefferer Dual licensed -under the MIT and GPL licenses: -http://www.opensource.org/licenses/mit-license.php -http://www.gnu.org/licenses/gpl.html -> Apache 2.0 - -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\third_party\typescript\typescript.js - Copyright (c) Microsoft Corporation. All rights reserved. Licensed under -the Apache License, Version 2.0 (the "License"); you may not use this file -except in compliance with the License. You may obtain a copy of the License -at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON -AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER -EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR -CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR -NON-INFRINGEMENT. See the Apache Version 2.0 License for specific -language governing permissions and limitations under the License. - - ->>> x_tools_go_buildutil-381149a2d6e5d8f319ccf04bfefc71e03a78b868 - -License: BSD-3 clause with Google Patents - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - -ADDITIONAL LICENSE INFORMATION: - -> MIT - -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\third_party\moduleloader\ - -Copyright (c) 2013-2016 Guy Bedford, Luke Hoban, Addy Osmani - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -> Apache 2.0 - -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\third_party\typescript\typescript.js - -Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the -Apache License, Version 2.0 (the "License"); you may not use this file except -in compliance with the License. You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF -ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. - - ->>> x_tools_go_gcexportdata-381149a2d6e5d8f319ccf04bfefc71e03a78b868 - -Copyright (c) 2009 The Go Authors. All rights reserved. Redistribution -and use in source and binary forms, with or without modification, are -permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Additional IP Rights Grant (Patents) "This implementation" means the -copyrightable works distributed by Google as part of the Go project. -Google hereby grants to You a perpetual, worldwide, non-exclusive, -no-charge, royalty-free, irrevocable (except as stated in this section) -patent license to make, have made, use, offer to sell, sell, import, -transfer and otherwise run, modify and propagate the contents of this -implementation of Go, where such license applies only to those patent -claims, both currently owned or controlled by Google and acquired in the -future, licensable by Google that are necessarily infringed by this -implementation of Go. This grant does not include claims that would be -infringed only as a consequence of further modification of this -implementation. If you or your agent or exclusive licensee institute or -order or agree to the institution of patent litigation against any entity -(including a cross-claim or counterclaim in a lawsuit) alleging that this -implementation of Go or any code incorporated within this implementation of -Go constitutes direct or contributory patent infringement, or inducement of -patent infringement, then any patent rights granted to you under this -License for this implementation of Go shall terminate as of the date such -litigation is filed. ADDITIONAL LICENSE INFORMATION: -> MIT - -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\cmd\goyacc\yacc.go - Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. -Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) Portions -Copyright © 1997-1999 Vita Nuova Limited Portions Copyright © 2000-2007 Vita -Nuova Holdings Limited (www.vitanuova.com) Portions Copyright © 2004,2006 -Bruce Ellis Portions Copyright © 2005-2007 C H Forsyth -(forsyth@terzarima.net) Revisions Copyright © 2000-2007 Lucent Technologies -Inc. and others Portions Copyright © 2009 The Go Authors. All rights -reserved. Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including without -limitation the rights to use, copy, modify, merge, publish, distribute, -sublicense, and/or sell copies of the Software, and to permit persons to -whom the Software is furnished to do so, subject to the following -conditions: The above copyright notice and this permission notice shall -be included in all copies or substantial portions of the Software. THE -SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -> MIT -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\godoc\static\jquery.treeview.js -[PLEASE NOTE: VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS COMPONENT UNDER -THE TERMS OF THE MIT LICENSE. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW -ONLY AS A REFERENCE.] - -Copyright (c) 2007 Jörn Zaefferer Dual licensed under the MIT and GPL -licenses: http://www.opensource.org/licenses/mit-license.php -http://www.gnu.org/licenses/gpl.html -> Apache 2.0 - -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\third_party\typescript\typescript.js - Copyright (c) Microsoft Corporation. All rights reserved. Licensed under -the Apache License, Version 2.0 (the "License"); you may not use this file -except in compliance with the License. You may obtain a copy of the License -at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON -AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER -EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR -CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR -NON-INFRINGEMENT. See the Apache Version 2.0 License for specific -language governing permissions and limitations under the License. - - ->>> x_tools_go_gcimporter15-381149a2d6e5d8f319ccf04bfefc71e03a78b868 - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - - -> BSD Style - - -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\benchmark\parse\parse.go - -Copyright 2014 The Go Authors. All rights reserved. Use of this source code -is governed by a BSD-style license that can be found in the LICENSE file. - - -> MIT - - -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\cmd\goyacc\yacc.go - - -Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. -Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) Portions -Copyright © 1997-1999 Vita Nuova Limited Portions Copyright © 2000-2007 Vita -Nuova Holdings Limited (www.vitanuova.com) Portions Copyright © 2004,2006 -Bruce Ellis Portions Copyright © 2005-2007 C H Forsyth -(forsyth@terzarima.net) Revisions Copyright © 2000-2007 Lucent Technologies -Inc. and others Portions Copyright © 2009 The Go Authors. All rights -reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -> CC Attribution 3.0 - - -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\cmd\present\templates\dir.tmpl - - -Except as noted, the -content of this page is licensed under the Creative Commons Attribution 3.0 -License, and code is licensed under a BSD -license.
Terms of Service | -Privacy Policy - - - -> BSD - -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\cmd\present\templates\dir.tmpl - -code is licensed under a BSD -license.
Terms of Service | -Privacy Policy - - - -> Apache 2.0 - - -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\godoc\short\short.go - - -Copyright 2015 The Go Authors. All rights reserved. Use of this source code -is governed by the Apache 2.0 license that can be found in the LICENSE file. - -+build appengine - -Package short implements a simple URL shortener, serving an administrative -interface at /s and shortened urls from /s/key. It is designed to run only on -the instance of godoc that serves golang.org. package short - - -> MIT - - -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\godoc\static\jquery.treeview.js - -[PLEASE NOTE: VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS COMPONENT UNDER -THE TERMS OF THE MIT LICENSE. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW -ONLY AS A REFERENCE.] - - -Copyright (c) 2007 Jörn Zaefferer - -Dual licensed under the MIT and GPL licenses: -http://www.opensource.org/licenses/mit-license.php -http://www.gnu.org/licenses/gpl.html - - ->>> x_tools_go_loader-381149a2d6e5d8f319ccf04bfefc71e03a78b868 - -Copyright (c) 2009 The Go Authors. All rights reserved. Redistribution -and use in source and binary forms, with or without modification, are -permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. Google hereby grants to You a perpetual, -worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as -stated in this section) patent license to make, have made, use, offer to -sell, sell, import, transfer and otherwise run, modify and propagate the -contents of this implementation of Go, where such license applies only to -those patent claims, both currently owned or controlled by Google and -acquired in the future, licensable by Google that are necessarily infringed -by this implementation of Go. This grant does not include claims that would -be infringed only as a consequence of further modification of this -implementation. If you or your agent or exclusive licensee institute or -order or agree to the institution of patent litigation against any entity -(including a cross-claim or counterclaim in a lawsuit) alleging that this -implementation of Go or any code incorporated within this implementation of -Go constitutes direct or contributory patent infringement, or inducement of -patent infringement, then any patent rights granted to you under this -License for this implementation of Go shall terminate as of the date such -litigation is filed. ADDITIONAL LICENSE INFORMATION: -> MIT - -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\cmd\goyacc\yacc.go - Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. -Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) Portions -Copyright © 1997-1999 Vita Nuova Limited Portions Copyright © 2000-2007 Vita -Nuova Holdings Limited (www.vitanuova.com) Portions Copyright © 2004,2006 -Bruce Ellis Portions Copyright © 2005-2007 C H Forsyth -(forsyth@terzarima.net) Revisions Copyright © 2000-2007 Lucent Technologies -Inc. and others Portions Copyright © 2009 The Go Authors. All rights -reserved. Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including without -limitation the rights to use, copy, modify, merge, publish, distribute, -sublicense, and/or sell copies of the Software, and to permit persons to -whom the Software is furnished to do so, subject to the following -conditions: The above copyright notice and this permission notice shall -be included in all copies or substantial portions of the Software. THE -SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -> MIT - -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\godoc\static\jquery.treeview.js -[PLEASE NOTE: VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS COMPONENT UNDER -THE TERMS OF THE MIT LICENSE. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW -ONLY AS A REFERENCE.] Copyright (c) 2007 Jörn Zaefferer Dual licensed -under the MIT and GPL licenses: -http://www.opensource.org/licenses/mit-license.php -http://www.gnu.org/licenses/gpl.html -> Apache 2.0 - -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\third_party\typescript\typescript.js - Copyright (c) Microsoft Corporation. All rights reserved. Licensed under -the Apache License, Version 2.0 (the "License"); you may not use this file -except in compliance with the License. You may obtain a copy of the License -at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON -AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER -EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR -CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR -NON-INFRINGEMENT. See the Apache Version 2.0 License for specific -language governing permissions and limitations under the License. - - ->>> x_tools_imports-381149a2d6e5d8f319ccf04bfefc71e03a78b868 - -Copyright (c) 2009 The Go Authors. All rights reserved. Redistribution -and use in source and binary forms, with or without modification, are -permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in -the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. THIS SOFTWARE IS -PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN -NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Additional IP Rights Grant (Patents) "This implementation" means the -copyrightable works distributed by Google as part of the Go project. -Google hereby grants to You a perpetual, worldwide, non-exclusive, -no-charge, royalty-free, irrevocable (except as stated in this section) -patent license to make, have made, use, offer to sell, sell, import, -transfer and otherwise run, modify and propagate the contents of this -implementation of Go, where such license applies only to those patent -claims, both currently owned or controlled by Google and acquired in the -future, licensable by Google that are necessarily infringed by this -implementation of Go. This grant does not include claims that would be -infringed only as a consequence of further modification of this -implementation. If you or your agent or exclusive licensee institute or -order or agree to the institution of patent litigation against any entity -(including a cross-claim or counterclaim in a lawsuit) alleging that this -implementation of Go or any code incorporated within this implementation of -Go constitutes direct or contributory patent infringement, or inducement of -patent infringement, then any patent rights granted to you under this -License for this implementation of Go shall terminate as of the date such -litigation is filed. ADDITIONAL LICENSE INFORMATION: -> Apache 2.0 - -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\third_party\typescript\typescript.js - Copyright (c) Microsoft Corporation. All rights reserved. Licensed under -the Apache License, Version 2.0 (the "License"); you may not use this file -except in compliance with the License. You may obtain a copy of the License -at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON -AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER -EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR -CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR -NON-INFRINGEMENT. See the Apache Version 2.0 License for specific -language governing permissions and limitations under the License. -> MIT - -tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar.gz\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868.tar\tools-381149a2d6e5d8f319ccf04bfefc71e03a78b868\third_party\moduleloader\LICENSE - Copyright (c) 2013-2016 Guy Bedford, Luke Hoban, Addy Osmani -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: The above -copyright notice and this permission notice shall be included in all copies -or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS -IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT -LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR -PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN -ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - ->>> zenazn/goji-c05078ca81941f8e801bba3ddc0e6b86b7fdc893 - -Copyright (c) 2014, 2015, 2016 Carl Jackson (carl@avtok.com) - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ---------------- SECTION 2: Apache License, V2.0 ---------- - -Apache License, V2.0 is applicable to the following component(s). - - ->>> appengine-ca59ef35f409df61fa4a5f8290ff289b37eccfb8 - -Copyright 2015 Google Inc. All rights reserved. Use of this source code is -governed by the Apache 2.0 license that can be found in the LICENSE -file. ADDITIONAL LICENSE INFORMATION: -> BSD-Style - -appengine-ca59ef35f409df61fa4a5f8290ff289b37eccfb8.tar.gz\appengine-ca59ef35f409df61fa4a5f8290ff289b37eccfb8.tar\appengine-ca59ef35f409df61fa4a5f8290ff289b37eccfb8\cmd\aefix\typecheck.go - -Copyright 2011 The Go Authors. All rights reserved. Use of this source code -is governed by a BSD-style license that can be found in the LICENSE file. - - ->>> aws_aws-sdk-go_aws-master - -AWS SDK for Go Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights -Reserved. Copyright 2014-2015 Stripe, Inc. Copyright 2015 James Saryerwinnie - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - - -ADDITIONAL LICENSE INFORMATION: - ->BSD-2 - -aws-sdk-go-master.tar.gz\aws-sdk-go-master.tar\aws-sdk-go-master\awsmigrate\awsmigrate-renamer\vendor\golang.org\x\tools\LICENSE - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. Redistributions in binary -form must reproduce the above copyright notice, this list of conditions and -the following disclaimer in the documentation and/or other materials provided -with the distribution. Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - ->MIT - -aws-sdk-go-master.tar.gz\aws-sdk-go-master.tar\aws-sdk-go-master\doc-src\aws-godoc\templates\jquery.js - -jQuery v1.8.2 jquery.com | jquery.org/license - ->MIT - -[PLEASE NOTE: VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS COMPONENT UNDER -THE TERMS OF THE MIT. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS -A REFERENCE.] - -aws-sdk-go-master.tar.gz\aws-sdk-go-master.tar\aws-sdk-go-master\doc-src\aws-godoc\templates\jquery.treeview.js - -http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ -http://docs.jquery.com/Plugins/Treeview - -Copyright (c) 2007 Jörn Zaefferer - -Dual licensed under the MIT and GPL licenses: -http://www.opensource.org/licenses/mit-license.php -http://www.gnu.org/licenses/gpl.html - - ->>> coreos_etcd_client-781196fa8746d6c34ace2a62898051af6dc46002 - -CoreOS Project Copyright 2014 CoreOS, Inc - -This product includes software developed at CoreOS, Inc. -(http://www.coreos.com/). - -Copyright 2016 The etcd Authors - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - -ADDITIONAL LICENSE INFORMATION: - -> BSD - -etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar.gz\etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar\etcd-781196fa8746d6c34ace2a62898051af6dc46002\client\cancelreq.go - -Copyright 2015 The Go Authors. All rights reserved. Use of this source code -is governed by a BSD-style license that can be found in the LICENSE file. - -> MIT - -etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar.gz\etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar\etcd-781196fa8746d6c34ace2a62898051af6dc46002\cmd\vendor\github.com\beorn7\perks\LICENSE - -Copyright (C) 2013 Blake Mizerany - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -> MIT-Style - -etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar.gz\etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar\etcd-781196fa8746d6c34ace2a62898051af6dc46002\cmd\vendor\github.com\davecgh\go-spew\spew\dump.go - -Copyright (c) 2013 Dave Collins - -Permission to use, copy, modify, and distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright -notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. - -> BSD-3 Style - -etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar.gz\etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar\etcd-781196fa8746d6c34ace2a62898051af6dc46002\cmd\vendor\github.com\gogo\protobuf\proto\text_parser.go - -Copyright (c) 2013, The GoGo Authors. All rights reserved. -http://github.com/gogo/protobuf - -Go support for Protocol Buffers - Google's data interchange format - -Copyright 2010 The Go Authors. All rights reserved. -https://github.com/golang/protobuf - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. Redistributions in binary -form must reproduce the above copyright notice, this list of conditions and -the following disclaimer in the documentation and/or other materials provided -with the distribution. Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -> BSD-2 Clause - -etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar.gz\etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar\etcd-781196fa8746d6c34ace2a62898051af6dc46002\cmd\vendor\github.com\gogo\protobuf\proto\text_gogo.go - -Copyright (c) 2013, The GoGo Authors. All rights reserved. -http://github.com/gogo/protobuf - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. Redistributions in binary -form must reproduce the above copyright notice, this list of conditions and -the following disclaimer in the documentation and/or other materials provided -with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -> etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar.gz\etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar\etcd-781196fa8746d6c34ace2a62898051af6dc46002\cmd\vendor\github.com\prometheus\client_golang\NOTICE - -Prometheus instrumentation library for Go applications Copyright 2012-2015 The -Prometheus Authors - -This product includes software developed at SoundCloud Ltd. -(http://soundcloud.com/). - - -The following components are included in this product: - -perks - a fork of https://github.com/bmizerany/perks -https://github.com/beorn7/perks Copyright 2013-2015 Blake Mizerany, Björn -Rabenstein See https://github.com/beorn7/perks/blob/master/README.md for -license details. - -Go support for Protocol Buffers - Google's data interchange format -http://github.com/golang/protobuf/ Copyright 2010 The Go Authors See source -code for license details. - -Support for streaming Protocol Buffer messages for the Go language (golang). -https://github.com/matttproud/golang_protobuf_extensions Copyright 2013 Matt -T. Proud Licensed under the Apache License, Version 2.0 - -> BSD-3 (WITH GOOGLE PATENT) - -etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar.gz\etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar\etcd-781196fa8746d6c34ace2a62898051af6dc46002\cmd\vendor\golang.org\x\crypto\LICENSE - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. Redistributions in binary -form must reproduce the above copyright notice, this list of conditions and -the following disclaimer in the documentation and/or other materials provided -with the distribution. Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - -> LGPL 3.0 (WITH LINKING EXCEPTION) - -etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar.gz\etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar\etcd-781196fa8746d6c34ace2a62898051af6dc46002\cmd\vendor\gopkg.in\yaml.v2\LICENSE - -Copyright (c) 2011-2014 - Canonical Inc. - -This software is licensed under the LGPLv3, included below. - -As a special exception to the GNU Lesser General Public License version 3 -("LGPL3"), the copyright holders of this Library give you permission to convey -to a third party a Combined Work that links statically or dynamically to this -Library without providing any Minimal Corresponding Source or Minimal -Application Code as set out in 4d or providing the installation information -set out in section 4e, provided that you comply with the other provisions of -LGPL3 and provided that you meet, for the Application the terms and conditions -of the license(s) which apply to the Application. - -Except as stated in this special exception, the provisions of LGPL3 will -continue to comply in full to this Library. If you modify this Library, you -may apply this exception to your version of this Library, but you are not -obliged to do so. If you do not wish to do so, delete this exception statement -from your version. This exception does not (and cannot) modify any license -terms which apply to the Application, with which you must still comply. - - ->>> coreos_etcd_version-781196fa8746d6c34ace2a62898051af6dc46002 - -CoreOS Project Copyright 2014 CoreOS, Inc - -This product includes software developed at CoreOS, Inc. -(http://www.coreos.com/). - -Copyright 2016 The etcd Authors - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - -ADDITIONAL LICENSE INFORMATION: - -> BSD - -etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar.gz\etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar\etcd-781196fa8746d6c34ace2a62898051af6dc46002\client\cancelreq.go - -Copyright 2015 The Go Authors. All rights reserved. Use of this source code -is governed by a BSD-style license that can be found in the LICENSE file. - -> MIT - -etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar.gz\etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar\etcd-781196fa8746d6c34ace2a62898051af6dc46002\cmd\vendor\github.com\beorn7\perks\LICENSE - -Copyright (C) 2013 Blake Mizerany - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -> MIT-Style - -etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar.gz\etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar\etcd-781196fa8746d6c34ace2a62898051af6dc46002\cmd\vendor\github.com\davecgh\go-spew\spew\dump.go - -Copyright (c) 2013 Dave Collins - -Permission to use, copy, modify, and distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright -notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. - -> BSD-3 Style - -etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar.gz\etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar\etcd-781196fa8746d6c34ace2a62898051af6dc46002\cmd\vendor\github.com\gogo\protobuf\proto\text_parser.go - -Copyright (c) 2013, The GoGo Authors. All rights reserved. -http://github.com/gogo/protobuf - -Go support for Protocol Buffers - Google's data interchange format - -Copyright 2010 The Go Authors. All rights reserved. -https://github.com/golang/protobuf - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. Redistributions in binary -form must reproduce the above copyright notice, this list of conditions and -the following disclaimer in the documentation and/or other materials provided -with the distribution. Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -> BSD-2 Clause - -etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar.gz\etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar\etcd-781196fa8746d6c34ace2a62898051af6dc46002\cmd\vendor\github.com\gogo\protobuf\proto\text_gogo.go - -Copyright (c) 2013, The GoGo Authors. All rights reserved. -http://github.com/gogo/protobuf - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. Redistributions in binary -form must reproduce the above copyright notice, this list of conditions and -the following disclaimer in the documentation and/or other materials provided -with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -> etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar.gz\etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar\etcd-781196fa8746d6c34ace2a62898051af6dc46002\cmd\vendor\github.com\prometheus\client_golang\NOTICE - -Prometheus instrumentation library for Go applications Copyright 2012-2015 The -Prometheus Authors - -This product includes software developed at SoundCloud Ltd. -(http://soundcloud.com/). - - -The following components are included in this product: - -perks - a fork of https://github.com/bmizerany/perks -https://github.com/beorn7/perks Copyright 2013-2015 Blake Mizerany, Björn -Rabenstein See https://github.com/beorn7/perks/blob/master/README.md for -license details. - -Go support for Protocol Buffers - Google's data interchange format -http://github.com/golang/protobuf/ Copyright 2010 The Go Authors See source -code for license details. - -Support for streaming Protocol Buffer messages for the Go language (golang). -https://github.com/matttproud/golang_protobuf_extensions Copyright 2013 Matt -T. Proud Licensed under the Apache License, Version 2.0 - -> BSD-3 (WITH GOOGLE PATENT) - -etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar.gz\etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar\etcd-781196fa8746d6c34ace2a62898051af6dc46002\cmd\vendor\golang.org\x\crypto\LICENSE - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. Redistributions in binary -form must reproduce the above copyright notice, this list of conditions and -the following disclaimer in the documentation and/or other materials provided -with the distribution. Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - -> LGPL 3.0 (WITH LINKING EXCEPTION) - -etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar.gz\etcd-781196fa8746d6c34ace2a62898051af6dc46002.tar\etcd-781196fa8746d6c34ace2a62898051af6dc46002\cmd\vendor\gopkg.in\yaml.v2\LICENSE - -Copyright (c) 2011-2014 - Canonical Inc. - -This software is licensed under the LGPLv3, included below. - -As a special exception to the GNU Lesser General Public License version 3 -("LGPL3"), the copyright holders of this Library give you permission to convey -to a third party a Combined Work that links statically or dynamically to this -Library without providing any Minimal Corresponding Source or Minimal -Application Code as set out in 4d or providing the installation information -set out in section 4e, provided that you comply with the other provisions of -LGPL3 and provided that you meet, for the Application the terms and conditions -of the license(s) which apply to the Application. - -Except as stated in this special exception, the provisions of LGPL3 will -continue to comply in full to this Library. If you modify this Library, you -may apply this exception to your version of this Library, but you are not -obliged to do so. If you do not wish to do so, delete this exception statement -from your version. This exception does not (and cannot) modify any license -terms which apply to the Application, with which you must still comply. - - ->>> coreos_go-semver_semver-5e3acbb5668c4c3deb4842615c4098eb61fb6b1e - -Copyright 2013-2015 CoreOS, Inc. Licensed under the Apache License, -Version 2.0 (the "License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at -http:www.apache.org/licenses/LICENSE-2.0 Unless required by applicable -law or agreed to in writing, software distributed under the License is -distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the specific language -governing permissions and limitations under the License. - - ->>> docker_distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc - -Copyright 2012 Gary Burd - -Licensed under the Apache License, Version 2.0 (the "License"): you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - -ADDITIONAL LICENSE INFORMATION: - - -> MIT - - -distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc.tar.gz\distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc.tar\distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc\registry\storage\driver\s3-aws\s3_v2_signer.go - - -Copyright (c) 2013 Damien Le Berrigaud and Nick Wade - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -> MIT Style - - -distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc.tar.gz\distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc.tar\distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc\vendor\github.com\bugsnag\osext\LICENSE - - -Copyright (c) 2012 Daniel Theophanes - -This software is provided 'as-is', without any express or implied warranty. In -no event will the authors be held liable for any damages arising from the use -of this software. - -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - - 1. The origin of this software must not be misrepresented; you must not -claim that you wrote the original software. If you use this software in a -product, an acknowledgment in the product documentation would be appreciated -but is not required. - - 2. Altered source versions must be plainly marked as such, and must not be -misrepresented as being the original software. - - 3. This notice may not be removed or altered from any source distribution. - - - -> LGPL 3.0 (With linking exception) - - -distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc.tar.gz\distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc.tar\distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc\vendor\github.com\docker\goamz\LICENSE - - -This software is licensed under the LGPLv3, included below. - -As a special exception to the GNU Lesser General Public License version 3 -("LGPL3"), the copyright holders of this Library give you permission to convey -to a third party a Combined Work that links statically or dynamically to this -Library without providing any Minimal Corresponding Source or Minimal -Application Code as set out in 4d or providing the installation information -set out in section 4e, provided that you comply with the other provisions of -LGPL3 and provided that you meet, for the Application the terms and conditions -of the license(s) which apply to the Application. - -Except as stated in this special exception, the provisions of LGPL3 will -continue to comply in full to this Library. If you modify this Library, you -may apply this exception to your version of this Library, but you are not -obliged to do so. If you do not wish to do so, delete this exception statement -from your version. This exception does not (and cannot) modify any license -terms which apply to the Application, with which you must still comply. - - -> BSD 3 Clause - - -distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc.tar.gz\distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc.tar\distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc\vendor\golang.org\x\crypto\LICENSE - - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - - -> BSD 2 Clause - - -distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc.tar.gz\distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc.tar\distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc\vendor\github.com\gorilla\handlers\LICENSE - - -Copyright (c) 2013 The Gorilla Handlers Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright notice, -this list of conditions and the following disclaimer in the documentation -and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -> BSD Style - - -distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc.tar.gz\distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc.tar\distribution-28602af35aceda2f8d571bad7ca37a54cf0250bc\vendor\gopkg.in\check.v1\benchmark.go - - -Copyright 2009 The Go Authors. All rights reserved. Use of this source code -is governed by a BSD-style license that can be found in the LICENSE file. - - ->>> docker_go-events-aa2e3b613fbbfdddbe055a7b9e3ce271cfd83eca - -License: Apache 2.0 - - ->>> docker_libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd - -Copyright 2015 CoreOS, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - -http:www.apache.orglicensesLICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - -ADDITIONAL LICENSE INFORMATION: - -> BSD 3 Clause - -libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd.tar.gz\libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd.tar\libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd\client\mflag\LICENSE - -Copyright (c) 2014-2016 The Docker & Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation andor other materials provided with the distribution. -* Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -> MIT - - -libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd.tar.gz\libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd.tar\libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd\Godeps\_workspace\src\github.com\armon\go-metrics\LICENSE - -The MIT License (MIT) - -Copyright (c) 2013 Armon Dadgar - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, andor sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -> WTFPL(MIT Stle) - -libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd.tar.gz\libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd.tar\libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd\Godeps\_workspace\src\github.com\BurntSushi\toml\COPYING - -DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 - -Copyright (C) 2004 Sam Hocevar - -Everyone is permitted to copy and distribute verbatim or modified copies of -this license document, and changing it is allowed as long as the name is -changed. - -DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, -DISTRIBUTION AND MODIFICATION - -0. You just DO WHAT THE FUCK YOU WANT TO. - -> BSD Style - -libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd.tar.gz\libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd.tar\libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd\Godeps\_workspace\src\github.com\BurntSushi\toml\type_fields.go - -Copyright 2010 The Go Authors. All rights reserved. Use of this source code -is governed by a BSD-style license that can be found in the Go distribution. - -> CC-Attribution share alike 4.0 - - -libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd.tar.gz\libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd.tar\libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd\Godeps\_workspace\src\github.com\docker\go-units\README.md - -Copyright and license - -Copyright © 2015 Docker, Inc. All rights reserved, except as follows. Code is -released under the Apache 2.0 license. The README.md file, and files in the -"docs" folder are licensed under the Creative Commons Attribution 4.0 -International License under the terms and conditions set forth in the file -"LICENSE.docs". You may obtain a duplicate copy of the same license, titled -CC-BY-SA-4.0, at http:creativecommons.orglicensesby4.0. - -> BSD2 Clause - - -libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd.tar.gz\libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd.tar\libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd\Godeps\_workspace\src\github.com\godbus\dbus\LICENSE - - -Copyright (c) 2013, Georg Reinke (), Google All -rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, -this list of conditions and the following disclaimer in the documentation -andor other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -> MPL2.0 - - -libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd.tar.gz\libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd.tar\libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd\Godeps\_workspace\src\github.com\hashicorp\consul\LICENSE - -License: MPL2.0 - - -> CC- Attribution 4.0 - -libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd.tar.gz\libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd.tar\libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd\README.md - -Copyright and license Code and documentation copyright 2015 Docker, inc. Code -released under the Apache 2.0 license. Docs released under Creative commons. - - -> BSD 3 with IP Rights Grant - - -libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd.tar.gz\libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd.tar\libnetwork-fd27f22aaa35e3d57f88688f919d05b744f431fd\Godeps\_workspace\src\golang.org\x\net\LICENSE - - -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from this -software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by Google as -part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, -royalty-free, irrevocable (except as stated in this section) patent license to -make, have made, use, offer to sell, sell, import, transfer and otherwise run, -modify and propagate the contents of this implementation of Go, where such -license applies only to those patent claims, both currently owned or -controlled by Google and acquired in the future, licensable by Google that are -necessarily infringed by this implementation of Go. This grant does not -include claims that would be infringed only as a consequence of further -modification of this implementation. If you or your agent or exclusive -licensee institute or order or agree to the institution of patent litigation -against any entity (including a cross-claim or counterclaim in a lawsuit) -alleging that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent infringement, -or inducement of patent infringement, then any patent rights granted to you -under this License for this implementation of Go shall terminate as of the -date such litigation is filed. - - ->>> docker_libtrust-9cbd2a1374f46905c68a4eb3694a130610adc62a - -License : Apache 2.0 - - ->>> go-openapi_analysis-d5a75b7d751ca3f11ad5d93cfe97405f2c3f6a47 - -Copyright 2015 go-swagger maintainers Licensed under the Apache License, -Version 2.0 (the "License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at -http:www.apache.org/licenses/LICENSE-2.0 Unless required by applicable -law or agreed to in writing, software distributed under the License is -distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the specific language -governing permissions and limitations under the License. - - ->>> go-openapi_errors-fc3f73a224499b047eda7191e5d22e1e9631e86f - -Copyright 2015 go-swagger maintainers - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - -http:www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - - ->>> go-openapi_jsonpointer-779f45308c19820f1a69e9a4cd965f496e0da10f - -Copyright 2013 sigu-399 ( https:github.com/sigu-399 ) Licensed under the -Apache License, Version 2.0 (the "License"); you may not use this file -except in compliance with the License. You may obtain a copy of the License -at http:www.apache.org/licenses/LICENSE-2.0 Unless required by -applicable law or agreed to in writing, software distributed under the -License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS -OF ANY KIND, either express or implied. See the License for the specific -language governing permissions and limitations under the License. - - ->>> go-openapi_jsonreference-36d33bfe519efae5632669801b180bf1a245da3b - -Copyright 2013 sigu-399 ( https://github.com/sigu-399 ) Licensed under -the Apache License, Version 2.0 (the "License"); you may not use this file -except in compliance with the License. You may obtain a copy of the License -at http://www.apache.org/licenses/LICENSE-2.0 Unless required by -applicable law or agreed to in writing, software distributed under the -License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS -OF ANY KIND, either express or implied. See the License for the specific -language governing permissions and limitations under the License. - - ->>> go-openapi_loads-6bb6486231e079ea125c0f39994ed3d0c53399ed - -Copyright 2015 go-swagger maintainers - - Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - - http:www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - - ->>> go-openapi_runtime-3b13ebb46790d871d74a6c2450fa4b1280f90854 - -Copyright 2015 go-swagger maintainers - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - -http:www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - -ADDITIONAL LICENSE INFORMATION: - -> MIT - -runtime-3b13ebb46790d871d74a6c2450fa4b1280f90854.tar.gz\runtime-3b13ebb46790d871d74a6c2450fa4b1280f90854.tar\runtime-3b13ebb46790d871d74a6c2450fa4b1280f90854\middleware\denco\LICENSE - -Copyright (c) 2014 Naoya Inada - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -> CC-Attribution 4.0 - -runtime-3b13ebb46790d871d74a6c2450fa4b1280f90854.tar.gz\runtime-3b13ebb46790d871d74a6c2450fa4b1280f90854.tar\runtime-3b13ebb46790d871d74a6c2450fa4b1280f90854\internal\testing\data.go - -License name: Creative Commons 4.0 International, url: -http://creativecommons.org/licenses/by/4.0/ - -> BSD-3 clause - -runtime-3b13ebb46790d871d74a6c2450fa4b1280f90854.tar.gz\runtime-3b13ebb46790d871d74a6c2450fa4b1280f90854.tar\runtime-3b13ebb46790d871d74a6c2450fa4b1280f90854\middleware\negotiate_test.go - -Copyright 2013 The Go Authors. All rights reserved. - -Use of this source code is governed by a BSD-style license that can be found -in the LICENSE file or at -https://developers.google.com/open-source/licenses/bsd. - - ->>> go-openapi_spec-e072eb2390d3a03736a6eb617d30f48369160447 - -Copyright 2015 go-swagger maintainers - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - -ADDITIONAL LICENSE INFORMATION: - -> CC-Attribution 4.0 - -spec-e072eb2390d3a03736a6eb617d30f48369160447.tar.gz\spec-e072eb2390d3a03736a6eb617d30f48369160447.tar\spec-e072eb2390d3a03736a6eb617d30f48369160447\fixtures\expansion\invalid-refs.json - -license: Creative Commons 4.0 International -http://creativecommons.org/licenses/by/4.0/ - -> MIT - -spec-e072eb2390d3a03736a6eb617d30f48369160447.tar.gz\spec-e072eb2390d3a03736a6eb617d30f48369160447.tar\spec-e072eb2390d3a03736a6eb617d30f48369160447\fixtures\expansion\all-the-things.json - -License: MIT - - ->>> go-openapi_strfmt-0cb3db44c13bad3b3f567b762a66751972a310cc - -Copyright 2015 go-swagger maintainers Licensed under the Apache License, -Version 2.0 (the "License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at -http:www.apache.org/licenses/LICENSE-2.0 Unless required by applicable -law or agreed to in writing, software distributed under the License is -distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the specific language -governing permissions and limitations under the License. - - ->>> go-openapi_swag-96d7b9ebd181a1735a1c9ac87914f2b32fbf56c9 - -Copyright 2015 go-swagger maintainers Licensed under the Apache License, -Version 2.0 (the "License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at -http:www.apache.org/licenses/LICENSE-2.0 Unless required by applicable -law or agreed to in writing, software distributed under the License is -distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the specific language -governing permissions and limitations under the License. - - ->>> go-openapi_validate-035dcd74f1f61e83debe1c22950dc53556e7e4b2 - -Copyright 2015 go-swagger maintainers - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - -http:www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - - ->>> go_compute_metadata-cd0da878c66091060d2e7403abd62192b3e387e0 - -Copyright 2015 go-swagger maintainers - - Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - - http:www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - - ->>> go_internal-cd0da878c66091060d2e7403abd62192b3e387e0 - -Copyright 2016 Google Inc. All Rights Reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - -http:www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - - ->>> golang_glog-23def4e6c14b4da8ac2ed8007337bc5eb5007998 - -Go support for leveled logs, analogous to https:code.google.compgoogle-glog - -Copyright 2013 Google Inc. All Rights Reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - -http:www.apache.orglicensesLICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - - ->>> golang_groupcache_lru-72d04f9fcdec7d3821820cc4a6f150eae553639a - -Copyright 2013 Google Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - - ->>> govmomi-v0.16.0 - -Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - - ->>> maruel_panicparse_stack-25bcac0d793cf4109483505a0d66e066a3a90a80 - -Copyright 2015 Marc-Antoine Ruel. All rights reserved. Use of this source -code is governed under the Apache License, Version 2.0 that can be found in -the LICENSE file. - -ADDITIONAL LICENSE INFORMATION: - -> MIT - -panicparse-25bcac0d793cf4109483505a0d66e066a3a90a80.tar.gz\panicparse-25bcac0d793cf4109483505a0d66e066a3a90a80.tar\panicparse-25bcac0d793cf4109483505a0d66e066a3a90a80\vendor\github.com\kr\pretty\License - -The MIT License (MIT) - -Copyright 2012 Keith Rarick - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -> BSD-3 Clause - -panicparse-25bcac0d793cf4109483505a0d66e066a3a90a80.tar.gz\panicparse-25bcac0d793cf4109483505a0d66e066a3a90a80.tar\panicparse-25bcac0d793cf4109483505a0d66e066a3a90a80\vendor\github.com\pmezard\go-difflib\LICENSE - -Copyright (c) 2013, Patrick Mezard All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. Redistributions in binary -form must reproduce the above copyright notice, this list of conditions and -the following disclaimer in the documentation and/or other materials provided -with the distribution. The names of its contributors may not be used to -endorse or promote products derived from this software without specific prior -written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - ->>> oxtoacart/bpool-4e1c5567d7c2dd59fa4c7c83d34c2f3528b025d6 - -License: Apache 2.0 Licensed. See the LICENSE file for details. - - ->>> syncutil_singleflight-7ce08ca145dbe0e66a127c447b80ee7914f3e4f9 - -Copyright 2014 The Camlistore Authors Licensed under the Apache License, -Version 2.0 (the "License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable -law or agreed to in writing, software distributed under the License is -distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the specific language -governing permissions and limitations under the License. ADDITIONAL -LICENSE INFORMATION: -> BSD-Style -go4-7ce08ca145dbe0e66a127c447b80ee7914f3e4f9.tar.gz\go4-7ce08ca145dbe0e66a127c447b80ee7914f3e4f9.tar\go4-7ce08ca145dbe0e66a127c447b80ee7914f3e4f9\reflectutil\swapper_unsafe_15.go -Copyright 2016 The Go Authors. All rights reserved. Use of this source code -is governed by a BSD-style license that can be found in the LICENSE file. - - ->>> vdemeester_shakers-24d7f1d6a71aa5d9cbe7390e4afb66b7eef9e1b3 - -License : Apache 2.0 - - ->>> vishvananda_netlink-482f7a52b758233521878cb6c5904b6bd63f3457 - -License: Apache 2.0 - - ->>> vishvananda_netns-604eaf189ee867d8c147fafc28def2394e878d25 - -Copyright 2014 Vishvananda Ishaya. Copyright 2014 Docker, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - - ->>> yaml_v2-4c78c975fe7c825c6d1466c42be594d1d6f3aba6 - -Copyright 2011-2016 Canonical Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); you may not -use this file except in compliance with the License. You may obtain a copy of -the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations under -the License. - - -ADDITIONAL LICENSE INFORMATION: - - -> MIT - -yaml-4c78c975fe7c825c6d1466c42be594d1d6f3aba6.tar.gz\yaml-4c78c975fe7c825c6d1466c42be594d1d6f3aba6.tar\yaml-4c78c975fe7c825c6d1466c42be594d1d6f3aba6\LICENSE.libyaml - -The following files were ported to Go from C files of libyaml, and thus are -still covered by their original copyright and license: - - apic.go emitterc.go parserc.go readerc.go scannerc.go writerc.go yamlh.go -yamlprivateh.go - -Copyright (c) 2006 Kirill Simonov - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ---------------- SECTION 3: Mozilla Public License, V2.0 ---------- - -Mozilla Public License, V2.0 is applicable to the following component(s). - - ->>> d2g_dhcp4client-master - -LICENSE: MPL 2.0 - - ->>> hashicorp_go-cleanhttp-875fb671b3ddc66f8e2f0acc33829c8cb989a38d - -LICENSE: MPL 2.0 - - ->>> hashicorp_memberlist-cef12ad58224d55cf26caa9e3d239c2fcb3432a2 - -License: MPL 2.0 - - - -=============== APPENDIX. Standard License Files ============== - - - ---------------- SECTION 1: Apache License, V2.0 ----------- - -Apache License Version 2.0, January 2004 -http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, -REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean -the terms and conditions for use, reproduction, and distribution as defined -by Sections 1 through 9 of this document. "Licensor" shall mean the -copyright owner or entity authorized by the copyright owner that is granting -the License. "Legal Entity" shall mean the union of the acting entity -and all other entities that control, are controlled by, or are under common -control with that entity. For the purposes of this definition, "control" -means (i) the power, direct or indirect, to cause the direction or -management of such entity, whether by contract or otherwise, or (ii) -ownership of fifty percent (50%) or more of the outstanding shares, or -(iii) beneficial ownership of such entity. "You" (or "Your") shall mean -an individual or Legal Entity exercising permissions granted by this -License. "Source" form shall mean the preferred form for making -modifications, including but not limited to software source code, -documentation source, and configuration files. "Object" form shall mean -any form resulting from mechanical transformation or translation of a Source -form, including but not limited to compiled object code, generated -documentation, and conversions to other media types. "Work" shall -mean the work of authorship, whether in Source or Object form, made -available under the License, as indicated by a copyright notice that is -included in or attached to the work (an example is provided in the Appendix -below). "Derivative Works" shall mean any work, whether in Source or -Object form, that is based on (or derived from) the Work and for which the -editorial revisions, annotations, elaborations, or other modifications -represent, as a whole, an original work of authorship. For the purposes of -this License, Derivative Works shall not include works that remain -separable from, or merely link (or bind by name) to the interfaces of, the -Work and Derivative Works thereof. "Contribution" shall mean any work -of authorship, including the original version of the Work and any -modifications or additions to that Work or Derivative Works thereof, that is -intentionally submitted to Licensor for inclusion in the Work by the -copyright owner or by an individual or Legal Entity authorized to submit on -behalf of the copyright owner. For the purposes of this definition, -"submitted" means any form of electronic, verbal, or written communication -sent to the Licensor or its representatives, including but not limited to -communication on electronic mailing lists, source code control systems, and -issue tracking systems that are managed by, or on behalf of, the Licensor -for the purpose of discussing and improving the Work, but excluding -communication that is conspicuously marked or otherwise designated in -writing by the copyright owner as "Not a Contribution." "Contributor" -shall mean Licensor and any individual or Legal Entity on behalf of whom a -Contribution has been received by Licensor and subsequently incorporated -within the Work. 2. Grant of Copyright License. Subject to the terms -and conditions of this License, each Contributor hereby grants to You a -perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable -copyright license to reproduce, prepare Derivative Works of, publicly -display, publicly perform, sublicense, and distribute the Work and such -Derivative Works in Source or Object form. 3. Grant of Patent License. -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty- -free, irrevocable (except as stated in this section) patent license to make, -have made, use, offer to sell, sell, import, and otherwise transfer the -Work, where such license applies only to those patent claims licensable by -such Contributor that are necessarily infringed by their Contribution(s) -alone or by combination of their Contribution(s) with the Work to which such -Contribution(s) was submitted. If You institute patent litigation against -any entity (including a cross-claim or counterclaim in a lawsuit) alleging -that the Work or a Contribution incorporated within the Work constitutes -direct or contributory patent infringement, then any patent licenses -granted to You under this License for that Work shall terminate as of the -date such litigation is filed. 4. Redistribution. You may reproduce -and distribute copies of the Work or Derivative Works thereof in any medium, -with or without modifications, and in Source or Object form, provided that -You meet the following conditions: a. You must give any other recipients -of the Work or Derivative Works a copy of this License; and b. You must -cause any modified files to carry prominent notices stating that You changed -the files; and c. You must retain, in the Source form of any Derivative -Works that You distribute, all copyright, patent, trademark, and -attribution notices from the Source form of the Work, excluding those -notices that do not pertain to any part of the Derivative Works; and d. -If the Work includes a "NOTICE" text file as part of its distribution, then -any Derivative Works that You distribute must include a readable copy of the -attribution notices contained within such NOTICE file, excluding those -notices that do not pertain to any part of the Derivative Works, in at least -one of the following places: within a NOTICE text file distributed as part -of the Derivative Works; within the Source form or documentation, if -provided along with the Derivative Works; or, within a display generated by -the Derivative Works, if and wherever such third-party notices normally -appear. The contents of the NOTICE file are for informational purposes only -and do not modify the License. You may add Your own attribution notices -within Derivative Works that You distribute, alongside or as an addendum to -the NOTICE text from the Work, provided that such additional attribution -notices cannot be construed as modifying the License. You may add Your -own copyright statement to Your modifications and may provide additional -or different license terms and conditions for use, reproduction, or -distribution of Your modifications, or for any such Derivative Works as a -whole, provided Your use, reproduction, and distribution of the Work -otherwise complies with the conditions stated in this License. 5. -Submission of Contributions. Unless You explicitly state otherwise, any -Contribution intentionally submitted for inclusion in the Work by You to the -Licensor shall be under the terms and conditions of this License, without -any additional terms or conditions. Notwithstanding the above, nothing -herein shall supersede or modify the terms of any separate license agreement -you may have executed with Licensor regarding such Contributions. 6. -Trademarks. This License does not grant permission to use the trade names, -trademarks, service marks, or product names of the Licensor, except as -required for reasonable and customary use in describing the origin of the -Work and reproducing the content of the NOTICE file. 7. Disclaimer of -Warranty. Unless required by applicable law or agreed to in writing, -Licensor provides the Work (and each Contributor provides its Contributions) -on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either -express or implied, including, without limitation, any warranties or -conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A -PARTICULAR PURPOSE. You are solely responsible for determining the -appropriateness of using or redistributing the Work and assume any risks -associated with Your exercise of permissions under this License. 8. -Limitation of Liability. In no event and under no legal theory, whether in -tort (including negligence), contract, or otherwise, unless required by -applicable law (such as deliberate and grossly negligent acts) or agreed to -in writing, shall any Contributor be liable to You for damages, including -any direct, indirect, special, incidental, or consequential damages of any -character arising as a result of this License or out of the use or inability -to use the Work (including but not limited to damages for loss of -goodwill, work stoppage, computer failure or malfunction, or any and all -other commercial damages or losses), even if such Contributor has been -advised of the possibility of such damages. 9. Accepting Warranty or -Additional Liability. While redistributing the Work or Derivative Works -thereof, You may choose to offer, and charge a fee for, acceptance of -support, warranty, indemnity, or other liability obligations and/or rights -consistent with this License. However, in accepting such obligations, You -may act only on Your own behalf and on Your sole responsibility, not on -behalf of any other Contributor, and only if You agree to indemnify, defend, -and hold each Contributor harmless for any liability incurred by, or -claims asserted against, such Contributor by reason of your accepting any -such warranty or additional liability. END OF TERMS AND CONDITIONS - - ---------------- SECTION 2: Mozilla Public License, V2.0 ----------- - -Mozilla Public License Version 2.0 1. Definitions 1.1. -“Contributor” means each individual or legal entity that creates, -contributes to the creation of, or owns Covered Software. 1.2. -“Contributor Version” means the combination of the Contributions of others -(if any) used by a Contributor and that particular Contributor’s -Contribution. 1.3. “Contribution” means Covered Software of a -particular Contributor. 1.4. “Covered Software” means Source Code Form -to which the initial Contributor has attached the notice in Exhibit A, the -Executable Form of such Source Code Form, and Modifications of such Source -Code Form, in each case including portions thereof. 1.5. “Incompatible -With Secondary Licenses” means that the initial Contributor has -attached the notice described in Exhibit B to the Covered Software; or -that the Covered Software was made available under the terms of version 1.1 or -earlier of the License, but not also under the terms of a Secondary License. - 1.6. “Executable Form” means any form of the work other than Source Code -Form. 1.7. “Larger Work” means a work that combines Covered Software -with other material, in a separate file or files, that is not Covered -Software. 1.8. “License” means this document. 1.9. “Licensable” -means having the right to grant, to the maximum extent possible, whether at -the time of the initial grant or subsequently, any and all of the rights -conveyed by this License. 1.10. “Modifications” means any of the -following: any file in Source Code Form that results from an addition to, -deletion from, or modification of the contents of Covered Software; or -any new file in Source Code Form that contains any Covered Software. -1.11. “Patent Claims” of a Contributor means any patent claim(s), including -without limitation, method, process, and apparatus claims, in any patent -Licensable by such Contributor that would be infringed, but for the grant of -the License, by the making, using, selling, offering for sale, having made, -import, or transfer of either its Contributions or its Contributor Version. - 1.12. “Secondary License” means either the GNU General Public License, -Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU -Affero General Public License, Version 3.0, or any later versions of those -licenses. 1.13. “Source Code Form” means the form of the work preferred -for making modifications. 1.14. “You” (or “Your”) means an individual -or a legal entity exercising rights under this License. For legal entities, -“You” includes any entity that controls, is controlled by, or is under common -control with You. For purposes of this definition, “control” means (a) the -power, direct or indirect, to cause the direction or management of such -entity, whether by contract or otherwise, or (b) ownership of more than fifty -percent (50%) of the outstanding shares or beneficial ownership of such -entity. 2. License Grants and Conditions 2.1. Grants Each -Contributor hereby grants You a world-wide, royalty-free, non-exclusive -license: under intellectual property rights (other than patent or -trademark) Licensable by such Contributor to use, reproduce, make available, -modify, display, perform, distribute, and otherwise exploit its Contributions, -either on an unmodified basis, with Modifications, or as part of a Larger -Work; and under Patent Claims of such Contributor to make, use, sell, -offer for sale, have made, import, and otherwise transfer either its -Contributions or its Contributor Version. 2.2. Effective Date The -licenses granted in Section 2.1 with respect to any Contribution become -effective for each Contribution on the date the Contributor first distributes -such Contribution. 2.3. Limitations on Grant Scope The licenses -granted in this Section 2 are the only rights granted under this License. No -additional rights or licenses will be implied from the distribution or -licensing of Covered Software under this License. Notwithstanding Section -2.1(b) above, no patent license is granted by a Contributor: for any code -that a Contributor has removed from Covered Software; or for -infringements caused by: (i) Your and any other third party’s modifications of -Covered Software, or (ii) the combination of its Contributions with other -software (except as part of its Contributor Version); or under Patent -Claims infringed by Covered Software in the absence of its Contributions. -This License does not grant any rights in the trademarks, service marks, or -logos of any Contributor (except as may be necessary to comply with the notice -requirements in Section 3.4). 2.4. Subsequent Licenses No -Contributor makes additional grants as a result of Your choice to distribute -the Covered Software under a subsequent version of this License (see Section -10.2) or under the terms of a Secondary License (if permitted under the terms -of Section 3.3). 2.5. Representation Each Contributor represents -that the Contributor believes its Contributions are its original creation(s) -or it has sufficient rights to grant the rights to its Contributions conveyed -by this License. 2.6. Fair Use This License is not intended to limit -any rights You have under applicable copyright doctrines of fair use, fair -dealing, or other equivalents. 2.7. Conditions Sections 3.1, 3.2, -3.3, and 3.4 are conditions of the licenses granted in Section 2.1. 3. -Responsibilities 3.1. Distribution of Source Form All distribution -of Covered Software in Source Code Form, including any Modifications that You -create or to which You contribute, must be under the terms of this License. -You must inform recipients that the Source Code Form of the Covered Software -is governed by the terms of this License, and how they can obtain a copy of -this License. You may not attempt to alter or restrict the recipients’ rights -in the Source Code Form. 3.2. Distribution of Executable Form If You -distribute Covered Software in Executable Form then: such Covered -Software must also be made available in Source Code Form, as described in -Section 3.1, and You must inform recipients of the Executable Form how they -can obtain a copy of such Source Code Form by reasonable means in a timely -manner, at a charge no more than the cost of distribution to the recipient; -and You may distribute such Executable Form under the terms of this -License, or sublicense it under different terms, provided that the license for -the Executable Form does not attempt to limit or alter the recipients’ rights -in the Source Code Form under this License. 3.3. Distribution of a Larger -Work You may create and distribute a Larger Work under terms of Your -choice, provided that You also comply with the requirements of this License -for the Covered Software. If the Larger Work is a combination of Covered -Software with a work governed by one or more Secondary Licenses, and the -Covered Software is not Incompatible With Secondary Licenses, this License -permits You to additionally distribute such Covered Software under the terms -of such Secondary License(s), so that the recipient of the Larger Work may, at -their option, further distribute the Covered Software under the terms of -either this License or such Secondary License(s). 3.4. Notices You -may not remove or alter the substance of any license notices (including -copyright notices, patent notices, disclaimers of warranty, or limitations of -liability) contained within the Source Code Form of the Covered Software, -except that You may alter any license notices to the extent required to remedy -known factual inaccuracies. 3.5. Application of Additional Terms You -may choose to offer, and to charge a fee for, warranty, support, indemnity or -liability obligations to one or more recipients of Covered Software. However, -You may do so only on Your own behalf, and not on behalf of any Contributor. -You must make it absolutely clear that any such warranty, support, indemnity, -or liability obligation is offered by You alone, and You hereby agree to -indemnify every Contributor for any liability incurred by such Contributor as -a result of warranty, support, indemnity or liability terms You offer. You may -include additional disclaimers of warranty and limitations of liability -specific to any jurisdiction. 4. Inability to Comply Due to Statute or -Regulation If it is impossible for You to comply with any of the terms of -this License with respect to some or all of the Covered Software due to -statute, judicial order, or regulation then You must: (a) comply with the -terms of this License to the maximum extent possible; and (b) describe the -limitations and the code they affect. Such description must be placed in a -text file included with all distributions of the Covered Software under this -License. Except to the extent prohibited by statute or regulation, such -description must be sufficiently detailed for a recipient of ordinary skill to -be able to understand it. 5. Termination 5.1. The rights granted -under this License will terminate automatically if You fail to comply with any -of its terms. However, if You become compliant, then the rights granted under -this License from a particular Contributor are reinstated (a) provisionally, -unless and until such Contributor explicitly and finally terminates Your -grants, and (b) on an ongoing basis, if such Contributor fails to notify You -of the non-compliance by some reasonable means prior to 60 days after You have -come back into compliance. Moreover, Your grants from a particular Contributor -are reinstated on an ongoing basis if such Contributor notifies You of the -non-compliance by some reasonable means, this is the first time You have -received notice of non-compliance with this License from such Contributor, and -You become compliant prior to 30 days after Your receipt of the notice. -5.2. If You initiate litigation against any entity by asserting a patent -infringement claim (excluding declaratory judgment actions, counter-claims, -and cross-claims) alleging that a Contributor Version directly or indirectly -infringes any patent, then the rights granted to You by any and all -Contributors for the Covered Software under Section 2.1 of this License shall -terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 -above, all end user license agreements (excluding distributors and resellers) -which have been validly granted by You or Your distributors under this License -prior to termination shall survive termination. 6. Disclaimer of -Warranty Covered Software is provided under this License on an “as is” -basis, without warranty of any kind, either expressed, implied, or statutory, -including, without limitation, warranties that the Covered Software is free of -defects, merchantable, fit for a particular purpose or non-infringing. The -entire risk as to the quality and performance of the Covered Software is with -You. Should any Covered Software prove defective in any respect, You (not any -Contributor) assume the cost of any necessary servicing, repair, or -correction. This disclaimer of warranty constitutes an essential part of this -License. No use of any Covered Software is authorized under this License -except under this disclaimer. 7. Limitation of Liability Under no -circumstances and under no legal theory, whether tort (including negligence), -contract, or otherwise, shall any Contributor, or anyone who distributes -Covered Software as permitted above, be liable to You for any direct, -indirect, special, incidental, or consequential damages of any character -including, without limitation, damages for lost profits, loss of goodwill, -work stoppage, computer failure or malfunction, or any and all other -commercial damages or losses, even if such party shall have been informed of -the possibility of such damages. This limitation of liability shall not apply -to liability for death or personal injury resulting from such party’s -negligence to the extent applicable law prohibits such limitation. Some -jurisdictions do not allow the exclusion or limitation of incidental or -consequential damages, so this exclusion and limitation may not apply to -You. 8. Litigation Any litigation relating to this License may be -brought only in the courts of a jurisdiction where the defendant maintains its -principal place of business and such litigation shall be governed by laws of -that jurisdiction, without reference to its conflict-of-law provisions. -Nothing in this Section shall prevent a party’s ability to bring cross-claims -or counter-claims. 9. Miscellaneous This License represents the -complete agreement concerning the subject matter hereof. If any provision of -this License is held to be unenforceable, such provision shall be reformed -only to the extent necessary to make it enforceable. Any law or regulation -which provides that the language of a contract shall be construed against the -drafter shall not be used to construe this License against a Contributor. -10. Versions of the License 10.1. New Versions Mozilla Foundation is -the license steward. Except as provided in Section 10.3, no one other than the -license steward has the right to modify or publish new versions of this -License. Each version will be given a distinguishing version number. -10.2. Effect of New Versions You may distribute the Covered Software -under the terms of the version of the License under which You originally -received the Covered Software, or under the terms of any subsequent version -published by the license steward. 10.3. Modified Versions If you -create software not governed by this License, and you want to create a new -license for such software, you may create and use a modified version of this -License if you rename the license and remove any references to the name of the -license steward (except to note that such modified license differs from this -License). 10.4. Distributing Source Code Form that is Incompatible With -Secondary Licenses If You choose to distribute Source Code Form that is -Incompatible With Secondary Licenses under the terms of this version of the -License, the notice described in Exhibit B of this License must be attached. - Exhibit A - Source Code Form License Notice This Source Code Form is -subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the -MPL was not distributed with this file, You can obtain one at -http://mozilla.org/MPL/2.0/. If it is not possible or desirable to put -the notice in a particular file, then You may include the notice in a location -(such as a LICENSE file in a relevant directory) where a recipient would be -likely to look for such a notice. You may add additional accurate notices -of copyright ownership. Exhibit B - “Incompatible With Secondary -Licenses” Notice This Source Code Form is “Incompatible With Secondary -Licenses”, as defined by the Mozilla Public License, v. 2.0. - - - ---------------- SECTION 3: GNU Lesser General Public License, V3.0 ----------- - - GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. Everyone -is permitted to copy and distribute verbatim copies of this license document, -but changing it is not allowed. - - - This version of the GNU Lesser General Public License incorporates the terms -and conditions of version 3 of the GNU General Public License, supplemented by -the additional permissions listed below. - - 0. Additional Definitions. - - As used herein, "this License" refers to version 3 of the GNU Lesser General -Public License, and the "GNU GPL" refers to version 3 of the GNU General -Public License. - - "The Library" refers to a covered work governed by this License, other than -an Application or a Combined Work as defined below. - - An "Application" is any work that makes use of an interface provided by the -Library, but which is not otherwise based on the Library. Defining a subclass -of a class defined by the Library is deemed a mode of using an interface -provided by the Library. - - A "Combined Work" is a work produced by combining or linking an Application -with the Library. The particular version of the Library with which the -Combined Work was made is also called the "Linked Version". - - The "Minimal Corresponding Source" for a Combined Work means the -Corresponding Source for the Combined Work, excluding any source code for -portions of the Combined Work that, considered in isolation, are based on the -Application, and not on the Linked Version. - - The "Corresponding Application Code" for a Combined Work means the object -code and/or source code for the Application, including any data and utility -programs needed for reproducing the Combined Work from the Application, but -excluding the System Libraries of the Combined Work. - - 1. Exception to Section 3 of the GNU GPL. - - You may convey a covered work under sections 3 and 4 of this License without -being bound by section 3 of the GNU GPL. - - 2. Conveying Modified Versions. - - If you modify a copy of the Library, and, in your modifications, a facility -refers to a function or data to be supplied by an Application that uses the -facility (other than as an argument passed when the facility is invoked), then -you may convey a copy of the modified version: - - a) under this License, provided that you make a good faith effort to ensure -that, in the event an Application does not supply the function or data, the -facility still operates, and performs whatever part of its purpose remains -meaningful, or - - b) under the GNU GPL, with none of the additional permissions of this -License applicable to that copy. - - 3. Object Code Incorporating Material from Library Header Files. - - The object code form of an Application may incorporate material from a -header file that is part of the Library. You may convey such object code -under terms of your choice, provided that, if the incorporated material is not -limited to numerical parameters, data structure layouts and accessors, or -small macros, inline functions and templates (ten or fewer lines in length), -you do both of the following: - - a) Give prominent notice with each copy of the object code that the Library -is used in it and that the Library and its use are covered by this License. - - b) Accompany the object code with a copy of the GNU GPL and this license -document. - - 4. Combined Works. - - You may convey a Combined Work under terms of your choice that, taken -together, effectively do not restrict modification of the portions of the -Library contained in the Combined Work and reverse engineering for debugging -such modifications, if you also do each of the following: - - a) Give prominent notice with each copy of the Combined Work that the -Library is used in it and that the Library and its use are covered by this -License. - - b) Accompany the Combined Work with a copy of the GNU GPL and this license -document. - - c) For a Combined Work that displays copyright notices during execution, -include the copyright notice for the Library among these notices, as well as a -reference directing the user to the copies of the GNU GPL and this license -document. - - d) Do one of the following: - - 0) Convey the Minimal Corresponding Source under the terms of this -License, and the Corresponding Application Code in a form suitable for, and -under terms that permit, the user to recombine or relink the Application with -a modified version of the Linked Version to produce a modified Combined Work, -in the manner specified by section 6 of the GNU GPL for conveying -Corresponding Source. - - 1) Use a suitable shared library mechanism for linking with the -Library. A suitable mechanism is one that (a) uses at run time a copy of the -Library already present on the user's computer system, and (b) will operate -properly with a modified version of the Library that is interface-compatible -with the Linked Version. - - e) Provide Installation Information, but only if you would otherwise be -required to provide such information under section 6 of the GNU GPL, and only -to the extent that such information is necessary to install and execute a -modified version of the Combined Work produced by recombining or relinking the -Application with a modified version of the Linked Version. (If you use option -4d0, the Installation Information must accompany the Minimal Corresponding -Source and Corresponding Application Code. If you use option 4d1, you must -provide the Installation Information in the manner specified by section 6 of -the GNU GPL for conveying Corresponding Source.) - - 5. Combined Libraries. - - You may place library facilities that are a work based on the Library side -by side in a single library together with other library facilities that are -not Applications and are not covered by this License, and convey such a -combined library under terms of your choice, if you do both of the following: - - a) Accompany the combined library with a copy of the same work based on the -Library, uncombined with any other library facilities, conveyed under the -terms of this License. - - b) Give prominent notice with the combined library that part of it is a -work based on the Library, and explaining where to find the accompanying -uncombined form of the same work. - - 6. Revised Versions of the GNU Lesser General Public License. - - The Free Software Foundation may publish revised and/or new versions of the -GNU Lesser General Public License from time to time. Such new versions will be -similar in spirit to the present version, but may differ in detail to address -new problems or concerns. - - Each version is given a distinguishing version number. If the Library as you -received it specifies that a certain numbered version of the GNU Lesser -General Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that published version -or of any later version published by the Free Software Foundation. If the -Library as you received it does not specify a version number of the GNU Lesser -General Public License, you may choose any version of the GNU Lesser General -Public License ever published by the Free Software Foundation. - - If the Library as you received it specifies that a proxy can decide whether -future versions of the GNU Lesser General Public License shall apply, that -proxy's public statement of acceptance of any version is permanent -authorization for you to choose that version for the Library. - - - ---------------- SECTION 4: Creative Commons Attribution-ShareAlike, V4.0 ------------ - -Creative Commons Attribution-ShareAlike 4.0 International Public License - -Creative Commons Corporation (“Creative Commons”) is not a law firm and does -not provide legal services or legal advice. Distribution of Creative Commons -public licenses does not create a lawyer-client or other relationship. -Creative Commons makes its licenses and related information available on an -“as-is” basis. Creative Commons gives no warranties regarding its licenses, -any material licensed under their terms and conditions, or any related -information. Creative Commons disclaims all liability for damages resulting -from their use to the fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share original -works of authorship and other material subject to copyright and certain other -rights specified in the public license below. The following considerations are -for informational purposes only, are not exhaustive, and do not form part of -our licenses. - - Considerations for licensors: Our public licenses are intended for use by -those authorized to give the public permission to use material in ways -otherwise restricted by copyright and certain other rights. Our licenses are -irrevocable. Licensors should read and understand the terms and conditions of -the license they choose before applying it. Licensors should also secure all -rights necessary before applying our licenses so that the public can reuse the -material as expected. Licensors should clearly mark any material not subject -to the license. This includes other CC-licensed material, or material used -under an exception or limitation to copyright. More considerations for -licensors. - - Considerations for the public: By using one of our public licenses, a -licensor grants the public permission to use the licensed material under -specified terms and conditions. If the licensor’s permission is not necessary -for any reason–for example, because of any applicable exception or limitation -to copyright–then that use is not regulated by the license. Our licenses grant -only permissions under copyright and certain other rights that a licensor has -authority to grant. Use of the licensed material may still be restricted for -other reasons, including because others have copyright or other rights in the -material. A licensor may make special requests, such as asking that all -changes be marked or described. Although not required by our licenses, you are -encouraged to respect those requests where reasonable. More considerations for -the public. - -Creative Commons Attribution-ShareAlike 4.0 International Public License - -By exercising the Licensed Rights (defined below), You accept and agree to be -bound by the terms and conditions of this Creative Commons -Attribution-ShareAlike 4.0 International Public License ("Public License"). To -the extent this Public License may be interpreted as a contract, You are -granted the Licensed Rights in consideration of Your acceptance of these terms -and conditions, and the Licensor grants You such rights in consideration of -benefits the Licensor receives from making the Licensed Material available -under these terms and conditions. - -Section 1 – Definitions. - - Adapted Material means material subject to Copyright and Similar Rights -that is derived from or based upon the Licensed Material and in which the -Licensed Material is translated, altered, arranged, transformed, or otherwise -modified in a manner requiring permission under the Copyright and Similar -Rights held by the Licensor. For purposes of this Public License, where the -Licensed Material is a musical work, performance, or sound recording, Adapted -Material is always produced where the Licensed Material is synched in timed -relation with a moving image. Adapter's License means the license You apply -to Your Copyright and Similar Rights in Your contributions to Adapted Material -in accordance with the terms and conditions of this Public License. BY-SA -Compatible License means a license listed at -creativecommons.org/compatiblelicenses, approved by Creative Commons as -essentially the equivalent of this Public License. Copyright and Similar -Rights means copyright and/or similar rights closely related to copyright -including, without limitation, performance, broadcast, sound recording, and -Sui Generis Database Rights, without regard to how the rights are labeled or -categorized. For purposes of this Public License, the rights specified in -Section 2(b)(1)-(2) are not Copyright and Similar Rights. Effective -Technological Measures means those measures that, in the absence of proper -authority, may not be circumvented under laws fulfilling obligations under -Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or -similar international agreements. Exceptions and Limitations means fair use, -fair dealing, and/or any other exception or limitation to Copyright and -Similar Rights that applies to Your use of the Licensed Material. License -Elements means the license attributes listed in the name of a Creative Commons -Public License. The License Elements of this Public License are Attribution -and ShareAlike. Licensed Material means the artistic or literary work, -database, or other material to which the Licensor applied this Public License. -Licensed Rights means the rights granted to You subject to the terms and -conditions of this Public License, which are limited to all Copyright and -Similar Rights that apply to Your use of the Licensed Material and that the -Licensor has authority to license. Licensor means the individual(s) or -entity(ies) granting rights under this Public License. Share means to provide -material to the public by any means or process that requires permission under -the Licensed Rights, such as reproduction, public display, public performance, -distribution, dissemination, communication, or importation, and to make -material available to the public including in ways that members of the public -may access the material from a place and at a time individually chosen by -them. Sui Generis Database Rights means rights other than copyright resulting -from Directive 96/9/EC of the European Parliament and of the Council of 11 -March 1996 on the legal protection of databases, as amended and/or succeeded, -as well as other essentially equivalent rights anywhere in the world. You -means the individual or entity exercising the Licensed Rights under this -Public License. Your has a corresponding meaning. - -Section 2 – Scope. - - License grant. Subject to the terms and conditions of this Public -License, the Licensor hereby grants You a worldwide, royalty-free, -non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed -Rights in the Licensed Material to: reproduce and Share the Licensed Material, -in whole or in part; and produce, reproduce, and Share Adapted Material. -Exceptions and Limitations. For the avoidance of doubt, where Exceptions and -Limitations apply to Your use, this Public License does not apply, and You do -not need to comply with its terms and conditions. Term. The term of this -Public License is specified in Section 6(a). Media and formats; technical -modifications allowed. The Licensor authorizes You to exercise the Licensed -Rights in all media and formats whether now known or hereafter created, and to -make technical modifications necessary to do so. The Licensor waives and/or -agrees not to assert any right or authority to forbid You from making -technical modifications necessary to exercise the Licensed Rights, including -technical modifications necessary to circumvent Effective Technological -Measures. For purposes of this Public License, simply making modifications -authorized by this Section 2(a)(4) never produces Adapted Material. -Downstream recipients. Offer from the Licensor – Licensed Material. Every -recipient of the Licensed Material automatically receives an offer from the -Licensor to exercise the Licensed Rights under the terms and conditions of -this Public License. Additional offer from the Licensor – Adapted Material. -Every recipient of Adapted Material from You automatically receives an offer -from the Licensor to exercise the Licensed Rights in the Adapted Material -under the conditions of the Adapter’s License You apply. No downstream -restrictions. You may not offer or impose any additional or different terms or -conditions on, or apply any Effective Technological Measures to, the Licensed -Material if doing so restricts exercise of the Licensed Rights by any -recipient of the Licensed Material. No endorsement. Nothing in this Public -License constitutes or may be construed as permission to assert or imply that -You are, or that Your use of the Licensed Material is, connected with, or -sponsored, endorsed, or granted official status by, the Licensor or others -designated to receive attribution as provided in Section 3(a)(1)(A)(i). - - Other rights. Moral rights, such as the right of integrity, are not -licensed under this Public License, nor are publicity, privacy, and/or other -similar personality rights; however, to the extent possible, the Licensor -waives and/or agrees not to assert any such rights held by the Licensor to the -limited extent necessary to allow You to exercise the Licensed Rights, but not -otherwise. Patent and trademark rights are not licensed under this Public -License. To the extent possible, the Licensor waives any right to collect -royalties from You for the exercise of the Licensed Rights, whether directly -or through a collecting society under any voluntary or waivable statutory or -compulsory licensing scheme. In all other cases the Licensor expressly -reserves any right to collect such royalties. - -Section 3 – License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - Attribution. - - If You Share the Licensed Material (including in modified form), You -must: retain the following if it is supplied by the Licensor with the Licensed -Material: identification of the creator(s) of the Licensed Material and any -others designated to receive attribution, in any reasonable manner requested -by the Licensor (including by pseudonym if designated); a copyright notice; a -notice that refers to this Public License; a notice that refers to the -disclaimer of warranties; a URI or hyperlink to the Licensed Material to the -extent reasonably practicable; indicate if You modified the Licensed Material -and retain an indication of any previous modifications; and indicate the -Licensed Material is licensed under this Public License, and include the text -of, or the URI or hyperlink to, this Public License. You may satisfy the -conditions in Section 3(a)(1) in any reasonable manner based on the medium, -means, and context in which You Share the Licensed Material. For example, it -may be reasonable to satisfy the conditions by providing a URI or hyperlink to -a resource that includes the required information. If requested by the -Licensor, You must remove any of the information required by Section -3(a)(1)(A) to the extent reasonably practicable. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share Adapted -Material You produce, the following conditions also apply. The Adapter’s -License You apply must be a Creative Commons license with the same License -Elements, this version or later, or a BY-SA Compatible License. You must -include the text of, or the URI or hyperlink to, the Adapter's License You -apply. You may satisfy this condition in any reasonable manner based on the -medium, means, and context in which You Share Adapted Material. You may not -offer or impose any additional or different terms or conditions on, or apply -any Effective Technological Measures to, Adapted Material that restrict -exercise of the rights granted under the Adapter's License You apply. - -Section 4 – Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that apply to -Your use of the Licensed Material: - - for the avoidance of doubt, Section 2(a)(1) grants You the right to -extract, reuse, reproduce, and Share all or a substantial portion of the -contents of the database; if You include all or a substantial portion of the -database contents in a database in which You have Sui Generis Database Rights, -then the database in which You have Sui Generis Database Rights (but not its -individual contents) is Adapted Material, including for purposes of Section -3(b); and You must comply with the conditions in Section 3(a) if You Share all -or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not replace -Your obligations under this Public License where the Licensed Rights include -other Copyright and Similar Rights. - -Section 5 – Disclaimer of Warranties and Limitation of Liability. - - Unless otherwise separately undertaken by the Licensor, to the extent -possible, the Licensor offers the Licensed Material as-is and as-available, -and makes no representations or warranties of any kind concerning the Licensed -Material, whether express, implied, statutory, or other. This includes, -without limitation, warranties of title, merchantability, fitness for a -particular purpose, non-infringement, absence of latent or other defects, -accuracy, or the presence or absence of errors, whether or not known or -discoverable. Where disclaimers of warranties are not allowed in full or in -part, this disclaimer may not apply to You. To the extent possible, in no -event will the Licensor be liable to You on any legal theory (including, -without limitation, negligence) or otherwise for any direct, special, -indirect, incidental, consequential, punitive, exemplary, or other losses, -costs, expenses, or damages arising out of this Public License or use of the -Licensed Material, even if the Licensor has been advised of the possibility of -such losses, costs, expenses, or damages. Where a limitation of liability is -not allowed in full or in part, this limitation may not apply to You. - - The disclaimer of warranties and limitation of liability provided above -shall be interpreted in a manner that, to the extent possible, most closely -approximates an absolute disclaimer and waiver of all liability. - -Section 6 – Term and Termination. - - This Public License applies for the term of the Copyright and Similar -Rights licensed here. However, if You fail to comply with this Public License, -then Your rights under this Public License terminate automatically. - - Where Your right to use the Licensed Material has terminated under Section -6(a), it reinstates: automatically as of the date the violation is cured, -provided it is cured within 30 days of Your discovery of the violation; or -upon express reinstatement by the Licensor. For the avoidance of doubt, this -Section 6(b) does not affect any right the Licensor may have to seek remedies -for Your violations of this Public License. For the avoidance of doubt, the -Licensor may also offer the Licensed Material under separate terms or -conditions or stop distributing the Licensed Material at any time; however, -doing so will not terminate this Public License. Sections 1, 5, 6, 7, and 8 -survive termination of this Public License. - -Section 7 – Other Terms and Conditions. - - The Licensor shall not be bound by any additional or different terms or -conditions communicated by You unless expressly agreed. Any arrangements, -understandings, or agreements regarding the Licensed Material not stated -herein are separate from and independent of the terms and conditions of this -Public License. - -Section 8 – Interpretation. - - For the avoidance of doubt, this Public License does not, and shall not be -interpreted to, reduce, limit, restrict, or impose conditions on any use of -the Licensed Material that could lawfully be made without permission under -this Public License. To the extent possible, if any provision of this Public -License is deemed unenforceable, it shall be automatically reformed to the -minimum extent necessary to make it enforceable. If the provision cannot be -reformed, it shall be severed from this Public License without affecting the -enforceability of the remaining terms and conditions. No term or condition of -this Public License will be waived and no failure to comply consented to -unless expressly agreed to by the Licensor. Nothing in this Public License -constitutes or may be interpreted as a limitation upon, or waiver of, any -privileges and immunities that apply to the Licensor or You, including from -the legal processes of any jurisdiction or authority. - -Creative Commons is not a party to its public licenses. Notwithstanding, -Creative Commons may elect to apply one of its public licenses to material it -publishes and in those instances will be considered the “Licensor.” The text -of the Creative Commons public licenses is dedicated to the public domain -under the CC0 Public Domain Dedication. Except for the limited purpose of -indicating that material is shared under a Creative Commons public license or -as otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the use of -the trademark “Creative Commons” or any other trademark or logo of Creative -Commons without its prior written consent including, without limitation, in -connection with any unauthorized modifications to any of its public licenses -or any other arrangements, understandings, or agreements concerning use of -licensed material. For the avoidance of doubt, this paragraph does not form -part of the public licenses. - -Creative Commons may be contacted at creativecommons.org. - - - ---------------- SECTION 5: Creative Commons Attribution License, V3.0 ------------ - -Creative Commons Attribution 3.0 Unported - -CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL -SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT -RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. -CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND -DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE. - -License - -THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE -COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY -COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS -AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. - -BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE -BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE -CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE -IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. - -1. Definitions - - a. "Adaptation" means a work based upon the Work, or upon the Work and -other pre-existing works, such as a translation, adaptation, derivative work, -arrangement of music or other alterations of a literary or artistic work, or -phonogram or performance and includes cinematographic adaptations or any other -form in which the Work may be recast, transformed, or adapted including in any -form recognizably derived from the original, except that a work that -constitutes a Collection will not be considered an Adaptation for the purpose -of this License. For the avoidance of doubt, where the Work is a musical work, -performance or phonogram, the synchronization of the Work in timed-relation -with a moving image ("synching") will be considered an Adaptation for the -purpose of this License. - - b. "Collection" means a collection of literary or artistic works, such as -encyclopedias and anthologies, or performances, phonograms or broadcasts, or -other works or subject matter other than works listed in Section 1(f) below, -which, by reason of the selection and arrangement of their contents, -constitute intellectual creations, in which the Work is included in its -entirety in unmodified form along with one or more other contributions, each -constituting separate and independent works in themselves, which together are -assembled into a collective whole. A work that constitutes a Collection will -not be considered an Adaptation (as defined above) for the purposes of this -License. - - c. "Distribute" means to make available to the public the original and -copies of the Work or Adaptation, as appropriate, through sale or other -transfer of ownership. - - d. "Licensor" means the individual, individuals, entity or entities that -offer(s) the Work under the terms of this License. - - e. "Original Author" means, in the case of a literary or artistic work, the -individual, individuals, entity or entities who created the Work or if no -individual or entity can be identified, the publisher; and in addition (i) in -the case of a performance the actors, singers, musicians, dancers, and other -persons who act, sing, deliver, declaim, play in, interpret or otherwise -perform literary or artistic works or expressions of folklore; (ii) in the -case of a phonogram the producer being the person or legal entity who first -fixes the sounds of a performance or other sounds; and, (iii) in the case of -broadcasts, the organization that transmits the broadcast. - - f. "Work" means the literary and/or artistic work offered under the terms -of this License including without limitation any production in the literary, -scientific and artistic domain, whatever may be the mode or form of its -expression including digital form, such as a book, pamphlet and other writing; -a lecture, address, sermon or other work of the same nature; a dramatic or -dramatico-musical work; a choreographic work or entertainment in dumb show; a -musical composition with or without words; a cinematographic work to which are -assimilated works expressed by a process analogous to cinematography; a work -of drawing, painting, architecture, sculpture, engraving or lithography; a -photographic work to which are assimilated works expressed by a process -analogous to photography; a work of applied art; an illustration, map, plan, -sketch or three-dimensional work relative to geography, topography, -architecture or science; a performance; a broadcast; a phonogram; a -compilation of data to the extent it is protected as a copyrightable work; or -a work performed by a variety or circus performer to the extent it is not -otherwise considered a literary or artistic work. - - g. "You" means an individual or entity exercising rights under this License -who has not previously violated the terms of this License with respect to the -Work, or who has received express permission from the Licensor to exercise -rights under this License despite a previous violation. - - h. "Publicly Perform" means to perform public recitations of the Work and -to communicate to the public those public recitations, by any means or -process, including by wire or wireless means or public digital performances; -to make available to the public Works in such a way that members of the public -may access these Works from a place and at a place individually chosen by -them; to perform the Work to the public by any means or process and the -communication to the public of the performances of the Work, including by -public digital performance; to broadcast and rebroadcast the Work by any means -including signs, sounds or images. - - i. "Reproduce" means to make copies of the Work by any means including -without limitation by sound or visual recordings and the right of fixation and -reproducing fixations of the Work, including storage of a protected -performance or phonogram in digital form or other electronic medium. - -2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, -or restrict any uses free from copyright or rights arising from limitations or -exceptions that are provided for in connection with the copyright protection -under copyright law or other applicable laws. - -3. License Grant. Subject to the terms and conditions of this License, -Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual -(for the duration of the applicable copyright) license to exercise the rights -in the Work as stated below: - - a. to Reproduce the Work, to incorporate the Work into one or more -Collections, and to Reproduce the Work as incorporated in the Collections; - - b. to create and Reproduce Adaptations provided that any such Adaptation, -including any translation in any medium, takes reasonable steps to clearly -label, demarcate or otherwise identify that changes were made to the original -Work. For example, a translation could be marked "The original work was -translated from English to Spanish," or a modification could indicate "The -original work has been modified."; - - c. to Distribute and Publicly Perform the Work including as incorporated in -Collections; and, - - d. to Distribute and Publicly Perform Adaptations. - - e. For the avoidance of doubt: - - i. Non-waivable Compulsory License Schemes. In those jurisdictions in -which the right to collect royalties through any statutory or compulsory -licensing scheme cannot be waived, the Licensor reserves the exclusive right -to collect such royalties for any exercise by You of the rights granted under -this License; - - ii. Waivable Compulsory License Schemes. In those jurisdictions in which -the right to collect royalties through any statutory or compulsory licensing -scheme can be waived, the Licensor waives the exclusive right to collect such -royalties for any exercise by You of the rights granted under this License; -and, - - iii. Voluntary License Schemes. The Licensor waives the right to collect -royalties, whether individually or, in the event that the Licensor is a member -of a collecting society that administers voluntary licensing schemes, via that -society, from any exercise by You of the rights granted under this License. -The above rights may be exercised in all media and formats whether now known -or hereafter devised. The above rights include the right to make such -modifications as are technically necessary to exercise the rights in other -media and formats. Subject to Section 8(f), all rights not expressly granted -by Licensor are hereby reserved. - -4. Restrictions. The license granted in Section 3 above is expressly made -subject to and limited by the following restrictions: - - a. You may Distribute or Publicly Perform the Work only under the terms of -this License. You must include a copy of, or the Uniform Resource Identifier -(URI) for, this License with every copy of the Work You Distribute or Publicly -Perform. You may not offer or impose any terms on the Work that restrict the -terms of this License or the ability of the recipient of the Work to exercise -the rights granted to that recipient under the terms of the License. You may -not sublicense the Work. You must keep intact all notices that refer to this -License and to the disclaimer of warranties with every copy of the Work You -Distribute or Publicly Perform. When You Distribute or Publicly Perform the -Work, You may not impose any effective technological measures on the Work that -restrict the ability of a recipient of the Work from You to exercise the -rights granted to that recipient under the terms of the License. This Section -4(a) applies to the Work as incorporated in a Collection, but this does not -require the Collection apart from the Work itself to be made subject to the -terms of this License. If You create a Collection, upon notice from any -Licensor You must, to the extent practicable, remove from the Collection any -credit as required by Section 4(b), as requested. If You create an Adaptation, -upon notice from any Licensor You must, to the extent practicable, remove from -the Adaptation any credit as required by Section 4(b), as requested. - - b. If You Distribute, or Publicly Perform the Work or any Adaptations or -Collections, You must, unless a request has been made pursuant to Section -4(a), keep intact all copyright notices for the Work and provide, reasonable -to the medium or means You are utilizing: (i) the name of the Original Author -(or pseudonym, if applicable) if supplied, and/or if the Original Author -and/or Licensor designate another party or parties (e.g., a sponsor institute, -publishing entity, journal) for attribution ("Attribution Parties") in -Licensor's copyright notice, terms of service or by other reasonable means, -the name of such party or parties; (ii) the title of the Work if supplied; -(iii) to the extent reasonably practicable, the URI, if any, that Licensor -specifies to be associated with the Work, unless such URI does not refer to -the copyright notice or licensing information for the Work; and (iv) , -consistent with Section 3(b), in the case of an Adaptation, a credit -identifying the use of the Work in the Adaptation (e.g., "French translation -of the Work by Original Author," or "Screenplay based on original Work by -Original Author"). The credit required by this Section 4 (b) may be -implemented in any reasonable manner; provided, however, that in the case of a -Adaptation or Collection, at a minimum such credit will appear, if a credit -for all contributing authors of the Adaptation or Collection appears, then as -part of these credits and in a manner at least as prominent as the credits for -the other contributing authors. For the avoidance of doubt, You may only use -the credit required by this Section for the purpose of attribution in the -manner set out above and, by exercising Your rights under this License, You -may not implicitly or explicitly assert or imply any connection with, -sponsorship or endorsement by the Original Author, Licensor and/or Attribution -Parties, as appropriate, of You or Your use of the Work, without the separate, -express prior written permission of the Original Author, Licensor and/or -Attribution Parties. - - c. Except as otherwise agreed in writing by the Licensor or as may be -otherwise permitted by applicable law, if You Reproduce, Distribute or -Publicly Perform the Work either by itself or as part of any Adaptations or -Collections, You must not distort, mutilate, modify or take other derogatory -action in relation to the Work which would be prejudicial to the Original -Author's honor or reputation. Licensor agrees that in those jurisdictions -(e.g. Japan), in which any exercise of the right granted in Section 3(b) of -this License (the right to make Adaptations) would be deemed to be a -distortion, mutilation, modification or other derogatory action prejudicial to -the Original Author's honor and reputation, the Licensor will waive or not -assert, as appropriate, this Section, to the fullest extent permitted by the -applicable national law, to enable You to reasonably exercise Your right under -Section 3(b) of this License (right to make Adaptations) but not otherwise. - -5. Representations, Warranties and Disclaimer UNLESS OTHERWISE MUTUALLY AGREED -TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO -REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, -IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF -TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR -THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE -OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE -EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. - -6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, -IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY -SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT -OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF -THE POSSIBILITY OF SUCH DAMAGES. - -7. Termination - - a. This License and the rights granted hereunder will terminate -automatically upon any breach by You of the terms of this License. Individuals -or entities who have received Adaptations or Collections from You under this -License, however, will not have their licenses terminated provided such -individuals or entities remain in full compliance with those licenses. -Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. - - b. Subject to the above terms and conditions, the license granted here is -perpetual (for the duration of the applicable copyright in the Work). -Notwithstanding the above, Licensor reserves the right to release the Work -under different license terms or to stop distributing the Work at any time; -provided, however that any such election will not serve to withdraw this -License (or any other license that has been, or is required to be, granted -under the terms of this License), and this License will continue in full force -and effect unless terminated as stated above. - -8. Miscellaneous - - a. Each time You Distribute or Publicly Perform the Work or a Collection, -the Licensor offers to the recipient a license to the Work on the same terms -and conditions as the license granted to You under this License. - - b. Each time You Distribute or Publicly Perform an Adaptation, Licensor -offers to the recipient a license to the original Work on the same terms and -conditions as the license granted to You under this License. - - c. If any provision of this License is invalid or unenforceable under -applicable law, it shall not affect the validity or enforceability of the -remainder of the terms of this License, and without further action by the -parties to this agreement, such provision shall be reformed to the minimum -extent necessary to make such provision valid and enforceable. - - d. No term or provision of this License shall be deemed waived and no -breach consented to unless such waiver or consent shall be in writing and -signed by the party to be charged with such waiver or consent. - - e. This License constitutes the entire agreement between the parties with -respect to the Work licensed here. There are no understandings, agreements or -representations with respect to the Work not specified here. Licensor shall -not be bound by any additional provisions that may appear in any communication -from You. This License may not be modified without the mutual written -agreement of the Licensor and You. - - f. The rights granted under, and the subject matter referenced, in this -License were drafted utilizing the terminology of the Berne Convention for the -Protection of Literary and Artistic Works (as amended on September 28, 1979), -the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO -Performances and Phonograms Treaty of 1996 and the Universal Copyright -Convention (as revised on July 24, 1971). These rights and subject matter take -effect in the relevant jurisdiction in which the License terms are sought to -be enforced according to the corresponding provisions of the implementation of -those treaty provisions in the applicable national law. If the standard suite -of rights granted under applicable copyright law includes additional rights -not granted under this License, such additional rights are deemed to be -included in the License; this License is not intended to restrict the license -of any rights under applicable law. - - - ---------------- SECTION 6: Creative Commons Attribution 4.0 International ------------ - -Creative Commons Corporation (“Creative Commons”) is not a law firm and does -not provide legal services or legal advice. Distribution of Creative Commons -public licenses does not create a lawyer-client or other relationship. -Creative Commons makes its licenses and related information available on an -“as-is” basis. Creative Commons gives no warranties regarding its licenses, -any material licensed under their terms and conditions, or any related -information. Creative Commons disclaims all liability for damages resulting -from their use to the fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share original -works of authorship and other material subject to copyright and certain other -rights specified in the public license below. The following considerations are -for informational purposes only, are not exhaustive, and do not form part of -our licenses. - -Considerations for licensors: Our public licenses are intended for use by -those authorized to give the public permission to use material in ways -otherwise restricted by copyright and certain other rights. Our licenses are -irrevocable. Licensors should read and understand the terms and conditions of -the license they choose before applying it. Licensors should also secure all -rights necessary before applying our licenses so that the public can reuse the -material as expected. Licensors should clearly mark any material not subject -to the license. This includes other CC-licensed material, or material used -under an exception or limitation to copyright. More considerations for -licensors. - -Considerations for the public: By using one of our public licenses, a licensor -grants the public permission to use the licensed material under specified -terms and conditions. If the licensor’s permission is not necessary for any -reason–for example, because of any applicable exception or limitation to -copyright–then that use is not regulated by the license. Our licenses grant -only permissions under copyright and certain other rights that a licensor has -authority to grant. Use of the licensed material may still be restricted for -other reasons, including because others have copyright or other rights in the -material. A licensor may make special requests, such as asking that all -changes be marked or described. Although not required by our licenses, you are -encouraged to respect those requests where reasonable. More considerations for -the public. - -Creative Commons Attribution 4.0 International Public License - -By exercising the Licensed Rights (defined below), You accept and agree to be -bound by the terms and conditions of this Creative Commons Attribution 4.0 -International Public License ("Public License"). To the extent this Public -License may be interpreted as a contract, You are granted the Licensed Rights -in consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the Licensor -receives from making the Licensed Material available under these terms and -conditions. - -Section 1 – Definitions. - -Adapted Material means material subject to Copyright and Similar Rights that -is derived from or based upon the Licensed Material and in which the Licensed -Material is translated, altered, arranged, transformed, or otherwise modified -in a manner requiring permission under the Copyright and Similar Rights held -by the Licensor. For purposes of this Public License, where the Licensed -Material is a musical work, performance, or sound recording, Adapted Material -is always produced where the Licensed Material is synched in timed relation -with a moving image. Adapter's License means the license You apply to Your -Copyright and Similar Rights in Your contributions to Adapted Material in -accordance with the terms and conditions of this Public License. Copyright -and Similar Rights means copyright and/or similar rights closely related to -copyright including, without limitation, performance, broadcast, sound -recording, and Sui Generis Database Rights, without regard to how the rights -are labeled or categorized. For purposes of this Public License, the rights -specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. -Effective Technological Measures means those measures that, in the absence of -proper authority, may not be circumvented under laws fulfilling obligations -under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, -and/or similar international agreements. Exceptions and Limitations means -fair use, fair dealing, and/or any other exception or limitation to Copyright -and Similar Rights that applies to Your use of the Licensed Material. -Licensed Material means the artistic or literary work, database, or other -material to which the Licensor applied this Public License. Licensed Rights -means the rights granted to You subject to the terms and conditions of this -Public License, which are limited to all Copyright and Similar Rights that -apply to Your use of the Licensed Material and that the Licensor has authority -to license. Licensor means the individual(s) or entity(ies) granting rights -under this Public License. Share means to provide material to the public by -any means or process that requires permission under the Licensed Rights, such -as reproduction, public display, public performance, distribution, -dissemination, communication, or importation, and to make material available -to the public including in ways that members of the public may access the -material from a place and at a time individually chosen by them. Sui Generis -Database Rights means rights other than copyright resulting from Directive -96/9/EC of the European Parliament and of the Council of 11 March 1996 on the -legal protection of databases, as amended and/or succeeded, as well as other -essentially equivalent rights anywhere in the world. You means the individual -or entity exercising the Licensed Rights under this Public License. Your has a -corresponding meaning. - -Section 2 – Scope. - -License grant. Subject to the terms and conditions of this Public License, -the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, -non-exclusive, irrevocable license to exercise the Licensed Rights in the -Licensed Material to: reproduce and Share the Licensed Material, in whole or -in part; and produce, reproduce, and Share Adapted Material. Exceptions and -Limitations. For the avoidance of doubt, where Exceptions and Limitations -apply to Your use, this Public License does not apply, and You do not need to -comply with its terms and conditions. Term. The term of this Public License -is specified in Section 6(a). Media and formats; technical modifications -allowed. The Licensor authorizes You to exercise the Licensed Rights in all -media and formats whether now known or hereafter created, and to make -technical modifications necessary to do so. The Licensor waives and/or agrees -not to assert any right or authority to forbid You from making technical -modifications necessary to exercise the Licensed Rights, including technical -modifications necessary to circumvent Effective Technological Measures. For -purposes of this Public License, simply making modifications authorized by -this Section 2(a)(4) never produces Adapted Material. Downstream recipients. -Offer from the Licensor – Licensed Material. Every recipient of the Licensed -Material automatically receives an offer from the Licensor to exercise the -Licensed Rights under the terms and conditions of this Public License. No -downstream restrictions. You may not offer or impose any additional or -different terms or conditions on, or apply any Effective Technological -Measures to, the Licensed Material if doing so restricts exercise of the -Licensed Rights by any recipient of the Licensed Material. No endorsement. -Nothing in this Public License constitutes or may be construed as permission -to assert or imply that You are, or that Your use of the Licensed Material is, -connected with, or sponsored, endorsed, or granted official status by, the -Licensor or others designated to receive attribution as provided in Section -3(a)(1)(A)(i). - -Other rights. Moral rights, such as the right of integrity, are not licensed -under this Public License, nor are publicity, privacy, and/or other similar -personality rights; however, to the extent possible, the Licensor waives -and/or agrees not to assert any such rights held by the Licensor to the -limited extent necessary to allow You to exercise the Licensed Rights, but not -otherwise. Patent and trademark rights are not licensed under this Public -License. To the extent possible, the Licensor waives any right to collect -royalties from You for the exercise of the Licensed Rights, whether directly -or through a collecting society under any voluntary or waivable statutory or -compulsory licensing scheme. In all other cases the Licensor expressly -reserves any right to collect such royalties. - -Section 3 – License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - -Attribution. - -If You Share the Licensed Material (including in modified form), You must: -retain the following if it is supplied by the Licensor with the Licensed -Material: identification of the creator(s) of the Licensed Material and any -others designated to receive attribution, in any reasonable manner requested -by the Licensor (including by pseudonym if designated); a copyright notice; a -notice that refers to this Public License; a notice that refers to the -disclaimer of warranties; a URI or hyperlink to the Licensed Material to the -extent reasonably practicable; indicate if You modified the Licensed Material -and retain an indication of any previous modifications; and indicate the -Licensed Material is licensed under this Public License, and include the text -of, or the URI or hyperlink to, this Public License. You may satisfy the -conditions in Section 3(a)(1) in any reasonable manner based on the medium, -means, and context in which You Share the Licensed Material. For example, it -may be reasonable to satisfy the conditions by providing a URI or hyperlink to -a resource that includes the required information. If requested by the -Licensor, You must remove any of the information required by Section -3(a)(1)(A) to the extent reasonably practicable. If You Share Adapted -Material You produce, the Adapter's License You apply must not prevent -recipients of the Adapted Material from complying with this Public License. - -Section 4 – Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that apply to -Your use of the Licensed Material: - -for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, -reuse, reproduce, and Share all or a substantial portion of the contents of -the database; if You include all or a substantial portion of the database -contents in a database in which You have Sui Generis Database Rights, then the -database in which You have Sui Generis Database Rights (but not its individual -contents) is Adapted Material; and You must comply with the conditions in -Section 3(a) if You Share all or a substantial portion of the contents of the -database. - -For the avoidance of doubt, this Section 4 supplements and does not replace -Your obligations under this Public License where the Licensed Rights include -other Copyright and Similar Rights. - -Section 5 – Disclaimer of Warranties and Limitation of Liability. - -Unless otherwise separately undertaken by the Licensor, to the extent -possible, the Licensor offers the Licensed Material as-is and as-available, -and makes no representations or warranties of any kind concerning the Licensed -Material, whether express, implied, statutory, or other. This includes, -without limitation, warranties of title, merchantability, fitness for a -particular purpose, non-infringement, absence of latent or other defects, -accuracy, or the presence or absence of errors, whether or not known or -discoverable. Where disclaimers of warranties are not allowed in full or in -part, this disclaimer may not apply to You. To the extent possible, in no -event will the Licensor be liable to You on any legal theory (including, -without limitation, negligence) or otherwise for any direct, special, -indirect, incidental, consequential, punitive, exemplary, or other losses, -costs, expenses, or damages arising out of this Public License or use of the -Licensed Material, even if the Licensor has been advised of the possibility of -such losses, costs, expenses, or damages. Where a limitation of liability is -not allowed in full or in part, this limitation may not apply to You. - -The disclaimer of warranties and limitation of liability provided above shall -be interpreted in a manner that, to the extent possible, most closely -approximates an absolute disclaimer and waiver of all liability. - -Section 6 – Term and Termination. - -This Public License applies for the term of the Copyright and Similar Rights -licensed here. However, if You fail to comply with this Public License, then -Your rights under this Public License terminate automatically. - -Where Your right to use the Licensed Material has terminated under Section -6(a), it reinstates: automatically as of the date the violation is cured, -provided it is cured within 30 days of Your discovery of the violation; or -upon express reinstatement by the Licensor. For the avoidance of doubt, this -Section 6(b) does not affect any right the Licensor may have to seek remedies -for Your violations of this Public License. For the avoidance of doubt, the -Licensor may also offer the Licensed Material under separate terms or -conditions or stop distributing the Licensed Material at any time; however, -doing so will not terminate this Public License. Sections 1, 5, 6, 7, and 8 -survive termination of this Public License. - -Section 7 – Other Terms and Conditions. - -The Licensor shall not be bound by any additional or different terms or -conditions communicated by You unless expressly agreed. Any arrangements, -understandings, or agreements regarding the Licensed Material not stated -herein are separate from and independent of the terms and conditions of this -Public License. - -Section 8 – Interpretation. - -For the avoidance of doubt, this Public License does not, and shall not be -interpreted to, reduce, limit, restrict, or impose conditions on any use of -the Licensed Material that could lawfully be made without permission under -this Public License. To the extent possible, if any provision of this Public -License is deemed unenforceable, it shall be automatically reformed to the -minimum extent necessary to make it enforceable. If the provision cannot be -reformed, it shall be severed from this Public License without affecting the -enforceability of the remaining terms and conditions. No term or condition of -this Public License will be waived and no failure to comply consented to -unless expressly agreed to by the Licensor. Nothing in this Public License -constitutes or may be interpreted as a limitation upon, or waiver of, any -privileges and immunities that apply to the Licensor or You, including from -the legal processes of any jurisdiction or authority. - -Creative Commons is not a party to its public licenses. Notwithstanding, -Creative Commons may elect to apply one of its public licenses to material it -publishes and in those instances will be considered the “Licensor.” Except for -the limited purpose of indicating that material is shared under a Creative -Commons public license or as otherwise permitted by the Creative Commons -policies published at creativecommons.org/policies, Creative Commons does not -authorize the use of the trademark “Creative Commons” or any other trademark -or logo of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications to any -of its public licenses or any other arrangements, understandings, or -agreements concerning use of licensed material. For the avoidance of doubt, -this paragraph does not form part of the public licenses. - -Creative Commons may be contacted at creativecommons.org. - - - -====================================================================== - - -To the extent any open source components are licensed under the GPL and/or -LGPL, or other similar licenses that require the source code and/or -modifications to source code to be made available (as would be noted above), -you may obtain a copy of the source code corresponding to the binaries for -such open source components and modifications thereto, if any, (the "Source -Files"), by downloading the Source Files from VMware's github site, or by -sending a request, with your name and address to: VMware, Inc., 3401 Hillview -Avenue, Palo Alto, CA 94304, United States of America. All such requests -should clearly specify: OPEN SOURCE FILES REQUEST, Attention General Counsel. -VMware shall mail a copy of the Source Files to you on a CD or equivalent -physical medium. This offer to obtain a copy of the Source Files is valid for -three years from the date you acquired this Software product. - -[VIC130GAVS112117] +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/vendor/github.com/vmware/vic/doc/bundle/NOTICE b/vendor/github.com/vmware/vic/doc/bundle/NOTICE index 4c7c6f028..c909ab88e 100644 --- a/vendor/github.com/vmware/vic/doc/bundle/NOTICE +++ b/vendor/github.com/vmware/vic/doc/bundle/NOTICE @@ -2,13 +2,13 @@ NOTICE vSphere Integrated Containers Engine -Copyright (c) 2016-2017 VMware, Inc. All Rights Reserved. +Copyright (c) 2016-2018 VMware, Inc. All Rights Reserved. This product is licensed to you under the Apache License, Version 2.0 (the "License"). You may not use this product except in compliance with the License. -This product may include a number of components with separate copyright -notices and license terms. Your use of the source code for these components is -subject to the terms and conditions of the component's license, as noted in -the LICENSE file. +This product may include a number of components with separate copyright notices +and license terms. Your use of the source code for these components is subject +to the terms and conditions of the component's license, as noted in the LICENSE +file. diff --git a/vendor/github.com/vmware/vic/lib/apiservers/engine/errors/errors.go b/vendor/github.com/vmware/vic/lib/apiservers/engine/errors/errors.go index 3db958d7c..2c6dd6aa7 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/engine/errors/errors.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/engine/errors/errors.go @@ -34,6 +34,14 @@ func (e InvalidVolumeError) Error() string { return fmt.Sprintf("mounting directories as a data volume is not supported.") } +type VolumeExistError struct { + Volume string +} + +func (e VolumeExistError) Error() string { + return fmt.Sprintf("A volume named %s already exists. Choose a different volume name.", e.Volume) +} + // InvalidBindError is returned when create/run -v has more params than allowed. type InvalidBindError struct { Volume string @@ -187,6 +195,12 @@ func IsServerNotReady(err error) bool { return ok } +func IsVolumeExistError(err error) bool { + _, ok := err.(VolumeExistError) + + return ok +} + type DetachError struct{} func (DetachError) Error() string { diff --git a/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/archive_proxy.go b/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/archive_proxy.go index af12981b0..333f3250c 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/archive_proxy.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/archive_proxy.go @@ -33,7 +33,7 @@ import ( "github.com/docker/docker/api/types" ) -type VicArchiveProxy interface { +type ArchiveProxy interface { ArchiveExportReader(op trace.Operation, store, ancestorStore, deviceID, ancestor string, data bool, filterSpec archive.FilterSpec) (io.ReadCloser, error) ArchiveImportWriter(op trace.Operation, store, deviceID string, filterSpec archive.FilterSpec, wg *sync.WaitGroup, errchan chan error) (io.WriteCloser, error) StatPath(op trace.Operation, store, deviceID string, filterSpec archive.FilterSpec) (*types.ContainerPathStat, error) @@ -43,23 +43,23 @@ type VicArchiveProxy interface { // ArchiveProxy //------------------------------------ -type ArchiveProxy struct { +type VicArchiveProxy struct { client *client.PortLayer } -var archiveProxy *ArchiveProxy +var archiveProxy *VicArchiveProxy -func NewArchiveProxy(client *client.PortLayer) VicArchiveProxy { - return &ArchiveProxy{client: client} +func NewArchiveProxy(client *client.PortLayer) *VicArchiveProxy { + return &VicArchiveProxy{client: client} } -func GetArchiveProxy() VicArchiveProxy { +func GetArchiveProxy() ArchiveProxy { return archiveProxy } // ArchiveExportReader streams a tar archive from the portlayer. Once the stream is complete, // an io.Reader is returned and the caller can use that reader to parse the data. -func (a *ArchiveProxy) ArchiveExportReader(op trace.Operation, store, ancestorStore, deviceID, ancestor string, data bool, filterSpec archive.FilterSpec) (io.ReadCloser, error) { +func (a *VicArchiveProxy) ArchiveExportReader(op trace.Operation, store, ancestorStore, deviceID, ancestor string, data bool, filterSpec archive.FilterSpec) (io.ReadCloser, error) { defer trace.End(trace.Begin(deviceID)) if a.client == nil { @@ -141,7 +141,7 @@ func (a *ArchiveProxy) ArchiveExportReader(op trace.Operation, store, ancestorSt // ArchiveImportWriter initializes a write stream for a path. This is usually called // for getting a writer during docker cp TO container. -func (a *ArchiveProxy) ArchiveImportWriter(op trace.Operation, store, deviceID string, filterSpec archive.FilterSpec, wg *sync.WaitGroup, errchan chan error) (io.WriteCloser, error) { +func (a *VicArchiveProxy) ArchiveImportWriter(op trace.Operation, store, deviceID string, filterSpec archive.FilterSpec, wg *sync.WaitGroup, errchan chan error) (io.WriteCloser, error) { defer trace.End(trace.Begin(deviceID)) if a.client == nil { @@ -232,7 +232,7 @@ func (a *ArchiveProxy) ArchiveImportWriter(op trace.Operation, store, deviceID s // StatPath requests the portlayer to stat the filesystem resource at the // specified path in the container vc. -func (a *ArchiveProxy) StatPath(op trace.Operation, store, deviceID string, filterSpec archive.FilterSpec) (*types.ContainerPathStat, error) { +func (a *VicArchiveProxy) StatPath(op trace.Operation, store, deviceID string, filterSpec archive.FilterSpec) (*types.ContainerPathStat, error) { defer trace.End(trace.Begin(deviceID)) if a.client == nil { diff --git a/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/container_proxy.go b/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/container_proxy.go index 2a3eb7000..f43eabb4b 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/container_proxy.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/container_proxy.go @@ -74,7 +74,7 @@ import ( ) // VicContainerProxy interface -type VicContainerProxy interface { +type ContainerProxy interface { CreateContainerHandle(ctx context.Context, vc *viccontainer.VicContainer, config types.ContainerCreateConfig) (string, string, error) AddImageToContainer(ctx context.Context, handle string, deltaID string, layerID string, imageID string, config types.ContainerCreateConfig) (string, error) CreateContainerTask(ctx context.Context, handle string, id string, layerID string, config types.ContainerCreateConfig) (string, error) @@ -91,7 +91,7 @@ type VicContainerProxy interface { // TODO: we should not be returning a swagger model here, however we do not have a solid architected return for this yet. InspectTask(op trace.Operation, handle string, eid string, cid string) (*models.TaskInspectResponse, error) BindTask(op trace.Operation, handle string, eid string) (string, error) - WaitTask(op trace.Operation, cid string, cname string, eid string) error + WaitTask(op trace.Operation, handle string, cid string, eid string) error Handle(ctx context.Context, id, name string) (string, error) @@ -108,7 +108,7 @@ type VicContainerProxy interface { } // ContainerProxy struct -type ContainerProxy struct { +type VicContainerProxy struct { client *client.PortLayer portlayerAddr string portlayerName string @@ -126,20 +126,24 @@ const ( ) // NewContainerProxy will create a new proxy -func NewContainerProxy(plClient *client.PortLayer, portlayerAddr string, portlayerName string) *ContainerProxy { - return &ContainerProxy{client: plClient, portlayerAddr: portlayerAddr, portlayerName: portlayerName} +func NewContainerProxy(plClient *client.PortLayer, portlayerAddr string, portlayerName string) *VicContainerProxy { + return &VicContainerProxy{client: plClient, portlayerAddr: portlayerAddr, portlayerName: portlayerName} } // Handle retrieves a handle to a VIC container. Handles should be treated as opaque strings. // // returns: // (handle string, error) -func (c *ContainerProxy) Handle(ctx context.Context, id, name string) (string, error) { +func (c *VicContainerProxy) Handle(ctx context.Context, id, name string) (string, error) { + op := trace.FromContext(ctx, "Handle: %s", id) + defer trace.End(trace.Begin(name, op)) + opID := op.ID() + if c.client == nil { return "", errors.NillPortlayerClientError("ContainerProxy") } - resp, err := c.client.Containers.Get(containers.NewGetParamsWithContext(ctx).WithID(id)) + resp, err := c.client.Containers.Get(containers.NewGetParamsWithContext(ctx).WithOpID(&opID).WithID(id)) if err != nil { switch err := err.(type) { case *containers.GetNotFound: @@ -158,8 +162,10 @@ func (c *ContainerProxy) Handle(ctx context.Context, id, name string) (string, e // // returns: // (containerID, containerHandle, error) -func (c *ContainerProxy) CreateContainerHandle(ctx context.Context, vc *viccontainer.VicContainer, config types.ContainerCreateConfig) (string, string, error) { - defer trace.End(trace.Begin(vc.ImageID)) +func (c *VicContainerProxy) CreateContainerHandle(ctx context.Context, vc *viccontainer.VicContainer, config types.ContainerCreateConfig) (string, string, error) { + op := trace.FromContext(ctx, "CreateContainerHandle: %s", vc.Name) + defer trace.End(trace.Begin(vc.Name, op)) + opID := op.ID() if c.client == nil { return "", "", errors.NillPortlayerClientError("ContainerProxy") @@ -179,12 +185,12 @@ func (c *ContainerProxy) CreateContainerHandle(ctx context.Context, vc *vicconta return "", "", errors.InternalServerError("ContainerProxy.CreateContainerHandle got unexpected error getting VCH UUID") } - plCreateParams := dockerContainerCreateParamsToPortlayer(ctx, config, vc, host) + plCreateParams := dockerContainerCreateParamsToPortlayer(ctx, config, vc, host).WithOpID(&opID) createResults, err := c.client.Containers.Create(plCreateParams) if err != nil { if _, ok := err.(*containers.CreateNotFound); ok { cerr := fmt.Errorf("No such image: %s", vc.ImageID) - log.Errorf("%s (%s)", cerr, err) + op.Errorf("%s (%s)", cerr, err) return "", "", errors.NotFoundError(cerr.Error()) } @@ -203,7 +209,7 @@ func (c *ContainerProxy) CreateContainerHandle(ctx context.Context, vc *vicconta // // returns: // modified handle -func (c *ContainerProxy) AddImageToContainer(ctx context.Context, handle, deltaID, layerID, imageID string, config types.ContainerCreateConfig) (string, error) { +func (c *VicContainerProxy) AddImageToContainer(ctx context.Context, handle, deltaID, layerID, imageID string, config types.ContainerCreateConfig) (string, error) { defer trace.End(trace.Begin(handle)) if c.client == nil { @@ -237,20 +243,23 @@ func (c *ContainerProxy) AddImageToContainer(ctx context.Context, handle, deltaI // // returns: // (containerHandle, error) -func (c *ContainerProxy) CreateContainerTask(ctx context.Context, handle, id, layerID string, config types.ContainerCreateConfig) (string, error) { - defer trace.End(trace.Begin("")) +func (c *VicContainerProxy) CreateContainerTask(ctx context.Context, handle, id, layerID string, config types.ContainerCreateConfig) (string, error) { + op := trace.FromContext(ctx, "CreateContainerTask: %s", id) + defer trace.End(trace.Begin(id, op)) + opID := op.ID() if c.client == nil { return "", errors.NillPortlayerClientError("ContainerProxy") } - plTaskParams := dockerContainerCreateParamsToTask(ctx, id, layerID, config) + plTaskParams := dockerContainerCreateParamsToTask(op, id, layerID, config) plTaskParams.Config.Handle = handle + plTaskParams.WithOpID(&opID) - log.Infof("*** CreateContainerTask - params = %#v", *plTaskParams.Config) + op.Infof("*** CreateContainerTask - params = %#v", *plTaskParams.Config) responseJoin, err := c.client.Tasks.Join(plTaskParams) if err != nil { - log.Errorf("Unable to join primary task to container: %+v", err) + op.Errorf("Unable to join primary task to container: %+v", err) return "", errors.InternalServerError(err.Error()) } @@ -259,10 +268,13 @@ func (c *ContainerProxy) CreateContainerTask(ctx context.Context, handle, id, la return "", errors.InternalServerError(fmt.Sprintf("Type assertion failed on handle from task join: %#+v", handle)) } - plBindParams := tasks.NewBindParamsWithContext(ctx).WithConfig(&models.TaskBindConfig{Handle: handle, ID: id}) + plBindParams := tasks.NewBindParamsWithContext(ctx). + WithOpID(&opID). + WithConfig(&models.TaskBindConfig{Handle: handle, ID: id}) + responseBind, err := c.client.Tasks.Bind(plBindParams) if err != nil { - log.Errorf("Unable to bind primary task to container: %+v", err) + op.Errorf("Unable to bind primary task to container: %+v", err) return "", errors.InternalServerError(err.Error()) } @@ -274,8 +286,10 @@ func (c *ContainerProxy) CreateContainerTask(ctx context.Context, handle, id, la return handle, nil } -func (c *ContainerProxy) CreateExecTask(ctx context.Context, handle string, config *types.ExecConfig) (string, string, error) { - defer trace.End(trace.Begin("")) +func (c *VicContainerProxy) CreateExecTask(ctx context.Context, handle string, config *types.ExecConfig) (string, string, error) { + op := trace.FromContext(ctx, "CreateExecTask: %s", handle) + defer trace.End(trace.Begin(handle, op)) + opID := op.ID() if c.client == nil { return "", "", errors.NillPortlayerClientError("ContainerProxy") @@ -293,7 +307,7 @@ func (c *ContainerProxy) CreateExecTask(ctx context.Context, handle string, conf } // call Join with JoinParams - joinparams := tasks.NewJoinParamsWithContext(ctx).WithConfig(joinconfig) + joinparams := tasks.NewJoinParamsWithContext(ctx).WithOpID(&opID).WithConfig(joinconfig) resp, err := c.client.Tasks.Join(joinparams) if err != nil { return "", "", errors.InternalServerError(err.Error()) @@ -313,18 +327,21 @@ func (c *ContainerProxy) CreateExecTask(ctx context.Context, handle string, conf // // returns: // modified handle -func (c *ContainerProxy) AddContainerToScope(ctx context.Context, handle string, config types.ContainerCreateConfig) (string, error) { - defer trace.End(trace.Begin(handle)) +func (c *VicContainerProxy) AddContainerToScope(ctx context.Context, handle string, config types.ContainerCreateConfig) (string, error) { + op := trace.FromContext(ctx, "AddContainerToScope: %s", handle) + defer trace.End(trace.Begin(handle, op)) + opID := op.ID() if c.client == nil { return "", errors.NillPortlayerClientError("ContainerProxy") } - log.Debugf("Network Configuration Section - Container Create") + op.Debugf("Network Configuration Section - Container Create") // configure network netConf := toModelsNetworkConfig(config) if netConf != nil { addContRes, err := c.client.Scopes.AddContainer(scopes.NewAddContainerParamsWithContext(ctx). + WithOpID(&opID). WithScope(netConf.NetworkName). WithConfig(&models.ScopesAddContainerConfig{ Handle: handle, @@ -332,7 +349,7 @@ func (c *ContainerProxy) AddContainerToScope(ctx context.Context, handle string, })) if err != nil { - log.Errorf("ContainerProxy.AddContainerToScope: Scopes error: %s", err.Error()) + op.Errorf("ContainerProxy.AddContainerToScope: Scopes error: %s", err.Error()) return handle, errors.InternalServerError(err.Error()) } @@ -341,8 +358,11 @@ func (c *ContainerProxy) AddContainerToScope(ctx context.Context, handle string, return } // roll back the AddContainer call - if _, err2 := c.client.Scopes.RemoveContainer(scopes.NewRemoveContainerParamsWithContext(ctx).WithHandle(handle).WithScope(netConf.NetworkName)); err2 != nil { - log.Warnf("could not roll back container add: %s", err2) + if _, err2 := c.client.Scopes.RemoveContainer(scopes.NewRemoveContainerParamsWithContext(ctx). + WithHandle(handle). + WithScope(netConf.NetworkName). + WithOpID(&opID)); err2 != nil { + op.Warnf("could not roll back container add: %s", err2) } }() @@ -357,14 +377,17 @@ func (c *ContainerProxy) AddContainerToScope(ctx context.Context, handle string, // // returns: // modified handle -func (c *ContainerProxy) AddLoggingToContainer(ctx context.Context, handle string, config types.ContainerCreateConfig) (string, error) { - defer trace.End(trace.Begin(handle)) +func (c *VicContainerProxy) AddLoggingToContainer(ctx context.Context, handle string, config types.ContainerCreateConfig) (string, error) { + op := trace.FromContext(ctx, "AddLoggingToContainer: %s", handle) + defer trace.End(trace.Begin(handle, op)) + opID := op.ID() if c.client == nil { return "", errors.NillPortlayerClientError("ContainerProxy") } response, err := c.client.Logging.LoggingJoin(logging.NewLoggingJoinParamsWithContext(ctx). + WithOpID(&opID). WithConfig(&models.LoggingJoinConfig{ Handle: handle, })) @@ -384,14 +407,17 @@ func (c *ContainerProxy) AddLoggingToContainer(ctx context.Context, handle strin // // returns: // modified handle -func (c *ContainerProxy) AddInteractionToContainer(ctx context.Context, handle string, config types.ContainerCreateConfig) (string, error) { - defer trace.End(trace.Begin(handle)) +func (c *VicContainerProxy) AddInteractionToContainer(ctx context.Context, handle string, config types.ContainerCreateConfig) (string, error) { + op := trace.FromContext(ctx, "AddLoggingToContainer: %s", handle) + defer trace.End(trace.Begin(handle, op)) + opID := op.ID() if c.client == nil { return "", errors.NillPortlayerClientError("ContainerProxy") } response, err := c.client.Interaction.InteractionJoin(interaction.NewInteractionJoinParamsWithContext(ctx). + WithOpID(&opID). WithConfig(&models.InteractionJoinConfig{ Handle: handle, })) @@ -407,8 +433,10 @@ func (c *ContainerProxy) AddInteractionToContainer(ctx context.Context, handle s } // BindInteraction enables interaction capabilities -func (c *ContainerProxy) BindInteraction(ctx context.Context, handle string, name string, id string) (string, error) { - defer trace.End(trace.Begin(handle)) +func (c *VicContainerProxy) BindInteraction(ctx context.Context, handle string, name string, id string) (string, error) { + op := trace.FromContext(ctx, "BindInteraction: %s", handle) + defer trace.End(trace.Begin(handle, op)) + opID := op.ID() if c.client == nil { return "", errors.NillPortlayerClientError("ContainerProxy") @@ -416,6 +444,7 @@ func (c *ContainerProxy) BindInteraction(ctx context.Context, handle string, nam bind, err := c.client.Interaction.InteractionBind( interaction.NewInteractionBindParamsWithContext(ctx). + WithOpID(&opID). WithConfig(&models.InteractionBindConfig{ Handle: handle, ID: id, @@ -436,8 +465,10 @@ func (c *ContainerProxy) BindInteraction(ctx context.Context, handle string, nam } // UnbindInteraction disables interaction capabilities -func (c *ContainerProxy) UnbindInteraction(ctx context.Context, handle string, name string, id string) (string, error) { - defer trace.End(trace.Begin(handle)) +func (c *VicContainerProxy) UnbindInteraction(ctx context.Context, handle string, name string, id string) (string, error) { + op := trace.FromContext(ctx, "UnbindInteraction: %s", handle) + defer trace.End(trace.Begin(handle, op)) + opID := op.ID() if c.client == nil { return "", errors.NillPortlayerClientError("ContainerProxy") @@ -445,6 +476,7 @@ func (c *ContainerProxy) UnbindInteraction(ctx context.Context, handle string, n unbind, err := c.client.Interaction.InteractionUnbind( interaction.NewInteractionUnbindParamsWithContext(ctx). + WithOpID(&opID). WithConfig(&models.InteractionUnbindConfig{ Handle: handle, ID: id, @@ -464,18 +496,21 @@ func (c *ContainerProxy) UnbindInteraction(ctx context.Context, handle string, n // // Args: // waitTime <= 0 means no wait time -func (c *ContainerProxy) CommitContainerHandle(ctx context.Context, handle, containerID string, waitTime int32) error { - defer trace.End(trace.Begin(handle)) +func (c *VicContainerProxy) CommitContainerHandle(ctx context.Context, handle, containerID string, waitTime int32) error { + op := trace.FromContext(ctx, "CommitContainerHandle: %s", handle) + defer trace.End(trace.Begin(handle, op)) + opID := op.ID() if c.client == nil { return errors.NillPortlayerClientError("ContainerProxy") } - var commitParams *containers.CommitParams + commitParams := containers.NewCommitParamsWithContext(ctx). + WithOpID(&opID). + WithHandle(handle) + if waitTime > 0 { - commitParams = containers.NewCommitParamsWithContext(ctx).WithHandle(handle).WithWaitTime(&waitTime) - } else { - commitParams = containers.NewCommitParamsWithContext(ctx).WithHandle(handle) + commitParams.WithWaitTime(&waitTime) } _, err := c.client.Containers.Commit(commitParams) @@ -495,8 +530,9 @@ func (c *ContainerProxy) CommitContainerHandle(ctx context.Context, handle, cont return nil } -func (c *ContainerProxy) InspectTask(op trace.Operation, handle string, eid string, cid string) (*models.TaskInspectResponse, error) { - defer trace.End(trace.Begin(fmt.Sprintf("handle(%s), eid(%s), cid(%s)", handle, eid, cid))) +func (c *VicContainerProxy) InspectTask(op trace.Operation, handle string, eid string, cid string) (*models.TaskInspectResponse, error) { + defer trace.End(trace.Begin(fmt.Sprintf("handle(%s), eid(%s), cid(%s)", handle, eid, cid), op)) + opID := op.ID() if c.client == nil { return nil, errors.NillPortlayerClientError("ContainerProxy") @@ -510,7 +546,7 @@ func (c *ContainerProxy) InspectTask(op trace.Operation, handle string, eid stri // FIXME: right now we are only using this path for exec targets. But later the error messages may need to be changed // to be more accurate. - params := tasks.NewInspectParamsWithContext(op).WithConfig(config) + params := tasks.NewInspectParamsWithContext(op).WithOpID(&opID).WithConfig(config) resp, err := c.client.Tasks.Inspect(params) if err != nil { switch err := err.(type) { @@ -529,8 +565,9 @@ func (c *ContainerProxy) InspectTask(op trace.Operation, handle string, eid stri return resp.Payload, nil } -func (c *ContainerProxy) BindTask(op trace.Operation, handle string, eid string) (string, error) { - defer trace.End(trace.Begin(fmt.Sprintf("handle(%s), eid(%s)", handle, eid))) +func (c *VicContainerProxy) BindTask(op trace.Operation, handle string, eid string) (string, error) { + defer trace.End(trace.Begin(fmt.Sprintf("handle(%s), eid(%s)", handle, eid), op)) + opID := op.ID() if c.client == nil { return "", errors.NillPortlayerClientError("ContainerProxy") @@ -540,7 +577,7 @@ func (c *ContainerProxy) BindTask(op trace.Operation, handle string, eid string) Handle: handle, ID: eid, } - bindparams := tasks.NewBindParamsWithContext(op).WithConfig(bindconfig) + bindparams := tasks.NewBindParamsWithContext(op).WithOpID(&opID).WithConfig(bindconfig) // call Bind with bindparams resp, err := c.client.Tasks.Bind(bindparams) @@ -569,28 +606,26 @@ func (c *ContainerProxy) BindTask(op trace.Operation, handle string, eid string) return respHandle, nil } -func (c *ContainerProxy) WaitTask(op trace.Operation, cid string, cname string, eid string) error { +func (c *VicContainerProxy) WaitTask(op trace.Operation, handle string, cid string, eid string) error { + defer trace.End(trace.Begin(fmt.Sprintf("handle(%s), cid(%s)", handle, cid), op)) + opID := op.ID() + if c.client == nil { return errors.NillPortlayerClientError("ContainerProxy") } - handle, err := c.Handle(op, cid, cname) - if err != nil { - return err - } - - // wait the Task to start + // wait for the Task to change in state config := &models.TaskWaitConfig{ Handle: handle, ID: eid, } - params := tasks.NewWaitParamsWithContext(op).WithConfig(config) - _, err = c.client.Tasks.Wait(params) + params := tasks.NewWaitParamsWithContext(op).WithOpID(&opID).WithConfig(config) + _, err := c.client.Tasks.Wait(params) if err != nil { switch err := err.(type) { case *tasks.WaitNotFound: - return errors.InternalServerError(fmt.Sprintf("the Container(%s) has been shutdown during execution of the exec operation", cid)) + return errors.InternalServerError(fmt.Sprintf("the container(%s) has been shutdown during execution of the exec operation", cid)) case *tasks.WaitPreconditionRequired: return errors.InternalServerError(fmt.Sprintf("container(%s) must be powered on in order to perform the desired exec operation", cid)) case *tasks.WaitInternalServerError: @@ -608,8 +643,10 @@ func (c *ContainerProxy) WaitTask(op trace.Operation, cid string, cname string, // // returns // error -func (c *ContainerProxy) Stop(ctx context.Context, vc *viccontainer.VicContainer, name string, seconds *int, unbound bool) error { - defer trace.End(trace.Begin(vc.ContainerID)) +func (c *VicContainerProxy) Stop(ctx context.Context, vc *viccontainer.VicContainer, name string, seconds *int, unbound bool) error { + op := trace.FromContext(ctx, "Stop: %s", name) + defer trace.End(trace.Begin(fmt.Sprintf("Name: %s, container id: %s", name, vc.ContainerID), op)) + opID := op.ID() if c.client == nil { return errors.NillPortlayerClientError("ContainerProxy") @@ -648,7 +685,11 @@ func (c *ContainerProxy) Stop(ctx context.Context, vc *viccontainer.VicContainer } // change the state of the container - changeParams := containers.NewStateChangeParamsWithContext(ctx).WithHandle(handle).WithState("STOPPED") + changeParams := containers.NewStateChangeParamsWithContext(ctx). + WithOpID(&opID). + WithHandle(handle). + WithState("STOPPED") + stateChangeResponse, err := c.client.Containers.StateChange(changeParams) if err != nil { switch err := err.(type) { @@ -682,20 +723,22 @@ func (c *ContainerProxy) Stop(ctx context.Context, vc *viccontainer.VicContainer } // UnbindContainerFromNetwork unbinds a container from the networks that it connects to -func (c *ContainerProxy) UnbindContainerFromNetwork(ctx context.Context, vc *viccontainer.VicContainer, handle string) (string, error) { - defer trace.End(trace.Begin(vc.ContainerID)) +func (c *VicContainerProxy) UnbindContainerFromNetwork(ctx context.Context, vc *viccontainer.VicContainer, handle string) (string, error) { + op := trace.FromContext(ctx, "UnbindContainerFromNetwork: %s", vc.ContainerID) + defer trace.End(trace.Begin(vc.ContainerID, op)) + opID := op.ID() if c.client == nil { return "", errors.NillPortlayerClientError("ContainerProxy") } - unbindParams := scopes.NewUnbindContainerParamsWithContext(ctx).WithHandle(handle) + unbindParams := scopes.NewUnbindContainerParamsWithContext(ctx).WithOpID(&opID).WithHandle(handle) ub, err := c.client.Scopes.UnbindContainer(unbindParams) if err != nil { switch err := err.(type) { case *scopes.UnbindContainerNotFound: // ignore error - log.Warnf("Container %s not found by network unbind", vc.ContainerID) + op.Warnf("Container %s not found by network unbind", vc.ContainerID) case *scopes.UnbindContainerInternalServerError: return "", errors.InternalServerError(err.Payload.Message) default: @@ -707,14 +750,18 @@ func (c *ContainerProxy) UnbindContainerFromNetwork(ctx context.Context, vc *vic } // State returns container state -func (c *ContainerProxy) State(ctx context.Context, vc *viccontainer.VicContainer) (*types.ContainerState, error) { - defer trace.End(trace.Begin("")) +func (c *VicContainerProxy) State(ctx context.Context, vc *viccontainer.VicContainer) (*types.ContainerState, error) { + op := trace.FromContext(ctx, "State: %s", vc.ContainerID) + defer trace.End(trace.Begin(vc.ContainerID, op)) + opID := op.ID() if c.client == nil { return nil, errors.NillPortlayerClientError("ContainerProxy") } - results, err := c.client.Containers.GetContainerInfo(containers.NewGetContainerInfoParamsWithContext(ctx).WithID(vc.ContainerID)) + results, err := c.client.Containers.GetContainerInfo(containers.NewGetContainerInfoParamsWithContext(ctx). + WithOpID(&opID). + WithID(vc.ContainerID)) if err != nil { switch err := err.(type) { case *containers.GetContainerInfoNotFound: @@ -734,14 +781,15 @@ func (c *ContainerProxy) State(ctx context.Context, vc *viccontainer.VicContaine } // GetStateFromHandle takes a handle and returns the state of the container based on that handle. Also returns handle that comes back with the response. -func (c *ContainerProxy) GetStateFromHandle(op trace.Operation, handle string) (string, string, error) { +func (c *VicContainerProxy) GetStateFromHandle(op trace.Operation, handle string) (string, string, error) { defer trace.End(trace.Begin(fmt.Sprintf("handle(%s)", handle), op)) + opID := op.ID() if c.client == nil { return "", "", errors.NillPortlayerClientError("ContainerProxy") } - params := containers.NewGetStateParams().WithHandle(handle) + params := containers.NewGetStateParams().WithOpID(&opID).WithHandle(handle) resp, err := c.client.Containers.GetState(params) if err != nil { switch err := err.(type) { @@ -756,14 +804,19 @@ func (c *ContainerProxy) GetStateFromHandle(op trace.Operation, handle string) ( } // ExitCode returns container exitCode -func (c *ContainerProxy) ExitCode(ctx context.Context, vc *viccontainer.VicContainer) (string, error) { - defer trace.End(trace.Begin("")) +func (c *VicContainerProxy) ExitCode(ctx context.Context, vc *viccontainer.VicContainer) (string, error) { + op := trace.FromContext(ctx, "ExitCode: %s", vc.ContainerID) + defer trace.End(trace.Begin(vc.ContainerID, op)) + opID := op.ID() if c.client == nil { return "", errors.NillPortlayerClientError("ContainerProxy") } - results, err := c.client.Containers.GetContainerInfo(containers.NewGetContainerInfoParamsWithContext(ctx).WithID(vc.ContainerID)) + results, err := c.client.Containers.GetContainerInfo(containers.NewGetContainerInfoParamsWithContext(ctx). + WithOpID(&opID). + WithID(vc.ContainerID)) + if err != nil { switch err := err.(type) { case *containers.GetContainerInfoNotFound: @@ -783,8 +836,11 @@ func (c *ContainerProxy) ExitCode(ctx context.Context, vc *viccontainer.VicConta return strconv.Itoa(dockerState.ExitCode), nil } -func (c *ContainerProxy) Wait(ctx context.Context, vc *viccontainer.VicContainer, timeout time.Duration) ( +func (c *VicContainerProxy) Wait(ctx context.Context, vc *viccontainer.VicContainer, timeout time.Duration) ( *types.ContainerState, error) { + op := trace.FromContext(ctx, "Wait: %s", vc.ContainerID) + defer trace.End(trace.Begin(vc.ContainerID, op)) + opID := op.ID() defer trace.End(trace.Begin(vc.ContainerID)) @@ -798,8 +854,10 @@ func (c *ContainerProxy) Wait(ctx context.Context, vc *viccontainer.VicContainer } params := containers.NewContainerWaitParamsWithContext(ctx). + WithOpID(&opID). WithTimeout(int64(timeout.Seconds())). WithID(vc.ContainerID) + results, err := c.client.Containers.ContainerWait(params) if err != nil { switch err := err.(type) { @@ -826,8 +884,10 @@ func (c *ContainerProxy) Wait(ctx context.Context, vc *viccontainer.VicContainer return dockerState, nil } -func (c *ContainerProxy) Signal(ctx context.Context, vc *viccontainer.VicContainer, sig uint64) error { - defer trace.End(trace.Begin(vc.ContainerID)) +func (c *VicContainerProxy) Signal(ctx context.Context, vc *viccontainer.VicContainer, sig uint64) error { + op := trace.FromContext(ctx, "Signal: %s", vc.ContainerID) + defer trace.End(trace.Begin(vc.ContainerID, op)) + opID := op.ID() if vc == nil { return errors.InternalServerError("Signal bad arguments") @@ -845,7 +905,11 @@ func (c *ContainerProxy) Signal(ctx context.Context, vc *viccontainer.VicContain if sig == 0 { sig = uint64(syscall.SIGKILL) } - params := containers.NewContainerSignalParamsWithContext(ctx).WithID(vc.ContainerID).WithSignal(int64(sig)) + params := containers.NewContainerSignalParamsWithContext(ctx). + WithOpID(&opID). + WithID(vc.ContainerID). + WithSignal(int64(sig)) + if _, err := c.client.Containers.ContainerSignal(params); err != nil { switch err := err.(type) { case *containers.ContainerSignalNotFound: @@ -867,7 +931,11 @@ func (c *ContainerProxy) Signal(ctx context.Context, vc *viccontainer.VicContain return nil } -func (c *ContainerProxy) Resize(ctx context.Context, id string, height, width int32) error { +func (c *VicContainerProxy) Resize(ctx context.Context, id string, height, width int32) error { + op := trace.FromContext(ctx, "Resize: %s", id) + defer trace.End(trace.Begin(id, op)) + opID := op.ID() + defer trace.End(trace.Begin(id)) if c.client == nil { @@ -875,6 +943,7 @@ func (c *ContainerProxy) Resize(ctx context.Context, id string, height, width in } plResizeParam := interaction.NewContainerResizeParamsWithContext(ctx). + WithOpID(&opID). WithID(id). WithHeight(height). WithWidth(width) @@ -894,8 +963,10 @@ func (c *ContainerProxy) Resize(ctx context.Context, id string, height, width in // Rename calls the portlayer's RenameContainerHandler to update the container name in the handle, // and then commit the new name to vSphere -func (c *ContainerProxy) Rename(ctx context.Context, vc *viccontainer.VicContainer, newName string) error { - defer trace.End(trace.Begin(vc.ContainerID)) +func (c *VicContainerProxy) Rename(ctx context.Context, vc *viccontainer.VicContainer, newName string) error { + op := trace.FromContext(ctx, "Rename: %s", vc.ContainerID) + defer trace.End(trace.Begin(vc.ContainerID, op)) + opID := op.ID() //retrieve client to portlayer handle, err := c.Handle(context.TODO(), vc.ContainerID, vc.Name) @@ -908,7 +979,11 @@ func (c *ContainerProxy) Rename(ctx context.Context, vc *viccontainer.VicContain } // Call the rename functionality in the portlayer. - renameParams := containers.NewContainerRenameParamsWithContext(ctx).WithName(newName).WithHandle(handle) + renameParams := containers.NewContainerRenameParamsWithContext(ctx). + WithOpID(&opID). + WithName(newName). + WithHandle(handle) + result, err := c.client.Containers.ContainerRename(renameParams) if err != nil { switch err := err.(type) { @@ -942,15 +1017,19 @@ func (c *ContainerProxy) Rename(ctx context.Context, vc *viccontainer.VicContain // Remove calls the portlayer's ContainerRemove handler to remove the container and its // anonymous volumes if the remove flag is set. -func (c *ContainerProxy) Remove(ctx context.Context, vc *viccontainer.VicContainer, config *types.ContainerRmConfig) error { - defer trace.End(trace.Begin(vc.ContainerID)) +func (c *VicContainerProxy) Remove(ctx context.Context, vc *viccontainer.VicContainer, config *types.ContainerRmConfig) error { + op := trace.FromContext(ctx, "Remove: %s", vc.ContainerID) + defer trace.End(trace.Begin(vc.ContainerID, op)) + opID := op.ID() if c.client == nil { return errors.NillPortlayerClientError("ContainerProxy") } id := vc.ContainerID - _, err := c.client.Containers.ContainerRemove(containers.NewContainerRemoveParamsWithContext(ctx).WithID(id)) + _, err := c.client.Containers.ContainerRemove(containers.NewContainerRemoveParamsWithContext(ctx). + WithOpID(&opID). + WithID(id)) if err != nil { switch err := err.(type) { case *containers.ContainerRemoveNotFound: diff --git a/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/storage_proxy.go b/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/storage_proxy.go index 78ae07d83..e520a4872 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/storage_proxy.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/storage_proxy.go @@ -39,20 +39,22 @@ import ( "github.com/vmware/vic/pkg/trace" ) -type VicStorageProxy interface { +type StorageProxy interface { Create(ctx context.Context, name, driverName string, volumeData, labels map[string]string) (*types.Volume, error) + VolumeExist(ctx context.Context, name string) (bool, error) VolumeList(ctx context.Context, filter string) ([]*models.VolumeResponse, error) VolumeInfo(ctx context.Context, name string) (*models.VolumeResponse, error) Remove(ctx context.Context, name string) error + VolumeJoin(ctx context.Context, handle, volName, mountPath string, flags map[string]string) (string, error) AddVolumesToContainer(ctx context.Context, handle string, config types.ContainerCreateConfig) (string, error) } -type StorageProxy struct { +type VicStorageProxy struct { client *client.PortLayer } -type volumeFields struct { +type VolumeFields struct { ID string Dest string Flags string @@ -96,26 +98,27 @@ var SupportedVolDrivers = map[string]struct{}{ //Validation pattern for Volume Names var volumeNameRegex = regexp.MustCompile("^[a-zA-Z0-9][a-zA-Z0-9_.-]*$") -func NewStorageProxy(client *client.PortLayer) VicStorageProxy { +func NewStorageProxy(client *client.PortLayer) *VicStorageProxy { if client == nil { return nil } - return &StorageProxy{client: client} + return &VicStorageProxy{client: client} } -func (s *StorageProxy) Create(ctx context.Context, name, driverName string, volumeData, labels map[string]string) (*types.Volume, error) { - defer trace.End(trace.Begin("")) +func (s *VicStorageProxy) Create(ctx context.Context, name, driverName string, volumeData, labels map[string]string) (*types.Volume, error) { + op := trace.FromContext(ctx, "VolumeCreate: %s", name) + defer trace.End(trace.Begin(name, op)) if s.client == nil { return nil, errors.NillPortlayerClientError("StorageProxy") } - result, err := s.volumeCreate(ctx, name, driverName, volumeData, labels) + result, err := s.volumeCreate(op, name, driverName, volumeData, labels) if err != nil { switch err := err.(type) { case *storage.CreateVolumeConflict: - return result, errors.VolumeInternalServerError(fmt.Errorf("A volume named %s already exists. Choose a different volume name.", name)) + return result, errors.VolumeExistError{Volume: name} case *storage.CreateVolumeNotFound: return result, errors.VolumeInternalServerError(fmt.Errorf("No volume store named (%s) exists", volumeStore(volumeData))) case *storage.CreateVolumeInternalServerError: @@ -132,8 +135,9 @@ func (s *StorageProxy) Create(ctx context.Context, name, driverName string, volu } // volumeCreate issues a CreateVolume request to the portlayer -func (s *StorageProxy) volumeCreate(ctx context.Context, name, driverName string, volumeData, labels map[string]string) (*types.Volume, error) { - defer trace.End(trace.Begin("")) +func (s *VicStorageProxy) volumeCreate(op trace.Operation, name, driverName string, volumeData, labels map[string]string) (*types.Volume, error) { + defer trace.End(trace.Begin(name, op)) + opID := op.ID() result := &types.Volume{} if s.client == nil { @@ -150,9 +154,9 @@ func (s *StorageProxy) volumeCreate(ctx context.Context, name, driverName string if varErr != nil { return result, varErr } - log.Infof("Finalized model for volume create request to portlayer: %#v", req) + op.Infof("Finalized model for volume create request to portlayer: %#v", req) - res, err := s.client.Storage.CreateVolume(storage.NewCreateVolumeParamsWithContext(ctx).WithVolumeRequest(req)) + res, err := s.client.Storage.CreateVolume(storage.NewCreateVolumeParamsWithContext(op).WithOpID(&opID).WithVolumeRequest(req)) if err != nil { return result, err } @@ -160,14 +164,31 @@ func (s *StorageProxy) volumeCreate(ctx context.Context, name, driverName string return NewVolumeModel(res.Payload, labels), nil } -func (s *StorageProxy) VolumeList(ctx context.Context, filter string) ([]*models.VolumeResponse, error) { - defer trace.End(trace.Begin("")) +func (s *VicStorageProxy) VolumeExist(ctx context.Context, name string) (bool, error) { + defer trace.End(trace.Begin(name)) + + vols, err := s.VolumeList(ctx, "") + if err == nil { + for _, v := range vols { + if name == v.Name { + return true, nil + } + } + } + + return false, err +} + +func (s *VicStorageProxy) VolumeList(ctx context.Context, filter string) ([]*models.VolumeResponse, error) { + op := trace.FromContext(ctx, "VolumeList") + defer trace.End(trace.Begin("", op)) + opID := op.ID() if s.client == nil { return nil, errors.NillPortlayerClientError("StorageProxy") } - res, err := s.client.Storage.ListVolumes(storage.NewListVolumesParamsWithContext(ctx).WithFilterString(&filter)) + res, err := s.client.Storage.ListVolumes(storage.NewListVolumesParamsWithContext(op).WithOpID(&opID).WithFilterString(&filter)) if err != nil { switch err := err.(type) { case *storage.ListVolumesInternalServerError: @@ -182,8 +203,10 @@ func (s *StorageProxy) VolumeList(ctx context.Context, filter string) ([]*models return res.Payload, nil } -func (s *StorageProxy) VolumeInfo(ctx context.Context, name string) (*models.VolumeResponse, error) { - defer trace.End(trace.Begin(name)) +func (s *VicStorageProxy) VolumeInfo(ctx context.Context, name string) (*models.VolumeResponse, error) { + op := trace.FromContext(ctx, "VolumeInfo: %s", name) + defer trace.End(trace.Begin(name, op)) + opID := op.ID() if name == "" { return nil, nil @@ -193,7 +216,7 @@ func (s *StorageProxy) VolumeInfo(ctx context.Context, name string) (*models.Vol return nil, errors.NillPortlayerClientError("StorageProxy") } - param := storage.NewGetVolumeParamsWithContext(ctx).WithName(name) + param := storage.NewGetVolumeParamsWithContext(op).WithOpID(&opID).WithName(name) res, err := s.client.Storage.GetVolume(param) if err != nil { switch err := err.(type) { @@ -207,14 +230,16 @@ func (s *StorageProxy) VolumeInfo(ctx context.Context, name string) (*models.Vol return res.Payload, nil } -func (s *StorageProxy) Remove(ctx context.Context, name string) error { - defer trace.End(trace.Begin(name)) +func (s *VicStorageProxy) Remove(ctx context.Context, name string) error { + op := trace.FromContext(ctx, "VolumeRemove: %s", name) + defer trace.End(trace.Begin(name, op)) + opID := op.ID() if s.client == nil { return errors.NillPortlayerClientError("StorageProxy") } - _, err := s.client.Storage.RemoveVolume(storage.NewRemoveVolumeParamsWithContext(ctx).WithName(name)) + _, err := s.client.Storage.RemoveVolume(storage.NewRemoveVolumeParamsWithContext(op).WithOpID(&opID).WithName(name)) if err != nil { switch err := err.(type) { case *storage.RemoveVolumeNotFound: @@ -236,16 +261,17 @@ func (s *StorageProxy) Remove(ctx context.Context, name string) error { // // returns: // modified handle -func (s *StorageProxy) AddVolumesToContainer(ctx context.Context, handle string, config types.ContainerCreateConfig) (string, error) { - defer trace.End(trace.Begin(handle)) +func (s *VicStorageProxy) AddVolumesToContainer(ctx context.Context, handle string, config types.ContainerCreateConfig) (string, error) { + op := trace.FromContext(ctx, "AddVolumesToContainer: %s", handle) + defer trace.End(trace.Begin(handle, op)) if s.client == nil { return "", errors.NillPortlayerClientError("StorageProxy") } // Volume Attachment Section - log.Debugf("ContainerProxy.AddVolumesToContainer - VolumeSection") - log.Debugf("Raw volume arguments: binds: %#v, volumes: %#v", config.HostConfig.Binds, config.Config.Volumes) + op.Debugf("ContainerProxy.AddVolumesToContainer - VolumeSection") + op.Debugf("Raw volume arguments: binds: %#v, volumes: %#v", config.HostConfig.Binds, config.Config.Volumes) // Collect all volume mappings. In a docker create/run, they // can be anonymous (-v /dir) or specific (-v vol-name:/dir). @@ -260,7 +286,7 @@ func (s *StorageProxy) AddVolumesToContainer(ctx context.Context, handle string, if err != nil { return handle, errors.BadRequestError(err.Error()) } - log.Infof("Finalized volume list: %#v", volList) + op.Infof("Finalized volume list: %#v", volList) if len(config.Config.Volumes) > 0 { // override anonymous volume list with generated volume id @@ -269,7 +295,7 @@ func (s *StorageProxy) AddVolumesToContainer(ctx context.Context, handle string, delete(config.Config.Volumes, vol.Dest) mount := getMountString(vol.ID, vol.Dest, vol.Flags) config.Config.Volumes[mount] = struct{}{} - log.Debugf("Replace anonymous volume config %s with %s", vol.Dest, mount) + op.Debugf("Replace anonymous volume config %s with %s", vol.Dest, mount) } } } @@ -285,59 +311,75 @@ func (s *StorageProxy) AddVolumesToContainer(ctx context.Context, handle string, // NOTE: calling volumeCreate regardless of whether the volume is already // present can be avoided by adding an extra optional param to VolumeJoin, // which would then call volumeCreate if the volume does not exist. - _, err := s.volumeCreate(ctx, fields.ID, "vsphere", volumeData, nil) - if err != nil { - switch err := err.(type) { - case *storage.CreateVolumeConflict: - // Implicitly ignore the error where a volume with the same name - // already exists. We can just join the said volume to the container. - log.Infof("a volume with the name %s already exists", fields.ID) - case *storage.CreateVolumeNotFound: - return handle, errors.VolumeCreateNotFoundError(volumeStore(volumeData)) - default: - return handle, errors.InternalServerError(err.Error()) - } - } else { - log.Infof("volumeCreate succeeded. Volume mount section ID: %s", fields.ID) + _, err := s.Create(op, fields.ID, "vsphere", volumeData, nil) + if err != nil && !errors.IsVolumeExistError(err) { + return handle, err } flags := make(map[string]string) //NOTE: for now we are passing the flags directly through. This is NOT SAFE and only a stop gap. flags[constants.Mode] = fields.Flags - joinParams := storage.NewVolumeJoinParamsWithContext(ctx).WithJoinArgs(&models.VolumeJoinConfig{ - Flags: flags, - Handle: handle, - MountPath: fields.Dest, - }).WithName(fields.ID) - - res, err := s.client.Storage.VolumeJoin(joinParams) + h, err := s.VolumeJoin(op, handle, fields.ID, fields.Dest, flags) if err != nil { - switch err := err.(type) { - case *storage.VolumeJoinInternalServerError: - return handle, errors.InternalServerError(err.Payload.Message) - case *storage.VolumeJoinDefault: - return handle, errors.InternalServerError(err.Payload.Message) - case *storage.VolumeJoinNotFound: - return handle, errors.VolumeJoinNotFoundError(err.Payload.Message) - default: - return handle, errors.InternalServerError(err.Error()) - } + return handle, err } - handle = res.Payload + handle = h } return handle, nil } +// VolumeJoin declares a volume mount for a container. This should be called on container create. +func (s *VicStorageProxy) VolumeJoin(ctx context.Context, handle, volName, mountPath string, flags map[string]string) (string, error) { + op := trace.FromContext(ctx, "VolumeJoin: %s", handle) + defer trace.End(trace.Begin(handle, op)) + opID := op.ID() + + if s.client == nil { + return "", errors.NillPortlayerClientError("StorageProxy") + } + + joinParams := storage.NewVolumeJoinParamsWithContext(op). + WithOpID(&opID). + WithJoinArgs(&models.VolumeJoinConfig{ + Flags: flags, + Handle: handle, + MountPath: mountPath, + }).WithName(volName) + + res, err := s.client.Storage.VolumeJoin(joinParams) + if err != nil { + switch err := err.(type) { + case *storage.VolumeJoinInternalServerError: + return handle, errors.InternalServerError(err.Payload.Message) + case *storage.VolumeJoinDefault: + return handle, errors.InternalServerError(err.Payload.Message) + case *storage.VolumeJoinNotFound: + return handle, errors.VolumeJoinNotFoundError(err.Payload.Message) + default: + return handle, errors.InternalServerError(err.Error()) + } + } + + handle = res.Payload + + return handle, nil +} + // allContainers obtains all containers from the portlayer, akin to `docker ps -a`. -func (s *StorageProxy) allContainers(ctx context.Context) ([]*models.ContainerInfo, error) { +func (s *VicStorageProxy) allContainers(op trace.Operation) ([]*models.ContainerInfo, error) { + defer trace.End(trace.Begin("", op)) + opID := op.ID() + if s.client == nil { return nil, errors.NillPortlayerClientError("StorageProxy") } all := true - cons, err := s.client.Containers.GetContainerList(containers.NewGetContainerListParamsWithContext(ctx).WithAll(&all)) + cons, err := s.client.Containers.GetContainerList(containers.NewGetContainerListParamsWithContext(op). + WithOpID(&opID). + WithAll(&all)) if err != nil { return nil, err } @@ -347,8 +389,9 @@ func (s *StorageProxy) allContainers(ctx context.Context) ([]*models.ContainerIn // fetchJoinedVolumes obtains all containers from the portlayer and returns a map with all // volumes that are joined to at least one container. -func (s *StorageProxy) fetchJoinedVolumes(ctx context.Context) (map[string]struct{}, error) { - conts, err := s.allContainers(ctx) +func (s *VicStorageProxy) fetchJoinedVolumes(op trace.Operation) (map[string]struct{}, error) { + defer trace.End(trace.Begin("", op)) + conts, err := s.allContainers(op) if err != nil { return nil, errors.VolumeInternalServerError(err) } @@ -410,6 +453,10 @@ func createVolumeMetadata(req *models.VolumeRequest, driverargs, labels map[stri // to at least one other container, and calls the portlayer to remove this container's // anonymous volumes if they are dangling. Errors, if any, are only logged. func RemoveAnonContainerVols(ctx context.Context, pl *client.PortLayer, cID string, vc *viccontainer.VicContainer) { + op := trace.FromContext(ctx, "RemoveAnonContainerVols: %s", cID) + defer trace.End(trace.Begin(cID, op)) + opID := op.ID() + // NOTE: these strings come in the form of :: volumes := vc.Config.Volumes // NOTE: these strings come in the form of : @@ -420,17 +467,17 @@ func RemoveAnonContainerVols(ctx context.Context, pl *client.PortLayer, cID stri for _, entry := range namedVolumes { fields := strings.SplitN(entry, ":", 2) if len(fields) != 2 { - log.Errorf("Invalid entry in the HostConfig.Binds metadata section for container %s: %s", cID, entry) + op.Errorf("Invalid entry in the HostConfig.Binds metadata section for container %s: %s", cID, entry) continue } destPath := fields[1] namedMaskList[destPath] = struct{}{} } - proxy := StorageProxy{client: pl} - joinedVols, err := proxy.fetchJoinedVolumes(ctx) + proxy := VicStorageProxy{client: pl} + joinedVols, err := proxy.fetchJoinedVolumes(op) if err != nil { - log.Errorf("Unable to obtain joined volumes from portlayer, skipping removal of anonymous volumes for %s: %s", cID, err.Error()) + op.Errorf("Unable to obtain joined volumes from portlayer, skipping removal of anonymous volumes for %s: %s", cID, err.Error()) return } @@ -440,7 +487,7 @@ func RemoveAnonContainerVols(ctx context.Context, pl *client.PortLayer, cID stri // NOTE(mavery): this check will start to fail when we fix our metadata correctness issues if len(volFields) != 3 { - log.Debugf("Invalid entry in the volumes metadata section for container %s: %s", cID, vol) + op.Debugf("Invalid entry in the volumes metadata section for container %s: %s", cID, vol) continue } volName := volFields[0] @@ -449,27 +496,27 @@ func RemoveAnonContainerVols(ctx context.Context, pl *client.PortLayer, cID stri _, isNamed := namedMaskList[volPath] _, joined := joinedVols[volName] if !joined && !isNamed { - _, err := pl.Storage.RemoveVolume(storage.NewRemoveVolumeParamsWithContext(ctx).WithName(volName)) + _, err := pl.Storage.RemoveVolume(storage.NewRemoveVolumeParamsWithContext(op).WithOpID(&opID).WithName(volName)) if err != nil { - log.Debugf("Unable to remove anonymous volume %s in container %s: %s", volName, cID, err.Error()) + op.Debugf("Unable to remove anonymous volume %s in container %s: %s", volName, cID, err.Error()) continue } - log.Debugf("Successfully removed anonymous volume %s during remove operation against container(%s)", volName, cID) + op.Debugf("Successfully removed anonymous volume %s during remove operation against container(%s)", volName, cID) } } } -// processVolumeParam is used to turn any call from docker create -v into a volumeFields object. +// processVolumeParam is used to turn any call from docker create -v into a VolumeFields object. // The -v has 3 forms. -v , -v : and // -v :: -func processVolumeParam(volString string) (volumeFields, error) { +func processVolumeParam(volString string) (VolumeFields, error) { volumeStrings := strings.Split(volString, ":") - fields := volumeFields{} + fields := VolumeFields{} // Error out if the intended volume is a directory on the client filesystem. numVolParams := len(volumeStrings) if numVolParams > 1 && strings.HasPrefix(volumeStrings[0], "/") { - return volumeFields{}, errors.InvalidVolumeError{} + return VolumeFields{}, errors.InvalidVolumeError{} } // This switch determines which type of -v was invoked. @@ -492,7 +539,7 @@ func processVolumeParam(volString string) (volumeFields, error) { fields.Flags = volumeStrings[2] default: // NOTE: the docker cli should cover this case. This is here for posterity. - return volumeFields{}, errors.InvalidBindError{Volume: volString} + return VolumeFields{}, errors.InvalidBindError{Volume: volString} } return fields, nil } @@ -500,8 +547,8 @@ func processVolumeParam(volString string) (volumeFields, error) { // processVolumeFields parses fields for volume mappings specified in a create/run -v. // It returns a map of unique mountable volumes. This means that it removes dupes favoring // specified volumes over anonymous volumes. -func processVolumeFields(volumes []string) (map[string]volumeFields, error) { - volumeFields := make(map[string]volumeFields) +func processVolumeFields(volumes []string) (map[string]VolumeFields, error) { + vf := make(map[string]VolumeFields) for _, v := range volumes { fields, err := processVolumeParam(v) @@ -509,12 +556,12 @@ func processVolumeFields(volumes []string) (map[string]volumeFields, error) { if err != nil { return nil, err } - volumeFields[fields.Dest] = fields + vf[fields.Dest] = fields } - return volumeFields, nil + return vf, nil } -func finalizeVolumeList(specifiedVolumes, anonymousVolumes []string) ([]volumeFields, error) { +func finalizeVolumeList(specifiedVolumes, anonymousVolumes []string) ([]VolumeFields, error) { log.Infof("Specified Volumes : %#v", specifiedVolumes) processedVolumes, err := processVolumeFields(specifiedVolumes) if err != nil { @@ -532,7 +579,7 @@ func finalizeVolumeList(specifiedVolumes, anonymousVolumes []string) ([]volumeFi processedAnonVolumes[k] = v } - finalizedVolumes := make([]volumeFields, 0, len(processedAnonVolumes)) + finalizedVolumes := make([]VolumeFields, 0, len(processedAnonVolumes)) for _, v := range processedAnonVolumes { finalizedVolumes = append(finalizedVolumes, v) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/stream_proxy.go b/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/stream_proxy.go index 12c12df8e..37393ca6f 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/stream_proxy.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/stream_proxy.go @@ -22,7 +22,6 @@ import ( "sync" "time" - log "github.com/Sirupsen/logrus" "github.com/go-openapi/strfmt" "github.com/docker/docker/api/types/backend" @@ -33,16 +32,18 @@ import ( "github.com/vmware/vic/lib/apiservers/portlayer/client" "github.com/vmware/vic/lib/apiservers/portlayer/client/containers" "github.com/vmware/vic/lib/apiservers/portlayer/client/interaction" + "github.com/vmware/vic/lib/apiservers/portlayer/client/events" "github.com/vmware/vic/pkg/trace" ) -type VicStreamProxy interface { - AttachStreams(ctx context.Context, ac *AttachConfig, stdin io.ReadCloser, stdout, stderr io.Writer) error +type StreamProxy interface { + AttachStreams(ctx context.Context, ac *AttachConfig, stdin io.ReadCloser, stdout, stderr io.Writer, autoclose bool) error StreamContainerLogs(ctx context.Context, name string, out io.Writer, started chan struct{}, showTimestamps bool, followLogs bool, since int64, tailLines int64) error StreamContainerStats(ctx context.Context, config *convert.ContainerStatsConfig) error + StreamEvents(ctx context.Context, out io.Writer) error } -type StreamProxy struct { +type VicStreamProxy struct { client *client.PortLayer } @@ -70,14 +71,18 @@ type AttachConfig struct { CloseStdin bool } -func NewStreamProxy(client *client.PortLayer) VicStreamProxy { - return &StreamProxy{client: client} +func NewStreamProxy(client *client.PortLayer) *VicStreamProxy { + return &VicStreamProxy{client: client} } // AttachStreams takes the the hijacked connections from the calling client and attaches // them to the 3 streams from the portlayer's rest server. // stdin, stdout, stderr are the hijacked connection -func (s *StreamProxy) AttachStreams(ctx context.Context, ac *AttachConfig, stdin io.ReadCloser, stdout, stderr io.Writer) error { +// autoclose controls whether the underlying client transport will be closed when stdout/stderr +func (s *VicStreamProxy) AttachStreams(ctx context.Context, ac *AttachConfig, stdin io.ReadCloser, stdout, stderr io.Writer, autoclose bool) error { + op := trace.FromContext(ctx, "") + defer trace.End(trace.Begin("", op)) + // Cancel will close the child connections. var wg, outWg sync.WaitGroup @@ -96,10 +101,11 @@ func (s *StreamProxy) AttachStreams(ctx context.Context, ac *AttachConfig, stdin } } - ctx, cancel := context.WithCancel(ctx) + ctx, cancel := context.WithCancel(op) defer cancel() - if ac.UseStdin { + if ac.UseStdin && autoclose { + // if we're not autoclosing then we don't want to block waiting for copyStdin to exit wg.Add(1) } @@ -125,22 +131,26 @@ func (s *StreamProxy) AttachStreams(ctx context.Context, ac *AttachConfig, stdin if ac.UseStdin { go func() { - defer wg.Done() - err := copyStdIn(ctx, s.client, ac, stdin, keys) + if autoclose { + defer wg.Done() + } + err := copyStdIn(ctx, s.client, ac, stdin, keys, autoclose) if err != nil { - log.Errorf("container attach: stdin (%s): %s", ac.ID, err) + op.Errorf("container attach: stdin (%s): %s", ac.ID, err) } else { - log.Infof("container attach: stdin (%s) done", ac.ID) + op.Infof("container attach: stdin (%s) done", ac.ID) + } + + // Check for EOF or canceled context. We can only detect EOF by checking the error string returned by swagger :/ + // We check this before calling cancel so that we will be sure to return detach errors before stdout/err exits, + // even in the !autoclose case. + if EOForCanceled(err) { + errChan <- err } if !ac.CloseStdin || ac.UseTty { cancel() } - - // Check for EOF or canceled context. We can only detect EOF by checking the error string returned by swagger :/ - if EOForCanceled(err) { - errChan <- err - } }() } @@ -151,9 +161,9 @@ func (s *StreamProxy) AttachStreams(ctx context.Context, ac *AttachConfig, stdin err := copyStdOut(ctx, s.client, ac, stdout, attachAttemptTimeout) if err != nil { - log.Errorf("container attach: stdout (%s): %s", ac.ID, err) + op.Errorf("container attach: stdout (%s): %s", ac.ID, err) } else { - log.Infof("container attach: stdout (%s) done", ac.ID) + op.Infof("container attach: stdout (%s) done", ac.ID) } // Check for EOF or canceled context. We can only detect EOF by checking the error string returned by swagger :/ @@ -170,9 +180,9 @@ func (s *StreamProxy) AttachStreams(ctx context.Context, ac *AttachConfig, stdin err := copyStdErr(ctx, s.client, ac, stderr) if err != nil { - log.Errorf("container attach: stderr (%s): %s", ac.ID, err) + op.Errorf("container attach: stderr (%s): %s", ac.ID, err) } else { - log.Infof("container attach: stderr (%s) done", ac.ID) + op.Infof("container attach: stderr (%s) done", ac.ID) } // Check for EOF or canceled context. We can only detect EOF by checking the error string returned by swagger :/ @@ -188,12 +198,12 @@ func (s *StreamProxy) AttachStreams(ctx context.Context, ac *AttachConfig, stdin // close the channel so that we don't leak (if there is an error)/or get blocked (if there are no errors) close(errChan) - log.Infof("cleaned up connections to %s. Checking errors", ac.ID) + op.Infof("cleaned up connections to %s", ac.ID) for err := range errChan { if err != nil { // check if we got DetachError if _, ok := err.(errors.DetachError); ok { - log.Infof("Detached from container detected") + op.Infof("Detached from container detected") return err } @@ -202,20 +212,21 @@ func (s *StreamProxy) AttachStreams(ctx context.Context, ac *AttachConfig, stdin // Go-swagger returns untyped errors to us if the error is not one that we define // in the swagger spec. Even EOF. Therefore, we must scan the error string (if there // is an error string in the untyped error) for the term EOF. - log.Errorf("container attach error: %s", err) + op.Errorf("container attach error: %s", err) return err } } - log.Infof("No error found. Returning nil...") return nil } // StreamContainerLogs reads the log stream from the portlayer rest server and writes // it directly to the io.Writer that is passed in. -func (s *StreamProxy) StreamContainerLogs(ctx context.Context, name string, out io.Writer, started chan struct{}, showTimestamps bool, followLogs bool, since int64, tailLines int64) error { - defer trace.End(trace.Begin("")) +func (s *VicStreamProxy) StreamContainerLogs(ctx context.Context, name string, out io.Writer, started chan struct{}, showTimestamps bool, followLogs bool, since int64, tailLines int64) error { + op := trace.FromContext(ctx, "") + defer trace.End(trace.Begin("", op)) + opID := op.ID() if s.client == nil { return errors.NillPortlayerClientError("StreamProxy") @@ -223,12 +234,13 @@ func (s *StreamProxy) StreamContainerLogs(ctx context.Context, name string, out close(started) - params := containers.NewGetContainerLogsParamsWithContext(ctx). + params := containers.NewGetContainerLogsParamsWithContext(op). WithID(name). WithFollow(&followLogs). WithTimestamp(&showTimestamps). WithSince(&since). - WithTaillines(&tailLines) + WithTaillines(&tailLines). + WithOpID(&opID) _, err := s.client.Containers.GetContainerLogs(params, out) if err != nil { switch err := err.(type) { @@ -253,8 +265,10 @@ func (s *StreamProxy) StreamContainerLogs(ctx context.Context, name string, out // StreamContainerStats will provide a stream of container stats written to the provided // io.Writer. Prior to writing to the provided io.Writer there will be a transformation // from the portLayer representation of stats to the docker format -func (s *StreamProxy) StreamContainerStats(ctx context.Context, config *convert.ContainerStatsConfig) error { - defer trace.End(trace.Begin(config.ContainerID)) +func (s *VicStreamProxy) StreamContainerStats(ctx context.Context, config *convert.ContainerStatsConfig) error { + op := trace.FromContext(ctx, "") + defer trace.End(trace.Begin(config.ContainerID, op)) + opID := op.ID() if s.client == nil { return errors.NillPortlayerClientError("StreamProxy") @@ -264,7 +278,7 @@ func (s *StreamProxy) StreamContainerStats(ctx context.Context, config *convert. ctx, cancel := context.WithCancel(ctx) defer cancel() - params := containers.NewGetContainerStatsParamsWithContext(ctx) + params := containers.NewGetContainerStatsParamsWithContext(op).WithOpID(&opID) params.ID = config.ContainerID params.Stream = config.Stream @@ -303,11 +317,48 @@ func (s *StreamProxy) StreamContainerStats(ctx context.Context, config *convert. return nil } +// StreamEvents() handles all swagger interaction to the Portlayer's event manager +// +// Input: +// context and a io.Writer +func (s *VicStreamProxy) StreamEvents(ctx context.Context, out io.Writer) error { + op := trace.FromContext(ctx, "") + defer trace.End(trace.Begin("", op)) + opID := op.ID() + + if s.client == nil { + return errors.NillPortlayerClientError("StreamProxy") + } + + params := events.NewGetEventsParamsWithContext(ctx).WithOpID(&opID) + if _, err := s.client.Events.GetEvents(params, out); err != nil { + switch err := err.(type) { + case *events.GetEventsInternalServerError: + return errors.InternalServerError("Server error from the events port layer") + default: + //Check for EOF. Since the connection, transport, and data handling are + //encapsulated inside of Swagger, we can only detect EOF by checking the + //error string + if strings.Contains(err.Error(), SwaggerSubstringEOF) { + return nil + } + return errors.InternalServerError(fmt.Sprintf("Unknown error from the interaction port layer: %s", err)) + } + } + + return nil +} + + //------------------------------------ // ContainerAttach() Utility Functions //------------------------------------ -func copyStdIn(ctx context.Context, pl *client.PortLayer, ac *AttachConfig, stdin io.ReadCloser, keys []byte) error { +func copyStdIn(ctx context.Context, pl *client.PortLayer, ac *AttachConfig, stdin io.ReadCloser, keys []byte, autoclose bool) error { + op := trace.FromContext(ctx, "") + defer trace.End(trace.Begin("", op)) + opID := op.ID() + // Pipe for stdin so we can interject and watch the input streams for detach keys. stdinReader, stdinWriter := io.Pipe() defer stdinReader.Close() @@ -315,26 +366,28 @@ func copyStdIn(ctx context.Context, pl *client.PortLayer, ac *AttachConfig, stdi var detach bool done := make(chan struct{}) - go func() { - // make sure we get out of io.Copy if context is canceled - select { - case <-ctx.Done(): - // This will cause the transport to the API client to be shut down, so all output - // streams will get closed as well. - // See the closer in container_routes.go:postContainersAttach + if autoclose { + go func() { + // make sure we get out of io.Copy if context is canceled + select { + case <-ctx.Done(): + // This will cause the transport to the API client to be shut down, so all output + // streams will get closed as well. + // See the closer in container_routes.go:postContainersAttach - // We're closing this here to disrupt the io.Copy below - // TODO: seems like we should be providing an io.Copy impl with ctx argument that honors - // cancelation with the amount of code dedicated to working around it + // We're closing this here to disrupt the io.Copy below + // TODO: seems like we should be providing an io.Copy impl with ctx argument that honors + // cancelation with the amount of code dedicated to working around it - // TODO: I think this still leaves a race between closing of the API client transport and - // copying of the output streams, it's just likely the error will be dropped as the transport is - // closed when it occurs. - // We should move away from needing to close transports to interrupt reads. - stdin.Close() - case <-done: - } - }() + // TODO: I think this still leaves a race between closing of the API client transport and + // copying of the output streams, it's just likely the error will be dropped as the transport is + // closed when it occurs. + // We should move away from needing to close transports to interrupt reads. + stdin.Close() + case <-done: + } + }() + } go func() { defer close(done) @@ -347,7 +400,7 @@ func copyStdIn(ctx context.Context, pl *client.PortLayer, ac *AttachConfig, stdi // Write some init bytes into the pipe to force Swagger to make the initial // call to the portlayer, prior to any user input in whatever attach client // he/she is using. - log.Debugf("copyStdIn writing primer bytes") + op.Debugf("copyStdIn writing primer bytes") stdinWriter.Write([]byte(attachStdinInitString)) if ac.UseTty { _, err = copyEscapable(stdinWriter, stdin, keys) @@ -357,10 +410,10 @@ func copyStdIn(ctx context.Context, pl *client.PortLayer, ac *AttachConfig, stdi if err != nil { if _, ok := err.(errors.DetachError); ok { - log.Infof("stdin detach detected") + op.Infof("stdin detach detected") detach = true } else { - log.Errorf("stdin err: %s", err) + op.Errorf("stdin err: %s", err) } } }() @@ -369,19 +422,21 @@ func copyStdIn(ctx context.Context, pl *client.PortLayer, ac *AttachConfig, stdi // Swagger wants an io.reader so give it the reader pipe. Also, the swagger call // to set the stdin is synchronous so we need to run in a goroutine - setStdinParams := interaction.NewContainerSetStdinParamsWithContext(ctx).WithID(id) - setStdinParams = setStdinParams.WithRawStream(stdinReader) + setStdinParams := interaction.NewContainerSetStdinParamsWithContext(op). + WithID(id). + WithRawStream(stdinReader). + WithOpID(&opID) _, err := pl.Interaction.ContainerSetStdin(setStdinParams) <-done if ac.CloseStdin && !ac.UseTty { // Close the stdin connection. Mimicing Docker's behavior. - log.Errorf("Attach stream has stdinOnce set. Closing the stdin.") + op.Errorf("Attach stream has stdinOnce set. Closing the stdin.") params := interaction.NewContainerCloseStdinParamsWithContext(ctx).WithID(id) _, err := pl.Interaction.ContainerCloseStdin(params) if err != nil { - log.Errorf("CloseStdin failed with %s", err) + op.Errorf("CloseStdin failed with %s", err) } } @@ -394,19 +449,21 @@ func copyStdIn(ctx context.Context, pl *client.PortLayer, ac *AttachConfig, stdi } func copyStdOut(ctx context.Context, pl *client.PortLayer, ac *AttachConfig, stdout io.Writer, attemptTimeout time.Duration) error { + op := trace.FromContext(ctx, "") + defer trace.End(trace.Begin("", op)) id := ac.ID //Calculate how much time to let portlayer attempt plAttemptTimeout := attemptTimeout - attachPLAttemptDiff //assumes personality deadline longer than portlayer's deadline plAttemptDeadline := time.Now().Add(plAttemptTimeout) swaggerDeadline := strfmt.DateTime(plAttemptDeadline) - log.Debugf("* stdout portlayer deadline: %s", plAttemptDeadline.Format(time.UnixDate)) - log.Debugf("* stdout personality deadline: %s", time.Now().Add(attemptTimeout).Format(time.UnixDate)) + op.Debugf("* stdout portlayer deadline: %s", plAttemptDeadline.Format(time.UnixDate)) + op.Debugf("* stdout personality deadline: %s", time.Now().Add(attemptTimeout).Format(time.UnixDate)) - log.Debugf("* stdout attach start %s", time.Now().Format(time.UnixDate)) + op.Debugf("* stdout attach start %s", time.Now().Format(time.UnixDate)) getStdoutParams := interaction.NewContainerGetStdoutParamsWithContext(ctx).WithID(id).WithDeadline(&swaggerDeadline) _, err := pl.Interaction.ContainerGetStdout(getStdoutParams, stdout) - log.Debugf("* stdout attach end %s", time.Now().Format(time.UnixDate)) + op.Debugf("* stdout attach end %s", time.Now().Format(time.UnixDate)) if err != nil { if _, ok := err.(*interaction.ContainerGetStdoutNotFound); ok { return errors.ContainerResourceNotFoundError(id, "interaction connection") diff --git a/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/system_proxy.go b/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/system_proxy.go index bdd569957..f9ffced1c 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/system_proxy.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/engine/proxy/system_proxy.go @@ -37,7 +37,6 @@ import ( "golang.org/x/net/context" - log "github.com/Sirupsen/logrus" derr "github.com/docker/docker/api/errors" "github.com/vmware/vic/lib/apiservers/engine/errors" @@ -48,36 +47,37 @@ import ( "github.com/vmware/vic/pkg/trace" ) -type VicSystemProxy interface { +type SystemProxy interface { PingPortlayer(ctx context.Context) bool ContainerCount(ctx context.Context) (int, int, int, error) VCHInfo(ctx context.Context) (*models.VCHInfo, error) } -type SystemProxy struct { +type VicSystemProxy struct { client *client.PortLayer } -func NewSystemProxy(client *client.PortLayer) VicSystemProxy { +func NewSystemProxy(client *client.PortLayer) *VicSystemProxy { if client == nil { return nil } - return &SystemProxy{client: client} + return &VicSystemProxy{client: client} } -func (s *SystemProxy) PingPortlayer(ctx context.Context) bool { - defer trace.End(trace.Begin("")) +func (s *VicSystemProxy) PingPortlayer(ctx context.Context) bool { + op := trace.FromContext(ctx, "") + defer trace.End(trace.Begin("", op)) if s.client == nil { - log.Errorf("Portlayer client is invalid") + op.Errorf("Portlayer client is invalid") return false } pingParams := misc.NewPingParamsWithContext(ctx) _, err := s.client.Misc.Ping(pingParams) if err != nil { - log.Info("Ping to portlayer failed") + op.Info("Ping to portlayer failed") return false } return true @@ -85,8 +85,10 @@ func (s *SystemProxy) PingPortlayer(ctx context.Context) bool { // Use the Portlayer's support for docker ps to get the container count // return order: running, paused, stopped counts -func (s *SystemProxy) ContainerCount(ctx context.Context) (int, int, int, error) { - defer trace.End(trace.Begin("")) +func (s *VicSystemProxy) ContainerCount(ctx context.Context) (int, int, int, error) { + op := trace.FromContext(ctx, "") + defer trace.End(trace.Begin("", op)) + opID := op.ID() var running, paused, stopped int @@ -95,7 +97,8 @@ func (s *SystemProxy) ContainerCount(ctx context.Context) (int, int, int, error) } all := true - containList, err := s.client.Containers.GetContainerList(containers.NewGetContainerListParamsWithContext(ctx).WithAll(&all)) + params := containers.NewGetContainerListParamsWithContext(ctx).WithAll(&all).WithOpID(&opID) + containList, err := s.client.Containers.GetContainerList(params) if err != nil { return 0, 0, 0, derr.NewErrorWithStatusCode(fmt.Errorf("Failed to get container list: %s", err), http.StatusInternalServerError) } @@ -112,14 +115,16 @@ func (s *SystemProxy) ContainerCount(ctx context.Context) (int, int, int, error) return running, paused, stopped, nil } -func (s *SystemProxy) VCHInfo(ctx context.Context) (*models.VCHInfo, error) { - defer trace.End(trace.Begin("")) +func (s *VicSystemProxy) VCHInfo(ctx context.Context) (*models.VCHInfo, error) { + op := trace.FromContext(ctx, "") + defer trace.End(trace.Begin("", op)) + opID := op.ID() if s.client == nil { return nil, errors.NillPortlayerClientError("SystemProxy") } - params := misc.NewGetVCHInfoParamsWithContext(ctx) + params := misc.NewGetVCHInfoParamsWithContext(ctx).WithOpID(&opID) resp, err := s.client.Misc.GetVCHInfo(params) if err != nil { //There are no custom error for this operation. If we get back an error, it's diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/commit_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/commit_parameters.go index 98526d9ea..16493d54b 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/commit_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/commit_parameters.go @@ -61,6 +61,8 @@ for the commit operation typically these are written to a http.Request */ type CommitParams struct { + /*OpID*/ + OpID *string /*Handle*/ Handle string /*WaitTime*/ @@ -104,6 +106,17 @@ func (o *CommitParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the commit params +func (o *CommitParams) WithOpID(opID *string) *CommitParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the commit params +func (o *CommitParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithHandle adds the handle to the commit params func (o *CommitParams) WithHandle(handle string) *CommitParams { o.SetHandle(handle) @@ -132,6 +145,15 @@ func (o *CommitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regist r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param handle if err := r.SetPathParam("handle", o.Handle); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/container_remove_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/container_remove_parameters.go index dd016ecbc..5a7bef1d0 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/container_remove_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/container_remove_parameters.go @@ -81,6 +81,8 @@ for the container remove operation typically these are written to a http.Request */ type ContainerRemoveParams struct { + /*OpID*/ + OpID *string /*Force*/ Force *bool /*ID*/ @@ -126,6 +128,17 @@ func (o *ContainerRemoveParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the container remove params +func (o *ContainerRemoveParams) WithOpID(opID *string) *ContainerRemoveParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the container remove params +func (o *ContainerRemoveParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithForce adds the force to the container remove params func (o *ContainerRemoveParams) WithForce(force *bool) *ContainerRemoveParams { o.SetForce(force) @@ -165,6 +178,15 @@ func (o *ContainerRemoveParams) WriteToRequest(r runtime.ClientRequest, reg strf r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Force != nil { // query param force diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/container_rename_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/container_rename_parameters.go index fac2fbb04..408ae879b 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/container_rename_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/container_rename_parameters.go @@ -60,6 +60,8 @@ for the container rename operation typically these are written to a http.Request */ type ContainerRenameParams struct { + /*OpID*/ + OpID *string /*Handle*/ Handle string /*Name @@ -106,6 +108,17 @@ func (o *ContainerRenameParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the container rename params +func (o *ContainerRenameParams) WithOpID(opID *string) *ContainerRenameParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the container rename params +func (o *ContainerRenameParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithHandle adds the handle to the container rename params func (o *ContainerRenameParams) WithHandle(handle string) *ContainerRenameParams { o.SetHandle(handle) @@ -134,6 +147,15 @@ func (o *ContainerRenameParams) WriteToRequest(r runtime.ClientRequest, reg strf r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param handle if err := r.SetPathParam("handle", o.Handle); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/container_signal_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/container_signal_parameters.go index c86911115..525749b39 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/container_signal_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/container_signal_parameters.go @@ -61,6 +61,8 @@ for the container signal operation typically these are written to a http.Request */ type ContainerSignalParams struct { + /*OpID*/ + OpID *string /*ID*/ ID string /*Signal*/ @@ -104,6 +106,17 @@ func (o *ContainerSignalParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the container signal params +func (o *ContainerSignalParams) WithOpID(opID *string) *ContainerSignalParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the container signal params +func (o *ContainerSignalParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithID adds the id to the container signal params func (o *ContainerSignalParams) WithID(id string) *ContainerSignalParams { o.SetID(id) @@ -132,6 +145,15 @@ func (o *ContainerSignalParams) WriteToRequest(r runtime.ClientRequest, reg strf r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param id if err := r.SetPathParam("id", o.ID); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/container_wait_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/container_wait_parameters.go index 79f4a86b1..003a6dd82 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/container_wait_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/container_wait_parameters.go @@ -61,6 +61,8 @@ for the container wait operation typically these are written to a http.Request */ type ContainerWaitParams struct { + /*OpID*/ + OpID *string /*ID*/ ID string /*Timeout*/ @@ -104,6 +106,17 @@ func (o *ContainerWaitParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the container wait params +func (o *ContainerWaitParams) WithOpID(opID *string) *ContainerWaitParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the container wait params +func (o *ContainerWaitParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithID adds the id to the container wait params func (o *ContainerWaitParams) WithID(id string) *ContainerWaitParams { o.SetID(id) @@ -132,6 +145,15 @@ func (o *ContainerWaitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt r.SetTimeout(o.requestTimeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param id if err := r.SetPathParam("id", o.ID); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/create_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/create_parameters.go index 6e4252b8e..f6a54c5b7 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/create_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/create_parameters.go @@ -62,6 +62,8 @@ for the create operation typically these are written to a http.Request */ type CreateParams struct { + /*OpID*/ + OpID *string /*CreateConfig*/ CreateConfig *models.ContainerCreateConfig /*Name*/ @@ -105,6 +107,17 @@ func (o *CreateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the create params +func (o *CreateParams) WithOpID(opID *string) *CreateParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the create params +func (o *CreateParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithCreateConfig adds the createConfig to the create params func (o *CreateParams) WithCreateConfig(createConfig *models.ContainerCreateConfig) *CreateParams { o.SetCreateConfig(createConfig) @@ -133,6 +146,15 @@ func (o *CreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regist r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.CreateConfig == nil { o.CreateConfig = new(models.ContainerCreateConfig) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_container_info_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_container_info_parameters.go index 73441399c..86d60322e 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_container_info_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_container_info_parameters.go @@ -60,6 +60,8 @@ for the get container info operation typically these are written to a http.Reque */ type GetContainerInfoParams struct { + /*OpID*/ + OpID *string /*ID*/ ID string @@ -101,6 +103,17 @@ func (o *GetContainerInfoParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the get container info params +func (o *GetContainerInfoParams) WithOpID(opID *string) *GetContainerInfoParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the get container info params +func (o *GetContainerInfoParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithID adds the id to the get container info params func (o *GetContainerInfoParams) WithID(id string) *GetContainerInfoParams { o.SetID(id) @@ -118,6 +131,15 @@ func (o *GetContainerInfoParams) WriteToRequest(r runtime.ClientRequest, reg str r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param id if err := r.SetPathParam("id", o.ID); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_container_list_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_container_list_parameters.go index b8b265417..1d5dcc331 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_container_list_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_container_list_parameters.go @@ -61,6 +61,8 @@ for the get container list operation typically these are written to a http.Reque */ type GetContainerListParams struct { + /*OpID*/ + OpID *string /*All*/ All *bool @@ -102,6 +104,17 @@ func (o *GetContainerListParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the get container list params +func (o *GetContainerListParams) WithOpID(opID *string) *GetContainerListParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the get container list params +func (o *GetContainerListParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithAll adds the all to the get container list params func (o *GetContainerListParams) WithAll(all *bool) *GetContainerListParams { o.SetAll(all) @@ -119,6 +132,15 @@ func (o *GetContainerListParams) WriteToRequest(r runtime.ClientRequest, reg str r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.All != nil { // query param all diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_container_logs_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_container_logs_parameters.go index 9fda8856c..c626376d8 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_container_logs_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_container_logs_parameters.go @@ -81,6 +81,8 @@ for the get container logs operation typically these are written to a http.Reque */ type GetContainerLogsParams struct { + /*OpID*/ + OpID *string /*Deadline*/ Deadline *int64 /*Follow*/ @@ -132,6 +134,17 @@ func (o *GetContainerLogsParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the get container logs params +func (o *GetContainerLogsParams) WithOpID(opID *string) *GetContainerLogsParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the get container logs params +func (o *GetContainerLogsParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithDeadline adds the deadline to the get container logs params func (o *GetContainerLogsParams) WithDeadline(deadline *int64) *GetContainerLogsParams { o.SetDeadline(deadline) @@ -204,6 +217,15 @@ func (o *GetContainerLogsParams) WriteToRequest(r runtime.ClientRequest, reg str r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Deadline != nil { // query param deadline diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_container_stats_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_container_stats_parameters.go index 9309e7006..f0e8eb732 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_container_stats_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_container_stats_parameters.go @@ -61,6 +61,8 @@ for the get container stats operation typically these are written to a http.Requ */ type GetContainerStatsParams struct { + /*OpID*/ + OpID *string /*ID*/ ID string /*Stream*/ @@ -104,6 +106,17 @@ func (o *GetContainerStatsParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the get container stats params +func (o *GetContainerStatsParams) WithOpID(opID *string) *GetContainerStatsParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the get container stats params +func (o *GetContainerStatsParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithID adds the id to the get container stats params func (o *GetContainerStatsParams) WithID(id string) *GetContainerStatsParams { o.SetID(id) @@ -132,6 +145,15 @@ func (o *GetContainerStatsParams) WriteToRequest(r runtime.ClientRequest, reg st r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param id if err := r.SetPathParam("id", o.ID); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_parameters.go index edbedfa02..d855e4f45 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_parameters.go @@ -60,6 +60,8 @@ for the get operation typically these are written to a http.Request */ type GetParams struct { + /*OpID*/ + OpID *string /*ID*/ ID string @@ -101,6 +103,17 @@ func (o *GetParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the get params +func (o *GetParams) WithOpID(opID *string) *GetParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the get params +func (o *GetParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithID adds the id to the get params func (o *GetParams) WithID(id string) *GetParams { o.SetID(id) @@ -118,6 +131,15 @@ func (o *GetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param id if err := r.SetPathParam("id", o.ID); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_state_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_state_parameters.go index 187260848..793adf99e 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_state_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/get_state_parameters.go @@ -60,6 +60,8 @@ for the get state operation typically these are written to a http.Request */ type GetStateParams struct { + /*OpID*/ + OpID *string /*Handle*/ Handle string @@ -101,6 +103,17 @@ func (o *GetStateParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the get state params +func (o *GetStateParams) WithOpID(opID *string) *GetStateParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the get state params +func (o *GetStateParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithHandle adds the handle to the get state params func (o *GetStateParams) WithHandle(handle string) *GetStateParams { o.SetHandle(handle) @@ -118,6 +131,15 @@ func (o *GetStateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regi r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param handle if err := r.SetPathParam("handle", o.Handle); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/state_change_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/state_change_parameters.go index 0f26b2f48..ea393aca3 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/state_change_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/containers/state_change_parameters.go @@ -60,6 +60,8 @@ for the state change operation typically these are written to a http.Request */ type StateChangeParams struct { + /*OpID*/ + OpID *string /*Handle*/ Handle string /*State*/ @@ -103,6 +105,17 @@ func (o *StateChangeParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the state change params +func (o *StateChangeParams) WithOpID(opID *string) *StateChangeParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the state change params +func (o *StateChangeParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithHandle adds the handle to the state change params func (o *StateChangeParams) WithHandle(handle string) *StateChangeParams { o.SetHandle(handle) @@ -131,6 +144,15 @@ func (o *StateChangeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.R r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param handle if err := r.SetPathParam("handle", o.Handle); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/events/get_events_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/events/get_events_parameters.go index 688c46ed6..df48d8ecb 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/events/get_events_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/events/get_events_parameters.go @@ -19,7 +19,7 @@ import ( // NewGetEventsParams creates a new GetEventsParams object // with the default values initialized. func NewGetEventsParams() *GetEventsParams { - + var () return &GetEventsParams{ timeout: cr.DefaultTimeout, @@ -29,7 +29,7 @@ func NewGetEventsParams() *GetEventsParams { // NewGetEventsParamsWithTimeout creates a new GetEventsParams object // with the default values initialized, and the ability to set a timeout on a request func NewGetEventsParamsWithTimeout(timeout time.Duration) *GetEventsParams { - + var () return &GetEventsParams{ timeout: timeout, @@ -39,7 +39,7 @@ func NewGetEventsParamsWithTimeout(timeout time.Duration) *GetEventsParams { // NewGetEventsParamsWithContext creates a new GetEventsParams object // with the default values initialized, and the ability to set a context for a request func NewGetEventsParamsWithContext(ctx context.Context) *GetEventsParams { - + var () return &GetEventsParams{ Context: ctx, @@ -49,7 +49,7 @@ func NewGetEventsParamsWithContext(ctx context.Context) *GetEventsParams { // NewGetEventsParamsWithHTTPClient creates a new GetEventsParams object // with the default values initialized, and the ability to set a custom HTTPClient for a request func NewGetEventsParamsWithHTTPClient(client *http.Client) *GetEventsParams { - + var () return &GetEventsParams{ HTTPClient: client, } @@ -59,6 +59,10 @@ func NewGetEventsParamsWithHTTPClient(client *http.Client) *GetEventsParams { for the get events operation typically these are written to a http.Request */ type GetEventsParams struct { + + /*OpID*/ + OpID *string + timeout time.Duration Context context.Context HTTPClient *http.Client @@ -97,12 +101,32 @@ func (o *GetEventsParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the get events params +func (o *GetEventsParams) WithOpID(opID *string) *GetEventsParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the get events params +func (o *GetEventsParams) SetOpID(opID *string) { + o.OpID = opID +} + // WriteToRequest writes these params to a swagger request func (o *GetEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_close_stdin_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_close_stdin_parameters.go index 1a88f5433..6641c5d6e 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_close_stdin_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_close_stdin_parameters.go @@ -60,6 +60,8 @@ for the container close stdin operation typically these are written to a http.Re */ type ContainerCloseStdinParams struct { + /*OpID*/ + OpID *string /*ID*/ ID string @@ -101,6 +103,17 @@ func (o *ContainerCloseStdinParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the container close stdin params +func (o *ContainerCloseStdinParams) WithOpID(opID *string) *ContainerCloseStdinParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the container close stdin params +func (o *ContainerCloseStdinParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithID adds the id to the container close stdin params func (o *ContainerCloseStdinParams) WithID(id string) *ContainerCloseStdinParams { o.SetID(id) @@ -118,6 +131,15 @@ func (o *ContainerCloseStdinParams) WriteToRequest(r runtime.ClientRequest, reg r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param id if err := r.SetPathParam("id", o.ID); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_get_stderr_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_get_stderr_parameters.go index c9e2e0be6..e6c8d6a25 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_get_stderr_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_get_stderr_parameters.go @@ -60,6 +60,8 @@ for the container get stderr operation typically these are written to a http.Req */ type ContainerGetStderrParams struct { + /*OpID*/ + OpID *string /*Deadline*/ Deadline *strfmt.DateTime /*ID*/ @@ -103,6 +105,17 @@ func (o *ContainerGetStderrParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the container get stderr params +func (o *ContainerGetStderrParams) WithOpID(opID *string) *ContainerGetStderrParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the container get stderr params +func (o *ContainerGetStderrParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithDeadline adds the deadline to the container get stderr params func (o *ContainerGetStderrParams) WithDeadline(deadline *strfmt.DateTime) *ContainerGetStderrParams { o.SetDeadline(deadline) @@ -131,6 +144,15 @@ func (o *ContainerGetStderrParams) WriteToRequest(r runtime.ClientRequest, reg s r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Deadline != nil { // query param deadline diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_get_stdout_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_get_stdout_parameters.go index b97ca42bb..d82735313 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_get_stdout_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_get_stdout_parameters.go @@ -60,6 +60,8 @@ for the container get stdout operation typically these are written to a http.Req */ type ContainerGetStdoutParams struct { + /*OpID*/ + OpID *string /*Deadline*/ Deadline *strfmt.DateTime /*ID*/ @@ -103,6 +105,17 @@ func (o *ContainerGetStdoutParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the container get stdout params +func (o *ContainerGetStdoutParams) WithOpID(opID *string) *ContainerGetStdoutParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the container get stdout params +func (o *ContainerGetStdoutParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithDeadline adds the deadline to the container get stdout params func (o *ContainerGetStdoutParams) WithDeadline(deadline *strfmt.DateTime) *ContainerGetStdoutParams { o.SetDeadline(deadline) @@ -131,6 +144,15 @@ func (o *ContainerGetStdoutParams) WriteToRequest(r runtime.ClientRequest, reg s r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Deadline != nil { // query param deadline diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_resize_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_resize_parameters.go index 283160f85..b2591f802 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_resize_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_resize_parameters.go @@ -61,6 +61,8 @@ for the container resize operation typically these are written to a http.Request */ type ContainerResizeParams struct { + /*OpID*/ + OpID *string /*Height*/ Height int32 /*ID*/ @@ -106,6 +108,17 @@ func (o *ContainerResizeParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the container resize params +func (o *ContainerResizeParams) WithOpID(opID *string) *ContainerResizeParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the container resize params +func (o *ContainerResizeParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithHeight adds the height to the container resize params func (o *ContainerResizeParams) WithHeight(height int32) *ContainerResizeParams { o.SetHeight(height) @@ -145,6 +158,15 @@ func (o *ContainerResizeParams) WriteToRequest(r runtime.ClientRequest, reg strf r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // query param height qrHeight := o.Height qHeight := swag.FormatInt32(qrHeight) diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_set_stdin_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_set_stdin_parameters.go index e3db99904..9a826ea2e 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_set_stdin_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/container_set_stdin_parameters.go @@ -61,6 +61,8 @@ for the container set stdin operation typically these are written to a http.Requ */ type ContainerSetStdinParams struct { + /*OpID*/ + OpID *string /*Deadline*/ Deadline *strfmt.DateTime /*ID*/ @@ -106,6 +108,17 @@ func (o *ContainerSetStdinParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the container set stdin params +func (o *ContainerSetStdinParams) WithOpID(opID *string) *ContainerSetStdinParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the container set stdin params +func (o *ContainerSetStdinParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithDeadline adds the deadline to the container set stdin params func (o *ContainerSetStdinParams) WithDeadline(deadline *strfmt.DateTime) *ContainerSetStdinParams { o.SetDeadline(deadline) @@ -145,6 +158,15 @@ func (o *ContainerSetStdinParams) WriteToRequest(r runtime.ClientRequest, reg st r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Deadline != nil { // query param deadline diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/interaction_bind_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/interaction_bind_parameters.go index 1c5bc29bb..2acaf9c23 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/interaction_bind_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/interaction_bind_parameters.go @@ -62,6 +62,8 @@ for the interaction bind operation typically these are written to a http.Request */ type InteractionBindParams struct { + /*OpID*/ + OpID *string /*Config*/ Config *models.InteractionBindConfig @@ -103,6 +105,17 @@ func (o *InteractionBindParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the interaction bind params +func (o *InteractionBindParams) WithOpID(opID *string) *InteractionBindParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the interaction bind params +func (o *InteractionBindParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithConfig adds the config to the interaction bind params func (o *InteractionBindParams) WithConfig(config *models.InteractionBindConfig) *InteractionBindParams { o.SetConfig(config) @@ -120,6 +133,15 @@ func (o *InteractionBindParams) WriteToRequest(r runtime.ClientRequest, reg strf r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Config == nil { o.Config = new(models.InteractionBindConfig) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/interaction_join_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/interaction_join_parameters.go index dc8b5eaae..5e45c7813 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/interaction_join_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/interaction_join_parameters.go @@ -62,6 +62,8 @@ for the interaction join operation typically these are written to a http.Request */ type InteractionJoinParams struct { + /*OpID*/ + OpID *string /*Config*/ Config *models.InteractionJoinConfig @@ -103,6 +105,17 @@ func (o *InteractionJoinParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the interaction join params +func (o *InteractionJoinParams) WithOpID(opID *string) *InteractionJoinParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the interaction join params +func (o *InteractionJoinParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithConfig adds the config to the interaction join params func (o *InteractionJoinParams) WithConfig(config *models.InteractionJoinConfig) *InteractionJoinParams { o.SetConfig(config) @@ -120,6 +133,15 @@ func (o *InteractionJoinParams) WriteToRequest(r runtime.ClientRequest, reg strf r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Config == nil { o.Config = new(models.InteractionJoinConfig) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/interaction_unbind_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/interaction_unbind_parameters.go index 9cfc47ff9..4d3152c0a 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/interaction_unbind_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/interaction/interaction_unbind_parameters.go @@ -62,6 +62,8 @@ for the interaction unbind operation typically these are written to a http.Reque */ type InteractionUnbindParams struct { + /*OpID*/ + OpID *string /*Config*/ Config *models.InteractionUnbindConfig @@ -103,6 +105,17 @@ func (o *InteractionUnbindParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the interaction unbind params +func (o *InteractionUnbindParams) WithOpID(opID *string) *InteractionUnbindParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the interaction unbind params +func (o *InteractionUnbindParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithConfig adds the config to the interaction unbind params func (o *InteractionUnbindParams) WithConfig(config *models.InteractionUnbindConfig) *InteractionUnbindParams { o.SetConfig(config) @@ -120,6 +133,15 @@ func (o *InteractionUnbindParams) WriteToRequest(r runtime.ClientRequest, reg st r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Config == nil { o.Config = new(models.InteractionUnbindConfig) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/kv/delete_value_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/kv/delete_value_parameters.go index d4220a2db..cf9f6b75c 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/kv/delete_value_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/kv/delete_value_parameters.go @@ -60,6 +60,8 @@ for the delete value operation typically these are written to a http.Request */ type DeleteValueParams struct { + /*OpID*/ + OpID *string /*Key*/ Key string @@ -101,6 +103,17 @@ func (o *DeleteValueParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the delete value params +func (o *DeleteValueParams) WithOpID(opID *string) *DeleteValueParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the delete value params +func (o *DeleteValueParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithKey adds the key to the delete value params func (o *DeleteValueParams) WithKey(key string) *DeleteValueParams { o.SetKey(key) @@ -118,6 +131,15 @@ func (o *DeleteValueParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.R r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param key if err := r.SetPathParam("key", o.Key); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/kv/get_value_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/kv/get_value_parameters.go index a8bb341e6..2c2bcac8b 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/kv/get_value_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/kv/get_value_parameters.go @@ -60,6 +60,8 @@ for the get value operation typically these are written to a http.Request */ type GetValueParams struct { + /*OpID*/ + OpID *string /*Key*/ Key string @@ -101,6 +103,17 @@ func (o *GetValueParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the get value params +func (o *GetValueParams) WithOpID(opID *string) *GetValueParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the get value params +func (o *GetValueParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithKey adds the key to the get value params func (o *GetValueParams) WithKey(key string) *GetValueParams { o.SetKey(key) @@ -118,6 +131,15 @@ func (o *GetValueParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regi r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param key if err := r.SetPathParam("key", o.Key); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/kv/put_value_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/kv/put_value_parameters.go index fc3ee5fff..de221650f 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/kv/put_value_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/kv/put_value_parameters.go @@ -62,6 +62,8 @@ for the put value operation typically these are written to a http.Request */ type PutValueParams struct { + /*OpID*/ + OpID *string /*Key*/ Key string /*KeyValue*/ @@ -105,6 +107,17 @@ func (o *PutValueParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the put value params +func (o *PutValueParams) WithOpID(opID *string) *PutValueParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the put value params +func (o *PutValueParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithKey adds the key to the put value params func (o *PutValueParams) WithKey(key string) *PutValueParams { o.SetKey(key) @@ -133,6 +146,15 @@ func (o *PutValueParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regi r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param key if err := r.SetPathParam("key", o.Key); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/logging/logging_bind_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/logging/logging_bind_parameters.go index c9271f32e..14bbdab9b 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/logging/logging_bind_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/logging/logging_bind_parameters.go @@ -62,6 +62,8 @@ for the logging bind operation typically these are written to a http.Request */ type LoggingBindParams struct { + /*OpID*/ + OpID *string /*Config*/ Config *models.LoggingBindConfig @@ -103,6 +105,17 @@ func (o *LoggingBindParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the logging bind params +func (o *LoggingBindParams) WithOpID(opID *string) *LoggingBindParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the logging bind params +func (o *LoggingBindParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithConfig adds the config to the logging bind params func (o *LoggingBindParams) WithConfig(config *models.LoggingBindConfig) *LoggingBindParams { o.SetConfig(config) @@ -120,6 +133,15 @@ func (o *LoggingBindParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.R r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Config == nil { o.Config = new(models.LoggingBindConfig) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/logging/logging_join_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/logging/logging_join_parameters.go index 838f0ee0c..fd743f59c 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/logging/logging_join_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/logging/logging_join_parameters.go @@ -62,6 +62,8 @@ for the logging join operation typically these are written to a http.Request */ type LoggingJoinParams struct { + /*OpID*/ + OpID *string /*Config*/ Config *models.LoggingJoinConfig @@ -103,6 +105,17 @@ func (o *LoggingJoinParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the logging join params +func (o *LoggingJoinParams) WithOpID(opID *string) *LoggingJoinParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the logging join params +func (o *LoggingJoinParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithConfig adds the config to the logging join params func (o *LoggingJoinParams) WithConfig(config *models.LoggingJoinConfig) *LoggingJoinParams { o.SetConfig(config) @@ -120,6 +133,15 @@ func (o *LoggingJoinParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.R r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Config == nil { o.Config = new(models.LoggingJoinConfig) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/logging/logging_unbind_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/logging/logging_unbind_parameters.go index c6ae6bf3a..a39e339d2 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/logging/logging_unbind_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/logging/logging_unbind_parameters.go @@ -62,6 +62,8 @@ for the logging unbind operation typically these are written to a http.Request */ type LoggingUnbindParams struct { + /*OpID*/ + OpID *string /*Config*/ Config *models.LoggingUnbindConfig @@ -103,6 +105,17 @@ func (o *LoggingUnbindParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the logging unbind params +func (o *LoggingUnbindParams) WithOpID(opID *string) *LoggingUnbindParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the logging unbind params +func (o *LoggingUnbindParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithConfig adds the config to the logging unbind params func (o *LoggingUnbindParams) WithConfig(config *models.LoggingUnbindConfig) *LoggingUnbindParams { o.SetConfig(config) @@ -120,6 +133,15 @@ func (o *LoggingUnbindParams) WriteToRequest(r runtime.ClientRequest, reg strfmt r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Config == nil { o.Config = new(models.LoggingUnbindConfig) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/misc/get_v_c_h_info_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/misc/get_v_c_h_info_parameters.go index e3cc93745..8343dddcb 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/misc/get_v_c_h_info_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/misc/get_v_c_h_info_parameters.go @@ -19,7 +19,7 @@ import ( // NewGetVCHInfoParams creates a new GetVCHInfoParams object // with the default values initialized. func NewGetVCHInfoParams() *GetVCHInfoParams { - + var () return &GetVCHInfoParams{ timeout: cr.DefaultTimeout, @@ -29,7 +29,7 @@ func NewGetVCHInfoParams() *GetVCHInfoParams { // NewGetVCHInfoParamsWithTimeout creates a new GetVCHInfoParams object // with the default values initialized, and the ability to set a timeout on a request func NewGetVCHInfoParamsWithTimeout(timeout time.Duration) *GetVCHInfoParams { - + var () return &GetVCHInfoParams{ timeout: timeout, @@ -39,7 +39,7 @@ func NewGetVCHInfoParamsWithTimeout(timeout time.Duration) *GetVCHInfoParams { // NewGetVCHInfoParamsWithContext creates a new GetVCHInfoParams object // with the default values initialized, and the ability to set a context for a request func NewGetVCHInfoParamsWithContext(ctx context.Context) *GetVCHInfoParams { - + var () return &GetVCHInfoParams{ Context: ctx, @@ -49,7 +49,7 @@ func NewGetVCHInfoParamsWithContext(ctx context.Context) *GetVCHInfoParams { // NewGetVCHInfoParamsWithHTTPClient creates a new GetVCHInfoParams object // with the default values initialized, and the ability to set a custom HTTPClient for a request func NewGetVCHInfoParamsWithHTTPClient(client *http.Client) *GetVCHInfoParams { - + var () return &GetVCHInfoParams{ HTTPClient: client, } @@ -59,6 +59,10 @@ func NewGetVCHInfoParamsWithHTTPClient(client *http.Client) *GetVCHInfoParams { for the get v c h info operation typically these are written to a http.Request */ type GetVCHInfoParams struct { + + /*OpID*/ + OpID *string + timeout time.Duration Context context.Context HTTPClient *http.Client @@ -97,12 +101,32 @@ func (o *GetVCHInfoParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the get v c h info params +func (o *GetVCHInfoParams) WithOpID(opID *string) *GetVCHInfoParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the get v c h info params +func (o *GetVCHInfoParams) SetOpID(opID *string) { + o.OpID = opID +} + // WriteToRequest writes these params to a swagger request func (o *GetVCHInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/add_container_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/add_container_parameters.go index 9ff7bc655..ba238f4d9 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/add_container_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/add_container_parameters.go @@ -62,6 +62,8 @@ for the add container operation typically these are written to a http.Request */ type AddContainerParams struct { + /*OpID*/ + OpID *string /*Config*/ Config *models.ScopesAddContainerConfig /*Scope*/ @@ -105,6 +107,17 @@ func (o *AddContainerParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the add container params +func (o *AddContainerParams) WithOpID(opID *string) *AddContainerParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the add container params +func (o *AddContainerParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithConfig adds the config to the add container params func (o *AddContainerParams) WithConfig(config *models.ScopesAddContainerConfig) *AddContainerParams { o.SetConfig(config) @@ -133,6 +146,15 @@ func (o *AddContainerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Config == nil { o.Config = new(models.ScopesAddContainerConfig) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/bind_container_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/bind_container_parameters.go index 667ca0049..da09044ec 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/bind_container_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/bind_container_parameters.go @@ -60,6 +60,8 @@ for the bind container operation typically these are written to a http.Request */ type BindContainerParams struct { + /*OpID*/ + OpID *string /*Handle*/ Handle string @@ -101,6 +103,17 @@ func (o *BindContainerParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the bind container params +func (o *BindContainerParams) WithOpID(opID *string) *BindContainerParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the bind container params +func (o *BindContainerParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithHandle adds the handle to the bind container params func (o *BindContainerParams) WithHandle(handle string) *BindContainerParams { o.SetHandle(handle) @@ -118,6 +131,15 @@ func (o *BindContainerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param handle if err := r.SetPathParam("handle", o.Handle); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/create_scope_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/create_scope_parameters.go index c91a40315..005977906 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/create_scope_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/create_scope_parameters.go @@ -62,6 +62,8 @@ for the create scope operation typically these are written to a http.Request */ type CreateScopeParams struct { + /*OpID*/ + OpID *string /*Config*/ Config *models.ScopeConfig @@ -103,6 +105,17 @@ func (o *CreateScopeParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the create scope params +func (o *CreateScopeParams) WithOpID(opID *string) *CreateScopeParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the create scope params +func (o *CreateScopeParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithConfig adds the config to the create scope params func (o *CreateScopeParams) WithConfig(config *models.ScopeConfig) *CreateScopeParams { o.SetConfig(config) @@ -120,6 +133,15 @@ func (o *CreateScopeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.R r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Config == nil { o.Config = new(models.ScopeConfig) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/delete_scope_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/delete_scope_parameters.go index 914ba5d75..3b58f4891 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/delete_scope_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/delete_scope_parameters.go @@ -60,6 +60,8 @@ for the delete scope operation typically these are written to a http.Request */ type DeleteScopeParams struct { + /*OpID*/ + OpID *string /*IDName*/ IDName string @@ -101,6 +103,17 @@ func (o *DeleteScopeParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the delete scope params +func (o *DeleteScopeParams) WithOpID(opID *string) *DeleteScopeParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the delete scope params +func (o *DeleteScopeParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithIDName adds the iDName to the delete scope params func (o *DeleteScopeParams) WithIDName(iDName string) *DeleteScopeParams { o.SetIDName(iDName) @@ -118,6 +131,15 @@ func (o *DeleteScopeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.R r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param idName if err := r.SetPathParam("idName", o.IDName); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/get_container_endpoints_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/get_container_endpoints_parameters.go index a42866a80..8a65e3a21 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/get_container_endpoints_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/get_container_endpoints_parameters.go @@ -60,6 +60,8 @@ for the get container endpoints operation typically these are written to a http. */ type GetContainerEndpointsParams struct { + /*OpID*/ + OpID *string /*HandleOrID*/ HandleOrID string @@ -101,6 +103,17 @@ func (o *GetContainerEndpointsParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the get container endpoints params +func (o *GetContainerEndpointsParams) WithOpID(opID *string) *GetContainerEndpointsParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the get container endpoints params +func (o *GetContainerEndpointsParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithHandleOrID adds the handleOrID to the get container endpoints params func (o *GetContainerEndpointsParams) WithHandleOrID(handleOrID string) *GetContainerEndpointsParams { o.SetHandleOrID(handleOrID) @@ -118,6 +131,15 @@ func (o *GetContainerEndpointsParams) WriteToRequest(r runtime.ClientRequest, re r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param handleOrId if err := r.SetPathParam("handleOrId", o.HandleOrID); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/list_all_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/list_all_parameters.go index 1555ea44a..5fa4e72a5 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/list_all_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/list_all_parameters.go @@ -19,7 +19,7 @@ import ( // NewListAllParams creates a new ListAllParams object // with the default values initialized. func NewListAllParams() *ListAllParams { - + var () return &ListAllParams{ timeout: cr.DefaultTimeout, @@ -29,7 +29,7 @@ func NewListAllParams() *ListAllParams { // NewListAllParamsWithTimeout creates a new ListAllParams object // with the default values initialized, and the ability to set a timeout on a request func NewListAllParamsWithTimeout(timeout time.Duration) *ListAllParams { - + var () return &ListAllParams{ timeout: timeout, @@ -39,7 +39,7 @@ func NewListAllParamsWithTimeout(timeout time.Duration) *ListAllParams { // NewListAllParamsWithContext creates a new ListAllParams object // with the default values initialized, and the ability to set a context for a request func NewListAllParamsWithContext(ctx context.Context) *ListAllParams { - + var () return &ListAllParams{ Context: ctx, @@ -49,7 +49,7 @@ func NewListAllParamsWithContext(ctx context.Context) *ListAllParams { // NewListAllParamsWithHTTPClient creates a new ListAllParams object // with the default values initialized, and the ability to set a custom HTTPClient for a request func NewListAllParamsWithHTTPClient(client *http.Client) *ListAllParams { - + var () return &ListAllParams{ HTTPClient: client, } @@ -59,6 +59,10 @@ func NewListAllParamsWithHTTPClient(client *http.Client) *ListAllParams { for the list all operation typically these are written to a http.Request */ type ListAllParams struct { + + /*OpID*/ + OpID *string + timeout time.Duration Context context.Context HTTPClient *http.Client @@ -97,12 +101,32 @@ func (o *ListAllParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the list all params +func (o *ListAllParams) WithOpID(opID *string) *ListAllParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the list all params +func (o *ListAllParams) SetOpID(opID *string) { + o.OpID = opID +} + // WriteToRequest writes these params to a swagger request func (o *ListAllParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/list_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/list_parameters.go index ee6b3710a..644c131f0 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/list_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/list_parameters.go @@ -60,6 +60,8 @@ for the list operation typically these are written to a http.Request */ type ListParams struct { + /*OpID*/ + OpID *string /*IDName*/ IDName string @@ -101,6 +103,17 @@ func (o *ListParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the list params +func (o *ListParams) WithOpID(opID *string) *ListParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the list params +func (o *ListParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithIDName adds the iDName to the list params func (o *ListParams) WithIDName(iDName string) *ListParams { o.SetIDName(iDName) @@ -118,6 +131,15 @@ func (o *ListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param idName if err := r.SetPathParam("idName", o.IDName); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/remove_container_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/remove_container_parameters.go index 202893aad..db9caecd0 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/remove_container_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/remove_container_parameters.go @@ -60,6 +60,8 @@ for the remove container operation typically these are written to a http.Request */ type RemoveContainerParams struct { + /*OpID*/ + OpID *string /*Handle*/ Handle string /*Scope*/ @@ -103,6 +105,17 @@ func (o *RemoveContainerParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the remove container params +func (o *RemoveContainerParams) WithOpID(opID *string) *RemoveContainerParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the remove container params +func (o *RemoveContainerParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithHandle adds the handle to the remove container params func (o *RemoveContainerParams) WithHandle(handle string) *RemoveContainerParams { o.SetHandle(handle) @@ -131,6 +144,15 @@ func (o *RemoveContainerParams) WriteToRequest(r runtime.ClientRequest, reg strf r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param handle if err := r.SetPathParam("handle", o.Handle); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/unbind_container_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/unbind_container_parameters.go index 5ee4494e8..b19f72095 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/unbind_container_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/scopes/unbind_container_parameters.go @@ -60,6 +60,8 @@ for the unbind container operation typically these are written to a http.Request */ type UnbindContainerParams struct { + /*OpID*/ + OpID *string /*Handle*/ Handle string @@ -101,6 +103,17 @@ func (o *UnbindContainerParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the unbind container params +func (o *UnbindContainerParams) WithOpID(opID *string) *UnbindContainerParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the unbind container params +func (o *UnbindContainerParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithHandle adds the handle to the unbind container params func (o *UnbindContainerParams) WithHandle(handle string) *UnbindContainerParams { o.SetHandle(handle) @@ -118,6 +131,15 @@ func (o *UnbindContainerParams) WriteToRequest(r runtime.ClientRequest, reg strf r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param handle if err := r.SetPathParam("handle", o.Handle); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/create_image_store_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/create_image_store_parameters.go index e4215b013..8bd22daa6 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/create_image_store_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/create_image_store_parameters.go @@ -62,6 +62,8 @@ for the create image store operation typically these are written to a http.Reque */ type CreateImageStoreParams struct { + /*OpID*/ + OpID *string /*Body*/ Body *models.ImageStore @@ -103,6 +105,17 @@ func (o *CreateImageStoreParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the create image store params +func (o *CreateImageStoreParams) WithOpID(opID *string) *CreateImageStoreParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the create image store params +func (o *CreateImageStoreParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithBody adds the body to the create image store params func (o *CreateImageStoreParams) WithBody(body *models.ImageStore) *CreateImageStoreParams { o.SetBody(body) @@ -120,6 +133,15 @@ func (o *CreateImageStoreParams) WriteToRequest(r runtime.ClientRequest, reg str r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Body == nil { o.Body = new(models.ImageStore) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/create_volume_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/create_volume_parameters.go index 152bd350b..574c5ae3a 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/create_volume_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/create_volume_parameters.go @@ -62,6 +62,8 @@ for the create volume operation typically these are written to a http.Request */ type CreateVolumeParams struct { + /*OpID*/ + OpID *string /*VolumeRequest*/ VolumeRequest *models.VolumeRequest @@ -103,6 +105,17 @@ func (o *CreateVolumeParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the create volume params +func (o *CreateVolumeParams) WithOpID(opID *string) *CreateVolumeParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the create volume params +func (o *CreateVolumeParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithVolumeRequest adds the volumeRequest to the create volume params func (o *CreateVolumeParams) WithVolumeRequest(volumeRequest *models.VolumeRequest) *CreateVolumeParams { o.SetVolumeRequest(volumeRequest) @@ -120,6 +133,15 @@ func (o *CreateVolumeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.VolumeRequest == nil { o.VolumeRequest = new(models.VolumeRequest) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/delete_image_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/delete_image_parameters.go index da2a5d4c8..51b73a58d 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/delete_image_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/delete_image_parameters.go @@ -61,6 +61,8 @@ for the delete image operation typically these are written to a http.Request */ type DeleteImageParams struct { + /*OpID*/ + OpID *string /*ID*/ ID string /*KeepNodes*/ @@ -106,6 +108,17 @@ func (o *DeleteImageParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the delete image params +func (o *DeleteImageParams) WithOpID(opID *string) *DeleteImageParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the delete image params +func (o *DeleteImageParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithID adds the id to the delete image params func (o *DeleteImageParams) WithID(id string) *DeleteImageParams { o.SetID(id) @@ -145,6 +158,15 @@ func (o *DeleteImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.R r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param id if err := r.SetPathParam("id", o.ID); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/export_archive_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/export_archive_parameters.go index 49e529ab5..40b7722e1 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/export_archive_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/export_archive_parameters.go @@ -61,6 +61,8 @@ for the export archive operation typically these are written to a http.Request */ type ExportArchiveParams struct { + /*OpID*/ + OpID *string /*Ancestor*/ Ancestor *string /*AncestorStore*/ @@ -112,6 +114,17 @@ func (o *ExportArchiveParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the export archive params +func (o *ExportArchiveParams) WithOpID(opID *string) *ExportArchiveParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the export archive params +func (o *ExportArchiveParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithAncestor adds the ancestor to the export archive params func (o *ExportArchiveParams) WithAncestor(ancestor *string) *ExportArchiveParams { o.SetAncestor(ancestor) @@ -184,6 +197,15 @@ func (o *ExportArchiveParams) WriteToRequest(r runtime.ClientRequest, reg strfmt r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Ancestor != nil { // query param ancestor diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/get_image_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/get_image_parameters.go index 8333cbcc4..67db421ac 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/get_image_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/get_image_parameters.go @@ -60,6 +60,8 @@ for the get image operation typically these are written to a http.Request */ type GetImageParams struct { + /*OpID*/ + OpID *string /*ID*/ ID string /*StoreName*/ @@ -103,6 +105,17 @@ func (o *GetImageParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the get image params +func (o *GetImageParams) WithOpID(opID *string) *GetImageParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the get image params +func (o *GetImageParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithID adds the id to the get image params func (o *GetImageParams) WithID(id string) *GetImageParams { o.SetID(id) @@ -131,6 +144,15 @@ func (o *GetImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regi r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param id if err := r.SetPathParam("id", o.ID); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/get_image_tar_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/get_image_tar_parameters.go index 9413072e9..fb0d813e2 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/get_image_tar_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/get_image_tar_parameters.go @@ -60,6 +60,8 @@ for the get image tar operation typically these are written to a http.Request */ type GetImageTarParams struct { + /*OpID*/ + OpID *string /*ID*/ ID string /*StoreName*/ @@ -103,6 +105,17 @@ func (o *GetImageTarParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the get image tar params +func (o *GetImageTarParams) WithOpID(opID *string) *GetImageTarParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the get image tar params +func (o *GetImageTarParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithID adds the id to the get image tar params func (o *GetImageTarParams) WithID(id string) *GetImageTarParams { o.SetID(id) @@ -131,6 +144,15 @@ func (o *GetImageTarParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.R r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param id if err := r.SetPathParam("id", o.ID); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/get_volume_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/get_volume_parameters.go index 7b57317d6..0c2c1c544 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/get_volume_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/get_volume_parameters.go @@ -60,6 +60,8 @@ for the get volume operation typically these are written to a http.Request */ type GetVolumeParams struct { + /*OpID*/ + OpID *string /*Name*/ Name string @@ -101,6 +103,17 @@ func (o *GetVolumeParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the get volume params +func (o *GetVolumeParams) WithOpID(opID *string) *GetVolumeParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the get volume params +func (o *GetVolumeParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithName adds the name to the get volume params func (o *GetVolumeParams) WithName(name string) *GetVolumeParams { o.SetName(name) @@ -118,6 +131,15 @@ func (o *GetVolumeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Reg r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param name if err := r.SetPathParam("name", o.Name); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/image_join_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/image_join_parameters.go index 0a8dfe902..a6c868b20 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/image_join_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/image_join_parameters.go @@ -62,6 +62,8 @@ for the image join operation typically these are written to a http.Request */ type ImageJoinParams struct { + /*OpID*/ + OpID *string /*Config*/ Config *models.ImageJoinConfig /*ID*/ @@ -107,6 +109,17 @@ func (o *ImageJoinParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the image join params +func (o *ImageJoinParams) WithOpID(opID *string) *ImageJoinParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the image join params +func (o *ImageJoinParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithConfig adds the config to the image join params func (o *ImageJoinParams) WithConfig(config *models.ImageJoinConfig) *ImageJoinParams { o.SetConfig(config) @@ -146,6 +159,15 @@ func (o *ImageJoinParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Reg r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Config == nil { o.Config = new(models.ImageJoinConfig) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/import_archive_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/import_archive_parameters.go index 64b5c3d58..7e9eba8e3 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/import_archive_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/import_archive_parameters.go @@ -63,6 +63,8 @@ type ImportArchiveParams struct { /*Archive*/ Archive io.ReadCloser + /*OpID*/ + OpID *string /*DeviceID*/ DeviceID string /*FilterSpec*/ @@ -119,6 +121,17 @@ func (o *ImportArchiveParams) SetArchive(archive io.ReadCloser) { o.Archive = archive } +// WithOpID adds the opID to the import archive params +func (o *ImportArchiveParams) WithOpID(opID *string) *ImportArchiveParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the import archive params +func (o *ImportArchiveParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithDeviceID adds the deviceID to the import archive params func (o *ImportArchiveParams) WithDeviceID(deviceID string) *ImportArchiveParams { o.SetDeviceID(deviceID) @@ -162,6 +175,15 @@ func (o *ImportArchiveParams) WriteToRequest(r runtime.ClientRequest, reg strfmt return err } + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // query param deviceID qrDeviceID := o.DeviceID qDeviceID := qrDeviceID diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/list_images_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/list_images_parameters.go index d96f100b4..6a18cdc0d 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/list_images_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/list_images_parameters.go @@ -61,6 +61,8 @@ for the list images operation typically these are written to a http.Request */ type ListImagesParams struct { + /*OpID*/ + OpID *string /*Ids*/ Ids []string /*StoreName*/ @@ -104,6 +106,17 @@ func (o *ListImagesParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the list images params +func (o *ListImagesParams) WithOpID(opID *string) *ListImagesParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the list images params +func (o *ListImagesParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithIds adds the ids to the list images params func (o *ListImagesParams) WithIds(ids []string) *ListImagesParams { o.SetIds(ids) @@ -132,6 +145,15 @@ func (o *ListImagesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + valuesIds := o.Ids joinedIds := swag.JoinByFormat(valuesIds, "") diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/list_volumes_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/list_volumes_parameters.go index 37057fd11..aef27c96f 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/list_volumes_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/list_volumes_parameters.go @@ -60,6 +60,8 @@ for the list volumes operation typically these are written to a http.Request */ type ListVolumesParams struct { + /*OpID*/ + OpID *string /*FilterString*/ FilterString *string @@ -101,6 +103,17 @@ func (o *ListVolumesParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the list volumes params +func (o *ListVolumesParams) WithOpID(opID *string) *ListVolumesParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the list volumes params +func (o *ListVolumesParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithFilterString adds the filterString to the list volumes params func (o *ListVolumesParams) WithFilterString(filterString *string) *ListVolumesParams { o.SetFilterString(filterString) @@ -118,6 +131,15 @@ func (o *ListVolumesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.R r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.FilterString != nil { // query param filterString diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/remove_volume_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/remove_volume_parameters.go index a00498b30..88ac114f5 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/remove_volume_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/remove_volume_parameters.go @@ -60,6 +60,8 @@ for the remove volume operation typically these are written to a http.Request */ type RemoveVolumeParams struct { + /*OpID*/ + OpID *string /*Name*/ Name string @@ -101,6 +103,17 @@ func (o *RemoveVolumeParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the remove volume params +func (o *RemoveVolumeParams) WithOpID(opID *string) *RemoveVolumeParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the remove volume params +func (o *RemoveVolumeParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithName adds the name to the remove volume params func (o *RemoveVolumeParams) WithName(name string) *RemoveVolumeParams { o.SetName(name) @@ -118,6 +131,15 @@ func (o *RemoveVolumeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param name if err := r.SetPathParam("name", o.Name); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/stat_path_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/stat_path_parameters.go index 6642e2966..48a82f0b8 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/stat_path_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/stat_path_parameters.go @@ -60,6 +60,8 @@ for the stat path operation typically these are written to a http.Request */ type StatPathParams struct { + /*OpID*/ + OpID *string /*DeviceID*/ DeviceID string /*FilterSpec*/ @@ -105,6 +107,17 @@ func (o *StatPathParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the stat path params +func (o *StatPathParams) WithOpID(opID *string) *StatPathParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the stat path params +func (o *StatPathParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithDeviceID adds the deviceID to the stat path params func (o *StatPathParams) WithDeviceID(deviceID string) *StatPathParams { o.SetDeviceID(deviceID) @@ -144,6 +157,15 @@ func (o *StatPathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regi r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // query param deviceID qrDeviceID := o.DeviceID qDeviceID := qrDeviceID diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/volume_join_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/volume_join_parameters.go index fed993950..6dc4fa0cd 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/volume_join_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/volume_join_parameters.go @@ -64,6 +64,8 @@ type VolumeJoinParams struct { /*JoinArgs*/ JoinArgs *models.VolumeJoinConfig + /*OpID*/ + OpID *string /*Name*/ Name string @@ -116,6 +118,17 @@ func (o *VolumeJoinParams) SetJoinArgs(joinArgs *models.VolumeJoinConfig) { o.JoinArgs = joinArgs } +// WithOpID adds the opID to the volume join params +func (o *VolumeJoinParams) WithOpID(opID *string) *VolumeJoinParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the volume join params +func (o *VolumeJoinParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithName adds the name to the volume join params func (o *VolumeJoinParams) WithName(name string) *VolumeJoinParams { o.SetName(name) @@ -141,6 +154,15 @@ func (o *VolumeJoinParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re return err } + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + // path param name if err := r.SetPathParam("name", o.Name); err != nil { return err diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/volume_stores_list_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/volume_stores_list_parameters.go index ad1022ee8..59f23f6c7 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/volume_stores_list_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/volume_stores_list_parameters.go @@ -19,7 +19,7 @@ import ( // NewVolumeStoresListParams creates a new VolumeStoresListParams object // with the default values initialized. func NewVolumeStoresListParams() *VolumeStoresListParams { - + var () return &VolumeStoresListParams{ timeout: cr.DefaultTimeout, @@ -29,7 +29,7 @@ func NewVolumeStoresListParams() *VolumeStoresListParams { // NewVolumeStoresListParamsWithTimeout creates a new VolumeStoresListParams object // with the default values initialized, and the ability to set a timeout on a request func NewVolumeStoresListParamsWithTimeout(timeout time.Duration) *VolumeStoresListParams { - + var () return &VolumeStoresListParams{ timeout: timeout, @@ -39,7 +39,7 @@ func NewVolumeStoresListParamsWithTimeout(timeout time.Duration) *VolumeStoresLi // NewVolumeStoresListParamsWithContext creates a new VolumeStoresListParams object // with the default values initialized, and the ability to set a context for a request func NewVolumeStoresListParamsWithContext(ctx context.Context) *VolumeStoresListParams { - + var () return &VolumeStoresListParams{ Context: ctx, @@ -49,7 +49,7 @@ func NewVolumeStoresListParamsWithContext(ctx context.Context) *VolumeStoresList // NewVolumeStoresListParamsWithHTTPClient creates a new VolumeStoresListParams object // with the default values initialized, and the ability to set a custom HTTPClient for a request func NewVolumeStoresListParamsWithHTTPClient(client *http.Client) *VolumeStoresListParams { - + var () return &VolumeStoresListParams{ HTTPClient: client, } @@ -59,6 +59,10 @@ func NewVolumeStoresListParamsWithHTTPClient(client *http.Client) *VolumeStoresL for the volume stores list operation typically these are written to a http.Request */ type VolumeStoresListParams struct { + + /*OpID*/ + OpID *string + timeout time.Duration Context context.Context HTTPClient *http.Client @@ -97,12 +101,32 @@ func (o *VolumeStoresListParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the volume stores list params +func (o *VolumeStoresListParams) WithOpID(opID *string) *VolumeStoresListParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the volume stores list params +func (o *VolumeStoresListParams) SetOpID(opID *string) { + o.OpID = opID +} + // WriteToRequest writes these params to a swagger request func (o *VolumeStoresListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/write_image_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/write_image_parameters.go index e246b4018..435287224 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/write_image_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/storage/write_image_parameters.go @@ -61,6 +61,8 @@ for the write image operation typically these are written to a http.Request */ type WriteImageParams struct { + /*OpID*/ + OpID *string /*ImageFile*/ ImageFile io.ReadCloser /*ImageID*/ @@ -114,6 +116,17 @@ func (o *WriteImageParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the write image params +func (o *WriteImageParams) WithOpID(opID *string) *WriteImageParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the write image params +func (o *WriteImageParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithImageFile adds the imageFile to the write image params func (o *WriteImageParams) WithImageFile(imageFile io.ReadCloser) *WriteImageParams { o.SetImageFile(imageFile) @@ -197,6 +210,15 @@ func (o *WriteImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if err := r.SetBodyParam(o.ImageFile); err != nil { return err } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/bind_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/bind_parameters.go index a7b0c1dd7..bc79f57f9 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/bind_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/bind_parameters.go @@ -62,6 +62,8 @@ for the bind operation typically these are written to a http.Request */ type BindParams struct { + /*OpID*/ + OpID *string /*Config*/ Config *models.TaskBindConfig @@ -103,6 +105,17 @@ func (o *BindParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the bind params +func (o *BindParams) WithOpID(opID *string) *BindParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the bind params +func (o *BindParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithConfig adds the config to the bind params func (o *BindParams) WithConfig(config *models.TaskBindConfig) *BindParams { o.SetConfig(config) @@ -120,6 +133,15 @@ func (o *BindParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Config == nil { o.Config = new(models.TaskBindConfig) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/inspect_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/inspect_parameters.go index 2ddfffc25..da971246f 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/inspect_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/inspect_parameters.go @@ -62,6 +62,8 @@ for the inspect operation typically these are written to a http.Request */ type InspectParams struct { + /*OpID*/ + OpID *string /*Config*/ Config *models.TaskInspectConfig @@ -103,6 +105,17 @@ func (o *InspectParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the inspect params +func (o *InspectParams) WithOpID(opID *string) *InspectParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the inspect params +func (o *InspectParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithConfig adds the config to the inspect params func (o *InspectParams) WithConfig(config *models.TaskInspectConfig) *InspectParams { o.SetConfig(config) @@ -120,6 +133,15 @@ func (o *InspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regis r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Config == nil { o.Config = new(models.TaskInspectConfig) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/join_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/join_parameters.go index 1986e9a24..26d63417e 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/join_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/join_parameters.go @@ -62,6 +62,8 @@ for the join operation typically these are written to a http.Request */ type JoinParams struct { + /*OpID*/ + OpID *string /*Config*/ Config *models.TaskJoinConfig @@ -103,6 +105,17 @@ func (o *JoinParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the join params +func (o *JoinParams) WithOpID(opID *string) *JoinParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the join params +func (o *JoinParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithConfig adds the config to the join params func (o *JoinParams) WithConfig(config *models.TaskJoinConfig) *JoinParams { o.SetConfig(config) @@ -120,6 +133,15 @@ func (o *JoinParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Config == nil { o.Config = new(models.TaskJoinConfig) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/remove_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/remove_parameters.go index f937bce38..322d1b4db 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/remove_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/remove_parameters.go @@ -62,6 +62,8 @@ for the remove operation typically these are written to a http.Request */ type RemoveParams struct { + /*OpID*/ + OpID *string /*Config*/ Config *models.TaskRemoveConfig @@ -103,6 +105,17 @@ func (o *RemoveParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the remove params +func (o *RemoveParams) WithOpID(opID *string) *RemoveParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the remove params +func (o *RemoveParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithConfig adds the config to the remove params func (o *RemoveParams) WithConfig(config *models.TaskRemoveConfig) *RemoveParams { o.SetConfig(config) @@ -120,6 +133,15 @@ func (o *RemoveParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regist r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Config == nil { o.Config = new(models.TaskRemoveConfig) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/tasks_client.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/tasks_client.go index c84b32558..d98b58b47 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/tasks_client.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/tasks_client.go @@ -53,9 +53,9 @@ func (a *Client) Bind(params *BindParams) (*BindOK, error) { } /* -Inspect initiates an task inspect operation +Inspect initiates a task inspect operation -Initiates an task inspect operation +Initiates a task inspect operation */ func (a *Client) Inspect(params *InspectParams) (*InspectOK, error) { // TODO: Validate the params before sending @@ -83,9 +83,9 @@ func (a *Client) Inspect(params *InspectParams) (*InspectOK, error) { } /* -Join initiates an task join operation +Join initiates a task join operation -Initiates an task join operation +Initiates a task join operation */ func (a *Client) Join(params *JoinParams) (*JoinOK, error) { // TODO: Validate the params before sending @@ -113,9 +113,9 @@ func (a *Client) Join(params *JoinParams) (*JoinOK, error) { } /* -Remove initiates an task remove operation +Remove initiates a task remove operation -Initiates an task remove operation +Initiates a task remove operation */ func (a *Client) Remove(params *RemoveParams) (*RemoveOK, error) { // TODO: Validate the params before sending @@ -173,9 +173,9 @@ func (a *Client) Unbind(params *UnbindParams) (*UnbindOK, error) { } /* -Wait initiates an task wait operation +Wait initiates a task wait operation -Initiates an task wait operation +Initiates a task wait operation */ func (a *Client) Wait(params *WaitParams) (*WaitOK, error) { // TODO: Validate the params before sending @@ -185,8 +185,8 @@ func (a *Client) Wait(params *WaitParams) (*WaitOK, error) { result, err := a.transport.Submit(&runtime.ClientOperation{ ID: "Wait", - Method: "PUT", - PathPattern: "/tasks", + Method: "GET", + PathPattern: "/tasks/wait", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json", "application/octet-stream"}, Schemes: []string{"http"}, diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/unbind_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/unbind_parameters.go index 6f41685a2..ef1b49d68 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/unbind_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/unbind_parameters.go @@ -62,6 +62,8 @@ for the unbind operation typically these are written to a http.Request */ type UnbindParams struct { + /*OpID*/ + OpID *string /*Config*/ Config *models.TaskUnbindConfig @@ -103,6 +105,17 @@ func (o *UnbindParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the unbind params +func (o *UnbindParams) WithOpID(opID *string) *UnbindParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the unbind params +func (o *UnbindParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithConfig adds the config to the unbind params func (o *UnbindParams) WithConfig(config *models.TaskUnbindConfig) *UnbindParams { o.SetConfig(config) @@ -120,6 +133,15 @@ func (o *UnbindParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regist r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Config == nil { o.Config = new(models.TaskUnbindConfig) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/wait_parameters.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/wait_parameters.go index 96b480c06..00c8f1de8 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/wait_parameters.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/wait_parameters.go @@ -62,6 +62,8 @@ for the wait operation typically these are written to a http.Request */ type WaitParams struct { + /*OpID*/ + OpID *string /*Config*/ Config *models.TaskWaitConfig @@ -103,6 +105,17 @@ func (o *WaitParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithOpID adds the opID to the wait params +func (o *WaitParams) WithOpID(opID *string) *WaitParams { + o.SetOpID(opID) + return o +} + +// SetOpID adds the opId to the wait params +func (o *WaitParams) SetOpID(opID *string) { + o.OpID = opID +} + // WithConfig adds the config to the wait params func (o *WaitParams) WithConfig(config *models.TaskWaitConfig) *WaitParams { o.SetConfig(config) @@ -120,6 +133,15 @@ func (o *WaitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry r.SetTimeout(o.timeout) var res []error + if o.OpID != nil { + + // header param Op-ID + if err := r.SetHeaderParam("Op-ID", *o.OpID); err != nil { + return err + } + + } + if o.Config == nil { o.Config = new(models.TaskWaitConfig) } diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/wait_responses.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/wait_responses.go index 73c4591a0..0560409a9 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/wait_responses.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/client/tasks/wait_responses.go @@ -69,7 +69,7 @@ type WaitOK struct { } func (o *WaitOK) Error() string { - return fmt.Sprintf("[PUT /tasks][%d] waitOK ", 200) + return fmt.Sprintf("[GET /tasks/wait][%d] waitOK ", 200) } func (o *WaitOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -91,7 +91,7 @@ type WaitNotFound struct { } func (o *WaitNotFound) Error() string { - return fmt.Sprintf("[PUT /tasks][%d] waitNotFound %+v", 404, o.Payload) + return fmt.Sprintf("[GET /tasks/wait][%d] waitNotFound %+v", 404, o.Payload) } func (o *WaitNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -120,7 +120,7 @@ type WaitPreconditionRequired struct { } func (o *WaitPreconditionRequired) Error() string { - return fmt.Sprintf("[PUT /tasks][%d] waitPreconditionRequired %+v", 428, o.Payload) + return fmt.Sprintf("[GET /tasks/wait][%d] waitPreconditionRequired %+v", 428, o.Payload) } func (o *WaitPreconditionRequired) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -142,14 +142,14 @@ func NewWaitInternalServerError() *WaitInternalServerError { /*WaitInternalServerError handles this case with default header values. -Wait of task failed +wait of task failed */ type WaitInternalServerError struct { Payload *models.Error } func (o *WaitInternalServerError) Error() string { - return fmt.Sprintf("[PUT /tasks][%d] waitInternalServerError %+v", 500, o.Payload) + return fmt.Sprintf("[GET /tasks/wait][%d] waitInternalServerError %+v", 500, o.Payload) } func (o *WaitInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/models/task_inspect_response.go b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/models/task_inspect_response.go index 9c368edc3..48334c2c8 100644 --- a/vendor/github.com/vmware/vic/lib/apiservers/portlayer/models/task_inspect_response.go +++ b/vendor/github.com/vmware/vic/lib/apiservers/portlayer/models/task_inspect_response.go @@ -37,8 +37,8 @@ type TaskInspectResponse struct { // process config ProcessConfig *ProcessConfig `json:"processConfig,omitempty"` - // running - Running bool `json:"running,omitempty"` + // state + State string `json:"state,omitempty"` // tty Tty bool `json:"tty,omitempty"` diff --git a/vendor/github.com/vmware/vic/lib/config/executor/container_vm.go b/vendor/github.com/vmware/vic/lib/config/executor/container_vm.go index a6a23d36a..b616e08e6 100644 --- a/vendor/github.com/vmware/vic/lib/config/executor/container_vm.go +++ b/vendor/github.com/vmware/vic/lib/config/executor/container_vm.go @@ -234,7 +234,6 @@ type Cmd struct { type SessionConfig struct { // The primary session may have the same ID as the executor owning it Common `vic:"0.1" scope:"read-only" key:"common"` - Detail `vic:"0.1" scope:"read-write" key:"detail"` // The primary process for the session Cmd Cmd `vic:"0.1" scope:"read-only" key:"cmd"` @@ -278,6 +277,10 @@ type SessionConfig struct { // Need to go here since UID/GID resolution must be done on appliance User string `vic:"0.1" scope:"read-only" key:"User"` Group string `vic:"0.1" scope:"read-only" key:"Group"` + + // Detail contains create/started/stopped timestamps. It is placed last in the structure so that all + // other state serialization is complete by the time this is updated when iterating in order. + Detail `vic:"0.1" scope:"read-write" key:"detail"` } type Detail struct { diff --git a/vendor/github.com/vmware/vic/lib/constants/constants.go b/vendor/github.com/vmware/vic/lib/constants/constants.go index e7e29c252..43b2e870f 100644 --- a/vendor/github.com/vmware/vic/lib/constants/constants.go +++ b/vendor/github.com/vmware/vic/lib/constants/constants.go @@ -1,4 +1,4 @@ -// Copyright 2016 VMware, Inc. All Rights Reserved. +// Copyright 2016-2018 VMware, Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -78,6 +78,13 @@ const ( // Scratch layer ID ScratchLayerID = "scratch" + + // Task States + TaskRunningState = "running" + TaskStoppedState = "stopped" + TaskCreatedState = "created" + TaskFailedState = "failed" + TaskUnknownState = "unknown" ) func DefaultAltVCHGuestName() string { diff --git a/vendor/github.com/vmware/vic/pkg/trace/operation.go b/vendor/github.com/vmware/vic/pkg/trace/operation.go index 47e62a29e..53811d393 100644 --- a/vendor/github.com/vmware/vic/pkg/trace/operation.go +++ b/vendor/github.com/vmware/vic/pkg/trace/operation.go @@ -129,6 +129,10 @@ func (o *Operation) ID() string { return o.id } +func (o *Operation) Auditf(format string, args ...interface{}) { + o.Infof(format, args...) +} + func (o *Operation) Infof(format string, args ...interface{}) { o.Info(fmt.Sprintf(format, args...)) } @@ -213,13 +217,22 @@ func (o *Operation) Fatal(args ...interface{}) { } } -func (o *Operation) newChild(ctx context.Context, msg string) Operation { - child := newOperation(ctx, o.id, 4, msg) +func (o Operation) newChildCommon(ctx context.Context, opID string, msg string) Operation { + child := newOperation(ctx, opID, 5, msg) child.t = append(child.t, o.t...) child.Logger = o.Logger return child } +func (o Operation) newChild(ctx context.Context, msg string) Operation { + return o.newChildCommon(ctx, o.id, msg) +} + +func (o Operation) newChildWithChainedID(ctx context.Context, msg string) Operation { + childOpID := fmt.Sprintf("%s.%d", o.id, atomic.AddUint64(&opCount, 1)) + return o.newChildCommon(ctx, childOpID, msg) +} + func opID(opNum uint64) string { return fmt.Sprintf("%d.%d", opIDPrefix, opNum) } @@ -233,6 +246,24 @@ func NewOperation(ctx context.Context, format string, args ...interface{}) Opera return o } +// NewOperationFromID returns a an Operation with the incoming ID if valid +// It creates a parent operation with the incoming ID and a child with +// the parent operation ID as a prefix and a monotonically incremented +// integer as the suffix +func NewOperationFromID(ctx context.Context, ID *string, format string, args ...interface{}) Operation { + var o Operation + if ID == nil || *ID == "" { + o = newOperation(ctx, opID(atomic.AddUint64(&opCount, 1)), 3, fmt.Sprintf(format, args...)) + } else { + msg := fmt.Sprintf(format, args...) + o = newOperation(ctx, *ID, 3, msg).newChildWithChainedID(ctx, msg) + } + + frame := o.t[0] + o.Debugf("[NewOperationFromID] %s [%s:%d]", o.header(), frame.funcName, frame.lineNo) + return o +} + // NewOperationWithLoggerFrom will return a new operation with operationID added as a value to the // context and logging settings copied from the supplied operation. // diff --git a/vendor/github.com/vmware/vic/pkg/trace/trace.go b/vendor/github.com/vmware/vic/pkg/trace/trace.go index 316c9bad6..928abff13 100644 --- a/vendor/github.com/vmware/vic/pkg/trace/trace.go +++ b/vendor/github.com/vmware/vic/pkg/trace/trace.go @@ -108,7 +108,7 @@ func newTrace(msg string, skip int, opID string) *Message { // Begin starts the trace. Msg is the msg to log. // context provided to allow tracing of operationID // context added as optional to avoid breaking current usage -func Begin(msg string, ctx ...context.Context) *Message { +func begin(msg string, ctx ...context.Context) *Message { if tracingEnabled && Logger.Level >= logrus.DebugLevel { var opID string // populate operationID if provided @@ -117,7 +117,7 @@ func Begin(msg string, ctx ...context.Context) *Message { opID = id } } - if t := newTrace(msg, 2, opID); t != nil { + if t := newTrace(msg, 3, opID); t != nil { if msg == "" { Logger.Debugf("[BEGIN] %s [%s:%d]", t.operationID, t.funcName, t.lineNo) } else { @@ -130,6 +130,19 @@ func Begin(msg string, ctx ...context.Context) *Message { return nil } +func Begin(msg string, ctx ...context.Context) *Message { + return begin(msg, ctx...) +} + +// Audit is a wrapper around Begin which logs an Audit message after +func Audit(msg string, op Operation) *Message { + m := begin(msg, op) + if len(op.t) > 0 { // We expect an operation to always have at least one frame, but check for safety + op.Auditf(op.t[0].msg) + } + return m +} + // End ends the trace. func End(t *Message) { if t == nil { diff --git a/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/decode.go b/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/decode.go index 38e66e9e3..5e2e31f62 100644 --- a/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/decode.go +++ b/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/decode.go @@ -60,7 +60,7 @@ func init() { // decode is the generic switcher that decides which decoder to use for a field func decode(src DataSource, dest reflect.Value, prefix string, depth recursion) (reflect.Value, error) { // if depth has reached zero, we skip decoding entirely - if depth.depth == 0 { + if depth.depth == 0 || depth.skipDecode { return dest, nil } depth.depth-- @@ -445,7 +445,7 @@ func Decode(src DataSource, dest interface{}) interface{} { } // #nosec: Errors unhandled. - value, _ := decode(src, reflect.ValueOf(dest), DefaultPrefix, Unbounded) + value, _ := decode(src, reflect.ValueOf(dest), "", Unbounded) return value.Interface() } diff --git a/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/decode_linux.go b/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/decode_linux.go index dcb5d4491..351a3d62b 100644 --- a/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/decode_linux.go +++ b/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/decode_linux.go @@ -42,7 +42,7 @@ func GuestInfoSourceWithPrefix(prefix string) (DataSource, error) { source := func(key string) (string, error) { if key != GuestInfoSecretKey { - key = addPrefixToKey(DefaultGuestInfoPrefix, prefix, key) + key = addPrefixToKey(defaultGuestInfoPrefix(), prefix, key) } value, err := guestinfo.String(key, "") diff --git a/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/encode.go b/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/encode.go index 17f4b213c..bdf405514 100644 --- a/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/encode.go +++ b/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/encode.go @@ -62,7 +62,7 @@ func init() { // decode is the generic switcher that decides which decoder to use for a field func encode(sink DataSink, src reflect.Value, prefix string, depth recursion) { // if depth has reached zero, we skip encoding entirely - if depth.depth == 0 { + if depth.depth == 0 || depth.skipEncode { return } depth.depth-- @@ -258,7 +258,7 @@ type DataSink func(string, string) error // Encode serializes the given type to the supplied data sink func Encode(sink DataSink, src interface{}) { - encode(sink, reflect.ValueOf(src), DefaultPrefix, Unbounded) + encode(sink, reflect.ValueOf(src), "", Unbounded) } // EncodeWithPrefix serializes the given type to the supplied data sink, using diff --git a/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/encode_linux.go b/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/encode_linux.go index 94d742f6a..a25091422 100644 --- a/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/encode_linux.go +++ b/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/encode_linux.go @@ -47,7 +47,7 @@ func GuestInfoSinkWithPrefix(prefix string) (DataSink, error) { return nil } - key = addPrefixToKey(DefaultGuestInfoPrefix, prefix, key) + key = addPrefixToKey(defaultGuestInfoPrefix(), prefix, key) if value == "" { value = "" diff --git a/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/keys.go b/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/keys.go index 76e771b28..4d8c8ee3e 100644 --- a/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/keys.go +++ b/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/keys.go @@ -27,23 +27,64 @@ import ( ) const ( - // DefaultTagName value + // GuestInfoPrefix is dictated by vSphere + GuestInfoPrefix = "guestinfo." + + // ScopeTag is the tag name used for declaring scopes for a field + ScopeTag = "scope" + // KeyTag is the tag name by which to override default key naming based on field name + KeyTag = "key" + // RecurseTag is the tag name with which different recursion properties are declared + RecurseTag = "recurse" + + // HiddenScope means the key is hidden from the guest and will not have a GuestInfoPrefix + HiddenScope = "hidden" + // ReadOnlyScope means the key is read-only from the guest + ReadOnlyScope = "read-only" + // ReadWriteScope means the key may be read and modified by the guest + ReadWriteScope = "read-write" + // VolatileScope means that the value is expected to change and should be refreshed on use + VolatileScope = "volatile" + + // SecretSuffix means the value should be encrypted in the vmx. + SecretSuffix = "secret" + // NonPersistentSuffix means the key should only be written if the key will be deleted on guest power off. + NonPersistentSuffix = "non-persistent" + + // RecurseDepthProperty controls how deep to recuse into a structure field from this level. A value of zero + // prevents both encode and decode of that field. This is provided to control recursion into unannotated structures. + // This is unbounded if not specified. + RecurseDepthProperty = "depth" + // RecurseFollowProperty instructs encode and decode to follow pointers. + RecurseFollowProperty = "follow" + // RecurseNoFollowProperty instructs encode and decode not to follow pointers. + RecurseNoFollowProperty = "nofollow" + // RecurseSkipEncodeProperty causes the marked field and subfields to be skipped when encoding. + RecurseSkipEncodeProperty = "skip-encode" + // RecurseSkipDecodeProperty causes the marked field and subfields to be skipped when decoding. + RecurseSkipDecodeProperty = "skip-decode" +) + +// TODO: this entire section of variables should be turned into a config struct +// that can be passed to Encode and Decode, or that Encode and Decode are method on +var ( + // DefaultTagName is the annotation tag name we use for basic semantic version. Not currently used. DefaultTagName = "vic" - // DefaultPrefix value - DefaultPrefix = "" - // DefaultGuestInfoPrefix value - DefaultGuestInfoPrefix = "guestinfo.vice." + + // DefaultPrefix is prepended to generated key paths for basic namespacing + DefaultPrefix = "vice." + //Separator for slice values and map keys Separator = "|" // suffix separator character suffixSeparator = "@" - // secret suffix - secretSuffix = "secret" - // non-persistent suffix - nonpersistentSuffix = "non-persistent" ) +func defaultGuestInfoPrefix() string { + return GuestInfoPrefix + DefaultPrefix +} + const ( // Invalid value Invalid = 1 << iota @@ -51,6 +92,8 @@ const ( Hidden // ReadOnly value ReadOnly + // WriteOnly value + WriteOnly // ReadWrite value ReadWrite // NonPersistent value @@ -66,6 +109,10 @@ type recursion struct { depth int // follow controls whether we follow pointers follow bool + // set to skip decode of a field but still allow encode + skipDecode bool + // set to skip encode of a field but still allow decode + skipEncode bool } // Unbounded is the value used for unbounded recursion @@ -103,17 +150,17 @@ func calculateScope(scopes []string) uint { for _, v := range scopes { switch v { - case "hidden": + case HiddenScope: scope |= Hidden - case "read-only": + case ReadOnlyScope: scope |= ReadOnly - case "read-write": + case ReadWriteScope: scope |= ReadWrite - case nonpersistentSuffix: - scope |= NonPersistent - case "volatile": + case VolatileScope: scope |= Volatile - case secretSuffix: + case NonPersistentSuffix: + scope |= NonPersistent + case SecretSuffix: scope |= Secret | ReadOnly default: return Invalid @@ -130,7 +177,7 @@ func isSecret(key string) bool { } for i := range suffix[1:] { - if suffix[i+1] == secretSuffix { + if suffix[i+1] == SecretSuffix { return true } } @@ -146,7 +193,7 @@ func isNonPersistent(key string) bool { } for i := range suffix[1:] { - if suffix[i+1] == nonpersistentSuffix { + if suffix[i+1] == NonPersistentSuffix { return true } } @@ -157,22 +204,22 @@ func isNonPersistent(key string) bool { func calculateScopeFromKey(key string) []string { scopes := []string{} - if !strings.HasPrefix(key, DefaultGuestInfoPrefix) { - scopes = append(scopes, "hidden") + if !strings.HasPrefix(key, GuestInfoPrefix) { + scopes = append(scopes, HiddenScope) } if strings.Contains(key, "/") { - scopes = append(scopes, "read-only") + scopes = append(scopes, ReadOnlyScope) } else { - scopes = append(scopes, "read-write") + scopes = append(scopes, ReadWriteScope) } if isSecret(key) { - scopes = append(scopes, secretSuffix) + scopes = append(scopes, SecretSuffix) } if isNonPersistent(key) { - scopes = append(scopes, nonpersistentSuffix) + scopes = append(scopes, NonPersistentSuffix) } return scopes @@ -202,21 +249,21 @@ func calculateKeyFromField(field reflect.StructField, prefix string, depth recur // do we have DefaultTagName? if tags.Get(DefaultTagName) != "" { // get the scopes - scopes = strings.Split(tags.Get("scope"), ",") + scopes = strings.Split(tags.Get(ScopeTag), ",") logger.Debugf("Scopes: %#v", scopes) // get the keys and split properties from it - key = tags.Get("key") + key = tags.Get(KeyTag) logger.Debugf("Key specified: %s", key) // get the keys and split properties from it - recurse := tags.Get("recurse") + recurse := tags.Get(RecurseTag) if recurse != "" { props := strings.Split(recurse, ",") // process properties for _, prop := range props { // determine recursion depth - if strings.HasPrefix(prop, "depth") { + if strings.HasPrefix(prop, RecurseDepthProperty) { parts := strings.Split(prop, "=") if len(parts) != 2 { logger.Warnf("Skipping field with incorrect recurse property: %s", prop) @@ -229,10 +276,14 @@ func calculateKeyFromField(field reflect.StructField, prefix string, depth recur return "", skip } fdepth.depth = int(val) - } else if prop == "nofollow" { + } else if prop == RecurseNoFollowProperty { fdepth.follow = false - } else if prop == "follow" { + } else if prop == RecurseFollowProperty { fdepth.follow = true + } else if prop == RecurseSkipDecodeProperty { + fdepth.skipDecode = true + } else if prop == RecurseSkipEncodeProperty { + fdepth.skipEncode = true } else { logger.Warnf("Ignoring unknown recurse property %s (%s)", key, prop) continue @@ -278,7 +329,7 @@ func calculateKey(scope uint, prefix string, key string) string { hide := scope&Hidden != 0 write := scope&ReadWrite != 0 - visible := strings.HasPrefix(prefix, DefaultGuestInfoPrefix) + visible := strings.HasPrefix(prefix, GuestInfoPrefix) if !hide && write { oldSep = "/" @@ -298,7 +349,7 @@ func calculateKey(scope uint, prefix string, key string) string { } if scope&Secret != 0 { - out += suffixSeparator + secretSuffix + out += suffixSeparator + SecretSuffix } if scope&NonPersistent != 0 { @@ -306,7 +357,7 @@ func calculateKey(scope uint, prefix string, key string) string { logger.Debugf("Unable to combine non-persistent and hidden scopes") return "" } - out += suffixSeparator + nonpersistentSuffix + out += suffixSeparator + NonPersistentSuffix } // we don't care about existing separators when hiden @@ -316,7 +367,7 @@ func calculateKey(scope uint, prefix string, key string) string { } // strip the prefix and the leading r/w signifier - return out[len(DefaultGuestInfoPrefix)+1:] + return out[len(defaultGuestInfoPrefix())+1:] } // ensure that separators are correct @@ -324,11 +375,11 @@ func calculateKey(scope uint, prefix string, key string) string { // Assemble the base that controls key publishing in guest if !visible { - return DefaultGuestInfoPrefix + newSep + out + return defaultGuestInfoPrefix() + newSep + out } // prefix will have been mangled by strings.Replace - return DefaultGuestInfoPrefix + out[len(DefaultGuestInfoPrefix):] + return defaultGuestInfoPrefix() + out[len(defaultGuestInfoPrefix()):] } // utility function to allow adding of arbitrary prefix into key @@ -508,3 +559,14 @@ func calculateKeys(v reflect.Value, field string, prefix string) []string { func CalculateKeys(obj interface{}, field string, prefix string) []string { return calculateKeys(reflect.ValueOf(obj), field, prefix) } + +// CalculateKey is a specific case of CalculateKeys that will panic if more than one key +// matches the field pattern passed in. +func CalculateKey(obj interface{}, field string, prefix string) string { + keys := calculateKeys(reflect.ValueOf(obj), field, prefix) + if len(keys) != 1 { + panic("CalculateKey should only ever return one key") + } + + return keys[0] +} diff --git a/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/secret.go b/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/secret.go index a8f15dcd1..2a5d4f14e 100644 --- a/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/secret.go +++ b/vendor/github.com/vmware/vic/pkg/vsphere/extraconfig/secret.go @@ -27,7 +27,7 @@ import ( // The value of this key is hidden from API requests, but visible within the guest // #nosec: Potential hardcoded credentials -const GuestInfoSecretKey = "guestinfo.ovfEnv" +const GuestInfoSecretKey = GuestInfoPrefix + "ovfEnv" // SecretKey provides helpers to encrypt/decrypt extraconfig values type SecretKey struct { diff --git a/vendor/github.com/vmware/vic/pkg/vsphere/session/session.go b/vendor/github.com/vmware/vic/pkg/vsphere/session/session.go index 6a3b4bc03..8709a8cef 100644 --- a/vendor/github.com/vmware/vic/pkg/vsphere/session/session.go +++ b/vendor/github.com/vmware/vic/pkg/vsphere/session/session.go @@ -226,6 +226,9 @@ func (s *Session) Connect(ctx context.Context) (*Session, error) { } soapClient.UserAgent = s.UserAgent + if s.UserAgent == "" { + op.Debug("DEVNOTICE: Session created with default user agent.") + } soapClient.SetThumbprint(soapURL.Host, s.Thumbprint) @@ -366,10 +369,46 @@ func (s *Session) Populate(ctx context.Context) (*Session, error) { op.Debugf("Cached pool: %s", s.PoolPath) } + err = s.setDatacenterFolders(op) + if err != nil { + errs = append(errs, fmt.Sprintf("Failure finding folders (%s): %s", s.DatacenterPath, err.Error())) + } + + if len(errs) > 0 { + op.Debugf("Error count populating vSphere cache: (%d)", len(errs)) + return nil, errors.New(strings.Join(errs, "\n")) + } + op.Debug("vSphere resource cache populated...") + return s, nil +} + +func (s *Session) SetDatacenter(op trace.Operation, datacenter *object.Datacenter) error { + s.Datacenter = datacenter + s.Finder.SetDatacenter(datacenter) + + if datacenter == nil { + s.DatacenterPath = "" + return nil + } + + s.DatacenterPath = datacenter.InventoryPath + + // Do what Populate would have done if datacenterPath were set + err := s.setDatacenterFolders(op) + if err != nil { + return err + } + + return nil +} + +func (s *Session) setDatacenterFolders(op trace.Operation) error { + var err error + if s.Datacenter != nil { - folders, err := s.Datacenter.Folders(op) - if err != nil { - errs = append(errs, fmt.Sprintf("Failure finding folders (%s): %s", s.DatacenterPath, err.Error())) + folders, e := s.Datacenter.Folders(op) + if e != nil { + err = e } else { op.Debugf("Cached folders: %s", s.DatacenterPath) } @@ -384,12 +423,7 @@ func (s *Session) Populate(ctx context.Context) (*Session, error) { s.VCHFolder = folders.VmFolder } - if len(errs) > 0 { - op.Debugf("Error count populating vSphere cache: (%d)", len(errs)) - return nil, errors.New(strings.Join(errs, "\n")) - } - op.Debug("vSphere resource cache populated...") - return s, nil + return err } func (s *Session) logEnvironmentInfo(op trace.Operation) { diff --git a/vendor/golang.org/x/crypto/pkcs12/bmp-string.go b/vendor/golang.org/x/crypto/pkcs12/bmp-string.go new file mode 100644 index 000000000..233b8b62c --- /dev/null +++ b/vendor/golang.org/x/crypto/pkcs12/bmp-string.go @@ -0,0 +1,50 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package pkcs12 + +import ( + "errors" + "unicode/utf16" +) + +// bmpString returns s encoded in UCS-2 with a zero terminator. +func bmpString(s string) ([]byte, error) { + // References: + // https://tools.ietf.org/html/rfc7292#appendix-B.1 + // https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane + // - non-BMP characters are encoded in UTF 16 by using a surrogate pair of 16-bit codes + // EncodeRune returns 0xfffd if the rune does not need special encoding + // - the above RFC provides the info that BMPStrings are NULL terminated. + + ret := make([]byte, 0, 2*len(s)+2) + + for _, r := range s { + if t, _ := utf16.EncodeRune(r); t != 0xfffd { + return nil, errors.New("pkcs12: string contains characters that cannot be encoded in UCS-2") + } + ret = append(ret, byte(r/256), byte(r%256)) + } + + return append(ret, 0, 0), nil +} + +func decodeBMPString(bmpString []byte) (string, error) { + if len(bmpString)%2 != 0 { + return "", errors.New("pkcs12: odd-length BMP string") + } + + // strip terminator if present + if l := len(bmpString); l >= 2 && bmpString[l-1] == 0 && bmpString[l-2] == 0 { + bmpString = bmpString[:l-2] + } + + s := make([]uint16, 0, len(bmpString)/2) + for len(bmpString) > 0 { + s = append(s, uint16(bmpString[0])<<8+uint16(bmpString[1])) + bmpString = bmpString[2:] + } + + return string(utf16.Decode(s)), nil +} diff --git a/vendor/golang.org/x/crypto/pkcs12/crypto.go b/vendor/golang.org/x/crypto/pkcs12/crypto.go new file mode 100644 index 000000000..484ca51b7 --- /dev/null +++ b/vendor/golang.org/x/crypto/pkcs12/crypto.go @@ -0,0 +1,131 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package pkcs12 + +import ( + "bytes" + "crypto/cipher" + "crypto/des" + "crypto/x509/pkix" + "encoding/asn1" + "errors" + + "golang.org/x/crypto/pkcs12/internal/rc2" +) + +var ( + oidPBEWithSHAAnd3KeyTripleDESCBC = asn1.ObjectIdentifier([]int{1, 2, 840, 113549, 1, 12, 1, 3}) + oidPBEWithSHAAnd40BitRC2CBC = asn1.ObjectIdentifier([]int{1, 2, 840, 113549, 1, 12, 1, 6}) +) + +// pbeCipher is an abstraction of a PKCS#12 cipher. +type pbeCipher interface { + // create returns a cipher.Block given a key. + create(key []byte) (cipher.Block, error) + // deriveKey returns a key derived from the given password and salt. + deriveKey(salt, password []byte, iterations int) []byte + // deriveKey returns an IV derived from the given password and salt. + deriveIV(salt, password []byte, iterations int) []byte +} + +type shaWithTripleDESCBC struct{} + +func (shaWithTripleDESCBC) create(key []byte) (cipher.Block, error) { + return des.NewTripleDESCipher(key) +} + +func (shaWithTripleDESCBC) deriveKey(salt, password []byte, iterations int) []byte { + return pbkdf(sha1Sum, 20, 64, salt, password, iterations, 1, 24) +} + +func (shaWithTripleDESCBC) deriveIV(salt, password []byte, iterations int) []byte { + return pbkdf(sha1Sum, 20, 64, salt, password, iterations, 2, 8) +} + +type shaWith40BitRC2CBC struct{} + +func (shaWith40BitRC2CBC) create(key []byte) (cipher.Block, error) { + return rc2.New(key, len(key)*8) +} + +func (shaWith40BitRC2CBC) deriveKey(salt, password []byte, iterations int) []byte { + return pbkdf(sha1Sum, 20, 64, salt, password, iterations, 1, 5) +} + +func (shaWith40BitRC2CBC) deriveIV(salt, password []byte, iterations int) []byte { + return pbkdf(sha1Sum, 20, 64, salt, password, iterations, 2, 8) +} + +type pbeParams struct { + Salt []byte + Iterations int +} + +func pbDecrypterFor(algorithm pkix.AlgorithmIdentifier, password []byte) (cipher.BlockMode, int, error) { + var cipherType pbeCipher + + switch { + case algorithm.Algorithm.Equal(oidPBEWithSHAAnd3KeyTripleDESCBC): + cipherType = shaWithTripleDESCBC{} + case algorithm.Algorithm.Equal(oidPBEWithSHAAnd40BitRC2CBC): + cipherType = shaWith40BitRC2CBC{} + default: + return nil, 0, NotImplementedError("algorithm " + algorithm.Algorithm.String() + " is not supported") + } + + var params pbeParams + if err := unmarshal(algorithm.Parameters.FullBytes, ¶ms); err != nil { + return nil, 0, err + } + + key := cipherType.deriveKey(params.Salt, password, params.Iterations) + iv := cipherType.deriveIV(params.Salt, password, params.Iterations) + + block, err := cipherType.create(key) + if err != nil { + return nil, 0, err + } + + return cipher.NewCBCDecrypter(block, iv), block.BlockSize(), nil +} + +func pbDecrypt(info decryptable, password []byte) (decrypted []byte, err error) { + cbc, blockSize, err := pbDecrypterFor(info.Algorithm(), password) + if err != nil { + return nil, err + } + + encrypted := info.Data() + if len(encrypted) == 0 { + return nil, errors.New("pkcs12: empty encrypted data") + } + if len(encrypted)%blockSize != 0 { + return nil, errors.New("pkcs12: input is not a multiple of the block size") + } + decrypted = make([]byte, len(encrypted)) + cbc.CryptBlocks(decrypted, encrypted) + + psLen := int(decrypted[len(decrypted)-1]) + if psLen == 0 || psLen > blockSize { + return nil, ErrDecryption + } + + if len(decrypted) < psLen { + return nil, ErrDecryption + } + ps := decrypted[len(decrypted)-psLen:] + decrypted = decrypted[:len(decrypted)-psLen] + if bytes.Compare(ps, bytes.Repeat([]byte{byte(psLen)}, psLen)) != 0 { + return nil, ErrDecryption + } + + return +} + +// decryptable abstracts an object that contains ciphertext. +type decryptable interface { + Algorithm() pkix.AlgorithmIdentifier + Data() []byte +} diff --git a/vendor/golang.org/x/crypto/pkcs12/errors.go b/vendor/golang.org/x/crypto/pkcs12/errors.go new file mode 100644 index 000000000..7377ce6fb --- /dev/null +++ b/vendor/golang.org/x/crypto/pkcs12/errors.go @@ -0,0 +1,23 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package pkcs12 + +import "errors" + +var ( + // ErrDecryption represents a failure to decrypt the input. + ErrDecryption = errors.New("pkcs12: decryption error, incorrect padding") + + // ErrIncorrectPassword is returned when an incorrect password is detected. + // Usually, P12/PFX data is signed to be able to verify the password. + ErrIncorrectPassword = errors.New("pkcs12: decryption password incorrect") +) + +// NotImplementedError indicates that the input is not currently supported. +type NotImplementedError string + +func (e NotImplementedError) Error() string { + return "pkcs12: " + string(e) +} diff --git a/vendor/golang.org/x/crypto/pkcs12/internal/rc2/rc2.go b/vendor/golang.org/x/crypto/pkcs12/internal/rc2/rc2.go new file mode 100644 index 000000000..7499e3fb6 --- /dev/null +++ b/vendor/golang.org/x/crypto/pkcs12/internal/rc2/rc2.go @@ -0,0 +1,271 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package rc2 implements the RC2 cipher +/* +https://www.ietf.org/rfc/rfc2268.txt +http://people.csail.mit.edu/rivest/pubs/KRRR98.pdf + +This code is licensed under the MIT license. +*/ +package rc2 + +import ( + "crypto/cipher" + "encoding/binary" +) + +// The rc2 block size in bytes +const BlockSize = 8 + +type rc2Cipher struct { + k [64]uint16 +} + +// New returns a new rc2 cipher with the given key and effective key length t1 +func New(key []byte, t1 int) (cipher.Block, error) { + // TODO(dgryski): error checking for key length + return &rc2Cipher{ + k: expandKey(key, t1), + }, nil +} + +func (*rc2Cipher) BlockSize() int { return BlockSize } + +var piTable = [256]byte{ + 0xd9, 0x78, 0xf9, 0xc4, 0x19, 0xdd, 0xb5, 0xed, 0x28, 0xe9, 0xfd, 0x79, 0x4a, 0xa0, 0xd8, 0x9d, + 0xc6, 0x7e, 0x37, 0x83, 0x2b, 0x76, 0x53, 0x8e, 0x62, 0x4c, 0x64, 0x88, 0x44, 0x8b, 0xfb, 0xa2, + 0x17, 0x9a, 0x59, 0xf5, 0x87, 0xb3, 0x4f, 0x13, 0x61, 0x45, 0x6d, 0x8d, 0x09, 0x81, 0x7d, 0x32, + 0xbd, 0x8f, 0x40, 0xeb, 0x86, 0xb7, 0x7b, 0x0b, 0xf0, 0x95, 0x21, 0x22, 0x5c, 0x6b, 0x4e, 0x82, + 0x54, 0xd6, 0x65, 0x93, 0xce, 0x60, 0xb2, 0x1c, 0x73, 0x56, 0xc0, 0x14, 0xa7, 0x8c, 0xf1, 0xdc, + 0x12, 0x75, 0xca, 0x1f, 0x3b, 0xbe, 0xe4, 0xd1, 0x42, 0x3d, 0xd4, 0x30, 0xa3, 0x3c, 0xb6, 0x26, + 0x6f, 0xbf, 0x0e, 0xda, 0x46, 0x69, 0x07, 0x57, 0x27, 0xf2, 0x1d, 0x9b, 0xbc, 0x94, 0x43, 0x03, + 0xf8, 0x11, 0xc7, 0xf6, 0x90, 0xef, 0x3e, 0xe7, 0x06, 0xc3, 0xd5, 0x2f, 0xc8, 0x66, 0x1e, 0xd7, + 0x08, 0xe8, 0xea, 0xde, 0x80, 0x52, 0xee, 0xf7, 0x84, 0xaa, 0x72, 0xac, 0x35, 0x4d, 0x6a, 0x2a, + 0x96, 0x1a, 0xd2, 0x71, 0x5a, 0x15, 0x49, 0x74, 0x4b, 0x9f, 0xd0, 0x5e, 0x04, 0x18, 0xa4, 0xec, + 0xc2, 0xe0, 0x41, 0x6e, 0x0f, 0x51, 0xcb, 0xcc, 0x24, 0x91, 0xaf, 0x50, 0xa1, 0xf4, 0x70, 0x39, + 0x99, 0x7c, 0x3a, 0x85, 0x23, 0xb8, 0xb4, 0x7a, 0xfc, 0x02, 0x36, 0x5b, 0x25, 0x55, 0x97, 0x31, + 0x2d, 0x5d, 0xfa, 0x98, 0xe3, 0x8a, 0x92, 0xae, 0x05, 0xdf, 0x29, 0x10, 0x67, 0x6c, 0xba, 0xc9, + 0xd3, 0x00, 0xe6, 0xcf, 0xe1, 0x9e, 0xa8, 0x2c, 0x63, 0x16, 0x01, 0x3f, 0x58, 0xe2, 0x89, 0xa9, + 0x0d, 0x38, 0x34, 0x1b, 0xab, 0x33, 0xff, 0xb0, 0xbb, 0x48, 0x0c, 0x5f, 0xb9, 0xb1, 0xcd, 0x2e, + 0xc5, 0xf3, 0xdb, 0x47, 0xe5, 0xa5, 0x9c, 0x77, 0x0a, 0xa6, 0x20, 0x68, 0xfe, 0x7f, 0xc1, 0xad, +} + +func expandKey(key []byte, t1 int) [64]uint16 { + + l := make([]byte, 128) + copy(l, key) + + var t = len(key) + var t8 = (t1 + 7) / 8 + var tm = byte(255 % uint(1<<(8+uint(t1)-8*uint(t8)))) + + for i := len(key); i < 128; i++ { + l[i] = piTable[l[i-1]+l[uint8(i-t)]] + } + + l[128-t8] = piTable[l[128-t8]&tm] + + for i := 127 - t8; i >= 0; i-- { + l[i] = piTable[l[i+1]^l[i+t8]] + } + + var k [64]uint16 + + for i := range k { + k[i] = uint16(l[2*i]) + uint16(l[2*i+1])*256 + } + + return k +} + +func rotl16(x uint16, b uint) uint16 { + return (x >> (16 - b)) | (x << b) +} + +func (c *rc2Cipher) Encrypt(dst, src []byte) { + + r0 := binary.LittleEndian.Uint16(src[0:]) + r1 := binary.LittleEndian.Uint16(src[2:]) + r2 := binary.LittleEndian.Uint16(src[4:]) + r3 := binary.LittleEndian.Uint16(src[6:]) + + var j int + + for j <= 16 { + // mix r0 + r0 = r0 + c.k[j] + (r3 & r2) + ((^r3) & r1) + r0 = rotl16(r0, 1) + j++ + + // mix r1 + r1 = r1 + c.k[j] + (r0 & r3) + ((^r0) & r2) + r1 = rotl16(r1, 2) + j++ + + // mix r2 + r2 = r2 + c.k[j] + (r1 & r0) + ((^r1) & r3) + r2 = rotl16(r2, 3) + j++ + + // mix r3 + r3 = r3 + c.k[j] + (r2 & r1) + ((^r2) & r0) + r3 = rotl16(r3, 5) + j++ + + } + + r0 = r0 + c.k[r3&63] + r1 = r1 + c.k[r0&63] + r2 = r2 + c.k[r1&63] + r3 = r3 + c.k[r2&63] + + for j <= 40 { + // mix r0 + r0 = r0 + c.k[j] + (r3 & r2) + ((^r3) & r1) + r0 = rotl16(r0, 1) + j++ + + // mix r1 + r1 = r1 + c.k[j] + (r0 & r3) + ((^r0) & r2) + r1 = rotl16(r1, 2) + j++ + + // mix r2 + r2 = r2 + c.k[j] + (r1 & r0) + ((^r1) & r3) + r2 = rotl16(r2, 3) + j++ + + // mix r3 + r3 = r3 + c.k[j] + (r2 & r1) + ((^r2) & r0) + r3 = rotl16(r3, 5) + j++ + + } + + r0 = r0 + c.k[r3&63] + r1 = r1 + c.k[r0&63] + r2 = r2 + c.k[r1&63] + r3 = r3 + c.k[r2&63] + + for j <= 60 { + // mix r0 + r0 = r0 + c.k[j] + (r3 & r2) + ((^r3) & r1) + r0 = rotl16(r0, 1) + j++ + + // mix r1 + r1 = r1 + c.k[j] + (r0 & r3) + ((^r0) & r2) + r1 = rotl16(r1, 2) + j++ + + // mix r2 + r2 = r2 + c.k[j] + (r1 & r0) + ((^r1) & r3) + r2 = rotl16(r2, 3) + j++ + + // mix r3 + r3 = r3 + c.k[j] + (r2 & r1) + ((^r2) & r0) + r3 = rotl16(r3, 5) + j++ + } + + binary.LittleEndian.PutUint16(dst[0:], r0) + binary.LittleEndian.PutUint16(dst[2:], r1) + binary.LittleEndian.PutUint16(dst[4:], r2) + binary.LittleEndian.PutUint16(dst[6:], r3) +} + +func (c *rc2Cipher) Decrypt(dst, src []byte) { + + r0 := binary.LittleEndian.Uint16(src[0:]) + r1 := binary.LittleEndian.Uint16(src[2:]) + r2 := binary.LittleEndian.Uint16(src[4:]) + r3 := binary.LittleEndian.Uint16(src[6:]) + + j := 63 + + for j >= 44 { + // unmix r3 + r3 = rotl16(r3, 16-5) + r3 = r3 - c.k[j] - (r2 & r1) - ((^r2) & r0) + j-- + + // unmix r2 + r2 = rotl16(r2, 16-3) + r2 = r2 - c.k[j] - (r1 & r0) - ((^r1) & r3) + j-- + + // unmix r1 + r1 = rotl16(r1, 16-2) + r1 = r1 - c.k[j] - (r0 & r3) - ((^r0) & r2) + j-- + + // unmix r0 + r0 = rotl16(r0, 16-1) + r0 = r0 - c.k[j] - (r3 & r2) - ((^r3) & r1) + j-- + } + + r3 = r3 - c.k[r2&63] + r2 = r2 - c.k[r1&63] + r1 = r1 - c.k[r0&63] + r0 = r0 - c.k[r3&63] + + for j >= 20 { + // unmix r3 + r3 = rotl16(r3, 16-5) + r3 = r3 - c.k[j] - (r2 & r1) - ((^r2) & r0) + j-- + + // unmix r2 + r2 = rotl16(r2, 16-3) + r2 = r2 - c.k[j] - (r1 & r0) - ((^r1) & r3) + j-- + + // unmix r1 + r1 = rotl16(r1, 16-2) + r1 = r1 - c.k[j] - (r0 & r3) - ((^r0) & r2) + j-- + + // unmix r0 + r0 = rotl16(r0, 16-1) + r0 = r0 - c.k[j] - (r3 & r2) - ((^r3) & r1) + j-- + + } + + r3 = r3 - c.k[r2&63] + r2 = r2 - c.k[r1&63] + r1 = r1 - c.k[r0&63] + r0 = r0 - c.k[r3&63] + + for j >= 0 { + // unmix r3 + r3 = rotl16(r3, 16-5) + r3 = r3 - c.k[j] - (r2 & r1) - ((^r2) & r0) + j-- + + // unmix r2 + r2 = rotl16(r2, 16-3) + r2 = r2 - c.k[j] - (r1 & r0) - ((^r1) & r3) + j-- + + // unmix r1 + r1 = rotl16(r1, 16-2) + r1 = r1 - c.k[j] - (r0 & r3) - ((^r0) & r2) + j-- + + // unmix r0 + r0 = rotl16(r0, 16-1) + r0 = r0 - c.k[j] - (r3 & r2) - ((^r3) & r1) + j-- + + } + + binary.LittleEndian.PutUint16(dst[0:], r0) + binary.LittleEndian.PutUint16(dst[2:], r1) + binary.LittleEndian.PutUint16(dst[4:], r2) + binary.LittleEndian.PutUint16(dst[6:], r3) +} diff --git a/vendor/golang.org/x/crypto/pkcs12/mac.go b/vendor/golang.org/x/crypto/pkcs12/mac.go new file mode 100644 index 000000000..5f38aa7de --- /dev/null +++ b/vendor/golang.org/x/crypto/pkcs12/mac.go @@ -0,0 +1,45 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package pkcs12 + +import ( + "crypto/hmac" + "crypto/sha1" + "crypto/x509/pkix" + "encoding/asn1" +) + +type macData struct { + Mac digestInfo + MacSalt []byte + Iterations int `asn1:"optional,default:1"` +} + +// from PKCS#7: +type digestInfo struct { + Algorithm pkix.AlgorithmIdentifier + Digest []byte +} + +var ( + oidSHA1 = asn1.ObjectIdentifier([]int{1, 3, 14, 3, 2, 26}) +) + +func verifyMac(macData *macData, message, password []byte) error { + if !macData.Mac.Algorithm.Algorithm.Equal(oidSHA1) { + return NotImplementedError("unknown digest algorithm: " + macData.Mac.Algorithm.Algorithm.String()) + } + + key := pbkdf(sha1Sum, 20, 64, macData.MacSalt, password, macData.Iterations, 3, 20) + + mac := hmac.New(sha1.New, key) + mac.Write(message) + expectedMAC := mac.Sum(nil) + + if !hmac.Equal(macData.Mac.Digest, expectedMAC) { + return ErrIncorrectPassword + } + return nil +} diff --git a/vendor/golang.org/x/crypto/pkcs12/pbkdf.go b/vendor/golang.org/x/crypto/pkcs12/pbkdf.go new file mode 100644 index 000000000..5c419d41e --- /dev/null +++ b/vendor/golang.org/x/crypto/pkcs12/pbkdf.go @@ -0,0 +1,170 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package pkcs12 + +import ( + "bytes" + "crypto/sha1" + "math/big" +) + +var ( + one = big.NewInt(1) +) + +// sha1Sum returns the SHA-1 hash of in. +func sha1Sum(in []byte) []byte { + sum := sha1.Sum(in) + return sum[:] +} + +// fillWithRepeats returns v*ceiling(len(pattern) / v) bytes consisting of +// repeats of pattern. +func fillWithRepeats(pattern []byte, v int) []byte { + if len(pattern) == 0 { + return nil + } + outputLen := v * ((len(pattern) + v - 1) / v) + return bytes.Repeat(pattern, (outputLen+len(pattern)-1)/len(pattern))[:outputLen] +} + +func pbkdf(hash func([]byte) []byte, u, v int, salt, password []byte, r int, ID byte, size int) (key []byte) { + // implementation of https://tools.ietf.org/html/rfc7292#appendix-B.2 , RFC text verbatim in comments + + // Let H be a hash function built around a compression function f: + + // Z_2^u x Z_2^v -> Z_2^u + + // (that is, H has a chaining variable and output of length u bits, and + // the message input to the compression function of H is v bits). The + // values for u and v are as follows: + + // HASH FUNCTION VALUE u VALUE v + // MD2, MD5 128 512 + // SHA-1 160 512 + // SHA-224 224 512 + // SHA-256 256 512 + // SHA-384 384 1024 + // SHA-512 512 1024 + // SHA-512/224 224 1024 + // SHA-512/256 256 1024 + + // Furthermore, let r be the iteration count. + + // We assume here that u and v are both multiples of 8, as are the + // lengths of the password and salt strings (which we denote by p and s, + // respectively) and the number n of pseudorandom bits required. In + // addition, u and v are of course non-zero. + + // For information on security considerations for MD5 [19], see [25] and + // [1], and on those for MD2, see [18]. + + // The following procedure can be used to produce pseudorandom bits for + // a particular "purpose" that is identified by a byte called "ID". + // This standard specifies 3 different values for the ID byte: + + // 1. If ID=1, then the pseudorandom bits being produced are to be used + // as key material for performing encryption or decryption. + + // 2. If ID=2, then the pseudorandom bits being produced are to be used + // as an IV (Initial Value) for encryption or decryption. + + // 3. If ID=3, then the pseudorandom bits being produced are to be used + // as an integrity key for MACing. + + // 1. Construct a string, D (the "diversifier"), by concatenating v/8 + // copies of ID. + var D []byte + for i := 0; i < v; i++ { + D = append(D, ID) + } + + // 2. Concatenate copies of the salt together to create a string S of + // length v(ceiling(s/v)) bits (the final copy of the salt may be + // truncated to create S). Note that if the salt is the empty + // string, then so is S. + + S := fillWithRepeats(salt, v) + + // 3. Concatenate copies of the password together to create a string P + // of length v(ceiling(p/v)) bits (the final copy of the password + // may be truncated to create P). Note that if the password is the + // empty string, then so is P. + + P := fillWithRepeats(password, v) + + // 4. Set I=S||P to be the concatenation of S and P. + I := append(S, P...) + + // 5. Set c=ceiling(n/u). + c := (size + u - 1) / u + + // 6. For i=1, 2, ..., c, do the following: + A := make([]byte, c*20) + var IjBuf []byte + for i := 0; i < c; i++ { + // A. Set A2=H^r(D||I). (i.e., the r-th hash of D||1, + // H(H(H(... H(D||I)))) + Ai := hash(append(D, I...)) + for j := 1; j < r; j++ { + Ai = hash(Ai) + } + copy(A[i*20:], Ai[:]) + + if i < c-1 { // skip on last iteration + // B. Concatenate copies of Ai to create a string B of length v + // bits (the final copy of Ai may be truncated to create B). + var B []byte + for len(B) < v { + B = append(B, Ai[:]...) + } + B = B[:v] + + // C. Treating I as a concatenation I_0, I_1, ..., I_(k-1) of v-bit + // blocks, where k=ceiling(s/v)+ceiling(p/v), modify I by + // setting I_j=(I_j+B+1) mod 2^v for each j. + { + Bbi := new(big.Int).SetBytes(B) + Ij := new(big.Int) + + for j := 0; j < len(I)/v; j++ { + Ij.SetBytes(I[j*v : (j+1)*v]) + Ij.Add(Ij, Bbi) + Ij.Add(Ij, one) + Ijb := Ij.Bytes() + // We expect Ijb to be exactly v bytes, + // if it is longer or shorter we must + // adjust it accordingly. + if len(Ijb) > v { + Ijb = Ijb[len(Ijb)-v:] + } + if len(Ijb) < v { + if IjBuf == nil { + IjBuf = make([]byte, v) + } + bytesShort := v - len(Ijb) + for i := 0; i < bytesShort; i++ { + IjBuf[i] = 0 + } + copy(IjBuf[bytesShort:], Ijb) + Ijb = IjBuf + } + copy(I[j*v:(j+1)*v], Ijb) + } + } + } + } + // 7. Concatenate A_1, A_2, ..., A_c together to form a pseudorandom + // bit string, A. + + // 8. Use the first n bits of A as the output of this entire process. + return A[:size] + + // If the above process is being used to generate a DES key, the process + // should be used to create 64 random bits, and the key's parity bits + // should be set after the 64 bits have been produced. Similar concerns + // hold for 2-key and 3-key triple-DES keys, for CDMF keys, and for any + // similar keys with parity bits "built into them". +} diff --git a/vendor/golang.org/x/crypto/pkcs12/pkcs12.go b/vendor/golang.org/x/crypto/pkcs12/pkcs12.go new file mode 100644 index 000000000..eff9ad3a9 --- /dev/null +++ b/vendor/golang.org/x/crypto/pkcs12/pkcs12.go @@ -0,0 +1,346 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package pkcs12 implements some of PKCS#12. +// +// This implementation is distilled from https://tools.ietf.org/html/rfc7292 +// and referenced documents. It is intended for decoding P12/PFX-stored +// certificates and keys for use with the crypto/tls package. +package pkcs12 + +import ( + "crypto/ecdsa" + "crypto/rsa" + "crypto/x509" + "crypto/x509/pkix" + "encoding/asn1" + "encoding/hex" + "encoding/pem" + "errors" +) + +var ( + oidDataContentType = asn1.ObjectIdentifier([]int{1, 2, 840, 113549, 1, 7, 1}) + oidEncryptedDataContentType = asn1.ObjectIdentifier([]int{1, 2, 840, 113549, 1, 7, 6}) + + oidFriendlyName = asn1.ObjectIdentifier([]int{1, 2, 840, 113549, 1, 9, 20}) + oidLocalKeyID = asn1.ObjectIdentifier([]int{1, 2, 840, 113549, 1, 9, 21}) + oidMicrosoftCSPName = asn1.ObjectIdentifier([]int{1, 3, 6, 1, 4, 1, 311, 17, 1}) +) + +type pfxPdu struct { + Version int + AuthSafe contentInfo + MacData macData `asn1:"optional"` +} + +type contentInfo struct { + ContentType asn1.ObjectIdentifier + Content asn1.RawValue `asn1:"tag:0,explicit,optional"` +} + +type encryptedData struct { + Version int + EncryptedContentInfo encryptedContentInfo +} + +type encryptedContentInfo struct { + ContentType asn1.ObjectIdentifier + ContentEncryptionAlgorithm pkix.AlgorithmIdentifier + EncryptedContent []byte `asn1:"tag:0,optional"` +} + +func (i encryptedContentInfo) Algorithm() pkix.AlgorithmIdentifier { + return i.ContentEncryptionAlgorithm +} + +func (i encryptedContentInfo) Data() []byte { return i.EncryptedContent } + +type safeBag struct { + Id asn1.ObjectIdentifier + Value asn1.RawValue `asn1:"tag:0,explicit"` + Attributes []pkcs12Attribute `asn1:"set,optional"` +} + +type pkcs12Attribute struct { + Id asn1.ObjectIdentifier + Value asn1.RawValue `asn1:"set"` +} + +type encryptedPrivateKeyInfo struct { + AlgorithmIdentifier pkix.AlgorithmIdentifier + EncryptedData []byte +} + +func (i encryptedPrivateKeyInfo) Algorithm() pkix.AlgorithmIdentifier { + return i.AlgorithmIdentifier +} + +func (i encryptedPrivateKeyInfo) Data() []byte { + return i.EncryptedData +} + +// PEM block types +const ( + certificateType = "CERTIFICATE" + privateKeyType = "PRIVATE KEY" +) + +// unmarshal calls asn1.Unmarshal, but also returns an error if there is any +// trailing data after unmarshaling. +func unmarshal(in []byte, out interface{}) error { + trailing, err := asn1.Unmarshal(in, out) + if err != nil { + return err + } + if len(trailing) != 0 { + return errors.New("pkcs12: trailing data found") + } + return nil +} + +// ConvertToPEM converts all "safe bags" contained in pfxData to PEM blocks. +func ToPEM(pfxData []byte, password string) ([]*pem.Block, error) { + encodedPassword, err := bmpString(password) + if err != nil { + return nil, ErrIncorrectPassword + } + + bags, encodedPassword, err := getSafeContents(pfxData, encodedPassword) + + if err != nil { + return nil, err + } + + blocks := make([]*pem.Block, 0, len(bags)) + for _, bag := range bags { + block, err := convertBag(&bag, encodedPassword) + if err != nil { + return nil, err + } + blocks = append(blocks, block) + } + + return blocks, nil +} + +func convertBag(bag *safeBag, password []byte) (*pem.Block, error) { + block := &pem.Block{ + Headers: make(map[string]string), + } + + for _, attribute := range bag.Attributes { + k, v, err := convertAttribute(&attribute) + if err != nil { + return nil, err + } + block.Headers[k] = v + } + + switch { + case bag.Id.Equal(oidCertBag): + block.Type = certificateType + certsData, err := decodeCertBag(bag.Value.Bytes) + if err != nil { + return nil, err + } + block.Bytes = certsData + case bag.Id.Equal(oidPKCS8ShroundedKeyBag): + block.Type = privateKeyType + + key, err := decodePkcs8ShroudedKeyBag(bag.Value.Bytes, password) + if err != nil { + return nil, err + } + + switch key := key.(type) { + case *rsa.PrivateKey: + block.Bytes = x509.MarshalPKCS1PrivateKey(key) + case *ecdsa.PrivateKey: + block.Bytes, err = x509.MarshalECPrivateKey(key) + if err != nil { + return nil, err + } + default: + return nil, errors.New("found unknown private key type in PKCS#8 wrapping") + } + default: + return nil, errors.New("don't know how to convert a safe bag of type " + bag.Id.String()) + } + return block, nil +} + +func convertAttribute(attribute *pkcs12Attribute) (key, value string, err error) { + isString := false + + switch { + case attribute.Id.Equal(oidFriendlyName): + key = "friendlyName" + isString = true + case attribute.Id.Equal(oidLocalKeyID): + key = "localKeyId" + case attribute.Id.Equal(oidMicrosoftCSPName): + // This key is chosen to match OpenSSL. + key = "Microsoft CSP Name" + isString = true + default: + return "", "", errors.New("pkcs12: unknown attribute with OID " + attribute.Id.String()) + } + + if isString { + if err := unmarshal(attribute.Value.Bytes, &attribute.Value); err != nil { + return "", "", err + } + if value, err = decodeBMPString(attribute.Value.Bytes); err != nil { + return "", "", err + } + } else { + var id []byte + if err := unmarshal(attribute.Value.Bytes, &id); err != nil { + return "", "", err + } + value = hex.EncodeToString(id) + } + + return key, value, nil +} + +// Decode extracts a certificate and private key from pfxData. This function +// assumes that there is only one certificate and only one private key in the +// pfxData. +func Decode(pfxData []byte, password string) (privateKey interface{}, certificate *x509.Certificate, err error) { + encodedPassword, err := bmpString(password) + if err != nil { + return nil, nil, err + } + + bags, encodedPassword, err := getSafeContents(pfxData, encodedPassword) + if err != nil { + return nil, nil, err + } + + if len(bags) != 2 { + err = errors.New("pkcs12: expected exactly two safe bags in the PFX PDU") + return + } + + for _, bag := range bags { + switch { + case bag.Id.Equal(oidCertBag): + if certificate != nil { + err = errors.New("pkcs12: expected exactly one certificate bag") + } + + certsData, err := decodeCertBag(bag.Value.Bytes) + if err != nil { + return nil, nil, err + } + certs, err := x509.ParseCertificates(certsData) + if err != nil { + return nil, nil, err + } + if len(certs) != 1 { + err = errors.New("pkcs12: expected exactly one certificate in the certBag") + return nil, nil, err + } + certificate = certs[0] + + case bag.Id.Equal(oidPKCS8ShroundedKeyBag): + if privateKey != nil { + err = errors.New("pkcs12: expected exactly one key bag") + } + + if privateKey, err = decodePkcs8ShroudedKeyBag(bag.Value.Bytes, encodedPassword); err != nil { + return nil, nil, err + } + } + } + + if certificate == nil { + return nil, nil, errors.New("pkcs12: certificate missing") + } + if privateKey == nil { + return nil, nil, errors.New("pkcs12: private key missing") + } + + return +} + +func getSafeContents(p12Data, password []byte) (bags []safeBag, updatedPassword []byte, err error) { + pfx := new(pfxPdu) + if err := unmarshal(p12Data, pfx); err != nil { + return nil, nil, errors.New("pkcs12: error reading P12 data: " + err.Error()) + } + + if pfx.Version != 3 { + return nil, nil, NotImplementedError("can only decode v3 PFX PDU's") + } + + if !pfx.AuthSafe.ContentType.Equal(oidDataContentType) { + return nil, nil, NotImplementedError("only password-protected PFX is implemented") + } + + // unmarshal the explicit bytes in the content for type 'data' + if err := unmarshal(pfx.AuthSafe.Content.Bytes, &pfx.AuthSafe.Content); err != nil { + return nil, nil, err + } + + if len(pfx.MacData.Mac.Algorithm.Algorithm) == 0 { + return nil, nil, errors.New("pkcs12: no MAC in data") + } + + if err := verifyMac(&pfx.MacData, pfx.AuthSafe.Content.Bytes, password); err != nil { + if err == ErrIncorrectPassword && len(password) == 2 && password[0] == 0 && password[1] == 0 { + // some implementations use an empty byte array + // for the empty string password try one more + // time with empty-empty password + password = nil + err = verifyMac(&pfx.MacData, pfx.AuthSafe.Content.Bytes, password) + } + if err != nil { + return nil, nil, err + } + } + + var authenticatedSafe []contentInfo + if err := unmarshal(pfx.AuthSafe.Content.Bytes, &authenticatedSafe); err != nil { + return nil, nil, err + } + + if len(authenticatedSafe) != 2 { + return nil, nil, NotImplementedError("expected exactly two items in the authenticated safe") + } + + for _, ci := range authenticatedSafe { + var data []byte + + switch { + case ci.ContentType.Equal(oidDataContentType): + if err := unmarshal(ci.Content.Bytes, &data); err != nil { + return nil, nil, err + } + case ci.ContentType.Equal(oidEncryptedDataContentType): + var encryptedData encryptedData + if err := unmarshal(ci.Content.Bytes, &encryptedData); err != nil { + return nil, nil, err + } + if encryptedData.Version != 0 { + return nil, nil, NotImplementedError("only version 0 of EncryptedData is supported") + } + if data, err = pbDecrypt(encryptedData.EncryptedContentInfo, password); err != nil { + return nil, nil, err + } + default: + return nil, nil, NotImplementedError("only data and encryptedData content types are supported in authenticated safe") + } + + var safeContents []safeBag + if err := unmarshal(data, &safeContents); err != nil { + return nil, nil, err + } + bags = append(bags, safeContents...) + } + + return bags, password, nil +} diff --git a/vendor/golang.org/x/crypto/pkcs12/safebags.go b/vendor/golang.org/x/crypto/pkcs12/safebags.go new file mode 100644 index 000000000..def1f7b98 --- /dev/null +++ b/vendor/golang.org/x/crypto/pkcs12/safebags.go @@ -0,0 +1,57 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package pkcs12 + +import ( + "crypto/x509" + "encoding/asn1" + "errors" +) + +var ( + // see https://tools.ietf.org/html/rfc7292#appendix-D + oidCertTypeX509Certificate = asn1.ObjectIdentifier([]int{1, 2, 840, 113549, 1, 9, 22, 1}) + oidPKCS8ShroundedKeyBag = asn1.ObjectIdentifier([]int{1, 2, 840, 113549, 1, 12, 10, 1, 2}) + oidCertBag = asn1.ObjectIdentifier([]int{1, 2, 840, 113549, 1, 12, 10, 1, 3}) +) + +type certBag struct { + Id asn1.ObjectIdentifier + Data []byte `asn1:"tag:0,explicit"` +} + +func decodePkcs8ShroudedKeyBag(asn1Data, password []byte) (privateKey interface{}, err error) { + pkinfo := new(encryptedPrivateKeyInfo) + if err = unmarshal(asn1Data, pkinfo); err != nil { + return nil, errors.New("pkcs12: error decoding PKCS#8 shrouded key bag: " + err.Error()) + } + + pkData, err := pbDecrypt(pkinfo, password) + if err != nil { + return nil, errors.New("pkcs12: error decrypting PKCS#8 shrouded key bag: " + err.Error()) + } + + ret := new(asn1.RawValue) + if err = unmarshal(pkData, ret); err != nil { + return nil, errors.New("pkcs12: error unmarshaling decrypted private key: " + err.Error()) + } + + if privateKey, err = x509.ParsePKCS8PrivateKey(pkData); err != nil { + return nil, errors.New("pkcs12: error parsing PKCS#8 private key: " + err.Error()) + } + + return privateKey, nil +} + +func decodeCertBag(asn1Data []byte) (x509Certificates []byte, err error) { + bag := new(certBag) + if err := unmarshal(asn1Data, bag); err != nil { + return nil, errors.New("pkcs12: error decoding cert bag: " + err.Error()) + } + if !bag.Id.Equal(oidCertTypeX509Certificate) { + return nil, NotImplementedError("only X509 certificates are supported") + } + return bag.Data, nil +} diff --git a/vendor/k8s.io/apimachinery/pkg/util/uuid/BUILD b/vendor/k8s.io/apimachinery/pkg/util/uuid/BUILD deleted file mode 100644 index 662d9f5d7..000000000 --- a/vendor/k8s.io/apimachinery/pkg/util/uuid/BUILD +++ /dev/null @@ -1,30 +0,0 @@ -package(default_visibility = ["//visibility:public"]) - -load( - "@io_bazel_rules_go//go:def.bzl", - "go_library", -) - -go_library( - name = "go_default_library", - srcs = ["uuid.go"], - importmap = "k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/uuid", - importpath = "k8s.io/apimachinery/pkg/util/uuid", - deps = [ - "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library", - "//vendor/github.com/pborman/uuid:go_default_library", - ], -) - -filegroup( - name = "package-srcs", - srcs = glob(["**"]), - tags = ["automanaged"], - visibility = ["//visibility:private"], -) - -filegroup( - name = "all-srcs", - srcs = [":package-srcs"], - tags = ["automanaged"], -) diff --git a/vendor/k8s.io/apiserver/pkg/server/httplog/httplog.go b/vendor/k8s.io/apiserver/pkg/server/httplog/httplog.go index ee8e05f10..f8a8a5307 100644 --- a/vendor/k8s.io/apiserver/pkg/server/httplog/httplog.go +++ b/vendor/k8s.io/apiserver/pkg/server/httplog/httplog.go @@ -100,14 +100,11 @@ func NewLogged(req *http.Request, w *http.ResponseWriter) *respLogger { // then a passthroughLogger will be created which will log to stdout immediately // when Addf is called. func LogOf(req *http.Request, w http.ResponseWriter) logger { - if _, exists := w.(*respLogger); !exists { - pl := &passthroughLogger{} - return pl - } if rl, ok := w.(*respLogger); ok { return rl } - panic("Unable to find or create the logger!") + + return &passthroughLogger{} } // Unlogged returns the original ResponseWriter, or w if it is not our inserted logger. @@ -148,9 +145,9 @@ func (rl *respLogger) Log() { latency := time.Since(rl.startTime) if glog.V(3) { if !rl.hijacked { - glog.InfoDepth(1, fmt.Sprintf("%s %s: (%v) %v%v%v [%s %s]", rl.req.Method, rl.req.RequestURI, latency, rl.status, rl.statusStack, rl.addedInfo, rl.req.Header["User-Agent"], rl.req.RemoteAddr)) + glog.InfoDepth(1, fmt.Sprintf("%s %s: (%v) %v%v%v [%s %s]", rl.req.Method, rl.req.RequestURI, latency, rl.status, rl.statusStack, rl.addedInfo, rl.req.UserAgent(), rl.req.RemoteAddr)) } else { - glog.InfoDepth(1, fmt.Sprintf("%s %s: (%v) hijacked [%s %s]", rl.req.Method, rl.req.RequestURI, latency, rl.req.Header["User-Agent"], rl.req.RemoteAddr)) + glog.InfoDepth(1, fmt.Sprintf("%s %s: (%v) hijacked [%s %s]", rl.req.Method, rl.req.RequestURI, latency, rl.req.UserAgent(), rl.req.RemoteAddr)) } } } From 4efc61d1ae359149d7534857a21d788d0e44d6e4 Mon Sep 17 00:00:00 2001 From: Onur Filiz Date: Fri, 3 Aug 2018 11:48:27 -0700 Subject: [PATCH 2/7] Fargate: Add stubs for new provider APIs --- providers/aws/config.go | 2 +- providers/aws/provider.go | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/providers/aws/config.go b/providers/aws/config.go index 77ea9f04c..45a9ac94f 100644 --- a/providers/aws/config.go +++ b/providers/aws/config.go @@ -63,7 +63,7 @@ func (p *FargateProvider) loadConfigFile(filePath string) error { return err } -// loadConfigStream loads the given Fargate provider TOML configuration stream. +// loadConfig loads the given Fargate provider TOML configuration stream. func (p *FargateProvider) loadConfig(r io.Reader) error { var config providerConfig var q resource.Quantity diff --git a/providers/aws/provider.go b/providers/aws/provider.go index ffe9411b4..ed76f5621 100644 --- a/providers/aws/provider.go +++ b/providers/aws/provider.go @@ -178,17 +178,18 @@ func (p *FargateProvider) GetContainerLogs(namespace, podName, containerName str return p.cluster.GetContainerLogs(namespace, podName, containerName, tail) } -// Get full pod name as defined in the provider context +// GetPodFullName retrieves the full pod name as defined in the provider context. func (p *FargateProvider) GetPodFullName(namespace string, pod string) string { return "" } // ExecInContainer executes a command in a container in the pod, copying data // between in/out/err and the container's stdin/stdout/stderr. -// TODO: Implementation -func (p *FargateProvider) ExecInContainer(name string, uid types.UID, container string, cmd []string, in io.Reader, out, err io.WriteCloser, tty bool, resize <-chan remotecommand.TerminalSize, timeout time.Duration) error { - log.Printf("receive ExecInContainer %q\n", container) - return nil +func (p *FargateProvider) ExecInContainer( + name string, uid types.UID, container string, cmd []string, in io.Reader, out, err io.WriteCloser, + tty bool, resize <-chan remotecommand.TerminalSize, timeout time.Duration) error { + log.Printf("Received ExecInContainer request for %s.\n", container) + return errNotImplemented } // GetPodStatus retrieves the status of a pod by name from the provider. From 9e55d2ee9803bc0d3935f65247ea29ca9cbcbf9c Mon Sep 17 00:00:00 2001 From: Onur Filiz Date: Fri, 3 Aug 2018 11:49:29 -0700 Subject: [PATCH 3/7] Fargate: Add environment variable support --- providers/aws/fargate/container.go | 12 ++++++++++++ providers/aws/fargate/container_test.go | 15 ++++++++++++++- providers/aws/provider_test.go | 22 +++++++++++++++++++--- 3 files changed, 45 insertions(+), 4 deletions(-) diff --git a/providers/aws/fargate/container.go b/providers/aws/fargate/container.go index de9ccb9b3..5e16a853c 100644 --- a/providers/aws/fargate/container.go +++ b/providers/aws/fargate/container.go @@ -52,6 +52,18 @@ func newContainer(spec *corev1.Container) (*container, error) { cntr.definition.WorkingDirectory = aws.String(spec.WorkingDir) } + // Add environment variables. + if spec.Env != nil { + for _, env := range spec.Env { + cntr.definition.Environment = append( + cntr.definition.Environment, + &ecs.KeyValuePair{ + Name: aws.String(env.Name), + Value: aws.String(env.Value), + }) + } + } + // Translate the Kubernetes container resource requirements to Fargate units. cntr.setResourceRequirements(&spec.Resources) diff --git a/providers/aws/fargate/container_test.go b/providers/aws/fargate/container_test.go index a563049db..5700885d3 100644 --- a/providers/aws/fargate/container_test.go +++ b/providers/aws/fargate/container_test.go @@ -32,6 +32,10 @@ var ( Command: []string{"anyCmd"}, Args: []string{"anyArg1", "anyArg2"}, WorkingDir: "/any/working/dir", + Env: []corev1.EnvVar{ + {Name: "anyEnvName1", Value: "anyEnvValue1"}, + {Name: "anyEnvName2", Value: "anyEnvValue2"}, + }, } ) @@ -46,8 +50,17 @@ func TestContainerDefinition(t *testing.T) { assert.Equal(t, cntrSpec.Name, *cntr.definition.Name, "incorrect name") assert.Equal(t, cntrSpec.Image, *cntr.definition.Image, "incorrect image") assert.Equal(t, cntrSpec.Command[0], *cntr.definition.EntryPoint[0], "incorrect command") - assert.Equal(t, cntrSpec.Args[0], *cntr.definition.Command[0], "incorrect args") + + for i, env := range cntrSpec.Args { + assert.Equal(t, env, *cntr.definition.Command[i], "incorrect args") + } + assert.Equal(t, cntrSpec.WorkingDir, *cntr.definition.WorkingDirectory, "incorrect working dir") + + for i, env := range cntrSpec.Env { + assert.Equal(t, env.Name, *cntr.definition.Environment[i].Name, "incorrect env name") + assert.Equal(t, env.Value, *cntr.definition.Environment[i].Value, "incorrect env value") + } } // TestContainerResourceRequirementsDefaults verifies whether the container gets default CPU diff --git a/providers/aws/provider_test.go b/providers/aws/provider_test.go index 79d10d90a..b38a9f0e6 100644 --- a/providers/aws/provider_test.go +++ b/providers/aws/provider_test.go @@ -237,7 +237,13 @@ func TestAWSFargateProviderPodLifecycle(t *testing.T) { "/bin/sh", }, Args: []string{ - "-c", "echo \"Started\"; while true; do sleep 1; done", + "-c", + "echo \"Started\";" + + "echo \"TEST_ENV=$TEST_ENV\";" + + "while true; do sleep 1; done", + }, + Env: []v1.EnvVar{ + {Name: "TEST_ENV", Value: "AnyValue"}, }, Resources: v1.ResourceRequirements{ Limits: v1.ResourceList{ @@ -281,8 +287,18 @@ func TestAWSFargateProviderPodLifecycle(t *testing.T) { t.Error(err) } - if logs != "Started\n" { - t.Errorf("Expected logs to be \"Started\\n\", but received \"%v\"", logs) + // Test log output. + receivedLogs := strings.Split(logs, "\n") + expectedLogs := []string{ + "Started", + pod.Spec.Containers[0].Env[0].Name + "=" + pod.Spec.Containers[0].Env[0].Value, + } + + for i, line := range receivedLogs { + fmt.Printf("Log[#%d]: %v\n", i, line) + if len(expectedLogs) > i && receivedLogs[i] != expectedLogs[i] { + t.Errorf("Expected log line %d to be %q, but received %q", i, line, receivedLogs[i]) + } } // Delete the pod. From a1f46e7f04d72670da0cc7c904c3a39ea0733645 Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Fri, 3 Aug 2018 10:41:55 -0700 Subject: [PATCH 4/7] Validate deps in CI --- .circleci/config.yml | 2 +- scripts/validate/dep.sh | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 scripts/validate/dep.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index 47047e282..183f9bee0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,7 +17,7 @@ jobs: echo 'export KUBECONFIG=${outputPathKubeConfigFile}' >> $BASH_ENV - run: name: Dependencies - command: go get -v -t -d ./... + command: scripts/validate/dep.sh - run: name: Build command: V=1 make build diff --git a/scripts/validate/dep.sh b/scripts/validate/dep.sh new file mode 100755 index 000000000..ab03f5063 --- /dev/null +++ b/scripts/validate/dep.sh @@ -0,0 +1,16 @@ + +validate_dep() { + dep ensure + nChanges=$(git status --porcelain -u | wc -l) + [ $nChanges -eq 0 ] +} + + +validate_dep || { + ret=$? + echo '`dep ensure` was not run. Make sure dependency changes are committed to the repository.' + echo 'You may also need to check that all deps are pinned to a commit or tag instead of a branch or HEAD.' + echo 'Check Gopkg.toml and Gopkg.lock' + git diff Gopkg.toml Gopkg.lock + exit $ret +} \ No newline at end of file From 7e7947cd3dfd946f2d0f1c92a8500190bfd6cbdb Mon Sep 17 00:00:00 2001 From: Deep Kapur Date: Fri, 3 Aug 2018 15:13:36 -0700 Subject: [PATCH 5/7] fixing a minor typo (#290) * fixing a minor typo * Update README.md --- providers/sfmesh/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/sfmesh/README.md b/providers/sfmesh/README.md index df6c3e699..2549dc2ed 100644 --- a/providers/sfmesh/README.md +++ b/providers/sfmesh/README.md @@ -1,12 +1,12 @@ # Kubernetes Virtual Kubelet with Service Fabric Mesh -[Service Fabric Mesh](https://docs.microsoft.com/en-us/azure/service-fabric-mesh/service-fabric-mesh-overview) is a fully managed service that enables developers to deploy microservices applications without managing virtual machines, storage, or networking. Applications hosted on Service Fabric Mesh run and scale without you worrying about the infrastructure powering it. +[Service Fabric Mesh](https://docs.microsoft.com/en-us/azure/service-fabric-mesh/service-fabric-mesh-overview) is a fully managed service that enables developers to deploy microservices applications without managing virtual machines, storage, or networking. Applications hosted on Service Fabric Mesh run and scale without you worrying about the infrastructure powering them. The Virtual kubelet integration allows you to use the Kubernetes API to burst out compute to a Service Fabric Mesh cluster and schedule pods as Mesh Applications. ## Status: Experimental -This provider is currently in the exterimental stages. Contributions welcome! +This provider is currently in the experimental stages. Contributions are welcome! ## Setup From a163bde2afd7eb220bb239988cfc8a3b7bac5b9e Mon Sep 17 00:00:00 2001 From: Jeremy Rickard Date: Fri, 3 Aug 2018 18:02:57 -0600 Subject: [PATCH 6/7] Updated with a new version of dep --- Gopkg.lock | 368 ++++++++- .../spf13/cobra/cobra/cmd/license_agpl.go | 683 ----------------- .../spf13/cobra/cobra/cmd/license_apache_2.go | 238 ------ .../cobra/cobra/cmd/license_bsd_clause_2.go | 71 -- .../cobra/cobra/cmd/license_bsd_clause_3.go | 78 -- .../spf13/cobra/cobra/cmd/license_gpl_2.go | 376 --------- .../spf13/cobra/cobra/cmd/license_gpl_3.go | 711 ------------------ .../spf13/cobra/cobra/cmd/license_lgpl.go | 186 ----- .../spf13/cobra/cobra/cmd/license_mit.go | 63 -- .../spf13/cobra/cobra/cmd/licenses.go | 118 --- .../govmomi/simulator/license_manager.go | 156 ---- 11 files changed, 330 insertions(+), 2718 deletions(-) delete mode 100644 vendor/github.com/spf13/cobra/cobra/cmd/license_agpl.go delete mode 100644 vendor/github.com/spf13/cobra/cobra/cmd/license_apache_2.go delete mode 100644 vendor/github.com/spf13/cobra/cobra/cmd/license_bsd_clause_2.go delete mode 100644 vendor/github.com/spf13/cobra/cobra/cmd/license_bsd_clause_3.go delete mode 100644 vendor/github.com/spf13/cobra/cobra/cmd/license_gpl_2.go delete mode 100644 vendor/github.com/spf13/cobra/cobra/cmd/license_gpl_3.go delete mode 100644 vendor/github.com/spf13/cobra/cobra/cmd/license_lgpl.go delete mode 100644 vendor/github.com/spf13/cobra/cobra/cmd/license_mit.go delete mode 100644 vendor/github.com/spf13/cobra/cobra/cmd/licenses.go delete mode 100644 vendor/github.com/vmware/govmomi/simulator/license_manager.go diff --git a/Gopkg.lock b/Gopkg.lock index 9b7b44f90..181bb5e7c 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -2,26 +2,31 @@ [[projects]] + digest = "1:ef14b1839bd43a923896a762b31d000c12f0d21506cde7251d9342bb6acb4c05" name = "github.com/Azure/azure-sdk-for-go" packages = [ "profiles/preview/preview/servicefabricmesh/mgmt/servicefabricmesh", "services/batch/2017-09-01.6.0/batch", "services/preview/servicefabricmesh/mgmt/2018-07-01-preview/servicefabricmesh", - "version" + "version", ] + pruneopts = "NUT" revision = "4e8cbbfb1aeab140cd0fa97fd16b64ee18c3ca6a" version = "v19.1.0" [[projects]] branch = "master" + digest = "1:81f8c061c3d18ed1710957910542bc17d2b789c6cd19e0f654c30b35fd255ca5" name = "github.com/Azure/go-ansiterm" packages = [ ".", - "winterm" + "winterm", ] + pruneopts = "NUT" revision = "d6e3b3328b783f23731bc4d058875b0371ff8109" [[projects]] + digest = "1:79ff3484367adc1fc269f409a12cb2e877159e45708ac4cf4ae48dd44f29436b" name = "github.com/Azure/go-autorest" packages = [ "autorest", @@ -32,48 +37,62 @@ "autorest/to", "autorest/validation", "logger", - "version" + "version", ] + pruneopts = "NUT" revision = "dd94e014aaf16d1df746762e392aa201c1b4c461" version = "v10.15.0" [[projects]] + digest = "1:167b6f65a6656de568092189ae791253939f076df60231fdd64588ac703892a1" name = "github.com/BurntSushi/toml" packages = ["."] + pruneopts = "NUT" revision = "b26d9c308763d68093482582cea63d69be07a0f0" version = "v0.3.0" [[projects]] + digest = "1:d4b3bb952a228f05d52a58f8ffc39d5edf5b8f1bd291ac82f0249ffa31c509f5" name = "github.com/Microsoft/go-winio" packages = ["."] + pruneopts = "NUT" revision = "7da180ee92d8bd8bb8c37fc560e673e6557c392f" version = "v0.4.7" [[projects]] + digest = "1:d8ebbd207f3d3266d4423ce4860c9f3794956306ded6c7ba312ecc69cdfbf04c" name = "github.com/PuerkitoBio/purell" packages = ["."] + pruneopts = "NUT" revision = "0bcb03f4b4d0a9428594752bd2a3b9aa0a9d4bd4" version = "v1.1.0" [[projects]] branch = "master" + digest = "1:8098cd40cd09879efbf12e33bcd51ead4a66006ac802cd563a66c4f3373b9727" name = "github.com/PuerkitoBio/urlesc" packages = ["."] + pruneopts = "NUT" revision = "de5bf2ad457846296e2031421a34e2568e304e35" [[projects]] + digest = "1:6989062eb7ccf25cf38bf4fe3dba097ee209f896cda42cefdca3927047bef7b6" name = "github.com/Sirupsen/logrus" packages = ["."] + pruneopts = "NUT" revision = "c155da19408a8799da419ed3eeb0cb5db0ad5dbc" version = "v1.0.5" [[projects]] + digest = "1:5a23cd3a5496a0b2da7e3b348d14e77b11a210738c398200d7d6f04ea8cf3bd8" name = "github.com/asaskevich/govalidator" packages = ["."] + pruneopts = "NUT" revision = "ccb8e960c48f04d6935e72476ae4a51028f9e22f" version = "v9" [[projects]] + digest = "1:2d9c38febaba966bfedd651a9b2f60a2d80423a731430eea2c4331e86ae7d9a7" name = "github.com/aws/aws-sdk-go" packages = [ "aws", @@ -109,42 +128,54 @@ "service/ecs", "service/ecs/ecsiface", "service/iam", - "service/sts" + "service/sts", ] + pruneopts = "NUT" revision = "2e04cd1d1af06ff041e6036745e8b100e2e5f426" version = "v1.13.46" [[projects]] + digest = "1:97b8422f271b83e760ce1279715d0f5d124f267459b56806306a64a0f82721c9" name = "github.com/cenkalti/backoff" packages = ["."] + pruneopts = "NUT" revision = "2ea60e5f094469f9e65adb9cd103795b73ae743e" version = "v2.0.0" [[projects]] branch = "master" + digest = "1:dadd2829b5206df1b19eca11995ff94f8a0e1164ed0c54ff7335000aa08840cb" name = "github.com/cloudfoundry-incubator/candiedyaml" packages = ["."] + pruneopts = "NUT" revision = "a41693b7b7afb422c7ecb1028458ab27da047bbb" [[projects]] + digest = "1:a2c1d0e43bd3baaa071d1b9ed72c27d78169b2b269f71c105ac4ba34b1be4a39" name = "github.com/davecgh/go-spew" packages = ["spew"] + pruneopts = "NUT" revision = "346938d642f2ec3594ed81d874461961cd0faa76" version = "v1.1.0" [[projects]] + digest = "1:7a6852b35eb5bbc184561443762d225116ae630c26a7c4d90546619f1e7d2ad2" name = "github.com/dgrijalva/jwt-go" packages = ["."] + pruneopts = "NUT" revision = "06ea1031745cb8b3dab3f6a236daf2b0aa468b7e" version = "v3.2.0" [[projects]] branch = "master" + digest = "1:ec6271918b59b872a2d25e374569a4f75f1839d91e4191470c297b7eaaaf7641" name = "github.com/dimchansky/utfbom" packages = ["."] + pruneopts = "NUT" revision = "6c6132ff69f0f6c088739067407b5d32c52e1d0f" [[projects]] + digest = "1:42656cdee7408cbc2209cbe071acd8e17cae4f06d6c3830422ebd5d65d845acc" name = "github.com/docker/distribution" packages = [ ".", @@ -158,12 +189,14 @@ "registry/client/transport", "registry/storage/cache", "registry/storage/cache/memory", - "uuid" + "uuid", ] + pruneopts = "NUT" revision = "48294d928ced5dd9b378f7fd7c6f5da3ff3f2c89" version = "v2.6.2" [[projects]] + digest = "1:9bbbe90fa9b5ebe3ee2e4d369c471dd60e54542a9fc4877d09e1b0876cbb986d" name = "github.com/docker/docker" packages = [ "api/errors", @@ -208,211 +241,271 @@ "pkg/term/windows", "pkg/truncindex", "plugin/v2", - "reference" + "reference", ] + pruneopts = "NUT" revision = "49bf474f9ed7ce7143a59d1964ff7b7fd9b52178" [[projects]] + digest = "1:dcfbd4e9931536ef74fa509eaa0cf905980b527a76ad9d5e52f9dd38a1c9793c" name = "github.com/docker/engine-api" packages = ["types/strslice"] + pruneopts = "NUT" revision = "3d1601b9d2436a70b0dfc045a23f6503d19195df" version = "v0.4.0" [[projects]] + digest = "1:f133477f38c590bdcd6fc534617df17983f7a21e5b686d4a3495abeb21c631ec" name = "github.com/docker/go-connections" packages = [ "nat", "sockets", - "tlsconfig" + "tlsconfig", ] + pruneopts = "NUT" revision = "3ede32e2033de7505e6500d6c868c2b9ed9f169d" version = "v0.3.0" [[projects]] + digest = "1:4340101f42556a9cb2f7a360a0e95a019bfef6247d92e6c4c46f2433cf86a482" name = "github.com/docker/go-units" packages = ["."] + pruneopts = "NUT" revision = "47565b4f722fb6ceae66b95f853feed578a4a51c" version = "v0.3.3" [[projects]] + digest = "1:99fde7697aae0c6aaf4863353ebbbf2ec52f4e5fb7cb9baa723fa91a8996634f" name = "github.com/docker/libnetwork" packages = [ "iptables", - "portallocator" + "portallocator", ] + pruneopts = "NUT" revision = "1ee720e18fe98dceda6039bdd005ffbcb359d343" version = "v0.5.6" [[projects]] branch = "master" + digest = "1:da25cf063072a10461c19320e82117d85f9d60be4c95a62bc8d5a49acf7d0ca5" name = "github.com/docker/spdystream" packages = [ ".", - "spdy" + "spdy", ] + pruneopts = "NUT" revision = "bc6354cbbc295e925e4c611ffe90c1f287ee54db" [[projects]] branch = "master" + digest = "1:1ccd7321e62f680a988bba496f0f5a9c80410b8104d55b0f6b8ecf84ad328476" name = "github.com/flynn/go-shlex" packages = ["."] + pruneopts = "NUT" revision = "3f9db97f856818214da2e1057f8ad84803971cff" [[projects]] + digest = "1:1b91ae0dc69a41d4c2ed23ea5cffb721ea63f5037ca4b81e6d6771fbb8f45129" name = "github.com/fsnotify/fsnotify" packages = ["."] + pruneopts = "NUT" revision = "c2828203cd70a50dcccfb2761f8b1f8ceef9a8e9" version = "v1.4.7" [[projects]] + digest = "1:81466b4218bf6adddac2572a30ac733a9255919bc2f470b4827a317bd4ee1756" name = "github.com/ghodss/yaml" packages = ["."] + pruneopts = "NUT" revision = "0ca9ea5df5451ffdf184b4428c902747c2c11cd7" version = "v1.0.0" [[projects]] + digest = "1:e05711632e1515319b014e8fe4cbe1d30ab024c473403f60cf0fdeb4c586a474" name = "github.com/go-ini/ini" packages = ["."] + pruneopts = "NUT" revision = "6529cf7c58879c08d927016dde4477f18a0634cb" version = "v1.36.0" [[projects]] + digest = "1:a5ed113e47732685c9c0cf527b29b51364f42064e3f602b270e0c06c182b403a" name = "github.com/go-openapi/analysis" packages = ["."] + pruneopts = "NUT" revision = "d5a75b7d751ca3f11ad5d93cfe97405f2c3f6a47" [[projects]] + digest = "1:9839ea727da3bb175c788768f6236e189502af3dc49facd1a4af0eb12b6a3f74" name = "github.com/go-openapi/errors" packages = ["."] + pruneopts = "NUT" revision = "fc3f73a224499b047eda7191e5d22e1e9631e86f" [[projects]] branch = "master" + digest = "1:260f7ebefc63024c8dfe2c9f1a2935a89fa4213637a1f522f592f80c001cc441" name = "github.com/go-openapi/jsonpointer" packages = ["."] + pruneopts = "NUT" revision = "779f45308c19820f1a69e9a4cd965f496e0da10f" [[projects]] branch = "master" + digest = "1:98abd61947ff5c7c6fcfec5473d02a4821ed3a2dd99a4fbfdb7925b0dd745546" name = "github.com/go-openapi/jsonreference" packages = ["."] + pruneopts = "NUT" revision = "36d33bfe519efae5632669801b180bf1a245da3b" [[projects]] + digest = "1:9950e28fe5089a160efe645f3e465db93cf93624863b6be8b6d9fff5fff42c50" name = "github.com/go-openapi/loads" packages = [ ".", - "fmts" + "fmts", ] + pruneopts = "NUT" revision = "6bb6486231e079ea125c0f39994ed3d0c53399ed" [[projects]] + digest = "1:d7e44f8be1ed14889ccbaf60d94c1584fc4d5d875d1e6aeca5655d48b9ac936f" name = "github.com/go-openapi/runtime" packages = [ ".", - "client" + "client", ] + pruneopts = "NUT" revision = "3b13ebb46790d871d74a6c2450fa4b1280f90854" [[projects]] branch = "master" + digest = "1:178729f9dda60fa63034db9f8b015fe296dce604011629346dd2f43f7559c6fe" name = "github.com/go-openapi/spec" packages = ["."] + pruneopts = "NUT" revision = "bfb48d37839bcacb52be3f539ffac5abcda7e195" [[projects]] + digest = "1:92d0a87fc62ffd2c7da0e4619923dd28b563ccf2c2247cef8e271a27966f5999" name = "github.com/go-openapi/strfmt" packages = ["."] + pruneopts = "NUT" revision = "0cb3db44c13bad3b3f567b762a66751972a310cc" [[projects]] branch = "master" + digest = "1:774bcdb2dd9f44ca7e31a1e7416f157f3d3a7fabd13dbb4b0d428976d3132872" name = "github.com/go-openapi/swag" packages = ["."] + pruneopts = "NUT" revision = "cf0bdb963811675a4d7e74901cefc7411a1df939" [[projects]] + digest = "1:3fb29099436d9eb621797ec58e9e54573ecbb9223927a56bac16d9f06a2b2e10" name = "github.com/go-openapi/validate" packages = ["."] + pruneopts = "NUT" revision = "035dcd74f1f61e83debe1c22950dc53556e7e4b2" [[projects]] + digest = "1:ca3369c0fc8d471d8698f85a37a4f8c98a847402681a31431fb87a84fa2e5373" name = "github.com/godbus/dbus" packages = ["."] + pruneopts = "NUT" revision = "a389bdde4dd695d414e47b755e95e72b7826432c" version = "v4.1.0" [[projects]] + digest = "1:acba7f3d06725b78c6999c2ba6c40b80539c10346fe37b4681072f1666c87d0c" name = "github.com/gogo/protobuf" packages = [ "gogoproto", "proto", "protoc-gen-gogo/descriptor", - "sortkeys" + "sortkeys", ] + pruneopts = "NUT" revision = "1adfc126b41513cc696b209667c8656ea7aac67c" version = "v1.0.0" [[projects]] branch = "master" + digest = "1:e2b86e41f3d669fc36b50d31d32d22c8ac656c75aa5ea89717ce7177e134ff2a" name = "github.com/golang/glog" packages = ["."] + pruneopts = "NUT" revision = "23def4e6c14b4da8ac2ed8007337bc5eb5007998" [[projects]] + digest = "1:03e14cff610a8a58b774e36bd337fa979482be86aab01be81fb8bbd6d0f07fc8" name = "github.com/golang/protobuf" packages = [ "proto", "ptypes", "ptypes/any", "ptypes/duration", - "ptypes/timestamp" + "ptypes/timestamp", ] + pruneopts = "NUT" revision = "b4deda0973fb4c70b50d226b1af49f3da59f5265" version = "v1.1.0" [[projects]] branch = "master" + digest = "1:52c5834e2bebac9030c97cc0798ac11c3aa8a39f098aeb419f142533da6cd3cc" name = "github.com/google/gofuzz" packages = ["."] + pruneopts = "NUT" revision = "24818f796faf91cd76ec7bddd72458fbced7a6c1" [[projects]] + digest = "1:1bb197a3b5db4e06e00b7560f8e89836c486627f2a0338332ed37daa003d259e" name = "github.com/google/uuid" packages = ["."] + pruneopts = "NUT" revision = "064e2069ce9c359c118179501254f67d7d37ba24" version = "0.2" [[projects]] + digest = "1:3d7c1446fc5c710351b246c0dc6700fae843ca27f5294d0bd9f68bab2a810c44" name = "github.com/googleapis/gnostic" packages = [ "OpenAPIv2", "compiler", - "extensions" + "extensions", ] + pruneopts = "NUT" revision = "ee43cbb60db7bd22502942cccbc39059117352ab" version = "v0.1.0" [[projects]] + digest = "1:dbd86d229eacaa86a98b10f8fb3e3fc69a1913e0f4e010e7cc1f92bf12edca92" name = "github.com/gorilla/context" packages = ["."] + pruneopts = "NUT" revision = "1ea25387ff6f684839d82767c1733ff4d4d15d0a" version = "v1.1" [[projects]] + digest = "1:eced3d718020962f1cc6ac109b840ba17dc817a291062b5948ba7aecc8c6665d" name = "github.com/gorilla/mux" packages = ["."] + pruneopts = "NUT" revision = "53c1911da2b537f792e7cafcb446b05ffe33b996" version = "v1.6.1" [[projects]] + digest = "1:3b708ebf63bfa9ba3313bedb8526bc0bb284e51474e65e958481476a9d4a12aa" name = "github.com/gorilla/websocket" packages = ["."] + pruneopts = "NUT" revision = "ea4d1f681babbce9545c9c5f3d5194a789c89f5b" version = "v1.2.0" [[projects]] branch = "master" + digest = "1:11c6c696067d3127ecf332b10f89394d386d9083f82baf71f40f2da31841a009" name = "github.com/hashicorp/hcl" packages = [ ".", @@ -424,17 +517,21 @@ "hcl/token", "json/parser", "json/scanner", - "json/token" + "json/token", ] + pruneopts = "NUT" revision = "ef8a98b0bbce4a65b5aa4c368430a80ddc533168" [[projects]] branch = "master" + digest = "1:b7f860847a1d71f925ba9385ed95f1ebc0abfeb418a78e219ab61f48fdfeffad" name = "github.com/howeyc/gopass" packages = ["."] + pruneopts = "NUT" revision = "bf9dde6d0d2c004a008c27aaee91170c786f6db8" [[projects]] + digest = "1:ce7c38372fe019fffddf72f1201c4e25548fb2594b813c923bf6d04705581de2" name = "github.com/hyperhq/hyper-api" packages = [ "client", @@ -450,11 +547,13 @@ "types/registry", "types/strslice", "types/time", - "types/versions" + "types/versions", ] + pruneopts = "NUT" revision = "18c77d3f9fe0abebb41b45c12f383ecac46f4ff1" [[projects]] + digest = "1:127e065c02cbc9fa48f0b798db8a5ed679c8e3434cd4d9cbd7c3d8a1b01d204e" name = "github.com/hyperhq/hypercli" packages = [ "cliconfig", @@ -487,232 +586,300 @@ "pkg/urlutil", "pkg/version", "reference", - "registry" + "registry", ] + pruneopts = "NUT" revision = "29217d318cab52815518a1126d57ca010de83e4d" [[projects]] + digest = "1:7158b13e667602ac37f7f9e2567feec50f31ebb2cb5cab49d2fb4c036e1e0003" name = "github.com/hyperhq/libcompose" packages = [ "config", "utils", - "yaml" + "yaml", ] + pruneopts = "NUT" revision = "15d3a105140f968f5d4f62d2f44afd22a24a98fb" [[projects]] + digest = "1:f0818bc212054788d1086e015b5ba32d01ef8e12c615bbb625570eefbe684a1e" name = "github.com/imdario/mergo" packages = ["."] + pruneopts = "NUT" revision = "9d5f1277e9a8ed20c3684bda8fde67c05628518c" version = "v0.3.4" [[projects]] + digest = "1:406338ad39ab2e37b7f4452906442a3dbf0eb3379dd1f06aafb5c07e769a5fbb" name = "github.com/inconshreveable/mousetrap" packages = ["."] + pruneopts = "NUT" revision = "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75" version = "v1.0" [[projects]] + digest = "1:ac6d01547ec4f7f673311b4663909269bfb8249952de3279799289467837c3cc" name = "github.com/jmespath/go-jmespath" packages = ["."] + pruneopts = "NUT" revision = "0b12d6b5" [[projects]] + digest = "1:42c47ace7ccb114261ef7e0d418d274921514ab50a3bf6bdb9e51c3dde8ce13d" name = "github.com/json-iterator/go" packages = ["."] + pruneopts = "NUT" revision = "ca39e5af3ece67bbcda3d0f4f56a8e24d9f2dad4" version = "1.1.3" [[projects]] branch = "master" + digest = "1:7b21c7fc5551b46d1308b4ffa9e9e49b66c7a8b0ba88c0130474b0e7a20d859f" name = "github.com/kr/pretty" packages = ["."] + pruneopts = "NUT" revision = "cfb55aafdaf3ec08f0db22699ab822c50091b1c4" [[projects]] branch = "master" + digest = "1:c3a7836b5904db0f8b609595b619916a6831cb35b8b714aec39f96d00c6155d8" name = "github.com/kr/text" packages = ["."] + pruneopts = "NUT" revision = "7cafcd837844e784b526369c9bce262804aebc60" [[projects]] + digest = "1:648ad8414e400ae89650dea8db781f129d14cb4cc70a271fdcbb6fb0ede91883" name = "github.com/lawrencegripper/pod2docker" packages = ["."] + pruneopts = "NUT" revision = "9a9182c0c682798fe214fa11df7bfca83048d433" version = "v0.5.1" [[projects]] + digest = "1:35e5598ba3bc950039e13d91958ce37f675264735907cada569d11b243e5cacb" name = "github.com/magiconair/properties" packages = ["."] + pruneopts = "NUT" revision = "c3beff4c2358b44d0493c7dda585e7db7ff28ae6" version = "v1.7.6" [[projects]] branch = "master" + digest = "1:ada518b8c338e10e0afa443d84671476d3bd1d926e13713938088e8ddbee1a3e" name = "github.com/mailru/easyjson" packages = [ "buffer", "jlexer", - "jwriter" + "jwriter", ] + pruneopts = "NUT" revision = "3fdea8d05856a0c8df22ed4bc71b3219245e4485" [[projects]] branch = "master" + digest = "1:b62c4f18ad6eb454ac5253e7791ded3d7867330015ca4b37b6336e57f514585e" name = "github.com/mitchellh/go-homedir" packages = ["."] + pruneopts = "NUT" revision = "b8bc1bf767474819792c23f32d8286a45736f1c6" [[projects]] branch = "master" + digest = "1:eeb1f466766c40a4656b090593e103d2ce327b914329232bc1d4632dae17fc4f" name = "github.com/mitchellh/mapstructure" packages = ["."] + pruneopts = "NUT" revision = "00c29f56e2386353d58c599509e8dc3801b0d716" [[projects]] + digest = "1:2f42fa12d6911c7b7659738758631bec870b7e9b4c6be5444f963cdcfccc191f" name = "github.com/modern-go/concurrent" packages = ["."] + pruneopts = "NUT" revision = "bacd9c7ef1dd9b15be4a9909b8ac7a4e313eec94" version = "1.0.3" [[projects]] + digest = "1:314a5881fab303a80d6d2e35a77000f2224bb50f09ef63a9aa4c1f9eaef985d8" name = "github.com/modern-go/reflect2" packages = ["."] + pruneopts = "NUT" revision = "1df9eeb2bb81f327b96228865c5687bc2194af3f" version = "1.0.0" [[projects]] + digest = "1:5c29878bf9db5a7f960bdf06f01e92d4f0836e2fb0164f254759d19596d81c22" name = "github.com/opencontainers/runc" packages = [ "libcontainer/configs", "libcontainer/devices", "libcontainer/system", - "libcontainer/user" + "libcontainer/user", ] + pruneopts = "NUT" revision = "baf6536d6259209c3edfa2b22237af82942d3dfa" version = "v0.1.1" [[projects]] + digest = "1:74baf4ab7cce59e4b716a3820a05cb43bbd7640e3e085ee9c84d0f268fca97b3" name = "github.com/opencontainers/runtime-spec" packages = ["specs-go"] + pruneopts = "NUT" revision = "1c7c27d043c2a5e513a44084d2b10d77d1402b8c" [[projects]] + digest = "1:cce3a18fb0b96b5015cd8ca03a57d20a662679de03c4dc4b6ff5f17ea2050fa6" name = "github.com/pborman/uuid" packages = ["."] + pruneopts = "NUT" revision = "e790cca94e6cc75c7064b1332e63811d4aae1a53" version = "v1.1" [[projects]] + digest = "1:13b8f1a2ce177961dc9231606a52f709fab896c565f3988f60a7f6b4e543a902" name = "github.com/pelletier/go-toml" packages = ["."] + pruneopts = "NUT" revision = "acdc4509485b587f5e675510c4f2c63e90ff68a8" version = "v1.1.0" [[projects]] + digest = "1:5cf3f025cbee5951a4ee961de067c8a89fc95a5adabead774f82822efabab121" name = "github.com/pkg/errors" packages = ["."] + pruneopts = "NUT" revision = "645ef00459ed84a119197bfb8d8205042c6df63d" version = "v0.8.0" [[projects]] + digest = "1:0028cb19b2e4c3112225cd871870f2d9cf49b9b4276531f03438a88e94be86fe" name = "github.com/pmezard/go-difflib" packages = ["difflib"] + pruneopts = "NUT" revision = "792786c7400a136282c1664665ae0a8db921c6c2" version = "v1.0.0" [[projects]] + digest = "1:6bc0652ea6e39e22ccd522458b8bdd8665bf23bdc5a20eec90056e4dc7e273ca" name = "github.com/satori/go.uuid" packages = ["."] + pruneopts = "NUT" revision = "f58768cc1a7a7e77a3bd49e98cdd21419399b6a3" version = "v1.2.0" [[projects]] + digest = "1:35f36ea322654e3d0932e58ad26556998260b9fa9e691471f756d173684eac0a" name = "github.com/spf13/afero" packages = [ ".", - "mem" + "mem", ] + pruneopts = "NUT" revision = "63644898a8da0bc22138abf860edaf5277b6102e" version = "v1.1.0" [[projects]] + digest = "1:3fa7947ca83b98ae553590d993886e845a4bff19b7b007e869c6e0dd3b9da9cd" name = "github.com/spf13/cast" packages = ["."] + pruneopts = "NUT" revision = "8965335b8c7107321228e3e3702cab9832751bac" version = "v1.2.0" [[projects]] + digest = "1:0f156dbd01b40676bdcbc64e51535c09b50f83c9cca5faef3090f82f18bda3c2" name = "github.com/spf13/cobra" packages = ["."] + pruneopts = "NUT" revision = "a1f051bc3eba734da4772d60e2d677f47cf93ef4" version = "v0.0.2" [[projects]] branch = "master" + digest = "1:f29f83301ed096daed24a90f4af591b7560cb14b9cc3e1827abbf04db7269ab5" name = "github.com/spf13/jwalterweatherman" packages = ["."] + pruneopts = "NUT" revision = "7c0cea34c8ece3fbeb2b27ab9b59511d360fb394" [[projects]] + digest = "1:15e5c398fbd9d2c439b635a08ac161b13d04f0c2aa587fe256b65dc0c3efe8b7" name = "github.com/spf13/pflag" packages = ["."] + pruneopts = "NUT" revision = "583c0c0531f06d5278b7d917446061adc344b5cd" version = "v1.0.1" [[projects]] + digest = "1:ea67fb4941c0a1a92f828e73cf426533c71db02df45a2cdf55a14c3e7b74c07a" name = "github.com/spf13/viper" packages = ["."] + pruneopts = "NUT" revision = "b5e8006cbee93ec955a89ab31e0e3ce3204f3736" version = "v1.0.2" [[projects]] + digest = "1:10301358a67805684f6b525cba6ad7ec014dbd56cccc2926fadc9189faa7889a" name = "github.com/stretchr/objx" packages = ["."] + pruneopts = "NUT" revision = "facf9a85c22f48d2f52f2380e4efce1768749a89" version = "v0.1" [[projects]] + digest = "1:d4de0b9ca757efa67bf8f0f0ee664ad4dc7e11fbad7dd38db4e403ad9b92fe3c" name = "github.com/stretchr/testify" packages = [ "assert", "mock", - "require" + "require", ] + pruneopts = "NUT" revision = "12b6f73e6084dad08a7c6e575284b177ecafbc71" version = "v1.2.1" [[projects]] + digest = "1:d9eb1d964a449cf51455fdac2ec3451c664af8e8b93c23d9c31d22b84ea82fde" name = "github.com/tchap/go-patricia" packages = ["patricia"] + pruneopts = "NUT" revision = "666120de432aea38ab06bd5c818f04f4129882c9" version = "v2.2.6" [[projects]] + digest = "1:c50d03312be5e5914ccb213c500c92d0231c6364bd5f968bc6b756ba7d99f1b0" name = "github.com/vbatts/tar-split" packages = [ "archive/tar", "tar/asm", - "tar/storage" + "tar/storage", ] + pruneopts = "NUT" revision = "38ec4ddb06dedbea0a895c4848b248eb38af221b" version = "v0.10.2" [[projects]] + digest = "1:a707ec1c12a88afc978307bca7f40bde7bd6b6434ceee41f8d7c6985e245dbdb" name = "github.com/vishvananda/netlink" packages = [ ".", - "nl" + "nl", ] + pruneopts = "NUT" revision = "482f7a52b758233521878cb6c5904b6bd63f3457" [[projects]] branch = "master" + digest = "1:cfa9b2092e9b5f46feaa6c0d7a957618cd74d26cb2a72e3638f3ead773b23854" name = "github.com/vishvananda/netns" packages = ["."] + pruneopts = "NUT" revision = "be1fbeda19366dea804f00efff2dd73a1642fdcc" [[projects]] + digest = "1:f19aa8b1f1aafc3780fb3d51ee193ef71e5395daf2402dc8fa3d0d3ef2908432" name = "github.com/vmware/govmomi" packages = [ ".", @@ -731,13 +898,15 @@ "vim25/progress", "vim25/soap", "vim25/types", - "vim25/xml" + "vim25/xml", ] + pruneopts = "NUT" revision = "123ed177021588bac57b5c87c1a84270ddf2eca8" version = "v0.17.1" [[projects]] branch = "feature/wolfpack" + digest = "1:68a024f57bd12460c4a50d28f21066401fceaf741088252fea358815b8afc855" name = "github.com/vmware/vic" packages = [ "lib/apiservers/engine/backends/cache", @@ -780,41 +949,51 @@ "pkg/vsphere/extraconfig", "pkg/vsphere/performance", "pkg/vsphere/session", - "pkg/vsphere/sys" + "pkg/vsphere/sys", ] + pruneopts = "NUT" revision = "0fd01769dd5f4077763f3426a830709a9e986f1e" [[projects]] branch = "master" + digest = "1:3f8f243b8b4ebd09c52535a2ed7c96953bad2702c4c4b3356d9ccf1a81c0a944" name = "github.com/vmware/vmw-guestinfo" packages = [ "bdoor", "message", "rpcout", "rpcvmx", - "vmcheck" + "vmcheck", ] + pruneopts = "NUT" revision = "25eff159a728be87e103a0b8045e08273f4dbec4" [[projects]] branch = "master" + digest = "1:f15121220068fb01e71ad08b0fdbd1bfaa926be774e7634e8e332c82134079b0" name = "github.com/xeipuuv/gojsonpointer" packages = ["."] + pruneopts = "NUT" revision = "4e3ac2762d5f479393488629ee9370b50873b3a6" [[projects]] branch = "master" + digest = "1:131db546a264d76defd7a4ce233796316b2ab856991cb4b7d6ced2a3c7294ad3" name = "github.com/xeipuuv/gojsonreference" packages = ["."] + pruneopts = "NUT" revision = "bd5ef7bd5415a7ac448318e64f11a24cd21e594b" [[projects]] + digest = "1:60e24d485a33cb9bffc041de6a5f1596b8ef8d9a9bb9e9f3834c72fd5a96e76a" name = "github.com/xeipuuv/gojsonschema" packages = ["."] + pruneopts = "NUT" revision = "0c8571ac0ce161a5feb57375a9cdf148c98c0f70" [[projects]] branch = "master" + digest = "1:d345f6b7b1ec549e057045cee458cafd2618ba6f25bd22d9bd356785078b534a" name = "golang.org/x/crypto" packages = [ "nacl/secretbox", @@ -822,12 +1001,14 @@ "pkcs12/internal/rc2", "poly1305", "salsa20/salsa", - "ssh/terminal" + "ssh/terminal", ] + pruneopts = "NUT" revision = "94eea52f7b742c7cbe0b03b22f0c4c8631ece122" [[projects]] branch = "master" + digest = "1:cae7a492e42f53d7b8805f65a3da384a423129259718f6cab454f76ae233efb6" name = "golang.org/x/net" packages = [ "context", @@ -840,20 +1021,24 @@ "internal/timeseries", "proxy", "trace", - "websocket" + "websocket", ] + pruneopts = "NUT" revision = "f73e4c9ed3b7ebdd5f699a16a880c2b1994e50dd" [[projects]] branch = "master" + digest = "1:ee40f9506736b3b55162b22d82911b797301904848b1f1ae5db49f561ad48a79" name = "golang.org/x/sys" packages = [ "unix", - "windows" + "windows", ] + pruneopts = "NUT" revision = "7dfd1290c7917b7ba22824b9d24954ab3002fe24" [[projects]] + digest = "1:e33513a825fcd765e97b5de639a2f7547542d1a8245df0cef18e1fd390b778a9" name = "golang.org/x/text" packages = [ "collate", @@ -870,24 +1055,30 @@ "unicode/cldr", "unicode/norm", "unicode/rangetable", - "width" + "width", ] + pruneopts = "NUT" revision = "f21a4dfb5e38f5895301dc265a8def02365cc3d0" version = "v0.3.0" [[projects]] branch = "master" + digest = "1:c9e7a4b4d47c0ed205d257648b0e5b0440880cb728506e318f8ac7cd36270bc4" name = "golang.org/x/time" packages = ["rate"] + pruneopts = "NUT" revision = "fbb02b2291d28baffd63558aa44b4b56f178d650" [[projects]] branch = "master" + digest = "1:cd018653a358d4b743a9d3bee89e825521f2ab2f2ec0770164bf7632d8d73ab7" name = "google.golang.org/genproto" packages = ["googleapis/rpc/status"] + pruneopts = "NUT" revision = "86e600f69ee4704c6efbf6a2a40a5c10700e76c2" [[projects]] + digest = "1:a840929a3a2d91282dc853cbd5f586069c14ae373247fb7d4cb4fa02b285326e" name = "google.golang.org/grpc" packages = [ ".", @@ -913,25 +1104,31 @@ "stats", "status", "tap", - "transport" + "transport", ] + pruneopts = "NUT" revision = "41344da2231b913fa3d983840a57a6b1b7b631a1" version = "v1.12.0" [[projects]] + digest = "1:2d1fbdc6777e5408cabeb02bf336305e724b925ff4546ded0fa8715a7267922a" name = "gopkg.in/inf.v0" packages = ["."] + pruneopts = "NUT" revision = "d2d2541c53f18d2a059457998ce2876cc8e67cbf" version = "v0.9.1" [[projects]] + digest = "1:7c95b35057a0ff2e19f707173cc1a947fa43a6eb5c4d300d196ece0334046082" name = "gopkg.in/yaml.v2" packages = ["."] + pruneopts = "NUT" revision = "5420a8b6744d3b0345ab293f6fcba19c978f1183" version = "v2.2.1" [[projects]] branch = "master" + digest = "1:d895c7c24a0dd1ed2ecd061fd88dfea9e1e84d6f280ed859942a2d1aabee10ec" name = "k8s.io/api" packages = [ "admissionregistration/v1alpha1", @@ -961,11 +1158,13 @@ "settings/v1alpha1", "storage/v1", "storage/v1alpha1", - "storage/v1beta1" + "storage/v1beta1", ] + pruneopts = "NUT" revision = "53d615ae3f440f957cb9989d989d597f047262d9" [[projects]] + digest = "1:f5b6bbd4b22601bca980c6210b177ca44b1144ae32ca1eed9040c695f6d024f4" name = "k8s.io/apimachinery" packages = [ "pkg/api/errors", @@ -1008,21 +1207,25 @@ "pkg/version", "pkg/watch", "third_party/forked/golang/netutil", - "third_party/forked/golang/reflect" + "third_party/forked/golang/reflect", ] + pruneopts = "NUT" revision = "302974c03f7e50f16561ba237db776ab93594ef6" version = "kubernetes-1.10.0" [[projects]] branch = "master" + digest = "1:b708a75f2dbffa13e29055c8ba293c4e0c2832fddcbfa751ccb146658629da58" name = "k8s.io/apiserver" packages = [ "pkg/server/httplog", - "pkg/util/wsstream" + "pkg/util/wsstream", ] + pruneopts = "NUT" revision = "25e79651c7e569b0ebcd97affc0fe7f1ffcbee94" [[projects]] + digest = "1:a3d8bae8c73834e07b5142c928f247b6e7ad6db1e5ee5553dce74a8863b7b5fb" name = "k8s.io/client-go" packages = [ "discovery", @@ -1107,30 +1310,119 @@ "util/exec", "util/flowcontrol", "util/homedir", - "util/integer" + "util/integer", ] + pruneopts = "NUT" revision = "23781f4d6632d88e869066eaebb743857aa1ef9b" version = "v7.0.0" [[projects]] + digest = "1:3f23907ae824a94920ce9bc22310631cb2be91787bd7de16de84bbb9af92cad4" name = "k8s.io/kubernetes" packages = [ "pkg/apis/core", "pkg/kubelet/apis/cri/runtime/v1alpha2", - "pkg/kubelet/server/remotecommand" + "pkg/kubelet/server/remotecommand", ] + pruneopts = "NUT" revision = "81753b10df112992bf51bbc2c2f85208aad78335" version = "v1.10.2" [[projects]] branch = "master" + digest = "1:867d98a27033c52150eb4c01ca0f9be938d3010e9a4909ea3a881a83c3ac1b3f" name = "k8s.io/utils" packages = ["exec"] + pruneopts = "NUT" revision = "045dc31ee5c40e8240241ce28dc24d7b56130373" [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "92f9554609e1a532f5f4a2dd5f9e77ca4a1b342f6808b9423f961ce9dfc8095d" + input-imports = [ + "github.com/Azure/azure-sdk-for-go/profiles/preview/preview/servicefabricmesh/mgmt/servicefabricmesh", + "github.com/Azure/azure-sdk-for-go/services/batch/2017-09-01.6.0/batch", + "github.com/Azure/go-autorest/autorest", + "github.com/Azure/go-autorest/autorest/adal", + "github.com/Azure/go-autorest/autorest/azure", + "github.com/Azure/go-autorest/autorest/azure/auth", + "github.com/Azure/go-autorest/autorest/to", + "github.com/BurntSushi/toml", + "github.com/Sirupsen/logrus", + "github.com/aws/aws-sdk-go/aws", + "github.com/aws/aws-sdk-go/aws/session", + "github.com/aws/aws-sdk-go/service/cloudwatchlogs", + "github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface", + "github.com/aws/aws-sdk-go/service/ec2", + "github.com/aws/aws-sdk-go/service/ecs", + "github.com/aws/aws-sdk-go/service/ecs/ecsiface", + "github.com/aws/aws-sdk-go/service/iam", + "github.com/cenkalti/backoff", + "github.com/dimchansky/utfbom", + "github.com/docker/docker/api/types/strslice", + "github.com/docker/go-connections/nat", + "github.com/docker/go-connections/sockets", + "github.com/docker/go-connections/tlsconfig", + "github.com/google/uuid", + "github.com/gorilla/mux", + "github.com/gorilla/websocket", + "github.com/hyperhq/hyper-api/client", + "github.com/hyperhq/hyper-api/types", + "github.com/hyperhq/hyper-api/types/container", + "github.com/hyperhq/hyper-api/types/filters", + "github.com/hyperhq/hyper-api/types/network", + "github.com/hyperhq/hyper-api/types/registry", + "github.com/hyperhq/hypercli/cliconfig", + "github.com/hyperhq/hypercli/opts", + "github.com/hyperhq/hypercli/pkg/jsonmessage", + "github.com/hyperhq/hypercli/pkg/term", + "github.com/hyperhq/hypercli/reference", + "github.com/hyperhq/hypercli/registry", + "github.com/kr/pretty", + "github.com/lawrencegripper/pod2docker", + "github.com/mitchellh/go-homedir", + "github.com/spf13/cobra", + "github.com/spf13/viper", + "github.com/stretchr/testify/assert", + "github.com/stretchr/testify/mock", + "github.com/stretchr/testify/require", + "github.com/vmware/vic/lib/apiservers/engine/backends/cache", + "github.com/vmware/vic/lib/apiservers/engine/errors", + "github.com/vmware/vic/lib/apiservers/engine/proxy", + "github.com/vmware/vic/lib/apiservers/portlayer/client", + "github.com/vmware/vic/lib/apiservers/portlayer/client/containers", + "github.com/vmware/vic/lib/apiservers/portlayer/client/interaction", + "github.com/vmware/vic/lib/apiservers/portlayer/client/logging", + "github.com/vmware/vic/lib/apiservers/portlayer/client/scopes", + "github.com/vmware/vic/lib/apiservers/portlayer/client/storage", + "github.com/vmware/vic/lib/apiservers/portlayer/client/tasks", + "github.com/vmware/vic/lib/apiservers/portlayer/models", + "github.com/vmware/vic/lib/constants", + "github.com/vmware/vic/lib/metadata", + "github.com/vmware/vic/pkg/dio", + "github.com/vmware/vic/pkg/log", + "github.com/vmware/vic/pkg/retry", + "github.com/vmware/vic/pkg/trace", + "github.com/vmware/vic/pkg/vsphere/sys", + "golang.org/x/net/context", + "google.golang.org/grpc", + "gopkg.in/yaml.v2", + "k8s.io/api/core/v1", + "k8s.io/apimachinery/pkg/api/errors", + "k8s.io/apimachinery/pkg/api/resource", + "k8s.io/apimachinery/pkg/apis/meta/v1", + "k8s.io/apimachinery/pkg/fields", + "k8s.io/apimachinery/pkg/types", + "k8s.io/apimachinery/pkg/util/intstr", + "k8s.io/apimachinery/pkg/util/uuid", + "k8s.io/apimachinery/pkg/watch", + "k8s.io/client-go/kubernetes", + "k8s.io/client-go/kubernetes/fake", + "k8s.io/client-go/rest", + "k8s.io/client-go/tools/clientcmd", + "k8s.io/client-go/tools/remotecommand", + "k8s.io/kubernetes/pkg/kubelet/apis/cri/runtime/v1alpha2", + "k8s.io/kubernetes/pkg/kubelet/server/remotecommand", + ] solver-name = "gps-cdcl" solver-version = 1 diff --git a/vendor/github.com/spf13/cobra/cobra/cmd/license_agpl.go b/vendor/github.com/spf13/cobra/cobra/cmd/license_agpl.go deleted file mode 100644 index bc22e9732..000000000 --- a/vendor/github.com/spf13/cobra/cobra/cmd/license_agpl.go +++ /dev/null @@ -1,683 +0,0 @@ -package cmd - -func initAgpl() { - Licenses["agpl"] = License{ - Name: "GNU Affero General Public License", - PossibleMatches: []string{"agpl", "affero gpl", "gnu agpl"}, - Header: ` -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU Affero General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU Affero General Public License for more details. - -You should have received a copy of the GNU Affero General Public License -along with this program. If not, see .`, - Text: ` GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. -`, - } -} diff --git a/vendor/github.com/spf13/cobra/cobra/cmd/license_apache_2.go b/vendor/github.com/spf13/cobra/cobra/cmd/license_apache_2.go deleted file mode 100644 index 38393d541..000000000 --- a/vendor/github.com/spf13/cobra/cobra/cmd/license_apache_2.go +++ /dev/null @@ -1,238 +0,0 @@ -// Copyright © 2015 Steve Francia . -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Parts inspired by https://github.com/ryanuber/go-license - -package cmd - -func initApache2() { - Licenses["apache"] = License{ - Name: "Apache 2.0", - PossibleMatches: []string{"apache", "apache20", "apache 2.0", "apache2.0", "apache-2.0"}, - Header: ` -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License.`, - Text: ` - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -`, - } -} diff --git a/vendor/github.com/spf13/cobra/cobra/cmd/license_bsd_clause_2.go b/vendor/github.com/spf13/cobra/cobra/cmd/license_bsd_clause_2.go deleted file mode 100644 index 4a847e04a..000000000 --- a/vendor/github.com/spf13/cobra/cobra/cmd/license_bsd_clause_2.go +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright © 2015 Steve Francia . -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Parts inspired by https://github.com/ryanuber/go-license - -package cmd - -func initBsdClause2() { - Licenses["freebsd"] = License{ - Name: "Simplified BSD License", - PossibleMatches: []string{"freebsd", "simpbsd", "simple bsd", "2-clause bsd", - "2 clause bsd", "simplified bsd license"}, - Header: `All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE.`, - Text: `{{ .copyright }} -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -`, - } -} diff --git a/vendor/github.com/spf13/cobra/cobra/cmd/license_bsd_clause_3.go b/vendor/github.com/spf13/cobra/cobra/cmd/license_bsd_clause_3.go deleted file mode 100644 index c7476b31f..000000000 --- a/vendor/github.com/spf13/cobra/cobra/cmd/license_bsd_clause_3.go +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright © 2015 Steve Francia . -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Parts inspired by https://github.com/ryanuber/go-license - -package cmd - -func initBsdClause3() { - Licenses["bsd"] = License{ - Name: "NewBSD", - PossibleMatches: []string{"bsd", "newbsd", "3 clause bsd", "3-clause bsd"}, - Header: `All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -3. Neither the name of the copyright holder nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE.`, - Text: `{{ .copyright }} -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -3. Neither the name of the copyright holder nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -`, - } -} diff --git a/vendor/github.com/spf13/cobra/cobra/cmd/license_gpl_2.go b/vendor/github.com/spf13/cobra/cobra/cmd/license_gpl_2.go deleted file mode 100644 index 03e05b3a7..000000000 --- a/vendor/github.com/spf13/cobra/cobra/cmd/license_gpl_2.go +++ /dev/null @@ -1,376 +0,0 @@ -// Copyright © 2015 Steve Francia . -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Parts inspired by https://github.com/ryanuber/go-license - -package cmd - -func initGpl2() { - Licenses["gpl2"] = License{ - Name: "GNU General Public License 2.0", - PossibleMatches: []string{"gpl2", "gnu gpl2", "gplv2"}, - Header: ` -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU Lesser General Public License -along with this program. If not, see .`, - Text: ` GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type 'show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type 'show c' for details. - -The hypothetical commands 'show w' and 'show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than 'show w' and 'show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - 'Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. -`, - } -} diff --git a/vendor/github.com/spf13/cobra/cobra/cmd/license_gpl_3.go b/vendor/github.com/spf13/cobra/cobra/cmd/license_gpl_3.go deleted file mode 100644 index ce07679c7..000000000 --- a/vendor/github.com/spf13/cobra/cobra/cmd/license_gpl_3.go +++ /dev/null @@ -1,711 +0,0 @@ -// Copyright © 2015 Steve Francia . -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Parts inspired by https://github.com/ryanuber/go-license - -package cmd - -func initGpl3() { - Licenses["gpl3"] = License{ - Name: "GNU General Public License 3.0", - PossibleMatches: []string{"gpl3", "gplv3", "gpl", "gnu gpl3", "gnu gpl"}, - Header: ` -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see .`, - Text: ` GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type 'show c' for details. - -The hypothetical commands 'show w' and 'show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. -`, - } -} diff --git a/vendor/github.com/spf13/cobra/cobra/cmd/license_lgpl.go b/vendor/github.com/spf13/cobra/cobra/cmd/license_lgpl.go deleted file mode 100644 index 0f8b96cad..000000000 --- a/vendor/github.com/spf13/cobra/cobra/cmd/license_lgpl.go +++ /dev/null @@ -1,186 +0,0 @@ -package cmd - -func initLgpl() { - Licenses["lgpl"] = License{ - Name: "GNU Lesser General Public License", - PossibleMatches: []string{"lgpl", "lesser gpl", "gnu lgpl"}, - Header: ` -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU Lesser General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU Lesser General Public License for more details. - -You should have received a copy of the GNU Lesser General Public License -along with this program. If not, see .`, - Text: ` GNU LESSER GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - - This version of the GNU Lesser General Public License incorporates -the terms and conditions of version 3 of the GNU General Public -License, supplemented by the additional permissions listed below. - - 0. Additional Definitions. - - As used herein, "this License" refers to version 3 of the GNU Lesser -General Public License, and the "GNU GPL" refers to version 3 of the GNU -General Public License. - - "The Library" refers to a covered work governed by this License, -other than an Application or a Combined Work as defined below. - - An "Application" is any work that makes use of an interface provided -by the Library, but which is not otherwise based on the Library. -Defining a subclass of a class defined by the Library is deemed a mode -of using an interface provided by the Library. - - A "Combined Work" is a work produced by combining or linking an -Application with the Library. The particular version of the Library -with which the Combined Work was made is also called the "Linked -Version". - - The "Minimal Corresponding Source" for a Combined Work means the -Corresponding Source for the Combined Work, excluding any source code -for portions of the Combined Work that, considered in isolation, are -based on the Application, and not on the Linked Version. - - The "Corresponding Application Code" for a Combined Work means the -object code and/or source code for the Application, including any data -and utility programs needed for reproducing the Combined Work from the -Application, but excluding the System Libraries of the Combined Work. - - 1. Exception to Section 3 of the GNU GPL. - - You may convey a covered work under sections 3 and 4 of this License -without being bound by section 3 of the GNU GPL. - - 2. Conveying Modified Versions. - - If you modify a copy of the Library, and, in your modifications, a -facility refers to a function or data to be supplied by an Application -that uses the facility (other than as an argument passed when the -facility is invoked), then you may convey a copy of the modified -version: - - a) under this License, provided that you make a good faith effort to - ensure that, in the event an Application does not supply the - function or data, the facility still operates, and performs - whatever part of its purpose remains meaningful, or - - b) under the GNU GPL, with none of the additional permissions of - this License applicable to that copy. - - 3. Object Code Incorporating Material from Library Header Files. - - The object code form of an Application may incorporate material from -a header file that is part of the Library. You may convey such object -code under terms of your choice, provided that, if the incorporated -material is not limited to numerical parameters, data structure -layouts and accessors, or small macros, inline functions and templates -(ten or fewer lines in length), you do both of the following: - - a) Give prominent notice with each copy of the object code that the - Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the object code with a copy of the GNU GPL and this license - document. - - 4. Combined Works. - - You may convey a Combined Work under terms of your choice that, -taken together, effectively do not restrict modification of the -portions of the Library contained in the Combined Work and reverse -engineering for debugging such modifications, if you also do each of -the following: - - a) Give prominent notice with each copy of the Combined Work that - the Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the Combined Work with a copy of the GNU GPL and this license - document. - - c) For a Combined Work that displays copyright notices during - execution, include the copyright notice for the Library among - these notices, as well as a reference directing the user to the - copies of the GNU GPL and this license document. - - d) Do one of the following: - - 0) Convey the Minimal Corresponding Source under the terms of this - License, and the Corresponding Application Code in a form - suitable for, and under terms that permit, the user to - recombine or relink the Application with a modified version of - the Linked Version to produce a modified Combined Work, in the - manner specified by section 6 of the GNU GPL for conveying - Corresponding Source. - - 1) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (a) uses at run time - a copy of the Library already present on the user's computer - system, and (b) will operate properly with a modified version - of the Library that is interface-compatible with the Linked - Version. - - e) Provide Installation Information, but only if you would otherwise - be required to provide such information under section 6 of the - GNU GPL, and only to the extent that such information is - necessary to install and execute a modified version of the - Combined Work produced by recombining or relinking the - Application with a modified version of the Linked Version. (If - you use option 4d0, the Installation Information must accompany - the Minimal Corresponding Source and Corresponding Application - Code. If you use option 4d1, you must provide the Installation - Information in the manner specified by section 6 of the GNU GPL - for conveying Corresponding Source.) - - 5. Combined Libraries. - - You may place library facilities that are a work based on the -Library side by side in a single library together with other library -facilities that are not Applications and are not covered by this -License, and convey such a combined library under terms of your -choice, if you do both of the following: - - a) Accompany the combined library with a copy of the same work based - on the Library, uncombined with any other library facilities, - conveyed under the terms of this License. - - b) Give prominent notice with the combined library that part of it - is a work based on the Library, and explaining where to find the - accompanying uncombined form of the same work. - - 6. Revised Versions of the GNU Lesser General Public License. - - The Free Software Foundation may publish revised and/or new versions -of the GNU Lesser General Public License from time to time. Such new -versions will be similar in spirit to the present version, but may -differ in detail to address new problems or concerns. - - Each version is given a distinguishing version number. If the -Library as you received it specifies that a certain numbered version -of the GNU Lesser General Public License "or any later version" -applies to it, you have the option of following the terms and -conditions either of that published version or of any later version -published by the Free Software Foundation. If the Library as you -received it does not specify a version number of the GNU Lesser -General Public License, you may choose any version of the GNU Lesser -General Public License ever published by the Free Software Foundation. - - If the Library as you received it specifies that a proxy can decide -whether future versions of the GNU Lesser General Public License shall -apply, that proxy's public statement of acceptance of any version is -permanent authorization for you to choose that version for the -Library.`, - } -} diff --git a/vendor/github.com/spf13/cobra/cobra/cmd/license_mit.go b/vendor/github.com/spf13/cobra/cobra/cmd/license_mit.go deleted file mode 100644 index bd2d0c4fa..000000000 --- a/vendor/github.com/spf13/cobra/cobra/cmd/license_mit.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright © 2015 Steve Francia . -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Parts inspired by https://github.com/ryanuber/go-license - -package cmd - -func initMit() { - Licenses["mit"] = License{ - Name: "MIT License", - PossibleMatches: []string{"mit"}, - Header: ` -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE.`, - Text: `The MIT License (MIT) - -{{ .copyright }} - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -`, - } -} diff --git a/vendor/github.com/spf13/cobra/cobra/cmd/licenses.go b/vendor/github.com/spf13/cobra/cobra/cmd/licenses.go deleted file mode 100644 index a070134dd..000000000 --- a/vendor/github.com/spf13/cobra/cobra/cmd/licenses.go +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright © 2015 Steve Francia . -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Parts inspired by https://github.com/ryanuber/go-license - -package cmd - -import ( - "strings" - "time" - - "github.com/spf13/viper" -) - -// Licenses contains all possible licenses a user can choose from. -var Licenses = make(map[string]License) - -// License represents a software license agreement, containing the Name of -// the license, its possible matches (on the command line as given to cobra), -// the header to be used with each file on the file's creating, and the text -// of the license -type License struct { - Name string // The type of license in use - PossibleMatches []string // Similar names to guess - Text string // License text data - Header string // License header for source files -} - -func init() { - // Allows a user to not use a license. - Licenses["none"] = License{"None", []string{"none", "false"}, "", ""} - - initApache2() - initMit() - initBsdClause3() - initBsdClause2() - initGpl2() - initGpl3() - initLgpl() - initAgpl() -} - -// getLicense returns license specified by user in flag or in config. -// If user didn't specify the license, it returns Apache License 2.0. -// -// TODO: Inspect project for existing license -func getLicense() License { - // If explicitly flagged, use that. - if userLicense != "" { - return findLicense(userLicense) - } - - // If user wants to have custom license, use that. - if viper.IsSet("license.header") || viper.IsSet("license.text") { - return License{Header: viper.GetString("license.header"), - Text: viper.GetString("license.text")} - } - - // If user wants to have built-in license, use that. - if viper.IsSet("license") { - return findLicense(viper.GetString("license")) - } - - // If user didn't set any license, use Apache 2.0 by default. - return Licenses["apache"] -} - -func copyrightLine() string { - author := viper.GetString("author") - - year := viper.GetString("year") // For tests. - if year == "" { - year = time.Now().Format("2006") - } - - return "Copyright © " + year + " " + author -} - -// findLicense looks for License object of built-in licenses. -// If it didn't find license, then the app will be terminated and -// error will be printed. -func findLicense(name string) License { - found := matchLicense(name) - if found == "" { - er("unknown license: " + name) - } - return Licenses[found] -} - -// matchLicense compares the given a license name -// to PossibleMatches of all built-in licenses. -// It returns blank string, if name is blank string or it didn't find -// then appropriate match to name. -func matchLicense(name string) string { - if name == "" { - return "" - } - - for key, lic := range Licenses { - for _, match := range lic.PossibleMatches { - if strings.EqualFold(name, match) { - return key - } - } - } - - return "" -} diff --git a/vendor/github.com/vmware/govmomi/simulator/license_manager.go b/vendor/github.com/vmware/govmomi/simulator/license_manager.go deleted file mode 100644 index 13565d32e..000000000 --- a/vendor/github.com/vmware/govmomi/simulator/license_manager.go +++ /dev/null @@ -1,156 +0,0 @@ -/* -Copyright (c) 2017 VMware, Inc. All Rights Reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -// Copyright 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package simulator - -import ( - "github.com/vmware/govmomi/object" - "github.com/vmware/govmomi/vim25/methods" - "github.com/vmware/govmomi/vim25/mo" - "github.com/vmware/govmomi/vim25/soap" - "github.com/vmware/govmomi/vim25/types" -) - -// EvalLicense is the default license -var EvalLicense = types.LicenseManagerLicenseInfo{ - LicenseKey: "00000-00000-00000-00000-00000", - EditionKey: "eval", - Name: "Evaluation Mode", - Properties: []types.KeyAnyValue{ - { - Key: "feature", - Value: types.KeyValue{ - Key: "serialuri:2", - Value: "Remote virtual Serial Port Concentrator", - }, - }, - { - Key: "feature", - Value: types.KeyValue{ - Key: "dvs", - Value: "vSphere Distributed Switch", - }, - }, - }, -} - -type LicenseManager struct { - mo.LicenseManager -} - -func NewLicenseManager(ref types.ManagedObjectReference) object.Reference { - m := &LicenseManager{} - m.Self = ref - m.Licenses = []types.LicenseManagerLicenseInfo{EvalLicense} - - if Map.IsVPX() { - am := Map.Put(&LicenseAssignmentManager{}).Reference() - m.LicenseAssignmentManager = &am - } - - return m -} - -func (m *LicenseManager) AddLicense(req *types.AddLicense) soap.HasFault { - body := &methods.AddLicenseBody{ - Res: &types.AddLicenseResponse{}, - } - - for _, license := range m.Licenses { - if license.LicenseKey == req.LicenseKey { - body.Res.Returnval = licenseInfo(license.LicenseKey, license.Labels) - return body - } - } - - m.Licenses = append(m.Licenses, types.LicenseManagerLicenseInfo{ - LicenseKey: req.LicenseKey, - Labels: req.Labels, - }) - - body.Res.Returnval = licenseInfo(req.LicenseKey, req.Labels) - - return body -} - -func (m *LicenseManager) RemoveLicense(req *types.RemoveLicense) soap.HasFault { - body := &methods.RemoveLicenseBody{ - Res: &types.RemoveLicenseResponse{}, - } - - for i, license := range m.Licenses { - if req.LicenseKey == license.LicenseKey { - m.Licenses = append(m.Licenses[:i], m.Licenses[i+1:]...) - return body - } - } - return body -} - -type LicenseAssignmentManager struct { - mo.LicenseAssignmentManager -} - -func (m *LicenseAssignmentManager) QueryAssignedLicenses(req *types.QueryAssignedLicenses) soap.HasFault { - body := &methods.QueryAssignedLicensesBody{ - Res: &types.QueryAssignedLicensesResponse{}, - } - - // EntityId can be a HostSystem or the vCenter InstanceUuid - if req.EntityId != "" { - if req.EntityId != Map.content().About.InstanceUuid { - id := types.ManagedObjectReference{ - Type: "HostSystem", - Value: req.EntityId, - } - - if Map.Get(id) == nil { - return body - } - } - } - - body.Res.Returnval = []types.LicenseAssignmentManagerLicenseAssignment{ - { - EntityId: req.EntityId, - AssignedLicense: EvalLicense, - }, - } - - return body -} - -func licenseInfo(key string, labels []types.KeyValue) types.LicenseManagerLicenseInfo { - info := EvalLicense - - info.LicenseKey = key - info.Labels = labels - - return info -} From f31b8245e7239a4e062708f1169baea412013e8e Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Fri, 3 Aug 2018 20:58:38 -0700 Subject: [PATCH 7/7] Update dep validation to only check the vendor dir This helps make sure that different versions of dep don't give different results. Signed-off-by: Brian Goff --- scripts/validate/dep.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/validate/dep.sh b/scripts/validate/dep.sh index ab03f5063..fd110b785 100755 --- a/scripts/validate/dep.sh +++ b/scripts/validate/dep.sh @@ -1,7 +1,9 @@ +#!/bin/bash validate_dep() { - dep ensure - nChanges=$(git status --porcelain -u | wc -l) + dep ensure || return $? + # only check the vendor dir since different dep versions can cause changes to Gopkg files + nChanges=$(git status --porcelain -u ./vendor | wc -l) [ $nChanges -eq 0 ] } @@ -11,6 +13,7 @@ validate_dep || { echo '`dep ensure` was not run. Make sure dependency changes are committed to the repository.' echo 'You may also need to check that all deps are pinned to a commit or tag instead of a branch or HEAD.' echo 'Check Gopkg.toml and Gopkg.lock' - git diff Gopkg.toml Gopkg.lock + git status --porcelain -u + dep version exit $ret } \ No newline at end of file