_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c180600
// Returns time in RightScale API supported format
c180601
// Prints the audit entries to console
c180602
// Extract unique audit entries from the newly received list by comparing the href of audit entries // in the old list.
c180603
// Get the href of an audit entry from the Links attribute by inspecting the self link
c180604
// Print error message and exit with code 1
c180605
// Serialize action parameters
c180606
// Produces code that initializes a APIParams struct with the values of parameters for the given // action and location.
c180607
// Command line used to run tool
c180608
// GET => Get
c180609
// Escape ` in string to be wrapped in them
c180610
// AccountPreferenceLocator builds a locator from the given href.
c180611
// ApplicationLocator builds a locator from the given href.
c180612
// EndUserLocator builds a locator from the given href.
c180613
// NotificationRuleLocator builds a locator from the given href.
c180614
// UserPreferenceLocator builds a locator from the given href.
c180615
// UserPreferenceInfoLocator builds a locator from the given href.
c180616
// LoadConfig loads the client configuration from disk
c180617
// CreateConfig creates a configuration file and saves it to the file at the given path.
c180618
// Wrap generic client into API 1.0 client
c180619
// HostFromLogin returns the policy endpoint from its login endpoint. // The following isn't great but seems better than having to enter by hand.
c180620
// AnalyzeParam analyzes input parameters to methods
c180621
// AnalyzeAttribute analyzes an attribute creating a corresponding ActionParam.
c180622
// AnalyzeType analyzes a type given its JSON definition.
c180623
// CreateType is a helper method that creates or retrieve a object data type given its attributes.
c180624
// Ref gets a definition for a Schema reference, if it exists
c180625
// Type gets a type for a Schema reference, if it exists
c180626
// Required gets a type for a Schema reference, if it exists
c180627
// ID of the reference
c180628
// Service returns the goa.v2 service
c180629
// Methods returns the goa.v2 method
c180630
// NewTypeRegistry creates a type registry.
c180631
// GetNamedType retrieves a type given its name.
c180632
// CreateNamedType returns a new type given a name, the name must be unique.
c180633
// CreateInlineType creates a new inline type.
c180634
// FinalizeTypeNames makes sure type names are unique, it should be called after analysis // has completed.
c180635
// Merge two descriptors together, make sure there are no duplicate resource names and that // common types are compatible.
c180636
// FinalizeTypeNames goes through all the types generated by the analyzer and generate unique names.
c180637
// Build unique type name by appending "next available index" to given prefix
c180638
// MandatoryParams returns the list of all action mandatory parameters
c180639
// HasOptionalParams returns true if the action takes optional parameters, false otherwise.
c180640
// MakeUniq makes a unique name given a prefix and a set of names.
c180641
// NewClientWriter is the client writer factory.
c180642
// WriteHeader writes the header text.
c180643
// WriteResourceHeader writes the resource header.
c180644
// WriteType writest the type declaration for a resource action arguments.
c180645
// WriteResource writest the code for a resource.
c180646
// WithTrail creates a new context with trail appended to
c180647
// AnalyzeEndpoint creates an API descriptor from goa v2 generated swagger definition
c180648
// NetworkInterfaceLocator builds a locator from the given href.
c180649
// NetworkInterfaceAttachmentLocator builds a locator from the given href.
c180650
// UnmarshalJSON implements the unmarshaller interface.
c180651
// ExecutionLocator builds a locator from the given href.
c180652
// NotificationLocator builds a locator from the given href.
c180653
// OperationLocator builds a locator from the given href.
c180654
// ScheduledActionLocator builds a locator from the given href.
c180655
// NewBasicAuthenticator returns a authenticator that uses email and password to create sessions. // The returned authenticator takes care of refreshing the RightScale session as needed.
c180656
// NewSSAuthenticator returns an authenticator that wraps another one and adds the logic needed to // create sessions in Self-Service.
c180657
// newCookieSigner returns a cookie signer that uses the given builder to build login requests.
c180658
// Sign adds the username and password authorization cookies to the request. // Checks the freshness of the session and creates a new one if needed.
c180659
// CanAuthenticate makes a test request to CM 1.5 and returns true if it is successful.
c180660
// refresh updates the cookie and expiration used to sign requests from a successful session // creation API response.
c180661
// Sign sets the OAuth authorization header
c180662
// RL10 authenticator uses special header
c180663
// Self-Service authenticator first creates a global session with the core then creates a local // session with self-service.
c180664
// SetHost sets the host used to create Self-Service session. // Pass in the CM 1.5 host, this method computes the Self-Service host from it.
c180665
// CanAuthenticate makes a test request to SS and returns true if it is successful.
c180666
// extractRedirectURL is a helper function that extracts the Location header from a redirect // response. It returns nil if the header is missing, an error if it's malformed.
c180667
// Compute API URL given a scheme, hostname and a path
c180668
// GetAction returns the action with the given name, returns nil if none is found.
c180669
// HasLink returns whether the resource has a link with the given name.
c180670
// Find paths that match given href
c180671
// NewPB returns an HTTP client using only the parameter block and ignoring // the current values of the package variables, which are not go-routine safe.
c180672
// newVariableDumpClient defines accessors for package variables, which are not // go-routine safe so can theoretically change value while the client is in use. // this emulates the legacy behavior.
c180673
// newRawClient creates an http package Client taking into account both the parameters and package // variables.
c180674
// DoHidden is equivalent to Do with the exception that nothing gets logged unless DumpFormat is // set to Verbose.
c180675
// Do dumps the request, makes the request and dumps the response as specified by DumpFormat.
c180676
// doImp actually performs the HTTP request logging according to the various settings.
c180677
// getClientWithoutTimeout returns a modified client that doesn't have the ResponseHeaderTimeout field set // in its Transport.
c180678
// Dump request if needed. // Return request serialized as JSON if DumpFormat is JSON, nil otherwise.
c180679
// writeHeaders is a helper function that writes the given HTTP headers to the given buffer as // human readable strings. If DumpFormat is not Verbose then writeHeaders filters out headers whose // names are keys of HiddenHeaders.
c180680
// copyHiddenHeaders copies the given map
c180681
// Make sure all the required information is there
c180682
// APIClient instantiates a client with the given name from command line arguments.
c180683
// RegisterClientCommands registers all API client commands.
c180684
// Interactive configures the logger to log messages of level Info or higher to Stdout and messages // of level Error or lesser to Stderr.
c180685
// Create path pattern from HTTP verb and request path
c180686
// WithClientIP returns a context which carries the given client IP.
c180687
// ClientIP returns the client IP embedded in the context, or nil if none were // found.
c180688
// NewProducer configures a new producer instance.
c180689
// StartProducer starts and returns a new producer p, configured with the // variables from the config parameter, or returning an non-nil error if // some of the configuration variables were invalid.
c180690
// Start explicitly begins the producer in case it was initialized with // NewProducer instead of StartProducer.
c180691
// Stop gracefully shutsdown the producer, cancelling all inflight requests and // waiting for all backend connections to be closed. // // It is safe to call the method multiple times and from multiple goroutines, // they will all block until the producer has been completely shutdown.
c180692
// Publish sends a message using the producer p, returning an error if it was // already closed or if an error occurred while publishing the message. // // Note that no retry is done internally, the producer will fail after the // first unsuccessful attempt to publish the message. It is the responsibility // of the cal...
c180693
// PublishTo sends a message to a specific topic using the producer p, returning // an error if it was already closed or if an error occurred while publishing the // message. // // Note that no retry is done internally, the producer will fail after the // first unsuccessful attempt to publish the message. It is the res...
c180694
// NewLocalEngine creates and returns an instance of LocalEngine configured with // config.
c180695
// validate ensures that this configuration is well-formed.
c180696
// defaults will set up this configuration with the global defaults where they // were not already set.
c180697
// NewConsumer configures a new consumer instance.
c180698
// StartConsumer creates and starts consuming from NSQ right away. This is the // fastest way to get up and running.
c180699
// Start explicitly begins consumption in case the consumer was initialized // with NewConsumer instead of StartConsumer.