This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package linkedlist | |
import "errors" | |
type Element struct { | |
Val interface{} | |
} | |
type List struct{} | |
var ErrEmptyList = errors.New("empty list") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bosh -e bosh tasks --json | jq .Tables[].Rows[].id -Mr | xargs -n 1 bosh -e bosh cancel-task |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
D, [2018-08-09T08:21:07.424094 #2566] [task:95] DEBUG -- DirectorJobRunner: (0.000224s) (conn: 47181971028360) SELECT * FROM "release_versions" WHERE (("release_versions"."release_id" = 12) AND ("version" = '195')) LIMIT 1 | |
D, [2018-08-09T08:21:07.426649 #2566] [task:95] DEBUG -- DirectorJobRunner: (0.001116s) (conn: 47181971028360) SELECT "templates".* FROM "templates" INNER JOIN "release_versions_templates" ON ("release_versions_templates"."template_id" = "templates"."id") WHERE ("release_versions_templates"."release_version_id" = 12) | |
D, [2018-08-09T08:21:07.430141 #2566] [task:95] DEBUG -- DirectorJobRunner: (0.000407s) (conn: 47181971028360) SELECT * FROM "link_providers" WHERE (("link_providers"."deployment_id" = 4) AND ("instance_group" = 'consul') AND ("name" = 'consul_agent') AND ("type" = 'job')) LIMIT 1 | |
D, [2018-08-09T08:21:07.431029 #2566] [task:95] DEBUG -- DirectorJobRunner: (0.000151s) (conn: 47181971028360) BEGIN | |
D, [2018-08-09T08:21:07.431895 #2566] [task:95] DEBUG -- DirectorJobRunner: (0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Bosh::OpenStackCloud | |
class CpiLambda | |
CONTEXT_CA_PATH = '/var/vcap/jobs/openstack_cpi/config/cacert_context.pem' | |
def self.create(cpi_config, cpi_log, ca_cert_from_config, ca_cert_from_context=CONTEXT_CA_PATH) | |
lambda do |context| | |
unless cpi_config.has_key?('cloud') && cpi_config['cloud'].has_key?('properties') | |
raise "Could not find cloud properties in the configuration" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
json = JSON.load(ARGF.read) | |
cpi_lambda = lambda do | |
unless cpi_config.has_key?('cloud') && cpi_config['cloud'].has_key?('properties') | |
raise "Could not find cloud properties in the configuration" | |
end | |
cloud_properties = cpi_config['cloud']['properties'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "cli" | |
require "cli/release" | |
require "cli/blob_manager" | |
require "blobstore_client" | |
require "cli/versions/versions_index" | |
require 'optparse' |