├── vendor ├── google.golang.org │ ├── grpc │ │ ├── AUTHORS │ │ ├── codes │ │ │ └── code_string.go │ │ └── codegen.sh │ ├── api │ │ ├── googleapi │ │ │ └── internal │ │ │ │ └── uritemplates │ │ │ │ └── utils.go │ │ └── gensupport │ │ │ └── doc.go │ └── appengine │ │ ├── internal │ │ ├── identity.go │ │ └── base │ │ │ └── api_base.proto │ │ └── timeout.go ├── github.com │ ├── gophercloud │ │ └── gophercloud │ │ │ ├── CHANGELOG.md │ │ │ ├── openstack │ │ │ ├── compute │ │ │ │ └── v2 │ │ │ │ │ ├── extensions │ │ │ │ │ ├── secgroups │ │ │ │ │ │ └── doc.go │ │ │ │ │ ├── servergroups │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ └── urls.go │ │ │ │ │ ├── floatingips │ │ │ │ │ │ └── doc.go │ │ │ │ │ ├── volumeattach │ │ │ │ │ │ └── doc.go │ │ │ │ │ ├── keypairs │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ └── urls.go │ │ │ │ │ ├── tenantnetworks │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ └── urls.go │ │ │ │ │ ├── startstop │ │ │ │ │ │ └── doc.go │ │ │ │ │ ├── schedulerhints │ │ │ │ │ │ └── doc.go │ │ │ │ │ ├── bootfromvolume │ │ │ │ │ │ ├── urls.go │ │ │ │ │ │ └── results.go │ │ │ │ │ └── availabilityzones │ │ │ │ │ │ └── results.go │ │ │ │ │ ├── servers │ │ │ │ │ ├── doc.go │ │ │ │ │ └── util.go │ │ │ │ │ ├── flavors │ │ │ │ │ ├── doc.go │ │ │ │ │ └── urls.go │ │ │ │ │ └── images │ │ │ │ │ ├── doc.go │ │ │ │ │ └── urls.go │ │ │ ├── networking │ │ │ │ └── v2 │ │ │ │ │ ├── extensions │ │ │ │ │ ├── fwaas │ │ │ │ │ │ ├── routerinsertion │ │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ │ └── results.go │ │ │ │ │ │ ├── firewalls │ │ │ │ │ │ │ ├── errors.go │ │ │ │ │ │ │ └── urls.go │ │ │ │ │ │ └── rules │ │ │ │ │ │ │ ├── errors.go │ │ │ │ │ │ │ └── urls.go │ │ │ │ │ ├── security │ │ │ │ │ │ ├── groups │ │ │ │ │ │ │ └── urls.go │ │ │ │ │ │ └── rules │ │ │ │ │ │ │ └── urls.go │ │ │ │ │ ├── layer3 │ │ │ │ │ │ ├── floatingips │ │ │ │ │ │ │ └── urls.go │ │ │ │ │ │ └── routers │ │ │ │ │ │ │ └── urls.go │ │ │ │ │ ├── lbaas │ │ │ │ │ │ ├── vips │ │ │ │ │ │ │ └── urls.go │ │ │ │ │ │ ├── members │ │ │ │ │ │ │ └── urls.go │ │ │ │ │ │ └── monitors │ │ │ │ │ │ │ └── urls.go │ │ │ │ │ └── lbaas_v2 │ │ │ │ │ │ ├── listeners │ │ │ │ │ │ └── urls.go │ │ │ │ │ │ ├── monitors │ │ │ │ │ │ └── urls.go │ │ │ │ │ │ └── loadbalancers │ │ │ │ │ │ └── urls.go │ │ │ │ │ ├── networks │ │ │ │ │ └── doc.go │ │ │ │ │ ├── ports │ │ │ │ │ └── doc.go │ │ │ │ │ └── subnets │ │ │ │ │ └── doc.go │ │ │ ├── identity │ │ │ │ ├── v3 │ │ │ │ │ └── tokens │ │ │ │ │ │ ├── urls.go │ │ │ │ │ │ └── doc.go │ │ │ │ └── v2 │ │ │ │ │ ├── tenants │ │ │ │ │ ├── urls.go │ │ │ │ │ └── doc.go │ │ │ │ │ └── tokens │ │ │ │ │ ├── doc.go │ │ │ │ │ └── urls.go │ │ │ ├── objectstorage │ │ │ │ └── v1 │ │ │ │ │ ├── swauth │ │ │ │ │ └── urls.go │ │ │ │ │ ├── accounts │ │ │ │ │ ├── urls.go │ │ │ │ │ └── doc.go │ │ │ │ │ ├── objects │ │ │ │ │ ├── doc.go │ │ │ │ │ └── errors.go │ │ │ │ │ └── containers │ │ │ │ │ ├── doc.go │ │ │ │ │ └── urls.go │ │ │ ├── dns │ │ │ │ └── v2 │ │ │ │ │ ├── zones │ │ │ │ │ ├── doc.go │ │ │ │ │ └── urls.go │ │ │ │ │ └── recordsets │ │ │ │ │ ├── doc.go │ │ │ │ │ └── urls.go │ │ │ ├── blockstorage │ │ │ │ ├── v1 │ │ │ │ │ └── volumes │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ ├── urls.go │ │ │ │ │ │ └── util.go │ │ │ │ ├── v2 │ │ │ │ │ └── volumes │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ ├── util.go │ │ │ │ │ │ └── urls.go │ │ │ │ └── extensions │ │ │ │ │ └── volumeactions │ │ │ │ │ └── doc.go │ │ │ └── imageservice │ │ │ │ └── v2 │ │ │ │ └── imagedata │ │ │ │ ├── urls.go │ │ │ │ └── results.go │ │ │ └── pagination │ │ │ └── pkg.go │ ├── fsouza │ │ └── go-dockerclient │ │ │ ├── testing │ │ │ └── data │ │ │ │ ├── barfile │ │ │ │ ├── foofile │ │ │ │ └── Dockerfile │ │ │ ├── external │ │ │ ├── github.com │ │ │ │ ├── docker │ │ │ │ │ ├── docker │ │ │ │ │ │ ├── pkg │ │ │ │ │ │ │ ├── archive │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ ├── copy_windows.go │ │ │ │ │ │ │ │ ├── copy_unix.go │ │ │ │ │ │ │ │ ├── time_unsupported.go │ │ │ │ │ │ │ │ └── time_linux.go │ │ │ │ │ │ │ ├── ioutils │ │ │ │ │ │ │ │ ├── scheduler.go │ │ │ │ │ │ │ │ ├── temp_unix.go │ │ │ │ │ │ │ │ ├── scheduler_gccgo.go │ │ │ │ │ │ │ │ ├── temp_windows.go │ │ │ │ │ │ │ │ └── fmt.go │ │ │ │ │ │ │ ├── fileutils │ │ │ │ │ │ │ │ ├── fileutils_windows.go │ │ │ │ │ │ │ │ └── fileutils_unix.go │ │ │ │ │ │ │ ├── system │ │ │ │ │ │ │ │ ├── utimes_darwin.go │ │ │ │ │ │ │ │ ├── meminfo_unsupported.go │ │ │ │ │ │ │ │ ├── errors.go │ │ │ │ │ │ │ │ ├── path_windows.go │ │ │ │ │ │ │ │ ├── syscall_unix.go │ │ │ │ │ │ │ │ ├── umask_windows.go │ │ │ │ │ │ │ │ ├── umask.go │ │ │ │ │ │ │ │ ├── path_unix.go │ │ │ │ │ │ │ │ ├── utimes_unsupported.go │ │ │ │ │ │ │ │ ├── chtimes_unix.go │ │ │ │ │ │ │ │ ├── mknod_windows.go │ │ │ │ │ │ │ │ ├── stat_openbsd.go │ │ │ │ │ │ │ │ ├── stat_solaris.go │ │ │ │ │ │ │ │ ├── xattrs_unsupported.go │ │ │ │ │ │ │ │ ├── stat_unsupported.go │ │ │ │ │ │ │ │ ├── lstat.go │ │ │ │ │ │ │ │ ├── meminfo.go │ │ │ │ │ │ │ │ ├── filesys.go │ │ │ │ │ │ │ │ ├── lstat_windows.go │ │ │ │ │ │ │ │ └── utimes_freebsd.go │ │ │ │ │ │ │ ├── promise │ │ │ │ │ │ │ │ └── promise.go │ │ │ │ │ │ │ └── idtools │ │ │ │ │ │ │ │ ├── usergroupadd_unsupported.go │ │ │ │ │ │ │ │ └── idtools_windows.go │ │ │ │ │ │ └── opts │ │ │ │ │ │ │ ├── hosts_windows.go │ │ │ │ │ │ │ ├── opts_unix.go │ │ │ │ │ │ │ └── hosts_unix.go │ │ │ │ │ └── go-units │ │ │ │ │ │ └── circle.yml │ │ │ │ ├── opencontainers │ │ │ │ │ └── runc │ │ │ │ │ │ └── libcontainer │ │ │ │ │ │ └── user │ │ │ │ │ │ ├── MAINTAINERS │ │ │ │ │ │ ├── lookup_unsupported.go │ │ │ │ │ │ └── lookup_unix.go │ │ │ │ ├── Sirupsen │ │ │ │ │ └── logrus │ │ │ │ │ │ ├── terminal_bsd.go │ │ │ │ │ │ ├── terminal_linux.go │ │ │ │ │ │ ├── terminal_solaris.go │ │ │ │ │ │ ├── terminal_notwindows.go │ │ │ │ │ │ └── doc.go │ │ │ │ └── gorilla │ │ │ │ │ └── context │ │ │ │ │ └── README.md │ │ │ └── golang.org │ │ │ │ └── x │ │ │ │ └── sys │ │ │ │ └── unix │ │ │ │ ├── asm.s │ │ │ │ ├── constants.go │ │ │ │ ├── syscall_no_getwd.go │ │ │ │ ├── zsysnum_solaris_amd64.go │ │ │ │ ├── env_unset.go │ │ │ │ ├── flock_linux_32bit.go │ │ │ │ ├── asm_solaris_amd64.s │ │ │ │ ├── gccgo_linux_amd64.go │ │ │ │ ├── race0.go │ │ │ │ ├── env_unix.go │ │ │ │ └── asm_linux_arm64.s │ │ │ ├── DOCKER-LICENSE │ │ │ ├── cancelable.go │ │ │ ├── travis-scripts │ │ │ └── run-tests.bash │ │ │ └── cancelable_go14.go │ ├── hashicorp │ │ ├── hcl2 │ │ │ ├── hcl │ │ │ │ ├── doc.go │ │ │ │ ├── hclsyntax │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── generate.go │ │ │ │ │ ├── file.go │ │ │ │ │ ├── keywords.go │ │ │ │ │ └── node.go │ │ │ │ ├── json │ │ │ │ │ ├── doc.go │ │ │ │ │ └── peeker.go │ │ │ │ └── schema.go │ │ │ ├── gohcl │ │ │ │ └── types.go │ │ │ └── hcldec │ │ │ │ ├── block_labels.go │ │ │ │ └── doc.go │ │ ├── serf │ │ │ └── coordinate │ │ │ │ └── README.md │ │ ├── go-rootcerts │ │ │ ├── Makefile │ │ │ ├── rootcerts_base.go │ │ │ └── doc.go │ │ ├── terraform │ │ │ ├── config │ │ │ │ ├── module │ │ │ │ │ ├── module.go │ │ │ │ │ ├── inode_windows.go │ │ │ │ │ ├── inode_freebsd.go │ │ │ │ │ └── inode.go │ │ │ │ ├── resource_mode.go │ │ │ │ ├── lang.go │ │ │ │ ├── testing.go │ │ │ │ ├── configschema │ │ │ │ │ └── nestingmode_string.go │ │ │ │ └── resource_mode_string.go │ │ │ ├── helper │ │ │ │ ├── schema │ │ │ │ │ ├── equal.go │ │ │ │ │ ├── field_writer.go │ │ │ │ │ ├── valuetype.go │ │ │ │ │ ├── README.md │ │ │ │ │ ├── valuetype_string.go │ │ │ │ │ └── resource_data_get_source.go │ │ │ │ ├── structure │ │ │ │ │ ├── expand_json.go │ │ │ │ │ ├── flatten_json.go │ │ │ │ │ ├── suppress_json_diff.go │ │ │ │ │ └── normalize_json.go │ │ │ │ └── config │ │ │ │ │ └── decode.go │ │ │ ├── terraform │ │ │ │ ├── ui_output.go │ │ │ │ ├── eval_noop.go │ │ │ │ ├── ui_output_callback.go │ │ │ │ ├── features.go │ │ │ │ ├── version.go │ │ │ │ ├── graph_interface_subgraph.go │ │ │ │ ├── test_failure │ │ │ │ ├── graph_dot.go │ │ │ │ ├── instancetype.go │ │ │ │ ├── node_provider.go │ │ │ │ ├── eval_resource.go │ │ │ │ ├── user_agent.go │ │ │ │ ├── graph_walk_operation.go │ │ │ │ ├── testing.go │ │ │ │ ├── ui_output_provisioner.go │ │ │ │ ├── node_count_boundary.go │ │ │ │ ├── ui_output_mock.go │ │ │ │ ├── node_root_variable.go │ │ │ │ ├── edge_destroy.go │ │ │ │ ├── eval_if.go │ │ │ │ ├── instancetype_string.go │ │ │ │ ├── ui_input_prefix.go │ │ │ │ ├── graphtype_string.go │ │ │ │ ├── eval_error.go │ │ │ │ ├── eval_sequence.go │ │ │ │ ├── walkoperation_string.go │ │ │ │ ├── node_data_destroy.go │ │ │ │ ├── path.go │ │ │ │ ├── transform_config_old.go │ │ │ │ ├── transform_transitive_reduction.go │ │ │ │ ├── eval_count_computed.go │ │ │ │ └── ui_input_mock.go │ │ │ ├── backend │ │ │ │ ├── local │ │ │ │ │ ├── hook_count_action.go │ │ │ │ │ ├── counthookaction_string.go │ │ │ │ │ └── cli.go │ │ │ │ ├── atlas │ │ │ │ │ └── cli.go │ │ │ │ ├── remote-state │ │ │ │ │ └── testing.go │ │ │ │ ├── operation_type.go │ │ │ │ └── operationtype_string.go │ │ │ ├── plugin │ │ │ │ ├── plugin.go │ │ │ │ └── ui_output.go │ │ │ ├── moduledeps │ │ │ │ └── doc.go │ │ │ ├── command │ │ │ │ └── format │ │ │ │ │ └── format.go │ │ │ └── tfdiags │ │ │ │ ├── diagnostic.go │ │ │ │ ├── error.go │ │ │ │ ├── severity_string.go │ │ │ │ └── simple_warning.go │ │ ├── go-getter │ │ │ ├── helper │ │ │ │ └── url │ │ │ │ │ ├── url_unix.go │ │ │ │ │ └── url.go │ │ │ ├── appveyor.yml │ │ │ ├── storage.go │ │ │ └── get_file.go │ │ ├── go-retryablehttp │ │ │ └── Makefile │ │ ├── go-uuid │ │ │ └── README.md │ │ ├── consul │ │ │ └── api │ │ │ │ ├── operator.go │ │ │ │ └── operator_segment.go │ │ ├── hcl │ │ │ ├── Makefile │ │ │ ├── hcl │ │ │ │ └── parser │ │ │ │ │ └── error.go │ │ │ ├── appveyor.yml │ │ │ ├── hcl.go │ │ │ └── lex.go │ │ ├── hil │ │ │ ├── eval_type.go │ │ │ ├── appveyor.yml │ │ │ ├── ast │ │ │ │ ├── stack.go │ │ │ │ └── arithmetic_op.go │ │ │ └── parser │ │ │ │ └── fuzz.go │ │ ├── go-plugin │ │ │ ├── stream.go │ │ │ ├── process_posix.go │ │ │ ├── process.go │ │ │ ├── error.go │ │ │ └── process_windows.go │ │ ├── go-version │ │ │ └── version_collection.go │ │ ├── yamux │ │ │ └── util.go │ │ └── go-multierror │ │ │ ├── format.go │ │ │ └── flatten.go │ ├── lusis │ │ └── go-artifactory │ │ │ ├── src │ │ │ └── artifactory.v401 │ │ │ │ ├── api.go │ │ │ │ ├── build.go │ │ │ │ ├── archive.go │ │ │ │ ├── bintray.go │ │ │ │ ├── compliance.go │ │ │ │ ├── version.go │ │ │ │ ├── responses.go │ │ │ │ ├── system.go │ │ │ │ ├── security.go │ │ │ │ ├── errors.go │ │ │ │ └── license.go │ │ │ └── LICENSE │ ├── agext │ │ └── levenshtein │ │ │ ├── MAINTAINERS │ │ │ └── NOTICE │ ├── mattn │ │ └── go-isatty │ │ │ ├── doc.go │ │ │ ├── isatty_linux.go │ │ │ ├── isatty_solaris.go │ │ │ ├── isatty_bsd.go │ │ │ ├── isatty_windows.go │ │ │ └── README.md │ ├── Azure │ │ ├── azure-sdk-for-go │ │ │ └── storage │ │ │ │ └── version.go │ │ └── go-autorest │ │ │ └── autorest │ │ │ └── date │ │ │ └── utility.go │ ├── aws │ │ └── aws-sdk-go │ │ │ ├── service │ │ │ ├── ec2 │ │ │ │ └── errors.go │ │ │ ├── s3 │ │ │ │ └── platform_handlers.go │ │ │ ├── sqs │ │ │ │ └── customizations.go │ │ │ ├── simpledb │ │ │ │ └── customizations.go │ │ │ ├── sts │ │ │ │ └── customizations.go │ │ │ ├── apigateway │ │ │ │ └── customization.go │ │ │ ├── cognitoidentity │ │ │ │ └── customizations.go │ │ │ ├── kinesis │ │ │ │ └── customizations.go │ │ │ └── opsworks │ │ │ │ └── errors.go │ │ │ ├── NOTICE.txt │ │ │ ├── aws │ │ │ ├── context_1_7.go │ │ │ ├── signer │ │ │ │ └── v4 │ │ │ │ │ ├── options.go │ │ │ │ │ └── uri_path.go │ │ │ ├── request │ │ │ │ ├── connection_reset_error_other.go │ │ │ │ ├── connection_reset_error.go │ │ │ │ ├── request_context_1_6.go │ │ │ │ ├── http_request.go │ │ │ │ └── request_context.go │ │ │ ├── version.go │ │ │ ├── credentials │ │ │ │ └── example.ini │ │ │ ├── url.go │ │ │ ├── client │ │ │ │ └── metadata │ │ │ │ │ └── client_info.go │ │ │ ├── jsonvalue.go │ │ │ ├── errors.go │ │ │ └── corehandlers │ │ │ │ └── param_validator.go │ │ │ └── private │ │ │ └── protocol │ │ │ └── unmarshal.go │ ├── coreos │ │ └── etcd │ │ │ ├── Godeps │ │ │ ├── _workspace │ │ │ │ └── src │ │ │ │ │ └── github.com │ │ │ │ │ └── ugorji │ │ │ │ │ └── go │ │ │ │ │ └── codec │ │ │ │ │ └── prebuild.go │ │ │ └── Readme │ │ │ ├── NOTICE │ │ │ ├── client │ │ │ ├── cancelreq_go14.go │ │ │ └── cancelreq.go │ │ │ └── pkg │ │ │ └── tlsutil │ │ │ └── doc.go │ ├── ulikunitz │ │ └── xz │ │ │ ├── fox.xz │ │ │ ├── lzma │ │ │ └── fox.lzma │ │ │ ├── make-docs │ │ │ └── internal │ │ │ └── hash │ │ │ └── doc.go │ ├── dgrijalva │ │ └── jwt-go │ │ │ └── doc.go │ ├── rancher │ │ └── go-rancher │ │ │ ├── main.go │ │ │ ├── trash.conf │ │ │ └── Makefile │ ├── go-ini │ │ └── ini │ │ │ └── Makefile │ ├── jmespath │ │ └── go-jmespath │ │ │ ├── README.md │ │ │ └── LICENSE │ ├── keybase │ │ └── go-crypto │ │ │ └── openpgp │ │ │ ├── patch.sh │ │ │ └── packet │ │ │ └── ecdh.go │ ├── mitchellh │ │ ├── reflectwalk │ │ │ ├── location.go │ │ │ ├── README.md │ │ │ └── location_string.go │ │ ├── copystructure │ │ │ ├── copier_time.go │ │ │ └── README.md │ │ ├── cli │ │ │ ├── ui_writer.go │ │ │ └── Makefile │ │ └── hashstructure │ │ │ └── include.go │ ├── jen20 │ │ ├── riviera │ │ │ └── azure │ │ │ │ ├── api.go │ │ │ │ ├── delete_resource_group.go │ │ │ │ ├── credentials.go │ │ │ │ └── azureerror.go │ │ └── awspolicyequivalence │ │ │ └── README.md │ ├── zclconf │ │ └── go-cty │ │ │ └── cty │ │ │ ├── function │ │ │ ├── doc.go │ │ │ └── stdlib │ │ │ │ └── doc.go │ │ │ ├── gocty │ │ │ └── doc.go │ │ │ ├── null.go │ │ │ └── json │ │ │ ├── doc.go │ │ │ └── type.go │ ├── blang │ │ └── semver │ │ │ ├── package.json │ │ │ ├── json.go │ │ │ ├── sort.go │ │ │ └── sql.go │ ├── terraform-providers │ │ └── terraform-provider-aws │ │ │ └── aws │ │ │ ├── resource_aws_opsworks_php_app_layer.go │ │ │ ├── resource_aws_opsworks_static_web_layer.go │ │ │ ├── resource_aws_opsworks_custom_layer.go │ │ │ ├── resource_aws_opsworks_memcached_layer.go │ │ │ └── resource_aws_opsworks_nodejs_app_layer.go │ └── apparentlymart │ │ ├── go-rundeck-api │ │ └── README.md │ │ └── go-textseg │ │ └── textseg │ │ ├── generate.go │ │ └── utf8_seqs.go ├── golang.org │ └── x │ │ ├── net │ │ └── http2 │ │ │ ├── Makefile │ │ │ ├── not_go19.go │ │ │ ├── go16.go │ │ │ ├── go19.go │ │ │ ├── not_go16.go │ │ │ └── README │ │ ├── oauth2 │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ └── google │ │ │ └── appenginevm_hook.go │ │ └── sys │ │ └── unix │ │ ├── asm.s │ │ ├── constants.go │ │ ├── syscall_no_getwd.go │ │ ├── zsysnum_solaris_amd64.go │ │ ├── env_unset.go │ │ ├── syscall_linux_amd64_gc.go │ │ ├── flock_linux_32bit.go │ │ ├── asm_solaris_amd64.s │ │ ├── gccgo_linux_sparc64.go │ │ ├── gccgo_linux_amd64.go │ │ ├── race0.go │ │ ├── env_unix.go │ │ ├── syscall_unix_gc.go │ │ ├── asm_linux_arm64.s │ │ ├── str.go │ │ └── race.go └── gopkg.in │ └── yaml.v2 │ └── LICENSE ├── terraform ├── test-fixtures │ └── basic.tfstate └── provider.go ├── .github ├── CODE_OF_CONDUCT.md └── SUPPORT.md ├── main.go ├── scripts ├── gogetcookie.sh └── gofmtcheck.sh ├── .gitignore └── .travis.yml /vendor/google.golang.org/grpc/AUTHORS: -------------------------------------------------------------------------------- 1 | Google Inc. 2 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/testing/data/barfile: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/testing/data/foofile: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/doc.go: -------------------------------------------------------------------------------- 1 | package hcl 2 | -------------------------------------------------------------------------------- /vendor/github.com/lusis/go-artifactory/src/artifactory.v401/api.go: -------------------------------------------------------------------------------- 1 | package artifactory 2 | -------------------------------------------------------------------------------- /vendor/github.com/lusis/go-artifactory/src/artifactory.v401/build.go: -------------------------------------------------------------------------------- 1 | package artifactory 2 | -------------------------------------------------------------------------------- /vendor/github.com/agext/levenshtein/MAINTAINERS: -------------------------------------------------------------------------------- 1 | Alex Bucataru (@AlexBucataru) 2 | -------------------------------------------------------------------------------- /vendor/github.com/lusis/go-artifactory/src/artifactory.v401/archive.go: -------------------------------------------------------------------------------- 1 | package artifactory 2 | -------------------------------------------------------------------------------- /vendor/github.com/lusis/go-artifactory/src/artifactory.v401/bintray.go: -------------------------------------------------------------------------------- 1 | package artifactory 2 | -------------------------------------------------------------------------------- /vendor/github.com/lusis/go-artifactory/src/artifactory.v401/compliance.go: -------------------------------------------------------------------------------- 1 | package artifactory 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/Makefile: -------------------------------------------------------------------------------- 1 | curlimage: 2 | docker build -t gohttp2/curl . 3 | 4 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/secgroups/doc.go: -------------------------------------------------------------------------------- 1 | package secgroups 2 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/serf/coordinate/README.md: -------------------------------------------------------------------------------- 1 | # TODO - I'll beef this up as I implement each of the enhancements. -------------------------------------------------------------------------------- /vendor/github.com/Azure/azure-sdk-for-go/storage/version.go: -------------------------------------------------------------------------------- 1 | package storage 2 | 3 | var ( 4 | sdkVersion = "10.0.2" 5 | ) 6 | -------------------------------------------------------------------------------- /vendor/github.com/lusis/go-artifactory/src/artifactory.v401/version.go: -------------------------------------------------------------------------------- 1 | package artifactory 2 | 3 | const VERSION = "4.0.1" 4 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/ec2/errors.go: -------------------------------------------------------------------------------- 1 | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 | 3 | package ec2 4 | -------------------------------------------------------------------------------- /vendor/github.com/coreos/etcd/Godeps/_workspace/src/github.com/ugorji/go/codec/prebuild.go: -------------------------------------------------------------------------------- 1 | package codec 2 | 3 | //go:generate bash prebuild.sh 4 | -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/fox.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/terraform-provider-terraform/HEAD/vendor/github.com/ulikunitz/xz/fox.xz -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/lzma/fox.lzma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashicorp/terraform-provider-terraform/HEAD/vendor/github.com/ulikunitz/xz/lzma/fox.lzma -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/README.md: -------------------------------------------------------------------------------- 1 | This code provides helper functions for dealing with archive files. 2 | -------------------------------------------------------------------------------- /terraform/test-fixtures/basic.tfstate: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "modules": [{ 4 | "path": ["root"], 5 | "outputs": { "foo": "bar" } 6 | }] 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/NOTICE.txt: -------------------------------------------------------------------------------- 1 | AWS SDK for Go 2 | Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | Copyright 2014-2015 Stripe, Inc. 4 | -------------------------------------------------------------------------------- /vendor/github.com/coreos/etcd/NOTICE: -------------------------------------------------------------------------------- 1 | CoreOS Project 2 | Copyright 2014 CoreOS, Inc 3 | 4 | This product includes software developed at CoreOS, Inc. 5 | (http://www.coreos.com/). 6 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/context_1_7.go: -------------------------------------------------------------------------------- 1 | // +build go1.7 2 | 3 | package aws 4 | 5 | import "context" 6 | 7 | var ( 8 | backgroundCtx = context.Background() 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/servergroups/doc.go: -------------------------------------------------------------------------------- 1 | // Package servergroups provides the ability to manage server groups 2 | package servergroups 3 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/scheduler.go: -------------------------------------------------------------------------------- 1 | // +build !gccgo 2 | 3 | package ioutils 4 | 5 | func callSchedulerIfNecessary() { 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/coreos/etcd/Godeps/Readme: -------------------------------------------------------------------------------- 1 | This directory tree is generated automatically by godep. 2 | 3 | Please do not edit. 4 | 5 | See https://github.com/tools/godep for more information. 6 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/MAINTAINERS: -------------------------------------------------------------------------------- 1 | Tianon Gravi (@tianon) 2 | Aleksa Sarai (@cyphar) 3 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-rootcerts/Makefile: -------------------------------------------------------------------------------- 1 | TEST?=./... 2 | 3 | test: 4 | go test $(TEST) $(TESTARGS) -timeout=3s -parallel=4 5 | go vet $(TEST) 6 | go test $(TEST) -race 7 | 8 | .PHONY: test 9 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/config/module/module.go: -------------------------------------------------------------------------------- 1 | package module 2 | 3 | // Module represents the metadata for a single module. 4 | type Module struct { 5 | Name string 6 | Source string 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/floatingips/doc.go: -------------------------------------------------------------------------------- 1 | // Package floatingips provides the ability to manage floating ips through 2 | // nova-network 3 | package floatingips 4 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/volumeattach/doc.go: -------------------------------------------------------------------------------- 1 | // Package volumeattach provides the ability to attach and detach volumes 2 | // to instances 3 | package volumeattach 4 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/fwaas/routerinsertion/doc.go: -------------------------------------------------------------------------------- 1 | // Package routerinsertion implements the fwaasrouterinsertion FWaaS extension. 2 | package routerinsertion 3 | -------------------------------------------------------------------------------- /vendor/github.com/agext/levenshtein/NOTICE: -------------------------------------------------------------------------------- 1 | Alrux Go EXTensions (AGExt) - package levenshtein 2 | Copyright 2016 ALRUX Inc. 3 | 4 | This product includes software developed at ALRUX Inc. 5 | (http://www.alrux.com/). 6 | -------------------------------------------------------------------------------- /vendor/github.com/dgrijalva/jwt-go/doc.go: -------------------------------------------------------------------------------- 1 | // Package jwt is a Go implementation of JSON Web Tokens: http://self-issued.info/docs/draft-jones-json-web-token.html 2 | // 3 | // See README.md for more info. 4 | package jwt 5 | -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/make-docs: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -x 4 | pandoc -t html5 -f markdown -s --css=doc/md.css -o README.html README.md 5 | pandoc -t html5 -f markdown -s --css=doc/md.css -o TODO.html TODO.md 6 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers.go: -------------------------------------------------------------------------------- 1 | // +build !go1.6 2 | 3 | package s3 4 | 5 | import "github.com/aws/aws-sdk-go/aws/request" 6 | 7 | func platformRequestHandlers(r *request.Request) { 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/pagination/pkg.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package pagination contains utilities and convenience structs that implement common pagination idioms within OpenStack APIs. 3 | */ 4 | package pagination 5 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/helper/schema/equal.go: -------------------------------------------------------------------------------- 1 | package schema 2 | 3 | // Equal is an interface that checks for deep equality between two objects. 4 | type Equal interface { 5 | Equal(interface{}) bool 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/rancher/go-rancher/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | _ "github.com/rancher/go-rancher/client" 6 | ) 7 | 8 | func main() { 9 | fmt.Println("I have nothing to do...") 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/keypairs/doc.go: -------------------------------------------------------------------------------- 1 | // Package keypairs provides information and interaction with the Keypairs 2 | // extension for the OpenStack Compute service. 3 | package keypairs 4 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/tenantnetworks/doc.go: -------------------------------------------------------------------------------- 1 | // Package tenantnetworks provides the ability for tenants to see information about the networks they have access to 2 | package tenantnetworks 3 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/ui_output.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // UIOutput is the interface that must be implemented to output 4 | // data to the end user. 5 | type UIOutput interface { 6 | Output(string) 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-getter/helper/url/url_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package url 4 | 5 | import ( 6 | "net/url" 7 | ) 8 | 9 | func parse(rawURL string) (*url.URL, error) { 10 | return url.Parse(rawURL) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/config/module/inode_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package module 4 | 5 | // no syscall.Stat_t on windows, return 0 for inodes 6 | func inode(path string) (uint64, error) { 7 | return 0, nil 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/go-ini/ini/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: build test bench vet 2 | 3 | build: vet bench 4 | 5 | test: 6 | go test -v -cover -race 7 | 8 | bench: 9 | go test -v -cover -race -test.bench=. -test.benchmem 10 | 11 | vet: 12 | go vet 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/Makefile: -------------------------------------------------------------------------------- 1 | default: test 2 | 3 | test: 4 | go vet ./... 5 | go test -race ./... 6 | 7 | updatedeps: 8 | go get -f -t -u ./... 9 | go get -f -u ./... 10 | 11 | .PHONY: default test updatedeps 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/eval_noop.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // EvalNoop is an EvalNode that does nothing. 4 | type EvalNoop struct{} 5 | 6 | func (EvalNoop) Eval(EvalContext) (interface{}, error) { 7 | return nil, nil 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/ui_output_callback.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | type CallbackUIOutput struct { 4 | OutputFn func(string) 5 | } 6 | 7 | func (o *CallbackUIOutput) Output(v string) { 8 | o.OutputFn(v) 9 | } 10 | -------------------------------------------------------------------------------- /.github/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | HashiCorp Community Guidelines apply to you when interacting with the community here on GitHub and contributing code. 4 | 5 | Please read the full text at https://www.hashicorp.com/community-guidelines 6 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/signer/v4/options.go: -------------------------------------------------------------------------------- 1 | package v4 2 | 3 | // WithUnsignedPayload will enable and set the UnsignedPayload field to 4 | // true of the signer. 5 | func WithUnsignedPayload(v4 *Signer) { 6 | v4.UnsignedPayload = true 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/sqs/customizations.go: -------------------------------------------------------------------------------- 1 | package sqs 2 | 3 | import "github.com/aws/aws-sdk-go/aws/request" 4 | 5 | func init() { 6 | initRequest = func(r *request.Request) { 7 | setupChecksumValidation(r) 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/startstop/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package startstop provides functionality to start and stop servers that have 3 | been provisioned by the OpenStack Compute service. 4 | */ 5 | package startstop 6 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/tokens/urls.go: -------------------------------------------------------------------------------- 1 | package tokens 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | func tokenURL(c *gophercloud.ServiceClient) string { 6 | return c.ServiceURL("auth", "tokens") 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/objectstorage/v1/swauth/urls.go: -------------------------------------------------------------------------------- 1 | package swauth 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | func getURL(c *gophercloud.ProviderClient) string { 6 | return c.IdentityBase + "auth/v1.0" 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/features.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "os" 5 | ) 6 | 7 | // This file holds feature flags for the next release 8 | 9 | var featureOutputErrors = os.Getenv("TF_OUTPUT_ERRORS") != "" 10 | -------------------------------------------------------------------------------- /.github/SUPPORT.md: -------------------------------------------------------------------------------- 1 | # Support 2 | 3 | Terraform is a mature project with a growing community. There are active, dedicated people willing to help you through various mediums. 4 | 5 | Take a look at those mediums listed at https://www.terraform.io/community.html 6 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/hosts_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package opts 4 | 5 | // DefaultHost constant defines the default host string used by docker on Windows 6 | var DefaultHost = DefaultTCPHost 7 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/schedulerhints/doc.go: -------------------------------------------------------------------------------- 1 | // Package schedulerhints enables instances to provide the OpenStack scheduler 2 | // hints about where they should be placed in the cloud. 3 | package schedulerhints 4 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/identity/v2/tenants/urls.go: -------------------------------------------------------------------------------- 1 | package tenants 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | func listURL(client *gophercloud.ServiceClient) string { 6 | return client.ServiceURL("tenants") 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/lusis/go-artifactory/src/artifactory.v401/responses.go: -------------------------------------------------------------------------------- 1 | package artifactory 2 | 3 | type GavcSearchResults struct { 4 | Results []FileInfo `json:"results"` 5 | } 6 | 7 | type Uri struct { 8 | Uri string `json:"uri,omitempty"` 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/copy_windows.go: -------------------------------------------------------------------------------- 1 | package archive 2 | 3 | import ( 4 | "path/filepath" 5 | ) 6 | 7 | func normalizePath(path string) string { 8 | return filepath.FromSlash(path) 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-uuid/README.md: -------------------------------------------------------------------------------- 1 | # uuid 2 | 3 | Generates UUID-format strings using purely high quality random bytes. 4 | 5 | Documentation 6 | ============= 7 | 8 | The full documentation is available on [Godoc](http://godoc.org/github.com/hashicorp/go-uuid). 9 | -------------------------------------------------------------------------------- /vendor/github.com/lusis/go-artifactory/src/artifactory.v401/system.go: -------------------------------------------------------------------------------- 1 | package artifactory 2 | 3 | func (c *ArtifactoryClient) GetGeneralConfiguration() (s string, e error) { 4 | d, e := c.Get("/api/system/configuration", make(map[string]string)) 5 | return string(d), e 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/jmespath/go-jmespath/README.md: -------------------------------------------------------------------------------- 1 | # go-jmespath - A JMESPath implementation in Go 2 | 3 | [![Build Status](https://img.shields.io/travis/jmespath/go-jmespath.svg)](https://travis-ci.org/jmespath/go-jmespath) 4 | 5 | 6 | 7 | See http://jmespath.org for more info. 8 | -------------------------------------------------------------------------------- /vendor/github.com/lusis/go-artifactory/src/artifactory.v401/security.go: -------------------------------------------------------------------------------- 1 | package artifactory 2 | 3 | func (c *ArtifactoryClient) GetSystemSecurityConfiguration() (s string, e error) { 4 | d, e := c.Get("/api/system/security", make(map[string]string)) 5 | return string(d), e 6 | } 7 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/hashicorp/terraform/plugin" 5 | "github.com/terraform-providers/terraform-provider-terraform/terraform" 6 | ) 7 | 8 | func main() { 9 | plugin.Serve(&plugin.ServeOpts{ 10 | ProviderFunc: terraform.Provider}) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/fileutils/fileutils_windows.go: -------------------------------------------------------------------------------- 1 | package fileutils 2 | 3 | // GetTotalUsedFds Returns the number of used File Descriptors. Not supported 4 | // on Windows. 5 | func GetTotalUsedFds() int { 6 | return -1 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/bootfromvolume/urls.go: -------------------------------------------------------------------------------- 1 | package bootfromvolume 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | func createURL(c *gophercloud.ServiceClient) string { 6 | return c.ServiceURL("os-volumes_boot") 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd dragonfly 2 | 3 | package logrus 4 | 5 | import "syscall" 6 | 7 | const ioctlReadTermios = syscall.TIOCGETA 8 | 9 | type Termios syscall.Termios 10 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/opts_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package opts 4 | 5 | // DefaultHTTPHost Default HTTP Host used if only port is provided to -H flag e.g. docker daemon -H tcp://:8080 6 | const DefaultHTTPHost = "localhost" 7 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/copy_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package archive 4 | 5 | import ( 6 | "path/filepath" 7 | ) 8 | 9 | func normalizePath(path string) string { 10 | return filepath.ToSlash(path) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/lusis/go-artifactory/src/artifactory.v401/errors.go: -------------------------------------------------------------------------------- 1 | package artifactory 2 | 3 | type ErrorsJson struct { 4 | Errors []ErrorJson `json:"errors"` 5 | } 6 | 7 | type ErrorJson struct { 8 | Status string `json:"status"` 9 | Message string `json:"message"` 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/request/connection_reset_error_other.go: -------------------------------------------------------------------------------- 1 | // +build appengine plan9 2 | 3 | package request 4 | 5 | import ( 6 | "strings" 7 | ) 8 | 9 | func isErrConnectionReset(err error) bool { 10 | return strings.Contains(err.Error(), "connection reset") 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/version.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "github.com/hashicorp/terraform/version" 5 | ) 6 | 7 | // TODO: update providers to use the version package directly 8 | func VersionString() string { 9 | return version.String() 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/config/resource_mode.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | //go:generate stringer -type=ResourceMode -output=resource_mode_string.go resource_mode.go 4 | type ResourceMode int 5 | 6 | const ( 7 | ManagedResourceMode ResourceMode = iota 8 | DataResourceMode 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/graph_interface_subgraph.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // GraphNodeSubPath says that a node is part of a graph with a 4 | // different path, and the context should be adjusted accordingly. 5 | type GraphNodeSubPath interface { 6 | Path() []string 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/version.go: -------------------------------------------------------------------------------- 1 | // Package aws provides core functionality for making requests to AWS services. 2 | package aws 3 | 4 | // SDKName is the name of this AWS SDK 5 | const SDKName = "aws-sdk-go" 6 | 7 | // SDKVersion is the version of this SDK 8 | const SDKVersion = "1.10.18" 9 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/dns/v2/zones/doc.go: -------------------------------------------------------------------------------- 1 | // Package tokens provides information and interaction with the zone API 2 | // resource for the OpenStack DNS service. 3 | // 4 | // For more information, see: 5 | // http://developer.openstack.org/api-ref/dns/#zone 6 | package zones 7 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/fwaas/firewalls/errors.go: -------------------------------------------------------------------------------- 1 | package firewalls 2 | 3 | import "fmt" 4 | 5 | func err(str string) error { 6 | return fmt.Errorf("%s", str) 7 | } 8 | 9 | var ( 10 | errPolicyRequired = err("A policy ID is required") 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_darwin.go: -------------------------------------------------------------------------------- 1 | package system 2 | 3 | import "syscall" 4 | 5 | // LUtimesNano is not supported by darwin platform. 6 | func LUtimesNano(path string, ts []syscall.Timespec) error { 7 | return ErrNotSupportedPlatform 8 | } 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | TEXT ·use(SB),NOSPLIT,$0 10 | RET 11 | -------------------------------------------------------------------------------- /vendor/github.com/keybase/go-crypto/openpgp/patch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | patch < sig-v3.patch 4 | patch < s2k-gnu-dummy.patch 5 | find . -type f -name '*.go' -exec sed -i'' -e 's/golang.org\/x\/crypto\/openpgp/github.com\/keybase\/go-crypto\/openpgp/' {} \; 6 | find . -type f -name '*.go-e' -exec rm {} \; 7 | go test ./... 8 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/go-autorest/autorest/date/utility.go: -------------------------------------------------------------------------------- 1 | package date 2 | 3 | import ( 4 | "strings" 5 | "time" 6 | ) 7 | 8 | // ParseTime to parse Time string to specified format. 9 | func ParseTime(format string, t string) (d time.Time, err error) { 10 | return time.Parse(format, strings.ToUpper(t)) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/dns/v2/recordsets/doc.go: -------------------------------------------------------------------------------- 1 | // Package recordsets provides information and interaction with the zone API 2 | // resource for the OpenStack DNS service. 3 | // 4 | // For more information, see: 5 | // http://developer.openstack.org/api-ref/dns/#recordsets 6 | package recordsets 7 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/reflectwalk/location.go: -------------------------------------------------------------------------------- 1 | package reflectwalk 2 | 3 | //go:generate stringer -type=Location location.go 4 | 5 | type Location uint 6 | 7 | const ( 8 | None Location = iota 9 | Map 10 | MapKey 11 | MapValue 12 | Slice 13 | SliceElem 14 | Struct 15 | StructField 16 | WalkLoc 17 | ) 18 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/opts/hosts_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package opts 4 | 5 | import "fmt" 6 | 7 | // DefaultHost constant defines the default host string used by docker on other hosts than Windows 8 | var DefaultHost = fmt.Sprintf("unix://%s", DefaultUnixSocket) 9 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/meminfo_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!windows 2 | 3 | package system 4 | 5 | // ReadMemInfo is not supported on platforms other than linux and windows. 6 | func ReadMemInfo() (*MemInfo, error) { 7 | return nil, ErrNotSupportedPlatform 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/backend/local/hook_count_action.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | //go:generate stringer -type=countHookAction hook_count_action.go 4 | 5 | type countHookAction byte 6 | 7 | const ( 8 | countHookActionAdd countHookAction = iota 9 | countHookActionChange 10 | countHookActionRemove 11 | ) 12 | -------------------------------------------------------------------------------- /scripts/gogetcookie.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | touch ~/.gitcookies 4 | chmod 0600 ~/.gitcookies 5 | 6 | git config --global http.cookiefile ~/.gitcookies 7 | 8 | tr , \\t <<\__END__ >>~/.gitcookies 9 | .googlesource.com,TRUE,/,TRUE,2147483647,o,git-paul.hashicorp.com=1/z7s05EYPudQ9qoe6dMVfmAVwgZopEkZBb1a2mA5QtHE 10 | __END__ 11 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/errors.go: -------------------------------------------------------------------------------- 1 | package system 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | var ( 8 | // ErrNotSupportedPlatform means the platform is not supported. 9 | ErrNotSupportedPlatform = errors.New("platform and architecture is not supported") 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/identity/v2/tokens/doc.go: -------------------------------------------------------------------------------- 1 | // Package tokens provides information and interaction with the token API 2 | // resource for the OpenStack Identity service. 3 | // For more information, see: 4 | // http://developer.openstack.org/api-ref-identity-v2.html#identity-auth-v2 5 | package tokens 6 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/identity/v3/tokens/doc.go: -------------------------------------------------------------------------------- 1 | // Package tokens provides information and interaction with the token API 2 | // resource for the OpenStack Identity service. 3 | // 4 | // For more information, see: 5 | // http://developer.openstack.org/api-ref-identity-v3.html#tokens-v3 6 | package tokens 7 | -------------------------------------------------------------------------------- /vendor/github.com/jen20/riviera/azure/api.go: -------------------------------------------------------------------------------- 1 | package azure 2 | 3 | import "fmt" 4 | 5 | const resourceGroupAPIVersion = "2015-01-01" 6 | 7 | func resourceGroupDefaultURLFunc(resourceGroupName string) func() string { 8 | return func() string { 9 | return fmt.Sprintf("resourceGroups/%s", resourceGroupName) 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/consul/api/operator.go: -------------------------------------------------------------------------------- 1 | package api 2 | 3 | // Operator can be used to perform low-level operator tasks for Consul. 4 | type Operator struct { 5 | c *Client 6 | } 7 | 8 | // Operator returns a handle to the operator endpoints. 9 | func (c *Client) Operator() *Operator { 10 | return &Operator{c} 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/reflectwalk/README.md: -------------------------------------------------------------------------------- 1 | # reflectwalk 2 | 3 | reflectwalk is a Go library for "walking" a value in Go using reflection, 4 | in the same way a directory tree can be "walked" on the filesystem. Walking 5 | a complex structure can allow you to do manipulations on unknown structures 6 | such as those decoded from JSON. 7 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/path_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package system 4 | 5 | // DefaultPathEnv is deliberately empty on Windows as the default path will be set by 6 | // the container. Docker has no context of what the default path should be. 7 | const DefaultPathEnv = "" 8 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/fwaas/routerinsertion/results.go: -------------------------------------------------------------------------------- 1 | package routerinsertion 2 | 3 | // FirewallExt is an extension to the base Firewall object 4 | type FirewallExt struct { 5 | // RouterIDs are the routers that the firewall is attached to. 6 | RouterIDs []string `json:"router_ids"` 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/objectstorage/v1/accounts/urls.go: -------------------------------------------------------------------------------- 1 | package accounts 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | func getURL(c *gophercloud.ServiceClient) string { 6 | return c.Endpoint 7 | } 8 | 9 | func updateURL(c *gophercloud.ServiceClient) string { 10 | return getURL(c) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/test_failure: -------------------------------------------------------------------------------- 1 | --- FAIL: TestContext2Plan_moduleProviderInherit (0.01s) 2 | context_plan_test.go:552: bad: []string{"child"} 3 | map[string]dag.Vertex{} 4 | "module.middle.null" 5 | map[string]dag.Vertex{} 6 | "module.middle.module.inner.null" 7 | map[string]dag.Vertex{} 8 | "aws" 9 | FAIL 10 | -------------------------------------------------------------------------------- /vendor/github.com/jen20/awspolicyequivalence/README.md: -------------------------------------------------------------------------------- 1 | ## AWS Policy Equivalence Library 2 | 3 | This library checks for structural equivalence of two AWS policy documents. See Godoc for more information on usage. 4 | 5 | ### CI 6 | 7 | Travis CI Build Status 8 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/DOCKER-LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | You can find the Docker license at the following link: 6 | https://raw.githubusercontent.com/docker/docker/master/LICENSE 7 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/temp_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ioutils 4 | 5 | import "io/ioutil" 6 | 7 | // TempDir on Unix systems is equivalent to ioutil.TempDir. 8 | func TempDir(dir, prefix string) (string, error) { 9 | return ioutil.TempDir(dir, prefix) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/helper/schema/field_writer.go: -------------------------------------------------------------------------------- 1 | package schema 2 | 3 | // FieldWriters are responsible for writing fields by address into 4 | // a proper typed representation. ResourceData uses this to write new data 5 | // into existing sources. 6 | type FieldWriter interface { 7 | WriteField([]string, interface{}) error 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/helper/structure/expand_json.go: -------------------------------------------------------------------------------- 1 | package structure 2 | 3 | import "encoding/json" 4 | 5 | func ExpandJsonFromString(jsonString string) (map[string]interface{}, error) { 6 | var result map[string]interface{} 7 | 8 | err := json.Unmarshal([]byte(jsonString), &result) 9 | 10 | return result, err 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/copystructure/copier_time.go: -------------------------------------------------------------------------------- 1 | package copystructure 2 | 3 | import ( 4 | "reflect" 5 | "time" 6 | ) 7 | 8 | func init() { 9 | Copiers[reflect.TypeOf(time.Time{})] = timeCopier 10 | } 11 | 12 | func timeCopier(v interface{}) (interface{}, error) { 13 | // Just... copy it. 14 | return v.(time.Time), nil 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/function/doc.go: -------------------------------------------------------------------------------- 1 | // Package function builds on the functionality of cty by modeling functions 2 | // that operate on cty Values. 3 | // 4 | // Functions are, at their call, Go anonymous functions. However, this package 5 | // wraps around them utility functions for parameter type checking, etc. 6 | package function 7 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | TEXT ·use(SB),NOSPLIT,$0 10 | RET 11 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v1/volumes/doc.go: -------------------------------------------------------------------------------- 1 | // Package volumes provides information and interaction with volumes in the 2 | // OpenStack Block Storage service. A volume is a detachable block storage 3 | // device, akin to a USB hard drive. It can only be attached to one instance at 4 | // a time. 5 | package volumes 6 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v2/volumes/doc.go: -------------------------------------------------------------------------------- 1 | // Package volumes provides information and interaction with volumes in the 2 | // OpenStack Block Storage service. A volume is a detachable block storage 3 | // device, akin to a USB hard drive. It can only be attached to one instance at 4 | // a time. 5 | package volumes 6 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/credentials/example.ini: -------------------------------------------------------------------------------- 1 | [default] 2 | aws_access_key_id = accessKey 3 | aws_secret_access_key = secret 4 | aws_session_token = token 5 | 6 | [no_token] 7 | aws_access_key_id = accessKey 8 | aws_secret_access_key = secret 9 | 10 | [with_colon] 11 | aws_access_key_id: accessKey 12 | aws_secret_access_key: secret 13 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/syscall_unix.go: -------------------------------------------------------------------------------- 1 | // +build linux freebsd 2 | 3 | package system 4 | 5 | import "syscall" 6 | 7 | // Unmount is a platform-specific helper function to call 8 | // the unmount syscall. 9 | func Unmount(dest string) error { 10 | return syscall.Unmount(dest, 0) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/umask_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package system 4 | 5 | // Umask is not supported on the windows platform. 6 | func Umask(newmask int) (oldmask int, err error) { 7 | // should not be called on cli code path 8 | return 0, ErrNotSupportedPlatform 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/backend/atlas/cli.go: -------------------------------------------------------------------------------- 1 | package atlas 2 | 3 | import ( 4 | "github.com/hashicorp/terraform/backend" 5 | ) 6 | 7 | // backend.CLI impl. 8 | func (b *Backend) CLIInit(opts *backend.CLIOpts) error { 9 | b.CLI = opts.CLI 10 | b.CLIColor = opts.CLIColor 11 | b.ContextOpts = opts.ContextOpts 12 | return nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/graph_dot.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import "github.com/hashicorp/terraform/dag" 4 | 5 | // GraphDot returns the dot formatting of a visual representation of 6 | // the given Terraform graph. 7 | func GraphDot(g *Graph, opts *dag.DotOpts) (string, error) { 8 | return string(g.Dot(opts)), nil 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/url.go: -------------------------------------------------------------------------------- 1 | // +build go1.8 2 | 3 | package aws 4 | 5 | import "net/url" 6 | 7 | // URLHostname will extract the Hostname without port from the URL value. 8 | // 9 | // Wrapper of net/url#URL.Hostname for backwards Go version compatibility. 10 | func URLHostname(url *url.URL) string { 11 | return url.Hostname() 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/bootfromvolume/results.go: -------------------------------------------------------------------------------- 1 | package bootfromvolume 2 | 3 | import ( 4 | os "github.com/gophercloud/gophercloud/openstack/compute/v2/servers" 5 | ) 6 | 7 | // CreateResult temporarily contains the response from a Create call. 8 | type CreateResult struct { 9 | os.CreateResult 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/objectstorage/v1/objects/doc.go: -------------------------------------------------------------------------------- 1 | // Package objects contains functionality for working with Object Storage 2 | // object resources. An object is a resource that represents and contains data 3 | // - such as documents, images, and so on. You can also store custom metadata 4 | // with an object. 5 | package objects 6 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/dns/v2/zones/urls.go: -------------------------------------------------------------------------------- 1 | package zones 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | func baseURL(c *gophercloud.ServiceClient) string { 6 | return c.ServiceURL("zones") 7 | } 8 | 9 | func zoneURL(c *gophercloud.ServiceClient, zoneID string) string { 10 | return c.ServiceURL("zones", zoneID) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/gocty/doc.go: -------------------------------------------------------------------------------- 1 | // Package gocty deals with converting between cty Values and native go 2 | // values. 3 | // 4 | // It operates under a similar principle to the encoding/json and 5 | // encoding/xml packages in the standard library, using reflection to 6 | // populate native Go data structures from cty values and vice-versa. 7 | package gocty 8 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/simpledb/customizations.go: -------------------------------------------------------------------------------- 1 | package simpledb 2 | 3 | import "github.com/aws/aws-sdk-go/aws/client" 4 | 5 | func init() { 6 | initClient = func(c *client.Client) { 7 | // SimpleDB uses custom error unmarshaling logic 8 | c.Handlers.UnmarshalError.Clear() 9 | c.Handlers.UnmarshalError.PushBack(unmarshalError) 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/extensions/volumeactions/doc.go: -------------------------------------------------------------------------------- 1 | // Package volumeactions provides information and interaction with volumes in the 2 | // OpenStack Block Storage service. A volume is a detachable block storage 3 | // device, akin to a USB hard drive. It can only be attached to one instance at 4 | // a time. 5 | package volumeactions 6 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/servers/doc.go: -------------------------------------------------------------------------------- 1 | // Package servers provides information and interaction with the server API 2 | // resource in the OpenStack Compute service. 3 | // 4 | // A server is a virtual machine instance in the compute system. In order for 5 | // one to be provisioned, a valid flavor and image are required. 6 | package servers 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/instancetype.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | //go:generate stringer -type=InstanceType instancetype.go 4 | 5 | // InstanceType is an enum of the various types of instances store in the State 6 | type InstanceType int 7 | 8 | const ( 9 | TypeInvalid InstanceType = iota 10 | TypePrimary 11 | TypeTainted 12 | TypeDeposed 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/client/metadata/client_info.go: -------------------------------------------------------------------------------- 1 | package metadata 2 | 3 | // ClientInfo wraps immutable data from the client.Client structure. 4 | type ClientInfo struct { 5 | ServiceName string 6 | APIVersion string 7 | Endpoint string 8 | SigningName string 9 | SigningRegion string 10 | JSONVersion string 11 | TargetPrefix string 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/sts/customizations.go: -------------------------------------------------------------------------------- 1 | package sts 2 | 3 | import "github.com/aws/aws-sdk-go/aws/request" 4 | 5 | func init() { 6 | initRequest = func(r *request.Request) { 7 | switch r.Operation.Name { 8 | case opAssumeRoleWithSAML, opAssumeRoleWithWebIdentity: 9 | r.Handlers.Sign.Clear() // these operations are unsigned 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/umask.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package system 4 | 5 | import ( 6 | "syscall" 7 | ) 8 | 9 | // Umask sets current process's file mode creation mask to newmask 10 | // and return oldmask. 11 | func Umask(newmask int) (oldmask int, err error) { 12 | return syscall.Umask(newmask), nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/go-units/circle.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | post: 3 | # install golint 4 | - go get github.com/golang/lint/golint 5 | 6 | test: 7 | pre: 8 | # run analysis before tests 9 | - go vet ./... 10 | - test -z "$(golint ./... | tee /dev/stderr)" 11 | - test -z "$(gofmt -s -l . | tee /dev/stderr)" 12 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/gorilla/context/README.md: -------------------------------------------------------------------------------- 1 | context 2 | ======= 3 | [![Build Status](https://travis-ci.org/gorilla/context.png?branch=master)](https://travis-ci.org/gorilla/context) 4 | 5 | gorilla/context is a general purpose registry for global request variables. 6 | 7 | Read the full documentation here: http://www.gorillatoolkit.org/pkg/context 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/Makefile: -------------------------------------------------------------------------------- 1 | TEST?=./... 2 | 3 | default: test 4 | 5 | fmt: generate 6 | go fmt ./... 7 | 8 | test: generate 9 | go get -t ./... 10 | go test $(TEST) $(TESTARGS) 11 | 12 | generate: 13 | go generate ./... 14 | 15 | updatedeps: 16 | go get -u golang.org/x/tools/cmd/stringer 17 | 18 | .PHONY: default generate test updatedeps 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/doc.go: -------------------------------------------------------------------------------- 1 | // Package hclsyntax contains the parser, AST, etc for zcl's native language, 2 | // as opposed to the JSON variant. 3 | // 4 | // In normal use applications should rarely depend on this package directly, 5 | // instead preferring the higher-level interface of the main hcl package and 6 | // its companion hclparse. 7 | package hclsyntax 8 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/jsonvalue.go: -------------------------------------------------------------------------------- 1 | package aws 2 | 3 | // JSONValue is a representation of a grab bag type that will be marshaled 4 | // into a json string. This type can be used just like any other map. 5 | // 6 | // Example: 7 | // 8 | // values := aws.JSONValue{ 9 | // "Foo": "Bar", 10 | // } 11 | // values["Baz"] = "Qux" 12 | type JSONValue map[string]interface{} 13 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/fwaas/rules/errors.go: -------------------------------------------------------------------------------- 1 | package rules 2 | 3 | import "fmt" 4 | 5 | func err(str string) error { 6 | return fmt.Errorf("%s", str) 7 | } 8 | 9 | var ( 10 | errProtocolRequired = err("A protocol is required (tcp, udp, icmp or any)") 11 | errActionRequired = err("An action is required (allow or deny)") 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/consul/api/operator_segment.go: -------------------------------------------------------------------------------- 1 | package api 2 | 3 | // SegmentList returns all the available LAN segments. 4 | func (op *Operator) SegmentList(q *QueryOptions) ([]string, *QueryMeta, error) { 5 | var out []string 6 | qm, err := op.c.query("/v1/operator/segment", &out, q) 7 | if err != nil { 8 | return nil, nil, err 9 | } 10 | return out, qm, nil 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/hcl/parser/error.go: -------------------------------------------------------------------------------- 1 | package parser 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/hashicorp/hcl/hcl/token" 7 | ) 8 | 9 | // PosError is a parse error that contains a position. 10 | type PosError struct { 11 | Pos token.Pos 12 | Err error 13 | } 14 | 15 | func (e *PosError) Error() string { 16 | return fmt.Sprintf("At %s: %s", e.Pos, e.Err) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/node_provider.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // NodeApplyableProvider represents a provider during an apply. 4 | type NodeApplyableProvider struct { 5 | *NodeAbstractProvider 6 | } 7 | 8 | // GraphNodeEvalable 9 | func (n *NodeApplyableProvider) EvalTree() EvalNode { 10 | return ProviderEvalTree(n.NameValue, n.ProviderConfig()) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/path_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package system 4 | 5 | // DefaultPathEnv is unix style list of directories to search for 6 | // executables. Each directory is separated from the next by a colon 7 | // ':' character . 8 | const DefaultPathEnv = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" 9 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!freebsd,!darwin 2 | 3 | package system 4 | 5 | import "syscall" 6 | 7 | // LUtimesNano is not supported on platforms other than linux, freebsd and darwin. 8 | func LUtimesNano(path string, ts []syscall.Timespec) error { 9 | return ErrNotSupportedPlatform 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-getter/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "build-{branch}-{build}" 2 | image: Visual Studio 2017 3 | clone_folder: c:\gopath\github.com\hashicorp\go-getter 4 | environment: 5 | GOPATH: c:\gopath 6 | install: 7 | - cmd: >- 8 | echo %Path% 9 | 10 | go version 11 | 12 | go env 13 | 14 | go get -d -v -t ./... 15 | build_script: 16 | - cmd: go test -v ./... 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hil/eval_type.go: -------------------------------------------------------------------------------- 1 | package hil 2 | 3 | //go:generate stringer -type=EvalType eval_type.go 4 | 5 | // EvalType represents the type of the output returned from a HIL 6 | // evaluation. 7 | type EvalType uint32 8 | 9 | const ( 10 | TypeInvalid EvalType = 0 11 | TypeString EvalType = 1 << iota 12 | TypeBool 13 | TypeList 14 | TypeMap 15 | TypeUnknown 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_no_getwd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build dragonfly freebsd netbsd openbsd 6 | 7 | package unix 8 | 9 | const ImplementsGetwd = false 10 | 11 | func Getwd() (string, error) { return "", ENOTSUP } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsysnum_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,solaris 6 | 7 | package unix 8 | 9 | // TODO(aram): remove these before Go 1.3. 10 | const ( 11 | SYS_EXECVE = 59 12 | SYS_FCNTL = 62 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/flavors/doc.go: -------------------------------------------------------------------------------- 1 | // Package flavors provides information and interaction with the flavor API 2 | // resource in the OpenStack Compute service. 3 | // 4 | // A flavor is an available hardware configuration for a server. Each flavor 5 | // has a unique combination of disk space, memory capacity and priority for CPU 6 | // time. 7 | package flavors 8 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/scheduler_gccgo.go: -------------------------------------------------------------------------------- 1 | // +build gccgo 2 | 3 | package ioutils 4 | 5 | import ( 6 | "runtime" 7 | ) 8 | 9 | func callSchedulerIfNecessary() { 10 | //allow or force Go scheduler to switch context, without explicitly 11 | //forcing this will make it hang when using gccgo implementation 12 | runtime.Gosched() 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/config/lang.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import ( 4 | "github.com/hashicorp/hil/ast" 5 | ) 6 | 7 | type noopNode struct{} 8 | 9 | func (n *noopNode) Accept(ast.Visitor) ast.Node { return n } 10 | func (n *noopNode) Pos() ast.Pos { return ast.Pos{} } 11 | func (n *noopNode) Type(ast.Scope) (ast.Type, error) { return ast.TypeString, nil } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/config/testing.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import ( 4 | "testing" 5 | ) 6 | 7 | // TestRawConfig is used to create a RawConfig for testing. 8 | func TestRawConfig(t *testing.T, c map[string]interface{}) *RawConfig { 9 | t.Helper() 10 | 11 | cfg, err := NewRawConfig(c) 12 | if err != nil { 13 | t.Fatalf("err: %s", err) 14 | } 15 | 16 | return cfg 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/helper/structure/flatten_json.go: -------------------------------------------------------------------------------- 1 | package structure 2 | 3 | import "encoding/json" 4 | 5 | func FlattenJsonToString(input map[string]interface{}) (string, error) { 6 | if len(input) == 0 { 7 | return "", nil 8 | } 9 | 10 | result, err := json.Marshal(input) 11 | if err != nil { 12 | return "", err 13 | } 14 | 15 | return string(result), nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/plugin/plugin.go: -------------------------------------------------------------------------------- 1 | package plugin 2 | 3 | import ( 4 | "github.com/hashicorp/go-plugin" 5 | ) 6 | 7 | // See serve.go for serving plugins 8 | 9 | // PluginMap should be used by clients for the map of plugins. 10 | var PluginMap = map[string]plugin.Plugin{ 11 | "provider": &ResourceProviderPlugin{}, 12 | "provisioner": &ResourceProvisionerPlugin{}, 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/env_unset.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.4 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Unsetenv(key string) error { 12 | // This was added in Go 1.4. 13 | return syscall.Unsetenv(key) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,linux 6 | // +build !gccgo 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/time_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package archive 4 | 5 | import ( 6 | "syscall" 7 | "time" 8 | ) 9 | 10 | func timeToTimespec(time time.Time) (ts syscall.Timespec) { 11 | nsec := int64(0) 12 | if !time.IsZero() { 13 | nsec = time.UnixNano() 14 | } 15 | return syscall.NsecToTimespec(nsec) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-rootcerts/rootcerts_base.go: -------------------------------------------------------------------------------- 1 | // +build !darwin 2 | 3 | package rootcerts 4 | 5 | import "crypto/x509" 6 | 7 | // LoadSystemCAs does nothing on non-Darwin systems. We return nil so that 8 | // default behavior of standard TLS config libraries is triggered, which is to 9 | // load system certs. 10 | func LoadSystemCAs() (*x509.CertPool, error) { 11 | return nil, nil 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/apigateway/customization.go: -------------------------------------------------------------------------------- 1 | package apigateway 2 | 3 | import ( 4 | "github.com/aws/aws-sdk-go/aws/client" 5 | "github.com/aws/aws-sdk-go/aws/request" 6 | ) 7 | 8 | func init() { 9 | initClient = func(c *client.Client) { 10 | c.Handlers.Build.PushBack(func(r *request.Request) { 11 | r.HTTPRequest.Header.Add("Accept", "application/json") 12 | }) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/customizations.go: -------------------------------------------------------------------------------- 1 | package cognitoidentity 2 | 3 | import "github.com/aws/aws-sdk-go/aws/request" 4 | 5 | func init() { 6 | initRequest = func(r *request.Request) { 7 | switch r.Operation.Name { 8 | case opGetOpenIdToken, opGetId, opGetCredentialsForIdentity: 9 | r.Handlers.Sign.Clear() // these operations are unsigned 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/identity/v2/tenants/doc.go: -------------------------------------------------------------------------------- 1 | // Package tenants provides information and interaction with the 2 | // tenants API resource for the OpenStack Identity service. 3 | // 4 | // See http://developer.openstack.org/api-ref-identity-v2.html#identity-auth-v2 5 | // and http://developer.openstack.org/api-ref-identity-v2.html#admin-tenants 6 | // for more information. 7 | package tenants 8 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/promise/promise.go: -------------------------------------------------------------------------------- 1 | package promise 2 | 3 | // Go is a basic promise implementation: it wraps calls a function in a goroutine, 4 | // and returns a channel which will later return the function's return value. 5 | func Go(f func() error) chan error { 6 | ch := make(chan error, 1) 7 | go func() { 8 | ch <- f() 9 | }() 10 | return ch 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/eval_resource.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // EvalInstanceInfo is an EvalNode implementation that fills in the 4 | // InstanceInfo as much as it can. 5 | type EvalInstanceInfo struct { 6 | Info *InstanceInfo 7 | } 8 | 9 | // TODO: test 10 | func (n *EvalInstanceInfo) Eval(ctx EvalContext) (interface{}, error) { 11 | n.Info.ModulePath = ctx.Path() 12 | return nil, nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_linux.go: -------------------------------------------------------------------------------- 1 | // Based on ssh/terminal: 2 | // Copyright 2013 The Go Authors. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | package logrus 7 | 8 | import "syscall" 9 | 10 | const ioctlReadTermios = syscall.TCGETS 11 | 12 | type Termios syscall.Termios 13 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/syscall_no_getwd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build dragonfly freebsd netbsd openbsd 6 | 7 | package unix 8 | 9 | const ImplementsGetwd = false 10 | 11 | func Getwd() (string, error) { return "", ENOTSUP } 12 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/zsysnum_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,solaris 6 | 7 | package unix 8 | 9 | // TODO(aram): remove these before Go 1.3. 10 | const ( 11 | SYS_EXECVE = 59 12 | SYS_FCNTL = 62 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-getter/helper/url/url.go: -------------------------------------------------------------------------------- 1 | package url 2 | 3 | import ( 4 | "net/url" 5 | ) 6 | 7 | // Parse parses rawURL into a URL structure. 8 | // The rawURL may be relative or absolute. 9 | // 10 | // Parse is a wrapper for the Go stdlib net/url Parse function, but returns 11 | // Windows "safe" URLs on Windows platforms. 12 | func Parse(rawURL string) (*url.URL, error) { 13 | return parse(rawURL) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-rootcerts/doc.go: -------------------------------------------------------------------------------- 1 | // Package rootcerts contains functions to aid in loading CA certificates for 2 | // TLS connections. 3 | // 4 | // In addition, its default behavior on Darwin works around an open issue [1] 5 | // in Go's crypto/x509 that prevents certicates from being loaded from the 6 | // System or Login keychains. 7 | // 8 | // [1] https://github.com/golang/go/issues/14514 9 | package rootcerts 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/not_go19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.9 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http" 11 | ) 12 | 13 | func configureServer19(s *http.Server, conf *Server) error { 14 | // not supported prior to go1.9 15 | return nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/time_linux.go: -------------------------------------------------------------------------------- 1 | package archive 2 | 3 | import ( 4 | "syscall" 5 | "time" 6 | ) 7 | 8 | func timeToTimespec(time time.Time) (ts syscall.Timespec) { 9 | if time.IsZero() { 10 | // Return UTIME_OMIT special value 11 | ts.Sec = 0 12 | ts.Nsec = ((1 << 30) - 2) 13 | return 14 | } 15 | return syscall.NsecToTimespec(time.UnixNano()) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/security/groups/urls.go: -------------------------------------------------------------------------------- 1 | package groups 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | const rootPath = "security-groups" 6 | 7 | func rootURL(c *gophercloud.ServiceClient) string { 8 | return c.ServiceURL(rootPath) 9 | } 10 | 11 | func resourceURL(c *gophercloud.ServiceClient, id string) string { 12 | return c.ServiceURL(rootPath, id) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/backend/remote-state/testing.go: -------------------------------------------------------------------------------- 1 | package remotestate 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/hashicorp/terraform/backend" 7 | "github.com/hashicorp/terraform/state/remote" 8 | ) 9 | 10 | func TestClient(t *testing.T, raw backend.Backend) { 11 | b, ok := raw.(*Backend) 12 | if !ok { 13 | t.Fatalf("not Backend: %T", raw) 14 | } 15 | 16 | remote.TestClient(t, b.client) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/user_agent.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "fmt" 5 | "runtime" 6 | 7 | "github.com/hashicorp/terraform/version" 8 | ) 9 | 10 | // The standard Terraform User-Agent format 11 | const UserAgent = "Terraform %s (%s)" 12 | 13 | // Generate a UserAgent string 14 | func UserAgentString() string { 15 | return fmt.Sprintf(UserAgent, version.String(), runtime.Version()) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/go16.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.6 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http" 11 | "time" 12 | ) 13 | 14 | func transportExpectContinueTimeout(t1 *http.Transport) time.Duration { 15 | return t1.ExpectContinueTimeout 16 | } 17 | -------------------------------------------------------------------------------- /scripts/gofmtcheck.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Check gofmt 4 | echo "==> Checking that code complies with gofmt requirements..." 5 | gofmt_files=$(gofmt -l `find . -name '*.go' | grep -v vendor`) 6 | if [[ -n ${gofmt_files} ]]; then 7 | echo 'gofmt needs running on the following files:' 8 | echo "${gofmt_files}" 9 | echo "You can use the command: \`make fmt\` to reformat code." 10 | exit 1 11 | fi 12 | 13 | exit 0 14 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/request/connection_reset_error.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!plan9 2 | 3 | package request 4 | 5 | import ( 6 | "net" 7 | "os" 8 | "syscall" 9 | ) 10 | 11 | func isErrConnectionReset(err error) bool { 12 | if opErr, ok := err.(*net.OpError); ok { 13 | if sysErr, ok := opErr.Err.(*os.SyscallError); ok { 14 | return sysErr.Err == syscall.ECONNRESET 15 | } 16 | } 17 | 18 | return false 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/chtimes_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package system 4 | 5 | import ( 6 | "time" 7 | ) 8 | 9 | //setCTime will set the create time on a file. On Unix, the create 10 | //time is updated as a side effect of setting the modified time, so 11 | //no action is required. 12 | func setCTime(path string, ctime time.Time) error { 13 | return nil 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/images/doc.go: -------------------------------------------------------------------------------- 1 | // Package images provides information and interaction with the image API 2 | // resource in the OpenStack Compute service. 3 | // 4 | // An image is a collection of files used to create or rebuild a server. 5 | // Operators provide a number of pre-built OS images by default. You may also 6 | // create custom images from cloud servers you have launched. 7 | package images 8 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/security/rules/urls.go: -------------------------------------------------------------------------------- 1 | package rules 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | const rootPath = "security-group-rules" 6 | 7 | func rootURL(c *gophercloud.ServiceClient) string { 8 | return c.ServiceURL(rootPath) 9 | } 10 | 11 | func resourceURL(c *gophercloud.ServiceClient, id string) string { 12 | return c.ServiceURL(rootPath, id) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hil/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "build-{branch}-{build}" 2 | image: Visual Studio 2015 3 | clone_folder: c:\gopath\src\github.com\hashicorp\hil 4 | environment: 5 | GOPATH: c:\gopath 6 | init: 7 | - git config --global core.autocrlf true 8 | install: 9 | - cmd: >- 10 | echo %Path% 11 | 12 | go version 13 | 14 | go env 15 | 16 | go get -d -v -t ./... 17 | build_script: 18 | - cmd: go test -v ./... 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/moduledeps/doc.go: -------------------------------------------------------------------------------- 1 | // Package moduledeps contains types that can be used to describe the 2 | // providers required for all of the modules in a module tree. 3 | // 4 | // It does not itself contain the functionality for populating such 5 | // data structures; that's in Terraform core, since this package intentionally 6 | // does not depend on terraform core to avoid package dependency cycles. 7 | package moduledeps 8 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/env_unset.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.4 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Unsetenv(key string) error { 12 | // This was added in Go 1.4. 13 | return syscall.Unsetenv(key) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "build-{branch}-{build}" 2 | image: Visual Studio 2015 3 | clone_folder: c:\gopath\src\github.com\hashicorp\hcl 4 | environment: 5 | GOPATH: c:\gopath 6 | init: 7 | - git config --global core.autocrlf false 8 | install: 9 | - cmd: >- 10 | echo %Path% 11 | 12 | go version 13 | 14 | go env 15 | 16 | go get -t ./... 17 | 18 | build_script: 19 | - cmd: go test -v ./... 20 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/json/doc.go: -------------------------------------------------------------------------------- 1 | // Package json is the JSON parser for HCL. It parses JSON files and returns 2 | // implementations of the core HCL structural interfaces in terms of the 3 | // JSON data inside. 4 | // 5 | // This is not a generic JSON parser. Instead, it deals with the mapping from 6 | // the JSON information model to the HCL information model, using a number 7 | // of hard-coded structural conventions. 8 | package json 9 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/backend/operation_type.go: -------------------------------------------------------------------------------- 1 | package backend 2 | 3 | //go:generate stringer -type=OperationType operation_type.go 4 | 5 | // OperationType is an enum used with Operation to specify the operation 6 | // type to perform for Terraform. 7 | type OperationType uint 8 | 9 | const ( 10 | OperationTypeInvalid OperationType = iota 11 | OperationTypeRefresh 12 | OperationTypePlan 13 | OperationTypeApply 14 | ) 15 | -------------------------------------------------------------------------------- /vendor/github.com/rancher/go-rancher/trash.conf: -------------------------------------------------------------------------------- 1 | github.com/pkg/errors 1d2e60385a13aaa66134984235061c2f9302520e 2 | github.com/gorilla/context 215affda49addc4c8ef7e2534915df2c8c35c6cd 3 | github.com/gorilla/mux f15e0c49460fd49eebe2bcc8486b05d1bef68d3a 4 | github.com/gorilla/websocket 1551221275a7bd42978745a376b2531f791d88f3 5 | github.com/Sirupsen/logrus 26709e2714106fb8ad40b773b711ebce25b78914 6 | gopkg.in/yaml.v2 a83829b6f1293c91addabc89d0571c246397bbf4 7 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/mknod_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package system 4 | 5 | // Mknod is not implemented on Windows. 6 | func Mknod(path string, mode uint32, dev int) error { 7 | return ErrNotSupportedPlatform 8 | } 9 | 10 | // Mkdev is not implemented on Windows. 11 | func Mkdev(major int64, minor int64) uint32 { 12 | panic("Mkdev not implemented on Windows.") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_openbsd.go: -------------------------------------------------------------------------------- 1 | package system 2 | 3 | import ( 4 | "syscall" 5 | ) 6 | 7 | // fromStatT creates a system.StatT type from a syscall.Stat_t type 8 | func fromStatT(s *syscall.Stat_t) (*StatT, error) { 9 | return &StatT{size: s.Size, 10 | mode: uint32(s.Mode), 11 | uid: s.Uid, 12 | gid: s.Gid, 13 | rdev: uint64(s.Rdev), 14 | mtim: s.Mtim}, nil 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/dns/v2/recordsets/urls.go: -------------------------------------------------------------------------------- 1 | package recordsets 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | func baseURL(c *gophercloud.ServiceClient, zoneID string) string { 6 | return c.ServiceURL("zones", zoneID, "recordsets") 7 | } 8 | 9 | func rrsetURL(c *gophercloud.ServiceClient, zoneID string, rrsetID string) string { 10 | return c.ServiceURL("zones", zoneID, "recordsets", rrsetID) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/generate.go: -------------------------------------------------------------------------------- 1 | package hclsyntax 2 | 3 | //go:generate go run expression_vars_gen.go 4 | //go:generate ruby unicode2ragel.rb --url=http://www.unicode.org/Public/9.0.0/ucd/DerivedCoreProperties.txt -m UnicodeDerived -p ID_Start,ID_Continue -o unicode_derived.rl 5 | //go:generate ragel -Z scan_tokens.rl 6 | //go:generate gofmt -w scan_tokens.go 7 | //go:generate stringer -type TokenType -output token_type_string.go 8 | -------------------------------------------------------------------------------- /vendor/github.com/jen20/riviera/azure/delete_resource_group.go: -------------------------------------------------------------------------------- 1 | package azure 2 | 3 | type DeleteResourceGroup struct { 4 | Name string `json:"-"` 5 | } 6 | 7 | func (s DeleteResourceGroup) APIInfo() APIInfo { 8 | return APIInfo{ 9 | APIVersion: resourceGroupAPIVersion, 10 | Method: "DELETE", 11 | URLPathFunc: resourceGroupDefaultURLFunc(s.Name), 12 | ResponseTypeFunc: func() interface{} { 13 | return nil 14 | }, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/go19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.9 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http" 11 | ) 12 | 13 | func configureServer19(s *http.Server, conf *Server) error { 14 | s.RegisterOnShutdown(conf.state.startGracefulShutdown) 15 | return nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/layer3/floatingips/urls.go: -------------------------------------------------------------------------------- 1 | package floatingips 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | const resourcePath = "floatingips" 6 | 7 | func rootURL(c *gophercloud.ServiceClient) string { 8 | return c.ServiceURL(resourcePath) 9 | } 10 | 11 | func resourceURL(c *gophercloud.ServiceClient, id string) string { 12 | return c.ServiceURL(resourcePath, id) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/signer/v4/uri_path.go: -------------------------------------------------------------------------------- 1 | // +build go1.5 2 | 3 | package v4 4 | 5 | import ( 6 | "net/url" 7 | "strings" 8 | ) 9 | 10 | func getURIPath(u *url.URL) string { 11 | var uri string 12 | 13 | if len(u.Opaque) > 0 { 14 | uri = "/" + strings.Join(strings.Split(u.Opaque, "/")[3:], "/") 15 | } else { 16 | uri = u.EscapedPath() 17 | } 18 | 19 | if len(uri) == 0 { 20 | uri = "/" 21 | } 22 | 23 | return uri 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | 3 | package logrus 4 | 5 | import ( 6 | "os" 7 | 8 | "github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix" 9 | ) 10 | 11 | // IsTerminal returns true if the given file descriptor is a terminal. 12 | func IsTerminal() bool { 13 | _, err := unix.IoctlGetTermios(int(os.Stdout.Fd()), unix.TCGETA) 14 | return err == nil 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/stream.go: -------------------------------------------------------------------------------- 1 | package plugin 2 | 3 | import ( 4 | "io" 5 | "log" 6 | ) 7 | 8 | func copyStream(name string, dst io.Writer, src io.Reader) { 9 | if src == nil { 10 | panic(name + ": src is nil") 11 | } 12 | if dst == nil { 13 | panic(name + ": dst is nil") 14 | } 15 | if _, err := io.Copy(dst, src); err != nil && err != io.EOF { 16 | log.Printf("[ERR] plugin: stream copy '%s' error: %s", name, err) 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/objectstorage/v1/objects/errors.go: -------------------------------------------------------------------------------- 1 | package objects 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | // ErrWrongChecksum is the error when the checksum generated for an object 6 | // doesn't match the ETAG header. 7 | type ErrWrongChecksum struct { 8 | gophercloud.BaseError 9 | } 10 | 11 | func (e ErrWrongChecksum) Error() string { 12 | return "Local checksum does not match API ETag header" 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-version/version_collection.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | // Collection is a type that implements the sort.Interface interface 4 | // so that versions can be sorted. 5 | type Collection []*Version 6 | 7 | func (v Collection) Len() int { 8 | return len(v) 9 | } 10 | 11 | func (v Collection) Less(i, j int) bool { 12 | return v[i].LessThan(v[j]) 13 | } 14 | 15 | func (v Collection) Swap(i, j int) { 16 | v[i], v[j] = v[j], v[i] 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/process_posix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package plugin 4 | 5 | import ( 6 | "os" 7 | "syscall" 8 | ) 9 | 10 | // _pidAlive tests whether a process is alive or not by sending it Signal 0, 11 | // since Go otherwise has no way to test this. 12 | func _pidAlive(pid int) bool { 13 | proc, err := os.FindProcess(pid) 14 | if err == nil { 15 | err = proc.Signal(syscall.Signal(0)) 16 | } 17 | 18 | return err == nil 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/graph_walk_operation.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | //go:generate stringer -type=walkOperation graph_walk_operation.go 4 | 5 | // walkOperation is an enum which tells the walkContext what to do. 6 | type walkOperation byte 7 | 8 | const ( 9 | walkInvalid walkOperation = iota 10 | walkInput 11 | walkApply 12 | walkPlan 13 | walkPlanDestroy 14 | walkRefresh 15 | walkValidate 16 | walkDestroy 17 | walkImport 18 | ) 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/testing.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "os" 5 | "testing" 6 | ) 7 | 8 | // TestStateFile writes the given state to the path. 9 | func TestStateFile(t *testing.T, path string, state *State) { 10 | f, err := os.Create(path) 11 | if err != nil { 12 | t.Fatalf("err: %s", err) 13 | } 14 | defer f.Close() 15 | 16 | if err := WriteState(state, f); err != nil { 17 | t.Fatalf("err: %s", err) 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/cli/ui_writer.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | // UiWriter is an io.Writer implementation that can be used with 4 | // loggers that writes every line of log output data to a Ui at the 5 | // Info level. 6 | type UiWriter struct { 7 | Ui Ui 8 | } 9 | 10 | func (w *UiWriter) Write(p []byte) (n int, err error) { 11 | n = len(p) 12 | if n > 0 && p[n-1] == '\n' { 13 | p = p[:n-1] 14 | } 15 | 16 | w.Ui.Info(string(p)) 17 | return n, nil 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/google/appenginevm_hook.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The oauth2 Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build appenginevm 6 | 7 | package google 8 | 9 | import "google.golang.org/appengine" 10 | 11 | func init() { 12 | appengineVM = true 13 | appengineTokenFunc = appengine.AccessToken 14 | appengineAppIDFunc = appengine.AppID 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/command/format/format.go: -------------------------------------------------------------------------------- 1 | // Package format contains helpers for formatting various Terraform 2 | // structures for human-readabout output. 3 | // 4 | // This package is used by the official Terraform CLI in formatting any 5 | // output and is exported to encourage non-official frontends to mimic the 6 | // output formatting as much as possible so that text formats of Terraform 7 | // structures have a consistent look and feel. 8 | package format 9 | -------------------------------------------------------------------------------- /vendor/google.golang.org/api/googleapi/internal/uritemplates/utils.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package uritemplates 6 | 7 | func Expand(path string, values map[string]string) (string, error) { 8 | template, err := parse(path) 9 | if err != nil { 10 | return "", err 11 | } 12 | return template.Expand(values), nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | 3 | package system 4 | 5 | import ( 6 | "syscall" 7 | ) 8 | 9 | // fromStatT creates a system.StatT type from a syscall.Stat_t type 10 | func fromStatT(s *syscall.Stat_t) (*StatT, error) { 11 | return &StatT{size: s.Size, 12 | mode: uint32(s.Mode), 13 | uid: s.Uid, 14 | gid: s.Gid, 15 | rdev: uint64(s.Rdev), 16 | mtim: s.Mtim}, nil 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/keybase/go-crypto/openpgp/packet/ecdh.go: -------------------------------------------------------------------------------- 1 | 2 | package packet 3 | 4 | import ( 5 | "math/big" 6 | "crypto/ecdsa" 7 | "errors" 8 | ) 9 | 10 | type ecdhPrivateKey struct { 11 | ecdsa.PublicKey 12 | x *big.Int 13 | } 14 | 15 | func (e *ecdhPrivateKey) Decrypt(b []byte) ([]byte, error) { 16 | // TODO(maxtaco): compute the shared secret, run the KDF and 17 | // recover the decrypted shard key. 18 | return nil, errors.New("ECDH decrypt unimplemented") 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "blang", 3 | "bugs": { 4 | "URL": "https://github.com/blang/semver/issues", 5 | "url": "https://github.com/blang/semver/issues" 6 | }, 7 | "gx": { 8 | "dvcsimport": "github.com/blang/semver" 9 | }, 10 | "gxVersion": "0.10.0", 11 | "language": "go", 12 | "license": "MIT", 13 | "name": "semver", 14 | "releaseCmd": "git commit -a -m \"gx publish $VERSION\"", 15 | "version": "3.5.1" 16 | } 17 | 18 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/availabilityzones/results.go: -------------------------------------------------------------------------------- 1 | package availabilityzones 2 | 3 | // ServerExt is an extension to the base Server object 4 | type ServerExt struct { 5 | // AvailabilityZone is the availabilty zone the server is in. 6 | AvailabilityZone string `json:"OS-EXT-AZ:availability_zone"` 7 | } 8 | 9 | // UnmarshalJSON to override default 10 | func (r *ServerExt) UnmarshalJSON(b []byte) error { 11 | return nil 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/flock_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // +build linux,386 linux,arm linux,mips linux,mipsle 2 | 3 | // Copyright 2014 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/cancelable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 go-dockerclient authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.5 6 | 7 | package docker 8 | 9 | import "net/http" 10 | 11 | func cancelable(client *http.Client, req *http.Request) func() { 12 | ch := make(chan struct{}) 13 | req.Cancel = ch 14 | return func() { 15 | close(ch) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/lbaas/vips/urls.go: -------------------------------------------------------------------------------- 1 | package vips 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | const ( 6 | rootPath = "lb" 7 | resourcePath = "vips" 8 | ) 9 | 10 | func rootURL(c *gophercloud.ServiceClient) string { 11 | return c.ServiceURL(rootPath, resourcePath) 12 | } 13 | 14 | func resourceURL(c *gophercloud.ServiceClient, id string) string { 15 | return c.ServiceURL(rootPath, resourcePath, id) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/file.go: -------------------------------------------------------------------------------- 1 | package hclsyntax 2 | 3 | import ( 4 | "github.com/hashicorp/hcl2/hcl" 5 | ) 6 | 7 | // File is the top-level object resulting from parsing a configuration file. 8 | type File struct { 9 | Body *Body 10 | Bytes []byte 11 | } 12 | 13 | func (f *File) AsHCLFile() *hcl.File { 14 | return &hcl.File{ 15 | Body: f.Body, 16 | Bytes: f.Bytes, 17 | 18 | // TODO: The Nav object, once we have an implementation of it 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/json/peeker.go: -------------------------------------------------------------------------------- 1 | package json 2 | 3 | type peeker struct { 4 | tokens []token 5 | pos int 6 | } 7 | 8 | func newPeeker(tokens []token) *peeker { 9 | return &peeker{ 10 | tokens: tokens, 11 | pos: 0, 12 | } 13 | } 14 | 15 | func (p *peeker) Peek() token { 16 | return p.tokens[p.pos] 17 | } 18 | 19 | func (p *peeker) Read() token { 20 | ret := p.tokens[p.pos] 21 | if ret.Type != tokenEOF { 22 | p.pos++ 23 | } 24 | return ret 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/ui_output_provisioner.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // ProvisionerUIOutput is an implementation of UIOutput that calls a hook 4 | // for the output so that the hooks can handle it. 5 | type ProvisionerUIOutput struct { 6 | Info *InstanceInfo 7 | Type string 8 | Hooks []Hook 9 | } 10 | 11 | func (o *ProvisionerUIOutput) Output(msg string) { 12 | for _, h := range o.Hooks { 13 | h.ProvisionOutput(o.Info, o.Type, msg) 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/gohcl/types.go: -------------------------------------------------------------------------------- 1 | package gohcl 2 | 3 | import ( 4 | "reflect" 5 | 6 | "github.com/hashicorp/hcl2/hcl" 7 | ) 8 | 9 | var victimExpr hcl.Expression 10 | var victimBody hcl.Body 11 | 12 | var exprType = reflect.TypeOf(&victimExpr).Elem() 13 | var bodyType = reflect.TypeOf(&victimBody).Elem() 14 | var blockType = reflect.TypeOf((*hcl.Block)(nil)) 15 | var attrType = reflect.TypeOf((*hcl.Attribute)(nil)) 16 | var attrsType = reflect.TypeOf(hcl.Attributes(nil)) 17 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/lbaas/members/urls.go: -------------------------------------------------------------------------------- 1 | package members 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | const ( 6 | rootPath = "lb" 7 | resourcePath = "members" 8 | ) 9 | 10 | func rootURL(c *gophercloud.ServiceClient) string { 11 | return c.ServiceURL(rootPath, resourcePath) 12 | } 13 | 14 | func resourceURL(c *gophercloud.ServiceClient, id string) string { 15 | return c.ServiceURL(rootPath, resourcePath, id) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/process.go: -------------------------------------------------------------------------------- 1 | package plugin 2 | 3 | import ( 4 | "time" 5 | ) 6 | 7 | // pidAlive checks whether a pid is alive. 8 | func pidAlive(pid int) bool { 9 | return _pidAlive(pid) 10 | } 11 | 12 | // pidWait blocks for a process to exit. 13 | func pidWait(pid int) error { 14 | ticker := time.NewTicker(1 * time.Second) 15 | defer ticker.Stop() 16 | 17 | for range ticker.C { 18 | if !pidAlive(pid) { 19 | break 20 | } 21 | } 22 | 23 | return nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcldec/block_labels.go: -------------------------------------------------------------------------------- 1 | package hcldec 2 | 3 | import ( 4 | "github.com/hashicorp/hcl2/hcl" 5 | ) 6 | 7 | type blockLabel struct { 8 | Value string 9 | Range hcl.Range 10 | } 11 | 12 | func labelsForBlock(block *hcl.Block) []blockLabel { 13 | ret := make([]blockLabel, len(block.Labels)) 14 | for i := range block.Labels { 15 | ret[i] = blockLabel{ 16 | Value: block.Labels[i], 17 | Range: block.LabelRanges[i], 18 | } 19 | } 20 | return ret 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_opsworks_php_app_layer.go: -------------------------------------------------------------------------------- 1 | package aws 2 | 3 | import ( 4 | "github.com/hashicorp/terraform/helper/schema" 5 | ) 6 | 7 | func resourceAwsOpsworksPhpAppLayer() *schema.Resource { 8 | layerType := &opsworksLayerType{ 9 | TypeName: "php-app", 10 | DefaultLayerName: "PHP App Server", 11 | 12 | Attributes: map[string]*opsworksLayerTypeAttribute{}, 13 | } 14 | 15 | return layerType.SchemaResource() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/flock_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // +build linux,386 linux,arm 2 | 3 | // Copyright 2014 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/fwaas/firewalls/urls.go: -------------------------------------------------------------------------------- 1 | package firewalls 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | const ( 6 | rootPath = "fw" 7 | resourcePath = "firewalls" 8 | ) 9 | 10 | func rootURL(c *gophercloud.ServiceClient) string { 11 | return c.ServiceURL(rootPath, resourcePath) 12 | } 13 | 14 | func resourceURL(c *gophercloud.ServiceClient, id string) string { 15 | return c.ServiceURL(rootPath, resourcePath, id) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/fwaas/rules/urls.go: -------------------------------------------------------------------------------- 1 | package rules 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | const ( 6 | rootPath = "fw" 7 | resourcePath = "firewall_rules" 8 | ) 9 | 10 | func rootURL(c *gophercloud.ServiceClient) string { 11 | return c.ServiceURL(rootPath, resourcePath) 12 | } 13 | 14 | func resourceURL(c *gophercloud.ServiceClient, id string) string { 15 | return c.ServiceURL(rootPath, resourcePath, id) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_opsworks_static_web_layer.go: -------------------------------------------------------------------------------- 1 | package aws 2 | 3 | import ( 4 | "github.com/hashicorp/terraform/helper/schema" 5 | ) 6 | 7 | func resourceAwsOpsworksStaticWebLayer() *schema.Resource { 8 | layerType := &opsworksLayerType{ 9 | TypeName: "web", 10 | DefaultLayerName: "Static Web Server", 11 | 12 | Attributes: map[string]*opsworksLayerTypeAttribute{}, 13 | } 14 | 15 | return layerType.SchemaResource() 16 | } 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.dll 2 | *.exe 3 | .DS_Store 4 | example.tf 5 | terraform.tfplan 6 | terraform.tfstate 7 | bin/ 8 | modules-dev/ 9 | /pkg/ 10 | website/.vagrant 11 | website/.bundle 12 | website/build 13 | website/node_modules 14 | .vagrant/ 15 | *.backup 16 | ./*.tfstate 17 | .terraform/ 18 | *.log 19 | *.bak 20 | *~ 21 | .*.swp 22 | .idea 23 | *.iml 24 | *.test 25 | *.iml 26 | 27 | website/vendor 28 | 29 | # Test exclusions 30 | !command/test-fixtures/**/*.tfstate 31 | !command/test-fixtures/**/.terraform/ 32 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/lbaas/monitors/urls.go: -------------------------------------------------------------------------------- 1 | package monitors 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | const ( 6 | rootPath = "lb" 7 | resourcePath = "health_monitors" 8 | ) 9 | 10 | func rootURL(c *gophercloud.ServiceClient) string { 11 | return c.ServiceURL(rootPath, resourcePath) 12 | } 13 | 14 | func resourceURL(c *gophercloud.ServiceClient, id string) string { 15 | return c.ServiceURL(rootPath, resourcePath, id) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/objectstorage/v1/accounts/doc.go: -------------------------------------------------------------------------------- 1 | // Package accounts contains functionality for working with Object Storage 2 | // account resources. An account is the top-level resource the object storage 3 | // hierarchy: containers belong to accounts, objects belong to containers. 4 | // 5 | // Another way of thinking of an account is like a namespace for all your 6 | // resources. It is synonymous with a project or tenant in other OpenStack 7 | // services. 8 | package accounts 9 | -------------------------------------------------------------------------------- /vendor/github.com/apparentlymart/go-rundeck-api/README.md: -------------------------------------------------------------------------------- 1 | # go-rundeck-api 2 | 3 | This is a Go client for the Rundeck HTTP API. It was primarily developed to back the Rundeck provider in [Terraform](https://terraform.io), but can be used standalone too. 4 | 5 | It should ``go install`` just like any other Go package: 6 | 7 | * ``go install github.com/apparentlymart/go-rundeck-api/rundeck`` 8 | 9 | For reference documentation, see [godoc](https://godoc.org/github.com/apparentlymart/go-rundeck-api/rundeck). 10 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/request/request_context_1_6.go: -------------------------------------------------------------------------------- 1 | // +build !go1.7 2 | 3 | package request 4 | 5 | import "github.com/aws/aws-sdk-go/aws" 6 | 7 | // setContext updates the Request to use the passed in context for cancellation. 8 | // Context will also be used for request retry delay. 9 | // 10 | // Creates shallow copy of the http.Request with the WithContext method. 11 | func setRequestContext(r *Request, ctx aws.Context) { 12 | r.context = ctx 13 | r.HTTPRequest.Cancel = ctx.Done() 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/identity/v2/tokens/urls.go: -------------------------------------------------------------------------------- 1 | package tokens 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | // CreateURL generates the URL used to create new Tokens. 6 | func CreateURL(client *gophercloud.ServiceClient) string { 7 | return client.ServiceURL("tokens") 8 | } 9 | 10 | // GetURL generates the URL used to Validate Tokens. 11 | func GetURL(client *gophercloud.ServiceClient, token string) string { 12 | return client.ServiceURL("tokens", token) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/lbaas_v2/listeners/urls.go: -------------------------------------------------------------------------------- 1 | package listeners 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | const ( 6 | rootPath = "lbaas" 7 | resourcePath = "listeners" 8 | ) 9 | 10 | func rootURL(c *gophercloud.ServiceClient) string { 11 | return c.ServiceURL(rootPath, resourcePath) 12 | } 13 | 14 | func resourceURL(c *gophercloud.ServiceClient, id string) string { 15 | return c.ServiceURL(rootPath, resourcePath, id) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/lbaas_v2/monitors/urls.go: -------------------------------------------------------------------------------- 1 | package monitors 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | const ( 6 | rootPath = "lbaas" 7 | resourcePath = "healthmonitors" 8 | ) 9 | 10 | func rootURL(c *gophercloud.ServiceClient) string { 11 | return c.ServiceURL(rootPath, resourcePath) 12 | } 13 | 14 | func resourceURL(c *gophercloud.ServiceClient, id string) string { 15 | return c.ServiceURL(rootPath, resourcePath, id) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_linux.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TCGETS 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/kinesis/customizations.go: -------------------------------------------------------------------------------- 1 | package kinesis 2 | 3 | import ( 4 | "time" 5 | 6 | "github.com/aws/aws-sdk-go/aws/request" 7 | ) 8 | 9 | var readDuration = 5 * time.Second 10 | 11 | func init() { 12 | ops := []string{ 13 | opGetRecords, 14 | } 15 | initRequest = func(r *request.Request) { 16 | for _, operation := range ops { 17 | if r.Operation.Name == operation { 18 | r.ApplyOptions(request.WithResponseReadTimeout(readDuration)) 19 | } 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/coreos/etcd/client/cancelreq_go14.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // borrowed from golang/net/context/ctxhttp/cancelreq_go14.go 6 | 7 | // +build !go1.5 8 | 9 | package client 10 | 11 | import "net/http" 12 | 13 | func requestCanceler(tr CancelableTransport, req *http.Request) func() { 14 | return func() { 15 | tr.CancelRequest(req) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/xattrs_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package system 4 | 5 | // Lgetxattr is not supported on platforms other than linux. 6 | func Lgetxattr(path string, attr string) ([]byte, error) { 7 | return nil, ErrNotSupportedPlatform 8 | } 9 | 10 | // Lsetxattr is not supported on platforms other than linux. 11 | func Lsetxattr(path string, attr string, data []byte, flags int) error { 12 | return ErrNotSupportedPlatform 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/travis-scripts/run-tests.bash: -------------------------------------------------------------------------------- 1 | #!/bin/bash -ex 2 | 3 | # Copyright 2016 go-dockerclient authors. All rights reserved. 4 | # Use of this source code is governed by a BSD-style 5 | # license that can be found in the LICENSE file. 6 | 7 | if ! [[ $TRAVIS_GO_VERSION =~ ^1\.[34] ]]; then 8 | make lint vet 9 | fi 10 | 11 | make fmtcheck gotest GO_TEST_FLAGS=-race 12 | 13 | if [[ $TRAVIS_OS_NAME == "linux" ]]; then 14 | DOCKER_HOST=tcp://127.0.0.1:2375 make integration 15 | fi 16 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/config/module/inode_freebsd.go: -------------------------------------------------------------------------------- 1 | // +build freebsd 2 | 3 | package module 4 | 5 | import ( 6 | "fmt" 7 | "os" 8 | "syscall" 9 | ) 10 | 11 | // lookup the inode of a file on posix systems 12 | func inode(path string) (uint64, error) { 13 | stat, err := os.Stat(path) 14 | if err != nil { 15 | return 0, err 16 | } 17 | if st, ok := stat.Sys().(*syscall.Stat_t); ok { 18 | return uint64(st.Ino), nil 19 | } 20 | return 0, fmt.Errorf("could not determine file inode") 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | // see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c 12 | func IsTerminal(fd uintptr) bool { 13 | var termio unix.Termio 14 | err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio) 15 | return err == nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/google.golang.org/api/gensupport/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package gensupport is an internal implementation detail used by code 6 | // generated by the google-api-go-generator tool. 7 | // 8 | // This package may be modified at any time without regard for backwards 9 | // compatibility. It should not be used directly by API users. 10 | package gensupport 11 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/request/http_request.go: -------------------------------------------------------------------------------- 1 | package request 2 | 3 | import ( 4 | "io" 5 | "net/http" 6 | "net/url" 7 | ) 8 | 9 | func copyHTTPRequest(r *http.Request, body io.ReadCloser) *http.Request { 10 | req := new(http.Request) 11 | *req = *r 12 | req.URL = &url.URL{} 13 | *req.URL = *r.URL 14 | req.Body = body 15 | 16 | req.Header = http.Header{} 17 | for k, v := range r.Header { 18 | for _, vv := range v { 19 | req.Header.Add(k, vv) 20 | } 21 | } 22 | 23 | return req 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/request/request_context.go: -------------------------------------------------------------------------------- 1 | // +build go1.7 2 | 3 | package request 4 | 5 | import "github.com/aws/aws-sdk-go/aws" 6 | 7 | // setContext updates the Request to use the passed in context for cancellation. 8 | // Context will also be used for request retry delay. 9 | // 10 | // Creates shallow copy of the http.Request with the WithContext method. 11 | func setRequestContext(r *Request, ctx aws.Context) { 12 | r.context = ctx 13 | r.HTTPRequest = r.HTTPRequest.WithContext(ctx) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/stat_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!windows,!freebsd,!solaris,!openbsd 2 | 3 | package system 4 | 5 | import ( 6 | "syscall" 7 | ) 8 | 9 | // fromStatT creates a system.StatT type from a syscall.Stat_t type 10 | func fromStatT(s *syscall.Stat_t) (*StatT, error) { 11 | return &StatT{size: s.Size, 12 | mode: uint32(s.Mode), 13 | uid: s.Uid, 14 | gid: s.Gid, 15 | rdev: uint64(s.Rdev), 16 | mtim: s.Mtimespec}, nil 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/node_count_boundary.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // NodeCountBoundary fixes any "count boundarie" in the state: resources 4 | // that are named "foo.0" when they should be named "foo" 5 | type NodeCountBoundary struct{} 6 | 7 | func (n *NodeCountBoundary) Name() string { 8 | return "meta.count-boundary (count boundary fixup)" 9 | } 10 | 11 | // GraphNodeEvalable 12 | func (n *NodeCountBoundary) EvalTree() EvalNode { 13 | return &EvalCountFixZeroOneBoundaryGlobal{} 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/lstat.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package system 4 | 5 | import ( 6 | "syscall" 7 | ) 8 | 9 | // Lstat takes a path to a file and returns 10 | // a system.StatT type pertaining to that file. 11 | // 12 | // Throws an error if the file does not exist 13 | func Lstat(path string) (*StatT, error) { 14 | s := &syscall.Stat_t{} 15 | if err := syscall.Lstat(path, s); err != nil { 16 | return nil, err 17 | } 18 | return fromStatT(s) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/flavors/urls.go: -------------------------------------------------------------------------------- 1 | package flavors 2 | 3 | import ( 4 | "github.com/gophercloud/gophercloud" 5 | ) 6 | 7 | func getURL(client *gophercloud.ServiceClient, id string) string { 8 | return client.ServiceURL("flavors", id) 9 | } 10 | 11 | func listURL(client *gophercloud.ServiceClient) string { 12 | return client.ServiceURL("flavors", "detail") 13 | } 14 | 15 | func createURL(client *gophercloud.ServiceClient) string { 16 | return client.ServiceURL("flavors") 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/images/urls.go: -------------------------------------------------------------------------------- 1 | package images 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | func listDetailURL(client *gophercloud.ServiceClient) string { 6 | return client.ServiceURL("images", "detail") 7 | } 8 | 9 | func getURL(client *gophercloud.ServiceClient, id string) string { 10 | return client.ServiceURL("images", id) 11 | } 12 | 13 | func deleteURL(client *gophercloud.ServiceClient, id string) string { 14 | return client.ServiceURL("images", id) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hil/ast/stack.go: -------------------------------------------------------------------------------- 1 | package ast 2 | 3 | // Stack is a stack of Node. 4 | type Stack struct { 5 | stack []Node 6 | } 7 | 8 | func (s *Stack) Len() int { 9 | return len(s.stack) 10 | } 11 | 12 | func (s *Stack) Push(n Node) { 13 | s.stack = append(s.stack, n) 14 | } 15 | 16 | func (s *Stack) Pop() Node { 17 | x := s.stack[len(s.stack)-1] 18 | s.stack[len(s.stack)-1] = nil 19 | s.stack = s.stack[:len(s.stack)-1] 20 | return x 21 | } 22 | 23 | func (s *Stack) Reset() { 24 | s.stack = nil 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/helper/structure/suppress_json_diff.go: -------------------------------------------------------------------------------- 1 | package structure 2 | 3 | import ( 4 | "reflect" 5 | 6 | "github.com/hashicorp/terraform/helper/schema" 7 | ) 8 | 9 | func SuppressJsonDiff(k, old, new string, d *schema.ResourceData) bool { 10 | oldMap, err := ExpandJsonFromString(old) 11 | if err != nil { 12 | return false 13 | } 14 | 15 | newMap, err := ExpandJsonFromString(new) 16 | if err != nil { 17 | return false 18 | } 19 | 20 | return reflect.DeepEqual(oldMap, newMap) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/jen20/riviera/azure/credentials.go: -------------------------------------------------------------------------------- 1 | package azure 2 | 3 | const ( 4 | defaultResourceManagerEndpoint = "https://management.azure.com" 5 | defaultActiveDirectoryEndpoint = "https://login.microsoftonline.com" 6 | ) 7 | 8 | type AzureResourceManagerCredentials struct { 9 | ClientID string 10 | ClientSecret string 11 | TenantID string 12 | SubscriptionID string 13 | 14 | // can be overridden for non public clouds 15 | ResourceManagerEndpoint string 16 | ActiveDirectoryEndpoint string 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/config/module/inode.go: -------------------------------------------------------------------------------- 1 | // +build linux darwin openbsd netbsd solaris 2 | 3 | package module 4 | 5 | import ( 6 | "fmt" 7 | "os" 8 | "syscall" 9 | ) 10 | 11 | // lookup the inode of a file on posix systems 12 | func inode(path string) (uint64, error) { 13 | stat, err := os.Stat(path) 14 | if err != nil { 15 | return 0, err 16 | } 17 | if st, ok := stat.Sys().(*syscall.Stat_t); ok { 18 | return st.Ino, nil 19 | } 20 | return 0, fmt.Errorf("could not determine file inode") 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/ui_output_mock.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import "sync" 4 | 5 | // MockUIOutput is an implementation of UIOutput that can be used for tests. 6 | type MockUIOutput struct { 7 | sync.Mutex 8 | OutputCalled bool 9 | OutputMessage string 10 | OutputFn func(string) 11 | } 12 | 13 | func (o *MockUIOutput) Output(v string) { 14 | o.Lock() 15 | defer o.Unlock() 16 | o.OutputCalled = true 17 | o.OutputMessage = v 18 | if o.OutputFn != nil { 19 | o.OutputFn(v) 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/tfdiags/diagnostic.go: -------------------------------------------------------------------------------- 1 | package tfdiags 2 | 3 | type Diagnostic interface { 4 | Severity() Severity 5 | Description() Description 6 | Source() Source 7 | } 8 | 9 | type Severity rune 10 | 11 | //go:generate stringer -type=Severity 12 | 13 | const ( 14 | Error Severity = 'E' 15 | Warning Severity = 'W' 16 | ) 17 | 18 | type Description struct { 19 | Summary string 20 | Detail string 21 | } 22 | 23 | type Source struct { 24 | Subject *SourceRange 25 | Context *SourceRange 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/jen20/riviera/azure/azureerror.go: -------------------------------------------------------------------------------- 1 | package azure 2 | 3 | import "fmt" 4 | 5 | // Error represents the body of an error response which is often returned 6 | // by the Azure ARM API. 7 | type Error struct { 8 | StatusCode int 9 | ErrorCode string `mapstructure:"code"` 10 | Message string `mapstructure:"message"` 11 | } 12 | 13 | // Error implements interface error on AzureError structures 14 | func (e Error) Error() string { 15 | return fmt.Sprintf("%s (%d) - %s", e.ErrorCode, e.StatusCode, e.Message) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/imageservice/v2/imagedata/urls.go: -------------------------------------------------------------------------------- 1 | package imagedata 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | // `imageDataURL(c,i)` is the URL for the binary image data for the 6 | // image identified by ID `i` in the service `c`. 7 | func uploadURL(c *gophercloud.ServiceClient, imageID string) string { 8 | return c.ServiceURL("images", imageID, "file") 9 | } 10 | 11 | func downloadURL(c *gophercloud.ServiceClient, imageID string) string { 12 | return uploadURL(c, imageID) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-getter/storage.go: -------------------------------------------------------------------------------- 1 | package getter 2 | 3 | // Storage is an interface that knows how to lookup downloaded directories 4 | // as well as download and update directories from their sources into the 5 | // proper location. 6 | type Storage interface { 7 | // Dir returns the directory on local disk where the directory source 8 | // can be loaded from. 9 | Dir(string) (string, bool, error) 10 | 11 | // Get will download and optionally update the given directory. 12 | Get(string, string, bool) error 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-64 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-64 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/internal/identity.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | package internal 6 | 7 | import netcontext "golang.org/x/net/context" 8 | 9 | // These functions are implementations of the wrapper functions 10 | // in ../appengine/identity.go. See that file for commentary. 11 | 12 | func AppID(c netcontext.Context) string { 13 | return appID(FullyQualifiedAppID(c)) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/objectstorage/v1/containers/doc.go: -------------------------------------------------------------------------------- 1 | // Package containers contains functionality for working with Object Storage 2 | // container resources. A container serves as a logical namespace for objects 3 | // that are placed inside it - an object with the same name in two different 4 | // containers represents two different objects. 5 | // 6 | // In addition to containing objects, you can also use the container to control 7 | // access to objects by using an access control list (ACL). 8 | package containers 9 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd dragonfly 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TIOCGETA 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_opsworks_custom_layer.go: -------------------------------------------------------------------------------- 1 | package aws 2 | 3 | import ( 4 | "github.com/hashicorp/terraform/helper/schema" 5 | ) 6 | 7 | func resourceAwsOpsworksCustomLayer() *schema.Resource { 8 | layerType := &opsworksLayerType{ 9 | TypeName: "custom", 10 | CustomShortName: true, 11 | 12 | // The "custom" layer type has no additional attributes 13 | Attributes: map[string]*opsworksLayerTypeAttribute{}, 14 | } 15 | 16 | return layerType.SchemaResource() 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/not_go16.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.6 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http" 11 | "time" 12 | ) 13 | 14 | func configureTransport(t1 *http.Transport) (*Transport, error) { 15 | return nil, errTransportVersion 16 | } 17 | 18 | func transportExpectContinueTimeout(t1 *http.Transport) time.Duration { 19 | return 0 20 | 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/meminfo.go: -------------------------------------------------------------------------------- 1 | package system 2 | 3 | // MemInfo contains memory statistics of the host system. 4 | type MemInfo struct { 5 | // Total usable RAM (i.e. physical RAM minus a few reserved bits and the 6 | // kernel binary code). 7 | MemTotal int64 8 | 9 | // Amount of free memory. 10 | MemFree int64 11 | 12 | // Total amount of swap space available. 13 | SwapTotal int64 14 | 15 | // Amount of swap space that is currently unused. 16 | SwapFree int64 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_sparc64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gccgo,linux,sparc64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern sysconf 12 | func realSysconf(name int) int64 13 | 14 | func sysconf(name int) (n int64, err syscall.Errno) { 15 | r := realSysconf(name) 16 | if r < 0 { 17 | return 0, syscall.GetErrno() 18 | } 19 | return r, 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/coreos/etcd/client/cancelreq.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // borrowed from golang/net/context/ctxhttp/cancelreq.go 6 | 7 | // +build go1.5 8 | 9 | package client 10 | 11 | import "net/http" 12 | 13 | func requestCanceler(tr CancelableTransport, req *http.Request) func() { 14 | ch := make(chan struct{}) 15 | req.Cancel = ch 16 | 17 | return func() { 18 | close(ch) 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/tenantnetworks/urls.go: -------------------------------------------------------------------------------- 1 | package tenantnetworks 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | const resourcePath = "os-tenant-networks" 6 | 7 | func resourceURL(c *gophercloud.ServiceClient) string { 8 | return c.ServiceURL(resourcePath) 9 | } 10 | 11 | func listURL(c *gophercloud.ServiceClient) string { 12 | return resourceURL(c) 13 | } 14 | 15 | func getURL(c *gophercloud.ServiceClient, id string) string { 16 | return c.ServiceURL(resourcePath, id) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/rancher/go-rancher/Makefile: -------------------------------------------------------------------------------- 1 | TARGETS := $(shell ls scripts) 2 | 3 | .dapper: 4 | @echo Downloading dapper 5 | @curl -sL https://releases.rancher.com/dapper/latest/dapper-`uname -s`-`uname -m` > .dapper.tmp 6 | @@chmod +x .dapper.tmp 7 | @./.dapper.tmp -v 8 | @mv .dapper.tmp .dapper 9 | 10 | $(TARGETS): .dapper 11 | ./.dapper $@ 12 | 13 | trash: .dapper 14 | ./.dapper -m bind trash 15 | 16 | trash-keep: .dapper 17 | ./.dapper -m bind trash -k 18 | 19 | deps: trash 20 | 21 | .DEFAULT_GOAL := ci 22 | 23 | .PHONY: $(TARGETS) 24 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/hcl.go: -------------------------------------------------------------------------------- 1 | // Package hcl decodes HCL into usable Go structures. 2 | // 3 | // hcl input can come in either pure HCL format or JSON format. 4 | // It can be parsed into an AST, and then decoded into a structure, 5 | // or it can be decoded directly from a string into a structure. 6 | // 7 | // If you choose to parse HCL into a raw AST, the benefit is that you 8 | // can write custom visitor implementations to implement custom 9 | // semantic checks. By default, HCL does not perform any semantic 10 | // checks. 11 | package hcl 12 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/cancelable_go14.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 go-dockerclient authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.5 6 | 7 | package docker 8 | 9 | import "net/http" 10 | 11 | func cancelable(client *http.Client, req *http.Request) func() { 12 | return func() { 13 | if rc, ok := client.Transport.(interface { 14 | CancelRequest(*http.Request) 15 | }); ok { 16 | rc.CancelRequest(req) 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/usergroupadd_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package idtools 4 | 5 | import "fmt" 6 | 7 | // AddNamespaceRangesUser takes a name and finds an unused uid, gid pair 8 | // and calls the appropriate helper function to add the group and then 9 | // the user to the group in /etc/group and /etc/passwd respectively. 10 | func AddNamespaceRangesUser(name string) (int, int, error) { 11 | return -1, -1, fmt.Errorf("No support for adding users or groups on this OS") 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/helper/schema/valuetype.go: -------------------------------------------------------------------------------- 1 | package schema 2 | 3 | //go:generate stringer -type=ValueType valuetype.go 4 | 5 | // ValueType is an enum of the type that can be represented by a schema. 6 | type ValueType int 7 | 8 | const ( 9 | TypeInvalid ValueType = iota 10 | TypeBool 11 | TypeInt 12 | TypeFloat 13 | TypeString 14 | TypeList 15 | TypeMap 16 | TypeSet 17 | typeObject 18 | ) 19 | 20 | // NOTE: ValueType has more functions defined on it in schema.go. We can't 21 | // put them here because we reference other files. 22 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | var kernel32 = syscall.NewLazyDLL("kernel32.dll") 12 | var procGetConsoleMode = kernel32.NewProc("GetConsoleMode") 13 | 14 | // IsTerminal return true if the file descriptor is terminal. 15 | func IsTerminal(fd uintptr) bool { 16 | var st uint32 17 | r, _, e := syscall.Syscall(procGetConsoleMode.Addr(), 2, fd, uintptr(unsafe.Pointer(&st)), 0) 18 | return r != 0 && e == 0 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gccgo,linux,amd64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/reflectwalk/location_string.go: -------------------------------------------------------------------------------- 1 | // generated by stringer -type=Location location.go; DO NOT EDIT 2 | 3 | package reflectwalk 4 | 5 | import "fmt" 6 | 7 | const _Location_name = "NoneMapMapKeyMapValueSliceSliceElemStructStructFieldWalkLoc" 8 | 9 | var _Location_index = [...]uint8{0, 4, 7, 13, 21, 26, 35, 41, 52, 59} 10 | 11 | func (i Location) String() string { 12 | if i+1 >= Location(len(_Location_index)) { 13 | return fmt.Sprintf("Location(%d)", i) 14 | } 15 | return _Location_name[_Location_index[i]:_Location_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/node_root_variable.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/hashicorp/terraform/config" 7 | ) 8 | 9 | // NodeRootVariable represents a root variable input. 10 | type NodeRootVariable struct { 11 | Config *config.Variable 12 | } 13 | 14 | func (n *NodeRootVariable) Name() string { 15 | result := fmt.Sprintf("var.%s", n.Config.Name) 16 | return result 17 | } 18 | 19 | // GraphNodeReferenceable 20 | func (n *NodeRootVariable) ReferenceableName() []string { 21 | return []string{n.Name()} 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/null.go: -------------------------------------------------------------------------------- 1 | package cty 2 | 3 | // NullVal returns a null value of the given type. A null can be created of any 4 | // type, but operations on such values will always panic. Calling applications 5 | // are encouraged to use nulls only sparingly, particularly when user-provided 6 | // expressions are to be evaluated, since the precence of nulls creates a 7 | // much higher chance of evaluation errors that can't be caught by a type 8 | // checker. 9 | func NullVal(t Type) Value { 10 | return Value{ 11 | ty: t, 12 | v: nil, 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-64 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-64 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/README.md: -------------------------------------------------------------------------------- 1 | # go-isatty 2 | 3 | isatty for golang 4 | 5 | ## Usage 6 | 7 | ```go 8 | package main 9 | 10 | import ( 11 | "fmt" 12 | "github.com/mattn/go-isatty" 13 | "os" 14 | ) 15 | 16 | func main() { 17 | if isatty.IsTerminal(os.Stdout.Fd()) { 18 | fmt.Println("Is Terminal") 19 | } else { 20 | fmt.Println("Is Not Terminal") 21 | } 22 | } 23 | ``` 24 | 25 | ## Installation 26 | 27 | ``` 28 | $ go get github.com/mattn/go-isatty 29 | ``` 30 | 31 | # License 32 | 33 | MIT 34 | 35 | # Author 36 | 37 | Yasuhiro Matsumoto (a.k.a mattn) 38 | -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/internal/hash/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014-2017 Ulrich Kunitz. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | /* 6 | Package hash provides rolling hashes. 7 | 8 | Rolling hashes have to be used for maintaining the positions of n-byte 9 | sequences in the dictionary buffer. 10 | 11 | The package provides currently the Rabin-Karp rolling hash and a Cyclic 12 | Polynomial hash. Both support the Hashes method to be used with an interface. 13 | */ 14 | package hash 15 | -------------------------------------------------------------------------------- /vendor/github.com/apparentlymart/go-textseg/textseg/generate.go: -------------------------------------------------------------------------------- 1 | package textseg 2 | 3 | //go:generate go run make_tables.go -output tables.go 4 | //go:generate go run make_test_tables.go -output tables_test.go 5 | //go:generate ruby unicode2ragel.rb --url=http://www.unicode.org/Public/9.0.0/ucd/auxiliary/GraphemeBreakProperty.txt -m GraphemeCluster -p "Prepend,CR,LF,Control,Extend,Regional_Indicator,SpacingMark,L,V,T,LV,LVT,E_Base,E_Modifier,ZWJ,Glue_After_Zwj,E_Base_GAZ" -o grapheme_clusters_table.rl 6 | //go:generate ragel -Z grapheme_clusters.rl 7 | //go:generate gofmt -w grapheme_clusters.go 8 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/lookup_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris 2 | 3 | package user 4 | 5 | import "io" 6 | 7 | func GetPasswdPath() (string, error) { 8 | return "", ErrUnsupported 9 | } 10 | 11 | func GetPasswd() (io.ReadCloser, error) { 12 | return nil, ErrUnsupported 13 | } 14 | 15 | func GetGroupPath() (string, error) { 16 | return "", ErrUnsupported 17 | } 18 | 19 | func GetGroup() (io.ReadCloser, error) { 20 | return nil, ErrUnsupported 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/helper/schema/README.md: -------------------------------------------------------------------------------- 1 | # Terraform Helper Lib: schema 2 | 3 | The `schema` package provides a high-level interface for writing resource 4 | providers for Terraform. 5 | 6 | If you're writing a resource provider, we recommend you use this package. 7 | 8 | The interface exposed by this package is much friendlier than trying to 9 | write to the Terraform API directly. The core Terraform API is low-level 10 | and built for maximum flexibility and control, whereas this library is built 11 | as a framework around that to more easily write common providers. 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/tfdiags/error.go: -------------------------------------------------------------------------------- 1 | package tfdiags 2 | 3 | // nativeError is a Diagnostic implementation that wraps a normal Go error 4 | type nativeError struct { 5 | err error 6 | } 7 | 8 | var _ Diagnostic = nativeError{} 9 | 10 | func (e nativeError) Severity() Severity { 11 | return Error 12 | } 13 | 14 | func (e nativeError) Description() Description { 15 | return Description{ 16 | Summary: e.err.Error(), 17 | } 18 | } 19 | 20 | func (e nativeError) Source() Source { 21 | // No source information available for a native error 22 | return Source{} 23 | } 24 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/timeout.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | package appengine 6 | 7 | import "golang.org/x/net/context" 8 | 9 | // IsTimeoutError reports whether err is a timeout error. 10 | func IsTimeoutError(err error) bool { 11 | if err == context.DeadlineExceeded { 12 | return true 13 | } 14 | if t, ok := err.(interface { 15 | IsTimeout() bool 16 | }); ok { 17 | return t.IsTimeout() 18 | } 19 | return false 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/temp_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package ioutils 4 | 5 | import ( 6 | "io/ioutil" 7 | 8 | "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/longpath" 9 | ) 10 | 11 | // TempDir is the equivalent of ioutil.TempDir, except that the result is in Windows longpath format. 12 | func TempDir(dir, prefix string) (string, error) { 13 | tempDir, err := ioutil.TempDir(dir, prefix) 14 | if err != nil { 15 | return "", err 16 | } 17 | return longpath.AddPrefix(tempDir), nil 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/filesys.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package system 4 | 5 | import ( 6 | "os" 7 | "path/filepath" 8 | ) 9 | 10 | // MkdirAll creates a directory named path along with any necessary parents, 11 | // with permission specified by attribute perm for all dir created. 12 | func MkdirAll(path string, perm os.FileMode) error { 13 | return os.MkdirAll(path, perm) 14 | } 15 | 16 | // IsAbs is a platform-specific wrapper for filepath.IsAbs. 17 | func IsAbs(path string) bool { 18 | return filepath.IsAbs(path) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hil/ast/arithmetic_op.go: -------------------------------------------------------------------------------- 1 | package ast 2 | 3 | // ArithmeticOp is the operation to use for the math. 4 | type ArithmeticOp int 5 | 6 | const ( 7 | ArithmeticOpInvalid ArithmeticOp = 0 8 | 9 | ArithmeticOpAdd ArithmeticOp = iota 10 | ArithmeticOpSub 11 | ArithmeticOpMul 12 | ArithmeticOpDiv 13 | ArithmeticOpMod 14 | 15 | ArithmeticOpLogicalAnd 16 | ArithmeticOpLogicalOr 17 | 18 | ArithmeticOpEqual 19 | ArithmeticOpNotEqual 20 | ArithmeticOpLessThan 21 | ArithmeticOpLessThanOrEqual 22 | ArithmeticOpGreaterThan 23 | ArithmeticOpGreaterThanOrEqual 24 | ) 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/edge_destroy.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/hashicorp/terraform/dag" 7 | ) 8 | 9 | // DestroyEdge is an edge that represents a standard "destroy" relationship: 10 | // Target depends on Source because Source is destroying. 11 | type DestroyEdge struct { 12 | S, T dag.Vertex 13 | } 14 | 15 | func (e *DestroyEdge) Hashcode() interface{} { return fmt.Sprintf("%p-%p", e.S, e.T) } 16 | func (e *DestroyEdge) Source() dag.Vertex { return e.S } 17 | func (e *DestroyEdge) Target() dag.Vertex { return e.T } 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/eval_if.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // EvalIf is an EvalNode that is a conditional. 4 | type EvalIf struct { 5 | If func(EvalContext) (bool, error) 6 | Then EvalNode 7 | Else EvalNode 8 | } 9 | 10 | // TODO: test 11 | func (n *EvalIf) Eval(ctx EvalContext) (interface{}, error) { 12 | yes, err := n.If(ctx) 13 | if err != nil { 14 | return nil, err 15 | } 16 | 17 | if yes { 18 | return EvalRaw(n.Then, ctx) 19 | } else { 20 | if n.Else != nil { 21 | return EvalRaw(n.Else, ctx) 22 | } 23 | } 24 | 25 | return nil, nil 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/json.go: -------------------------------------------------------------------------------- 1 | package semver 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | // MarshalJSON implements the encoding/json.Marshaler interface. 8 | func (v Version) MarshalJSON() ([]byte, error) { 9 | return json.Marshal(v.String()) 10 | } 11 | 12 | // UnmarshalJSON implements the encoding/json.Unmarshaler interface. 13 | func (v *Version) UnmarshalJSON(data []byte) (err error) { 14 | var versionString string 15 | 16 | if err = json.Unmarshal(data, &versionString); err != nil { 17 | return 18 | } 19 | 20 | *v, err = Parse(versionString) 21 | 22 | return 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gccgo,linux,amd64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/networks/doc.go: -------------------------------------------------------------------------------- 1 | // Package networks contains functionality for working with Neutron network 2 | // resources. A network is an isolated virtual layer-2 broadcast domain that is 3 | // typically reserved for the tenant who created it (unless you configure the 4 | // network to be shared). Tenants can create multiple networks until the 5 | // thresholds per-tenant quota is reached. 6 | // 7 | // In the v2.0 Networking API, the network is the main entity. Ports and subnets 8 | // are always associated with a network. 9 | package networks 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/yamux/util.go: -------------------------------------------------------------------------------- 1 | package yamux 2 | 3 | // asyncSendErr is used to try an async send of an error 4 | func asyncSendErr(ch chan error, err error) { 5 | if ch == nil { 6 | return 7 | } 8 | select { 9 | case ch <- err: 10 | default: 11 | } 12 | } 13 | 14 | // asyncNotify is used to signal a waiting goroutine 15 | func asyncNotify(ch chan struct{}) { 16 | select { 17 | case ch <- struct{}{}: 18 | default: 19 | } 20 | } 21 | 22 | // min computes the minimum of two values 23 | func min(a, b uint32) uint32 { 24 | if a < b { 25 | return a 26 | } 27 | return b 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/instancetype_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=InstanceType instancetype.go"; DO NOT EDIT. 2 | 3 | package terraform 4 | 5 | import "fmt" 6 | 7 | const _InstanceType_name = "TypeInvalidTypePrimaryTypeTaintedTypeDeposed" 8 | 9 | var _InstanceType_index = [...]uint8{0, 11, 22, 33, 44} 10 | 11 | func (i InstanceType) String() string { 12 | if i < 0 || i >= InstanceType(len(_InstanceType_index)-1) { 13 | return fmt.Sprintf("InstanceType(%d)", i) 14 | } 15 | return _InstanceType_name[_InstanceType_index[i]:_InstanceType_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/ui_input_prefix.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | // PrefixUIInput is an implementation of UIInput that prefixes the ID 8 | // with a string, allowing queries to be namespaced. 9 | type PrefixUIInput struct { 10 | IdPrefix string 11 | QueryPrefix string 12 | UIInput UIInput 13 | } 14 | 15 | func (i *PrefixUIInput) Input(opts *InputOpts) (string, error) { 16 | opts.Id = fmt.Sprintf("%s.%s", i.IdPrefix, opts.Id) 17 | opts.Query = fmt.Sprintf("%s%s", i.QueryPrefix, opts.Query) 18 | return i.UIInput.Input(opts) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/tfdiags/severity_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=Severity"; DO NOT EDIT. 2 | 3 | package tfdiags 4 | 5 | import "fmt" 6 | 7 | const ( 8 | _Severity_name_0 = "Error" 9 | _Severity_name_1 = "Warning" 10 | ) 11 | 12 | var ( 13 | _Severity_index_0 = [...]uint8{0, 5} 14 | _Severity_index_1 = [...]uint8{0, 7} 15 | ) 16 | 17 | func (i Severity) String() string { 18 | switch { 19 | case i == 69: 20 | return _Severity_name_0 21 | case i == 87: 22 | return _Severity_name_1 23 | default: 24 | return fmt.Sprintf("Severity(%d)", i) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/config/configschema/nestingmode_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=NestingMode"; DO NOT EDIT. 2 | 3 | package configschema 4 | 5 | import "fmt" 6 | 7 | const _NestingMode_name = "nestingModeInvalidNestingSingleNestingListNestingSetNestingMap" 8 | 9 | var _NestingMode_index = [...]uint8{0, 18, 31, 42, 52, 62} 10 | 11 | func (i NestingMode) String() string { 12 | if i < 0 || i >= NestingMode(len(_NestingMode_index)-1) { 13 | return fmt.Sprintf("NestingMode(%d)", i) 14 | } 15 | return _NestingMode_name[_NestingMode_index[i]:_NestingMode_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/config/resource_mode_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=ResourceMode -output=resource_mode_string.go resource_mode.go"; DO NOT EDIT. 2 | 3 | package config 4 | 5 | import "fmt" 6 | 7 | const _ResourceMode_name = "ManagedResourceModeDataResourceMode" 8 | 9 | var _ResourceMode_index = [...]uint8{0, 19, 35} 10 | 11 | func (i ResourceMode) String() string { 12 | if i < 0 || i >= ResourceMode(len(_ResourceMode_index)-1) { 13 | return fmt.Sprintf("ResourceMode(%d)", i) 14 | } 15 | return _ResourceMode_name[_ResourceMode_index[i]:_ResourceMode_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/errors.go: -------------------------------------------------------------------------------- 1 | package aws 2 | 3 | import "github.com/aws/aws-sdk-go/aws/awserr" 4 | 5 | var ( 6 | // ErrMissingRegion is an error that is returned if region configuration is 7 | // not found. 8 | // 9 | // @readonly 10 | ErrMissingRegion = awserr.New("MissingRegion", "could not find region configuration", nil) 11 | 12 | // ErrMissingEndpoint is an error that is returned if an endpoint cannot be 13 | // resolved for a service. 14 | // 15 | // @readonly 16 | ErrMissingEndpoint = awserr.New("MissingEndpoint", "'Endpoint' configuration is required for this service", nil) 17 | ) 18 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/ports/doc.go: -------------------------------------------------------------------------------- 1 | // Package ports contains functionality for working with Neutron port resources. 2 | // A port represents a virtual switch port on a logical network switch. Virtual 3 | // instances attach their interfaces into ports. The logical port also defines 4 | // the MAC address and the IP address(es) to be assigned to the interfaces 5 | // plugged into them. When IP addresses are associated to a port, this also 6 | // implies the port is associated with a subnet, as the IP address was taken 7 | // from the allocation pool for a specific subnet. 8 | package ports 9 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/helper/schema/valuetype_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=ValueType valuetype.go"; DO NOT EDIT. 2 | 3 | package schema 4 | 5 | import "fmt" 6 | 7 | const _ValueType_name = "TypeInvalidTypeBoolTypeIntTypeFloatTypeStringTypeListTypeMapTypeSettypeObject" 8 | 9 | var _ValueType_index = [...]uint8{0, 11, 19, 26, 35, 45, 53, 60, 67, 77} 10 | 11 | func (i ValueType) String() string { 12 | if i < 0 || i >= ValueType(len(_ValueType_index)-1) { 13 | return fmt.Sprintf("ValueType(%d)", i) 14 | } 15 | return _ValueType_name[_ValueType_index[i]:_ValueType_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/ioutils/fmt.go: -------------------------------------------------------------------------------- 1 | package ioutils 2 | 3 | import ( 4 | "fmt" 5 | "io" 6 | ) 7 | 8 | // FprintfIfNotEmpty prints the string value if it's not empty 9 | func FprintfIfNotEmpty(w io.Writer, format, value string) (int, error) { 10 | if value != "" { 11 | return fmt.Fprintf(w, format, value) 12 | } 13 | return 0, nil 14 | } 15 | 16 | // FprintfIfTrue prints the boolean value if it's true 17 | func FprintfIfTrue(w io.Writer, format string, ok bool) (int, error) { 18 | if ok { 19 | return fmt.Fprintf(w, format, ok) 20 | } 21 | return 0, nil 22 | } 23 | -------------------------------------------------------------------------------- /terraform/provider.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "github.com/hashicorp/terraform/helper/schema" 5 | "github.com/hashicorp/terraform/terraform" 6 | ) 7 | 8 | // Provider returns a terraform.ResourceProvider. 9 | func Provider() terraform.ResourceProvider { 10 | return &schema.Provider{ 11 | ResourcesMap: map[string]*schema.Resource{ 12 | "terraform_remote_state": schema.DataSourceResourceShim( 13 | "terraform_remote_state", 14 | dataSourceRemoteState(), 15 | ), 16 | }, 17 | DataSourcesMap: map[string]*schema.Resource{ 18 | "terraform_remote_state": dataSourceRemoteState(), 19 | }, 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/opsworks/errors.go: -------------------------------------------------------------------------------- 1 | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 | 3 | package opsworks 4 | 5 | const ( 6 | 7 | // ErrCodeResourceNotFoundException for service response error code 8 | // "ResourceNotFoundException". 9 | // 10 | // Indicates that a resource was not found. 11 | ErrCodeResourceNotFoundException = "ResourceNotFoundException" 12 | 13 | // ErrCodeValidationException for service response error code 14 | // "ValidationException". 15 | // 16 | // Indicates that a request was not valid. 17 | ErrCodeValidationException = "ValidationException" 18 | ) 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/backend/operationtype_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=OperationType operation_type.go"; DO NOT EDIT. 2 | 3 | package backend 4 | 5 | import "fmt" 6 | 7 | const _OperationType_name = "OperationTypeInvalidOperationTypeRefreshOperationTypePlanOperationTypeApply" 8 | 9 | var _OperationType_index = [...]uint8{0, 20, 40, 57, 75} 10 | 11 | func (i OperationType) String() string { 12 | if i >= OperationType(len(_OperationType_index)-1) { 13 | return fmt.Sprintf("OperationType(%d)", i) 14 | } 15 | return _OperationType_name[_OperationType_index[i]:_OperationType_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/idtools/idtools_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package idtools 4 | 5 | import ( 6 | "os" 7 | 8 | "github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system" 9 | ) 10 | 11 | // Platforms such as Windows do not support the UID/GID concept. So make this 12 | // just a wrapper around system.MkdirAll. 13 | func mkdirAs(path string, mode os.FileMode, ownerUID, ownerGID int, mkAll, chownExisting bool) error { 14 | if err := system.MkdirAll(path, mode); err != nil && !os.IsExist(err) { 15 | return err 16 | } 17 | return nil 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_opsworks_memcached_layer.go: -------------------------------------------------------------------------------- 1 | package aws 2 | 3 | import ( 4 | "github.com/hashicorp/terraform/helper/schema" 5 | ) 6 | 7 | func resourceAwsOpsworksMemcachedLayer() *schema.Resource { 8 | layerType := &opsworksLayerType{ 9 | TypeName: "memcached", 10 | DefaultLayerName: "Memcached", 11 | 12 | Attributes: map[string]*opsworksLayerTypeAttribute{ 13 | "allocated_memory": { 14 | AttrName: "MemcachedMemory", 15 | Type: schema.TypeInt, 16 | Default: 512, 17 | }, 18 | }, 19 | } 20 | 21 | return layerType.SchemaResource() 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/corehandlers/param_validator.go: -------------------------------------------------------------------------------- 1 | package corehandlers 2 | 3 | import "github.com/aws/aws-sdk-go/aws/request" 4 | 5 | // ValidateParametersHandler is a request handler to validate the input parameters. 6 | // Validating parameters only has meaning if done prior to the request being sent. 7 | var ValidateParametersHandler = request.NamedHandler{Name: "core.ValidateParametersHandler", Fn: func(r *request.Request) { 8 | if !r.ParamsFilled() { 9 | return 10 | } 11 | 12 | if v, ok := r.Params.(request.Validator); ok { 13 | if err := v.Validate(); err != nil { 14 | r.Error = err 15 | } 16 | } 17 | }} 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/backend/local/counthookaction_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=countHookAction hook_count_action.go"; DO NOT EDIT. 2 | 3 | package local 4 | 5 | import "fmt" 6 | 7 | const _countHookAction_name = "countHookActionAddcountHookActionChangecountHookActionRemove" 8 | 9 | var _countHookAction_index = [...]uint8{0, 18, 39, 60} 10 | 11 | func (i countHookAction) String() string { 12 | if i >= countHookAction(len(_countHookAction_index)-1) { 13 | return fmt.Sprintf("countHookAction(%d)", i) 14 | } 15 | return _countHookAction_name[_countHookAction_index[i]:_countHookAction_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/lusis/go-artifactory/src/artifactory.v401/license.go: -------------------------------------------------------------------------------- 1 | package artifactory 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type LicenseInformation struct { 8 | LicenseType string `json:"type"` 9 | ValidThrough string `json:"validThrough"` 10 | LicensedTo string `json:"licensedTo"` 11 | } 12 | 13 | func (c *ArtifactoryClient) GetLicenseInformation() (LicenseInformation, error) { 14 | o := make(map[string]string, 0) 15 | var l LicenseInformation 16 | d, e := c.Get("/api/system/license", o) 17 | if e != nil { 18 | return l, e 19 | } else { 20 | err := json.Unmarshal(d, &l) 21 | return l, err 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/jmespath/go-jmespath/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2015 James Saryerwinnie 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly 6 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/cli/Makefile: -------------------------------------------------------------------------------- 1 | TEST?=./... 2 | 3 | default: test 4 | 5 | # test runs the test suite and vets the code 6 | test: 7 | go list $(TEST) | xargs -n1 go test -timeout=60s -parallel=10 $(TESTARGS) 8 | 9 | # testrace runs the race checker 10 | testrace: 11 | go list $(TEST) | xargs -n1 go test -race $(TESTARGS) 12 | 13 | # updatedeps installs all the dependencies to run and build 14 | updatedeps: 15 | go list ./... \ 16 | | xargs go list -f '{{ join .Deps "\n" }}{{ printf "\n" }}{{ join .TestImports "\n" }}' \ 17 | | grep -v github.com/mitchellh/cli \ 18 | | xargs go get -f -u -v 19 | 20 | .PHONY: test testrace updatedeps 21 | -------------------------------------------------------------------------------- /vendor/github.com/apparentlymart/go-textseg/textseg/utf8_seqs.go: -------------------------------------------------------------------------------- 1 | package textseg 2 | 3 | import "unicode/utf8" 4 | 5 | // ScanGraphemeClusters is a split function for bufio.Scanner that splits 6 | // on UTF8 sequence boundaries. 7 | // 8 | // This is included largely for completeness, since this behavior is already 9 | // built in to Go when ranging over a string. 10 | func ScanUTF8Sequences(data []byte, atEOF bool) (int, []byte, error) { 11 | if len(data) == 0 { 12 | return 0, nil, nil 13 | } 14 | r, seqLen := utf8.DecodeRune(data) 15 | if r == utf8.RuneError && !atEOF { 16 | return 0, nil, nil 17 | } 18 | return seqLen, data[:seqLen], nil 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_opsworks_nodejs_app_layer.go: -------------------------------------------------------------------------------- 1 | package aws 2 | 3 | import ( 4 | "github.com/hashicorp/terraform/helper/schema" 5 | ) 6 | 7 | func resourceAwsOpsworksNodejsAppLayer() *schema.Resource { 8 | layerType := &opsworksLayerType{ 9 | TypeName: "nodejs-app", 10 | DefaultLayerName: "Node.js App Server", 11 | 12 | Attributes: map[string]*opsworksLayerTypeAttribute{ 13 | "nodejs_version": { 14 | AttrName: "NodejsVersion", 15 | Type: schema.TypeString, 16 | Default: "0.10.38", 17 | }, 18 | }, 19 | } 20 | 21 | return layerType.SchemaResource() 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/keywords.go: -------------------------------------------------------------------------------- 1 | package hclsyntax 2 | 3 | import ( 4 | "bytes" 5 | ) 6 | 7 | type Keyword []byte 8 | 9 | var forKeyword = Keyword([]byte{'f', 'o', 'r'}) 10 | var inKeyword = Keyword([]byte{'i', 'n'}) 11 | var ifKeyword = Keyword([]byte{'i', 'f'}) 12 | var elseKeyword = Keyword([]byte{'e', 'l', 's', 'e'}) 13 | var endifKeyword = Keyword([]byte{'e', 'n', 'd', 'i', 'f'}) 14 | var endforKeyword = Keyword([]byte{'e', 'n', 'd', 'f', 'o', 'r'}) 15 | 16 | func (kw Keyword) TokenMatches(token Token) bool { 17 | if token.Type != TokenIdent { 18 | return false 19 | } 20 | return bytes.Equal([]byte(kw), token.Bytes) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/graphtype_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=GraphType context_graph_type.go"; DO NOT EDIT. 2 | 3 | package terraform 4 | 5 | import "fmt" 6 | 7 | const _GraphType_name = "GraphTypeInvalidGraphTypeLegacyGraphTypeRefreshGraphTypePlanGraphTypePlanDestroyGraphTypeApplyGraphTypeInputGraphTypeValidate" 8 | 9 | var _GraphType_index = [...]uint8{0, 16, 31, 47, 60, 80, 94, 108, 125} 10 | 11 | func (i GraphType) String() string { 12 | if i >= GraphType(len(_GraphType_index)-1) { 13 | return fmt.Sprintf("GraphType(%d)", i) 14 | } 15 | return _GraphType_name[_GraphType_index[i]:_GraphType_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/copystructure/README.md: -------------------------------------------------------------------------------- 1 | # copystructure 2 | 3 | copystructure is a Go library for deep copying values in Go. 4 | 5 | This allows you to copy Go values that may contain reference values 6 | such as maps, slices, or pointers, and copy their data as well instead 7 | of just their references. 8 | 9 | ## Installation 10 | 11 | Standard `go get`: 12 | 13 | ``` 14 | $ go get github.com/mitchellh/copystructure 15 | ``` 16 | 17 | ## Usage & Example 18 | 19 | For usage and examples see the [Godoc](http://godoc.org/github.com/mitchellh/copystructure). 20 | 21 | The `Copy` function has examples associated with it there. 22 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | dist: trusty 2 | sudo: required 3 | services: 4 | - docker 5 | language: go 6 | go: 7 | - 1.9.x 8 | 9 | install: 10 | # This script is used by the Travis build to install a cookie for 11 | # go.googlesource.com so rate limits are higher when using `go get` to fetch 12 | # packages that live there. 13 | # See: https://github.com/golang/go/issues/12933 14 | - bash scripts/gogetcookie.sh 15 | - go get github.com/kardianos/govendor 16 | 17 | script: 18 | - make test 19 | - make vendor-status 20 | - make vet 21 | - make website-test 22 | 23 | branches: 24 | only: 25 | - master 26 | matrix: 27 | fast_finish: true 28 | allow_failures: 29 | - go: tip 30 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/schema.go: -------------------------------------------------------------------------------- 1 | package hcl 2 | 3 | // BlockHeaderSchema represents the shape of a block header, and is 4 | // used for matching blocks within bodies. 5 | type BlockHeaderSchema struct { 6 | Type string 7 | LabelNames []string 8 | } 9 | 10 | // AttributeSchema represents the requirements for an attribute, and is used 11 | // for matching attributes within bodies. 12 | type AttributeSchema struct { 13 | Name string 14 | Required bool 15 | } 16 | 17 | // BodySchema represents the desired shallow structure of a body. 18 | type BodySchema struct { 19 | Attributes []AttributeSchema 20 | Blocks []BlockHeaderSchema 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/eval_error.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // EvalReturnError is an EvalNode implementation that returns an 4 | // error if it is present. 5 | // 6 | // This is useful for scenarios where an error has been captured by 7 | // another EvalNode (like EvalApply) for special EvalTree-based error 8 | // handling, and that handling has completed, so the error should be 9 | // returned normally. 10 | type EvalReturnError struct { 11 | Error *error 12 | } 13 | 14 | func (n *EvalReturnError) Eval(ctx EvalContext) (interface{}, error) { 15 | if n.Error == nil { 16 | return nil, nil 17 | } 18 | 19 | return nil, *n.Error 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/eval_sequence.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // EvalSequence is an EvalNode that evaluates in sequence. 4 | type EvalSequence struct { 5 | Nodes []EvalNode 6 | } 7 | 8 | func (n *EvalSequence) Eval(ctx EvalContext) (interface{}, error) { 9 | for _, n := range n.Nodes { 10 | if n == nil { 11 | continue 12 | } 13 | 14 | if _, err := EvalRaw(n, ctx); err != nil { 15 | return nil, err 16 | } 17 | } 18 | 19 | return nil, nil 20 | } 21 | 22 | // EvalNodeFilterable impl. 23 | func (n *EvalSequence) Filter(fn EvalNodeFilterFunc) { 24 | for i, node := range n.Nodes { 25 | n.Nodes[i] = fn(node) 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/subnets/doc.go: -------------------------------------------------------------------------------- 1 | // Package subnets contains functionality for working with Neutron subnet 2 | // resources. A subnet represents an IP address block that can be used to 3 | // assign IP addresses to virtual instances. Each subnet must have a CIDR and 4 | // must be associated with a network. IPs can either be selected from the whole 5 | // subnet CIDR or from allocation pools specified by the user. 6 | // 7 | // A subnet can also have a gateway, a list of DNS name servers, and host routes. 8 | // This information is pushed to instances whose interfaces are associated with 9 | // the subnet. 10 | package subnets 11 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/helper/schema/resource_data_get_source.go: -------------------------------------------------------------------------------- 1 | package schema 2 | 3 | //go:generate stringer -type=getSource resource_data_get_source.go 4 | 5 | // getSource represents the level we want to get for a value (internally). 6 | // Any source less than or equal to the level will be loaded (whichever 7 | // has a value first). 8 | type getSource byte 9 | 10 | const ( 11 | getSourceState getSource = 1 << iota 12 | getSourceConfig 13 | getSourceDiff 14 | getSourceSet 15 | getSourceExact // Only get from the _exact_ level 16 | getSourceLevelMask getSource = getSourceState | getSourceConfig | getSourceDiff | getSourceSet 17 | ) 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/tfdiags/simple_warning.go: -------------------------------------------------------------------------------- 1 | package tfdiags 2 | 3 | type simpleWarning string 4 | 5 | var _ Diagnostic = simpleWarning("") 6 | 7 | // SimpleWarning constructs a simple (summary-only) warning diagnostic. 8 | func SimpleWarning(msg string) Diagnostic { 9 | return simpleWarning(msg) 10 | } 11 | 12 | func (e simpleWarning) Severity() Severity { 13 | return Warning 14 | } 15 | 16 | func (e simpleWarning) Description() Description { 17 | return Description{ 18 | Summary: string(e), 19 | } 20 | } 21 | 22 | func (e simpleWarning) Source() Source { 23 | // No source information available for a native error 24 | return Source{} 25 | } 26 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/codes/code_string.go: -------------------------------------------------------------------------------- 1 | // generated by stringer -type=Code; DO NOT EDIT 2 | 3 | package codes 4 | 5 | import "fmt" 6 | 7 | const _Code_name = "OKCanceledUnknownInvalidArgumentDeadlineExceededNotFoundAlreadyExistsPermissionDeniedResourceExhaustedFailedPreconditionAbortedOutOfRangeUnimplementedInternalUnavailableDataLossUnauthenticated" 8 | 9 | var _Code_index = [...]uint8{0, 2, 10, 17, 32, 48, 56, 69, 85, 102, 120, 127, 137, 150, 158, 169, 177, 192} 10 | 11 | func (i Code) String() string { 12 | if i+1 >= Code(len(_Code_index)) { 13 | return fmt.Sprintf("Code(%d)", i) 14 | } 15 | return _Code_name[_Code_index[i]:_Code_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/fileutils/fileutils_unix.go: -------------------------------------------------------------------------------- 1 | // +build linux freebsd 2 | 3 | package fileutils 4 | 5 | import ( 6 | "fmt" 7 | "io/ioutil" 8 | "os" 9 | 10 | "github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus" 11 | ) 12 | 13 | // GetTotalUsedFds Returns the number of used File Descriptors by 14 | // reading it via /proc filesystem. 15 | func GetTotalUsedFds() int { 16 | if fds, err := ioutil.ReadDir(fmt.Sprintf("/proc/%d/fd", os.Getpid())); err != nil { 17 | logrus.Errorf("Error opening /proc/%d/fd: %s", os.Getpid(), err) 18 | } else { 19 | return len(fds) 20 | } 21 | return -1 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/walkoperation_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=walkOperation graph_walk_operation.go"; DO NOT EDIT. 2 | 3 | package terraform 4 | 5 | import "fmt" 6 | 7 | const _walkOperation_name = "walkInvalidwalkInputwalkApplywalkPlanwalkPlanDestroywalkRefreshwalkValidatewalkDestroywalkImport" 8 | 9 | var _walkOperation_index = [...]uint8{0, 11, 20, 29, 37, 52, 63, 75, 86, 96} 10 | 11 | func (i walkOperation) String() string { 12 | if i >= walkOperation(len(_walkOperation_index)-1) { 13 | return fmt.Sprintf("walkOperation(%d)", i) 14 | } 15 | return _walkOperation_name[_walkOperation_index[i]:_walkOperation_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly 6 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v1/volumes/urls.go: -------------------------------------------------------------------------------- 1 | package volumes 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | func createURL(c *gophercloud.ServiceClient) string { 6 | return c.ServiceURL("volumes") 7 | } 8 | 9 | func listURL(c *gophercloud.ServiceClient) string { 10 | return createURL(c) 11 | } 12 | 13 | func deleteURL(c *gophercloud.ServiceClient, id string) string { 14 | return c.ServiceURL("volumes", id) 15 | } 16 | 17 | func getURL(c *gophercloud.ServiceClient, id string) string { 18 | return deleteURL(c, id) 19 | } 20 | 21 | func updateURL(c *gophercloud.ServiceClient, id string) string { 22 | return deleteURL(c, id) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v1/volumes/util.go: -------------------------------------------------------------------------------- 1 | package volumes 2 | 3 | import ( 4 | "github.com/gophercloud/gophercloud" 5 | ) 6 | 7 | // WaitForStatus will continually poll the resource, checking for a particular 8 | // status. It will do this for the amount of seconds defined. 9 | func WaitForStatus(c *gophercloud.ServiceClient, id, status string, secs int) error { 10 | return gophercloud.WaitFor(secs, func() (bool, error) { 11 | current, err := Get(c, id).Extract() 12 | if err != nil { 13 | return false, err 14 | } 15 | 16 | if current.Status == status { 17 | return true, nil 18 | } 19 | 20 | return false, nil 21 | }) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v2/volumes/util.go: -------------------------------------------------------------------------------- 1 | package volumes 2 | 3 | import ( 4 | "github.com/gophercloud/gophercloud" 5 | ) 6 | 7 | // WaitForStatus will continually poll the resource, checking for a particular 8 | // status. It will do this for the amount of seconds defined. 9 | func WaitForStatus(c *gophercloud.ServiceClient, id, status string, secs int) error { 10 | return gophercloud.WaitFor(secs, func() (bool, error) { 11 | current, err := Get(c, id).Extract() 12 | if err != nil { 13 | return false, err 14 | } 15 | 16 | if current.Status == status { 17 | return true, nil 18 | } 19 | 20 | return false, nil 21 | }) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/lusis/go-artifactory/LICENSE: -------------------------------------------------------------------------------- 1 | Apache License, Version 2.0 2 | 3 | Copyright (c) 2016 John E. Vincent 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | See the License for the specific language governing permissions and 15 | limitations under the License. 16 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/hashstructure/include.go: -------------------------------------------------------------------------------- 1 | package hashstructure 2 | 3 | // Includable is an interface that can optionally be implemented by 4 | // a struct. It will be called for each field in the struct to check whether 5 | // it should be included in the hash. 6 | type Includable interface { 7 | HashInclude(field string, v interface{}) (bool, error) 8 | } 9 | 10 | // IncludableMap is an interface that can optionally be implemented by 11 | // a struct. It will be called when a map-type field is found to ask the 12 | // struct if the map item should be included in the hash. 13 | type IncludableMap interface { 14 | HashIncludeMap(field string, k, v interface{}) (bool, error) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/servers/util.go: -------------------------------------------------------------------------------- 1 | package servers 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | // WaitForStatus will continually poll a server until it successfully transitions to a specified 6 | // status. It will do this for at most the number of seconds specified. 7 | func WaitForStatus(c *gophercloud.ServiceClient, id, status string, secs int) error { 8 | return gophercloud.WaitFor(secs, func() (bool, error) { 9 | current, err := Get(c, id).Extract() 10 | if err != nil { 11 | return false, err 12 | } 13 | 14 | if current.Status == status { 15 | return true, nil 16 | } 17 | 18 | return false, nil 19 | }) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/lex.go: -------------------------------------------------------------------------------- 1 | package hcl 2 | 3 | import ( 4 | "unicode" 5 | "unicode/utf8" 6 | ) 7 | 8 | type lexModeValue byte 9 | 10 | const ( 11 | lexModeUnknown lexModeValue = iota 12 | lexModeHcl 13 | lexModeJson 14 | ) 15 | 16 | // lexMode returns whether we're going to be parsing in JSON 17 | // mode or HCL mode. 18 | func lexMode(v []byte) lexModeValue { 19 | var ( 20 | r rune 21 | w int 22 | offset int 23 | ) 24 | 25 | for { 26 | r, w = utf8.DecodeRune(v[offset:]) 27 | offset += w 28 | if unicode.IsSpace(r) { 29 | continue 30 | } 31 | if r == '{' { 32 | return lexModeJson 33 | } 34 | break 35 | } 36 | 37 | return lexModeHcl 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcldec/doc.go: -------------------------------------------------------------------------------- 1 | // Package hcldec provides a higher-level API for unpacking the content of 2 | // HCL bodies, implemented in terms of the low-level "Content" API exposed 3 | // by the bodies themselves. 4 | // 5 | // It allows decoding an entire nested configuration in a single operation 6 | // by providing a description of the intended structure. 7 | // 8 | // For some applications it may be more convenient to use the "gohcl" 9 | // package, which has a similar purpose but decodes directly into native 10 | // Go data types. hcldec instead targets the cty type system, and thus allows 11 | // a cty-driven application to remain within that type system. 12 | package hcldec 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/helper/structure/normalize_json.go: -------------------------------------------------------------------------------- 1 | package structure 2 | 3 | import "encoding/json" 4 | 5 | // Takes a value containing JSON string and passes it through 6 | // the JSON parser to normalize it, returns either a parsing 7 | // error or normalized JSON string. 8 | func NormalizeJsonString(jsonString interface{}) (string, error) { 9 | var j interface{} 10 | 11 | if jsonString == nil || jsonString.(string) == "" { 12 | return "", nil 13 | } 14 | 15 | s := jsonString.(string) 16 | 17 | err := json.Unmarshal([]byte(s), &j) 18 | if err != nil { 19 | return s, err 20 | } 21 | 22 | bytes, _ := json.Marshal(j) 23 | return string(bytes[:]), nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/node_data_destroy.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // NodeDestroyableDataResource represents a resource that is "plannable": 4 | // it is ready to be planned in order to create a diff. 5 | type NodeDestroyableDataResource struct { 6 | *NodeAbstractResource 7 | } 8 | 9 | // GraphNodeEvalable 10 | func (n *NodeDestroyableDataResource) EvalTree() EvalNode { 11 | addr := n.NodeAbstractResource.Addr 12 | 13 | // stateId is the ID to put into the state 14 | stateId := addr.stateId() 15 | 16 | // Just destroy it. 17 | var state *InstanceState 18 | return &EvalWriteState{ 19 | Name: stateId, 20 | State: &state, // state is nil here 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/env_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | // Unix environment variables. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getenv(key string) (value string, found bool) { 14 | return syscall.Getenv(key) 15 | } 16 | 17 | func Setenv(key, value string) error { 18 | return syscall.Setenv(key, value) 19 | } 20 | 21 | func Clearenv() { 22 | syscall.Clearenv() 23 | } 24 | 25 | func Environ() []string { 26 | return syscall.Environ() 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/lbaas_v2/loadbalancers/urls.go: -------------------------------------------------------------------------------- 1 | package loadbalancers 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | const ( 6 | rootPath = "lbaas" 7 | resourcePath = "loadbalancers" 8 | statusPath = "statuses" 9 | ) 10 | 11 | func rootURL(c *gophercloud.ServiceClient) string { 12 | return c.ServiceURL(rootPath, resourcePath) 13 | } 14 | 15 | func resourceURL(c *gophercloud.ServiceClient, id string) string { 16 | return c.ServiceURL(rootPath, resourcePath, id) 17 | } 18 | 19 | func statusRootURL(c *gophercloud.ServiceClient, id string) string { 20 | return c.ServiceURL(rootPath, resourcePath, id, statusPath) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/blockstorage/v2/volumes/urls.go: -------------------------------------------------------------------------------- 1 | package volumes 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | func createURL(c *gophercloud.ServiceClient) string { 6 | return c.ServiceURL("volumes") 7 | } 8 | 9 | func listURL(c *gophercloud.ServiceClient) string { 10 | return c.ServiceURL("volumes", "detail") 11 | } 12 | 13 | func deleteURL(c *gophercloud.ServiceClient, id string) string { 14 | return c.ServiceURL("volumes", id) 15 | } 16 | 17 | func getURL(c *gophercloud.ServiceClient, id string) string { 18 | return deleteURL(c, id) 19 | } 20 | 21 | func updateURL(c *gophercloud.ServiceClient, id string) string { 22 | return deleteURL(c, id) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/helper/config/decode.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import ( 4 | "github.com/mitchellh/mapstructure" 5 | ) 6 | 7 | func Decode(target interface{}, raws ...interface{}) (*mapstructure.Metadata, error) { 8 | var md mapstructure.Metadata 9 | decoderConfig := &mapstructure.DecoderConfig{ 10 | Metadata: &md, 11 | Result: target, 12 | WeaklyTypedInput: true, 13 | } 14 | 15 | decoder, err := mapstructure.NewDecoder(decoderConfig) 16 | if err != nil { 17 | return nil, err 18 | } 19 | 20 | for _, raw := range raws { 21 | err := decoder.Decode(raw) 22 | if err != nil { 23 | return nil, err 24 | } 25 | } 26 | 27 | return &md, nil 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/json/doc.go: -------------------------------------------------------------------------------- 1 | // Package json provides functions for serializing cty types and values in 2 | // JSON format, and for decoding them again. 3 | // 4 | // Since the cty type system is a superset of the JSON type system, 5 | // round-tripping through JSON is lossy unless type information is provided 6 | // both at encoding time and decoding time. Callers of this package are 7 | // therefore suggested to define their expected structure as a cty.Type 8 | // and pass it in consistently both when encoding and when decoding, though 9 | // default (type-lossy) behavior is provided for situations where the precise 10 | // representation of the data is not significant. 11 | package json 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | // +build !gccgo 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 13 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 14 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 15 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 16 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/internal/base/api_base.proto: -------------------------------------------------------------------------------- 1 | // Built-in base types for API calls. Primarily useful as return types. 2 | 3 | syntax = "proto2"; 4 | option go_package = "base"; 5 | 6 | package appengine.base; 7 | 8 | message StringProto { 9 | required string value = 1; 10 | } 11 | 12 | message Integer32Proto { 13 | required int32 value = 1; 14 | } 15 | 16 | message Integer64Proto { 17 | required int64 value = 1; 18 | } 19 | 20 | message BoolProto { 21 | required bool value = 1; 22 | } 23 | 24 | message DoubleProto { 25 | required double value = 1; 26 | } 27 | 28 | message BytesProto { 29 | required bytes value = 1 [ctype=CORD]; 30 | } 31 | 32 | message VoidProto { 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/sort.go: -------------------------------------------------------------------------------- 1 | package semver 2 | 3 | import ( 4 | "sort" 5 | ) 6 | 7 | // Versions represents multiple versions. 8 | type Versions []Version 9 | 10 | // Len returns length of version collection 11 | func (s Versions) Len() int { 12 | return len(s) 13 | } 14 | 15 | // Swap swaps two versions inside the collection by its indices 16 | func (s Versions) Swap(i, j int) { 17 | s[i], s[j] = s[j], s[i] 18 | } 19 | 20 | // Less checks if version at index i is less than version at index j 21 | func (s Versions) Less(i, j int) bool { 22 | return s[i].LT(s[j]) 23 | } 24 | 25 | // Sort sorts a slice of versions 26 | func Sort(versions []Version) { 27 | sort.Sort(Versions(versions)) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/error.go: -------------------------------------------------------------------------------- 1 | package plugin 2 | 3 | // This is a type that wraps error types so that they can be messaged 4 | // across RPC channels. Since "error" is an interface, we can't always 5 | // gob-encode the underlying structure. This is a valid error interface 6 | // implementer that we will push across. 7 | type BasicError struct { 8 | Message string 9 | } 10 | 11 | // NewBasicError is used to create a BasicError. 12 | // 13 | // err is allowed to be nil. 14 | func NewBasicError(err error) *BasicError { 15 | if err == nil { 16 | return nil 17 | } 18 | 19 | return &BasicError{err.Error()} 20 | } 21 | 22 | func (e *BasicError) Error() string { 23 | return e.Message 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/backend/local/cli.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | import ( 4 | "github.com/hashicorp/terraform/backend" 5 | ) 6 | 7 | // backend.CLI impl. 8 | func (b *Local) CLIInit(opts *backend.CLIOpts) error { 9 | b.CLI = opts.CLI 10 | b.CLIColor = opts.CLIColor 11 | b.ContextOpts = opts.ContextOpts 12 | b.OpInput = opts.Input 13 | b.OpValidation = opts.Validation 14 | b.RunningInAutomation = opts.RunningInAutomation 15 | 16 | // Only configure state paths if we didn't do so via the configure func. 17 | if b.StatePath == "" { 18 | b.StatePath = opts.StatePath 19 | b.StateOutPath = opts.StateOutPath 20 | b.StateBackupPath = opts.StateBackupPath 21 | } 22 | 23 | return nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/plugin/ui_output.go: -------------------------------------------------------------------------------- 1 | package plugin 2 | 3 | import ( 4 | "net/rpc" 5 | 6 | "github.com/hashicorp/terraform/terraform" 7 | ) 8 | 9 | // UIOutput is an implementatin of terraform.UIOutput that communicates 10 | // over RPC. 11 | type UIOutput struct { 12 | Client *rpc.Client 13 | } 14 | 15 | func (o *UIOutput) Output(v string) { 16 | o.Client.Call("Plugin.Output", v, new(interface{})) 17 | } 18 | 19 | // UIOutputServer is the RPC server for serving UIOutput. 20 | type UIOutputServer struct { 21 | UIOutput terraform.UIOutput 22 | } 23 | 24 | func (s *UIOutputServer) Output( 25 | v string, 26 | reply *interface{}) error { 27 | s.UIOutput.Output(v) 28 | return nil 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/sql.go: -------------------------------------------------------------------------------- 1 | package semver 2 | 3 | import ( 4 | "database/sql/driver" 5 | "fmt" 6 | ) 7 | 8 | // Scan implements the database/sql.Scanner interface. 9 | func (v *Version) Scan(src interface{}) (err error) { 10 | var str string 11 | switch src := src.(type) { 12 | case string: 13 | str = src 14 | case []byte: 15 | str = string(src) 16 | default: 17 | return fmt.Errorf("Version.Scan: cannot convert %T to string.", src) 18 | } 19 | 20 | if t, err := Parse(str); err == nil { 21 | *v = t 22 | } 23 | 24 | return 25 | } 26 | 27 | // Value implements the database/sql/driver.Valuer interface. 28 | func (v Version) Value() (driver.Value, error) { 29 | return v.String(), nil 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/format.go: -------------------------------------------------------------------------------- 1 | package multierror 2 | 3 | import ( 4 | "fmt" 5 | "strings" 6 | ) 7 | 8 | // ErrorFormatFunc is a function callback that is called by Error to 9 | // turn the list of errors into a string. 10 | type ErrorFormatFunc func([]error) string 11 | 12 | // ListFormatFunc is a basic formatter that outputs the number of errors 13 | // that occurred along with a bullet point list of the errors. 14 | func ListFormatFunc(es []error) string { 15 | points := make([]string, len(es)) 16 | for i, err := range es { 17 | points[i] = fmt.Sprintf("* %s", err) 18 | } 19 | 20 | return fmt.Sprintf( 21 | "%d error(s) occurred:\n\n%s", 22 | len(es), strings.Join(points, "\n")) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/function/stdlib/doc.go: -------------------------------------------------------------------------------- 1 | // Package stdlib is a collection of cty functions that are expected to be 2 | // generally useful, and are thus factored out into this shared library in 3 | // the hope that cty-using applications will have consistent behavior when 4 | // using these functions. 5 | // 6 | // See the parent package "function" for more information on the purpose 7 | // and usage of cty functions. 8 | // 9 | // This package contains both Go functions, which provide convenient access 10 | // to call the functions from Go code, and the Function objects themselves. 11 | // The latter follow the naming scheme of appending "Func" to the end of 12 | // the function name. 13 | package stdlib 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/flatten.go: -------------------------------------------------------------------------------- 1 | package multierror 2 | 3 | // Flatten flattens the given error, merging any *Errors together into 4 | // a single *Error. 5 | func Flatten(err error) error { 6 | // If it isn't an *Error, just return the error as-is 7 | if _, ok := err.(*Error); !ok { 8 | return err 9 | } 10 | 11 | // Otherwise, make the result and flatten away! 12 | flatErr := new(Error) 13 | flatten(err, flatErr) 14 | return flatErr 15 | } 16 | 17 | func flatten(err error, flatErr *Error) { 18 | switch err := err.(type) { 19 | case *Error: 20 | for _, e := range err.Errors { 21 | flatten(e, flatErr) 22 | } 23 | default: 24 | flatErr.Errors = append(flatErr.Errors, err) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/process_windows.go: -------------------------------------------------------------------------------- 1 | package plugin 2 | 3 | import ( 4 | "syscall" 5 | ) 6 | 7 | const ( 8 | // Weird name but matches the MSDN docs 9 | exit_STILL_ACTIVE = 259 10 | 11 | processDesiredAccess = syscall.STANDARD_RIGHTS_READ | 12 | syscall.PROCESS_QUERY_INFORMATION | 13 | syscall.SYNCHRONIZE 14 | ) 15 | 16 | // _pidAlive tests whether a process is alive or not 17 | func _pidAlive(pid int) bool { 18 | h, err := syscall.OpenProcess(processDesiredAccess, false, uint32(pid)) 19 | if err != nil { 20 | return false 21 | } 22 | 23 | var ec uint32 24 | if e := syscall.GetExitCodeProcess(h, &ec); e != nil { 25 | return false 26 | } 27 | 28 | return ec == exit_STILL_ACTIVE 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/json/type.go: -------------------------------------------------------------------------------- 1 | package json 2 | 3 | import ( 4 | "github.com/zclconf/go-cty/cty" 5 | ) 6 | 7 | // MarshalType returns a JSON serialization of the given type. 8 | // 9 | // This is just a thin wrapper around t.MarshalJSON, for symmetry with 10 | // UnmarshalType. 11 | func MarshalType(t cty.Type) ([]byte, error) { 12 | return t.MarshalJSON() 13 | } 14 | 15 | // UnmarshalType decodes a JSON serialization of the given type as produced 16 | // by either Type.MarshalJSON or MarshalType. 17 | // 18 | // This is a convenience wrapper around Type.UnmarshalJSON. 19 | func UnmarshalType(buf []byte) (cty.Type, error) { 20 | var t cty.Type 21 | err := t.UnmarshalJSON(buf) 22 | return t, err 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build arm64 7 | // +build !gccgo 8 | 9 | #include "textflag.h" 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-56 15 | B syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 18 | B syscall·Syscall6(SB) 19 | 20 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 21 | B syscall·RawSyscall(SB) 22 | 23 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 24 | B syscall·RawSyscall6(SB) 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-getter/get_file.go: -------------------------------------------------------------------------------- 1 | package getter 2 | 3 | import ( 4 | "net/url" 5 | "os" 6 | ) 7 | 8 | // FileGetter is a Getter implementation that will download a module from 9 | // a file scheme. 10 | type FileGetter struct { 11 | // Copy, if set to true, will copy data instead of using a symlink 12 | Copy bool 13 | } 14 | 15 | func (g *FileGetter) ClientMode(u *url.URL) (ClientMode, error) { 16 | path := u.Path 17 | if u.RawPath != "" { 18 | path = u.RawPath 19 | } 20 | 21 | fi, err := os.Stat(path) 22 | if err != nil { 23 | return 0, err 24 | } 25 | 26 | // Check if the source is a directory. 27 | if fi.IsDir() { 28 | return ClientModeDir, nil 29 | } 30 | 31 | return ClientModeFile, nil 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/path.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "crypto/md5" 5 | "encoding/hex" 6 | ) 7 | 8 | // PathCacheKey returns a cache key for a module path. 9 | // 10 | // TODO: test 11 | func PathCacheKey(path []string) string { 12 | // There is probably a better way to do this, but this is working for now. 13 | // We just create an MD5 hash of all the MD5 hashes of all the path 14 | // elements. This gets us the property that it is unique per ordering. 15 | hash := md5.New() 16 | for _, p := range path { 17 | single := md5.Sum([]byte(p)) 18 | if _, err := hash.Write(single[:]); err != nil { 19 | panic(err) 20 | } 21 | } 22 | 23 | return hex.EncodeToString(hash.Sum(nil)) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/README: -------------------------------------------------------------------------------- 1 | This is a work-in-progress HTTP/2 implementation for Go. 2 | 3 | It will eventually live in the Go standard library and won't require 4 | any changes to your code to use. It will just be automatic. 5 | 6 | Status: 7 | 8 | * The server support is pretty good. A few things are missing 9 | but are being worked on. 10 | * The client work has just started but shares a lot of code 11 | is coming along much quicker. 12 | 13 | Docs are at https://godoc.org/golang.org/x/net/http2 14 | 15 | Demo test server at https://http2.golang.org/ 16 | 17 | Help & bug reports welcome! 18 | 19 | Contributing: https://golang.org/doc/contribute.html 20 | Bugs: https://golang.org/issue/new?title=x/net/http2:+ 21 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/codegen.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # This script serves as an example to demonstrate how to generate the gRPC-Go 4 | # interface and the related messages from .proto file. 5 | # 6 | # It assumes the installation of i) Google proto buffer compiler at 7 | # https://github.com/google/protobuf (after v2.6.1) and ii) the Go codegen 8 | # plugin at https://github.com/golang/protobuf (after 2015-02-20). If you have 9 | # not, please install them first. 10 | # 11 | # We recommend running this script at $GOPATH/src. 12 | # 13 | # If this is not what you need, feel free to make your own scripts. Again, this 14 | # script is for demonstration purpose. 15 | # 16 | proto=$1 17 | protoc --go_out=plugins=grpc:. $proto 18 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/private/protocol/unmarshal.go: -------------------------------------------------------------------------------- 1 | package protocol 2 | 3 | import ( 4 | "io" 5 | "io/ioutil" 6 | 7 | "github.com/aws/aws-sdk-go/aws/request" 8 | ) 9 | 10 | // UnmarshalDiscardBodyHandler is a named request handler to empty and close a response's body 11 | var UnmarshalDiscardBodyHandler = request.NamedHandler{Name: "awssdk.shared.UnmarshalDiscardBody", Fn: UnmarshalDiscardBody} 12 | 13 | // UnmarshalDiscardBody is a request handler to empty a response's body and closing it. 14 | func UnmarshalDiscardBody(r *request.Request) { 15 | if r.HTTPResponse == nil || r.HTTPResponse.Body == nil { 16 | return 17 | } 18 | 19 | io.Copy(ioutil.Discard, r.HTTPResponse.Body) 20 | r.HTTPResponse.Body.Close() 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/env_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | // Unix environment variables. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getenv(key string) (value string, found bool) { 14 | return syscall.Getenv(key) 15 | } 16 | 17 | func Setenv(key, value string) error { 18 | return syscall.Setenv(key, value) 19 | } 20 | 21 | func Clearenv() { 22 | syscall.Clearenv() 23 | } 24 | 25 | func Environ() []string { 26 | return syscall.Environ() 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/keypairs/urls.go: -------------------------------------------------------------------------------- 1 | package keypairs 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | const resourcePath = "os-keypairs" 6 | 7 | func resourceURL(c *gophercloud.ServiceClient) string { 8 | return c.ServiceURL(resourcePath) 9 | } 10 | 11 | func listURL(c *gophercloud.ServiceClient) string { 12 | return resourceURL(c) 13 | } 14 | 15 | func createURL(c *gophercloud.ServiceClient) string { 16 | return resourceURL(c) 17 | } 18 | 19 | func getURL(c *gophercloud.ServiceClient, name string) string { 20 | return c.ServiceURL(resourcePath, name) 21 | } 22 | 23 | func deleteURL(c *gophercloud.ServiceClient, name string) string { 24 | return getURL(c, name) 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/imageservice/v2/imagedata/results.go: -------------------------------------------------------------------------------- 1 | package imagedata 2 | 3 | import ( 4 | "fmt" 5 | "io" 6 | 7 | "github.com/gophercloud/gophercloud" 8 | ) 9 | 10 | // UploadResult is the result of an upload image operation 11 | type UploadResult struct { 12 | gophercloud.ErrResult 13 | } 14 | 15 | // DownloadResult is the result of a download image operation 16 | type DownloadResult struct { 17 | gophercloud.Result 18 | } 19 | 20 | // Extract builds images model from io.Reader 21 | func (r DownloadResult) Extract() (io.Reader, error) { 22 | if r, ok := r.Body.(io.Reader); ok { 23 | return r, nil 24 | } 25 | return nil, fmt.Errorf("Expected io.Reader but got: %T(%#v)", r.Body, r.Body) 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/objectstorage/v1/containers/urls.go: -------------------------------------------------------------------------------- 1 | package containers 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | func listURL(c *gophercloud.ServiceClient) string { 6 | return c.Endpoint 7 | } 8 | 9 | func createURL(c *gophercloud.ServiceClient, container string) string { 10 | return c.ServiceURL(container) 11 | } 12 | 13 | func getURL(c *gophercloud.ServiceClient, container string) string { 14 | return createURL(c, container) 15 | } 16 | 17 | func deleteURL(c *gophercloud.ServiceClient, container string) string { 18 | return createURL(c, container) 19 | } 20 | 21 | func updateURL(c *gophercloud.ServiceClient, container string) string { 22 | return createURL(c, container) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/servergroups/urls.go: -------------------------------------------------------------------------------- 1 | package servergroups 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | const resourcePath = "os-server-groups" 6 | 7 | func resourceURL(c *gophercloud.ServiceClient) string { 8 | return c.ServiceURL(resourcePath) 9 | } 10 | 11 | func listURL(c *gophercloud.ServiceClient) string { 12 | return resourceURL(c) 13 | } 14 | 15 | func createURL(c *gophercloud.ServiceClient) string { 16 | return resourceURL(c) 17 | } 18 | 19 | func getURL(c *gophercloud.ServiceClient, id string) string { 20 | return c.ServiceURL(resourcePath, id) 21 | } 22 | 23 | func deleteURL(c *gophercloud.ServiceClient, id string) string { 24 | return getURL(c, id) 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/layer3/routers/urls.go: -------------------------------------------------------------------------------- 1 | package routers 2 | 3 | import "github.com/gophercloud/gophercloud" 4 | 5 | const resourcePath = "routers" 6 | 7 | func rootURL(c *gophercloud.ServiceClient) string { 8 | return c.ServiceURL(resourcePath) 9 | } 10 | 11 | func resourceURL(c *gophercloud.ServiceClient, id string) string { 12 | return c.ServiceURL(resourcePath, id) 13 | } 14 | 15 | func addInterfaceURL(c *gophercloud.ServiceClient, id string) string { 16 | return c.ServiceURL(resourcePath, id, "add_router_interface") 17 | } 18 | 19 | func removeInterfaceURL(c *gophercloud.ServiceClient, id string) string { 20 | return c.ServiceURL(resourcePath, id, "remove_router_interface") 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hil/parser/fuzz.go: -------------------------------------------------------------------------------- 1 | // +build gofuzz 2 | 3 | package parser 4 | 5 | import ( 6 | "github.com/hashicorp/hil/ast" 7 | "github.com/hashicorp/hil/scanner" 8 | ) 9 | 10 | // This is a fuzz testing function designed to be used with go-fuzz: 11 | // https://github.com/dvyukov/go-fuzz 12 | // 13 | // It's not included in a normal build due to the gofuzz build tag above. 14 | // 15 | // There are some input files that you can use as a seed corpus for go-fuzz 16 | // in the directory ./fuzz-corpus . 17 | 18 | func Fuzz(data []byte) int { 19 | str := string(data) 20 | 21 | ch := scanner.Scan(str, ast.Pos{Line: 1, Column: 1}) 22 | _, err := Parse(ch) 23 | if err != nil { 24 | return 0 25 | } 26 | 27 | return 1 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/transform_config_old.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/hashicorp/terraform/config" 7 | ) 8 | 9 | // varNameForVar returns the VarName value for an interpolated variable. 10 | // This value is compared to the VarName() value for the nodes within the 11 | // graph to build the graph edges. 12 | func varNameForVar(raw config.InterpolatedVariable) string { 13 | switch v := raw.(type) { 14 | case *config.ModuleVariable: 15 | return fmt.Sprintf("module.%s.output.%s", v.Name, v.Field) 16 | case *config.ResourceVariable: 17 | return v.ResourceId() 18 | case *config.UserVariable: 19 | return fmt.Sprintf("var.%s", v.Name) 20 | default: 21 | return "" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/transform_transitive_reduction.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // TransitiveReductionTransformer is a GraphTransformer that performs 4 | // finds the transitive reduction of the graph. For a definition of 5 | // transitive reduction, see Wikipedia. 6 | type TransitiveReductionTransformer struct{} 7 | 8 | func (t *TransitiveReductionTransformer) Transform(g *Graph) error { 9 | // If the graph isn't valid, skip the transitive reduction. 10 | // We don't error here because Terraform itself handles graph 11 | // validation in a better way, or we assume it does. 12 | if err := g.Validate(); err != nil { 13 | return nil 14 | } 15 | 16 | // Do it 17 | g.TransitiveReduction() 18 | 19 | return nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + uitoa(uint(-val)) 12 | } 13 | return uitoa(uint(val)) 14 | } 15 | 16 | func uitoa(val uint) string { 17 | var buf [32]byte // big enough for int64 18 | i := len(buf) - 1 19 | for val >= 10 { 20 | buf[i] = byte(val%10 + '0') 21 | i-- 22 | val /= 10 23 | } 24 | buf[i] = byte(val + '0') 25 | return string(buf[i:]) 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/terminal_notwindows.go: -------------------------------------------------------------------------------- 1 | // Based on ssh/terminal: 2 | // Copyright 2011 The Go Authors. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | // +build linux darwin freebsd openbsd netbsd dragonfly 7 | 8 | package logrus 9 | 10 | import ( 11 | "syscall" 12 | "unsafe" 13 | ) 14 | 15 | // IsTerminal returns true if stderr's file descriptor is a terminal. 16 | func IsTerminal() bool { 17 | fd := syscall.Stderr 18 | var termios Termios 19 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, uintptr(fd), ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 20 | return err == 0 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/lstat_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package system 4 | 5 | import ( 6 | "os" 7 | ) 8 | 9 | // Lstat calls os.Lstat to get a fileinfo interface back. 10 | // This is then copied into our own locally defined structure. 11 | // Note the Linux version uses fromStatT to do the copy back, 12 | // but that not strictly necessary when already in an OS specific module. 13 | func Lstat(path string) (*StatT, error) { 14 | fi, err := os.Lstat(path) 15 | if err != nil { 16 | return nil, err 17 | } 18 | 19 | return &StatT{ 20 | name: fi.Name(), 21 | size: fi.Size(), 22 | mode: fi.Mode(), 23 | modTime: fi.ModTime(), 24 | isDir: fi.IsDir()}, nil 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/opencontainers/runc/libcontainer/user/lookup_unix.go: -------------------------------------------------------------------------------- 1 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 2 | 3 | package user 4 | 5 | import ( 6 | "io" 7 | "os" 8 | ) 9 | 10 | // Unix-specific path to the passwd and group formatted files. 11 | const ( 12 | unixPasswdPath = "/etc/passwd" 13 | unixGroupPath = "/etc/group" 14 | ) 15 | 16 | func GetPasswdPath() (string, error) { 17 | return unixPasswdPath, nil 18 | } 19 | 20 | func GetPasswd() (io.ReadCloser, error) { 21 | return os.Open(unixPasswdPath) 22 | } 23 | 24 | func GetGroupPath() (string, error) { 25 | return unixGroupPath, nil 26 | } 27 | 28 | func GetGroup() (io.ReadCloser, error) { 29 | return os.Open(unixGroupPath) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/asm_linux_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build arm64 7 | // +build !gccgo 8 | 9 | #include "textflag.h" 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-56 15 | B syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 18 | B syscall·Syscall6(SB) 19 | 20 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 21 | B syscall·RawSyscall(SB) 22 | 23 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 24 | B syscall·RawSyscall6(SB) 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/eval_count_computed.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/hashicorp/terraform/config" 7 | ) 8 | 9 | // EvalCountCheckComputed is an EvalNode that checks if a resource count 10 | // is computed and errors if so. This can possibly happen across a 11 | // module boundary and we don't yet support this. 12 | type EvalCountCheckComputed struct { 13 | Resource *config.Resource 14 | } 15 | 16 | // TODO: test 17 | func (n *EvalCountCheckComputed) Eval(ctx EvalContext) (interface{}, error) { 18 | if n.Resource.RawCount.Value() == unknownValue() { 19 | return nil, fmt.Errorf( 20 | "%s: value of 'count' cannot be computed", 21 | n.Resource.Id()) 22 | } 23 | 24 | return nil, nil 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform/terraform/ui_input_mock.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // MockUIInput is an implementation of UIInput that can be used for tests. 4 | type MockUIInput struct { 5 | InputCalled bool 6 | InputOpts *InputOpts 7 | InputReturnMap map[string]string 8 | InputReturnString string 9 | InputReturnError error 10 | InputFn func(*InputOpts) (string, error) 11 | } 12 | 13 | func (i *MockUIInput) Input(opts *InputOpts) (string, error) { 14 | i.InputCalled = true 15 | i.InputOpts = opts 16 | if i.InputFn != nil { 17 | return i.InputFn(opts) 18 | } 19 | if i.InputReturnMap != nil { 20 | return i.InputReturnMap[opts.Id], i.InputReturnError 21 | } 22 | return i.InputReturnString, i.InputReturnError 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/system/utimes_freebsd.go: -------------------------------------------------------------------------------- 1 | package system 2 | 3 | import ( 4 | "syscall" 5 | "unsafe" 6 | ) 7 | 8 | // LUtimesNano is used to change access and modification time of the specified path. 9 | // It's used for symbol link file because syscall.UtimesNano doesn't support a NOFOLLOW flag atm. 10 | func LUtimesNano(path string, ts []syscall.Timespec) error { 11 | var _path *byte 12 | _path, err := syscall.BytePtrFromString(path) 13 | if err != nil { 14 | return err 15 | } 16 | 17 | if _, _, err := syscall.Syscall(syscall.SYS_LUTIMES, uintptr(unsafe.Pointer(_path)), uintptr(unsafe.Pointer(&ts[0])), 0); err != 0 && err != syscall.ENOSYS { 18 | return err 19 | } 20 | 21 | return nil 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/node.go: -------------------------------------------------------------------------------- 1 | package hclsyntax 2 | 3 | import ( 4 | "github.com/hashicorp/hcl2/hcl" 5 | ) 6 | 7 | // Node is the abstract type that every AST node implements. 8 | // 9 | // This is a closed interface, so it cannot be implemented from outside of 10 | // this package. 11 | type Node interface { 12 | // This is the mechanism by which the public-facing walk functions 13 | // are implemented. Implementations should call the given function 14 | // for each child node and then replace that node with its return value. 15 | // The return value might just be the same node, for non-transforming 16 | // walks. 17 | walkChildNodes(w internalWalkFunc) 18 | 19 | Range() hcl.Range 20 | } 21 | 22 | type internalWalkFunc func(Node) Node 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,race linux,race freebsd,race 6 | 7 | package unix 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/coreos/etcd/pkg/tlsutil/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The etcd Authors 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | // Package tlsutil provides utility functions for handling TLS. 16 | package tlsutil 17 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/external/github.com/Sirupsen/logrus/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package logrus is a structured logger for Go, completely API compatible with the standard library logger. 3 | 4 | 5 | The simplest way to use Logrus is simply the package-level exported logger: 6 | 7 | package main 8 | 9 | import ( 10 | log "github.com/Sirupsen/logrus" 11 | ) 12 | 13 | func main() { 14 | log.WithFields(log.Fields{ 15 | "animal": "walrus", 16 | "number": 1, 17 | "size": 10, 18 | }).Info("A walrus appears") 19 | } 20 | 21 | Output: 22 | time="2015-09-07T08:48:33Z" level=info msg="A walrus appears" animal=walrus number=1 size=10 23 | 24 | For a full guide visit https://github.com/Sirupsen/logrus 25 | */ 26 | package logrus 27 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/testing/data/Dockerfile: -------------------------------------------------------------------------------- 1 | # this file describes how to build tsuru python image 2 | # to run it: 3 | # 1- install docker 4 | # 2- run: $ docker build -t tsuru/python https://raw.github.com/tsuru/basebuilder/master/python/Dockerfile 5 | 6 | from base:ubuntu-quantal 7 | run apt-get install wget -y --force-yes 8 | run wget http://github.com/tsuru/basebuilder/tarball/master -O basebuilder.tar.gz --no-check-certificate 9 | run mkdir /var/lib/tsuru 10 | run tar -xvf basebuilder.tar.gz -C /var/lib/tsuru --strip 1 11 | run cp /var/lib/tsuru/python/deploy /var/lib/tsuru 12 | run cp /var/lib/tsuru/base/restart /var/lib/tsuru 13 | run cp /var/lib/tsuru/base/start /var/lib/tsuru 14 | run /var/lib/tsuru/base/install 15 | run /var/lib/tsuru/base/setup 16 | --------------------------------------------------------------------------------