_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c16800
// UnmarshalJSON implements the Unmarshaller interface // as defined by the standard JSON package.
c16801
// get issues a GET request
c16802
// put issues a PUT request
c16803
// buildValues builds a url.Values map according to the given value and ttl
c16804
// Encode to Latin1.
c16805
// Decode from Latin1.
c16806
// New parses the given binary data and returns a Data object, // or nil if the field Name is unknown.
c16807
// f is only set on transceiver.
c16808
// newUnsucessDest returns a new UnsucessDest constructed from a UnSme struct
c16809
// Resp returns the response PDU, or nil if not set.
c16810
// Submit sends a short message and returns and updates the given // sm with the response status. It returns the same sm object.
c16811
// DecodeTLV scans the given byte slice to build a Map from binary data.
c16812
// Bind starts the Receiver. It creates a persistent connection // to the server, update its status via the returned channel, // and calls the registered Handler when new PDU arrives. // // Bind implements the ClientConn interface.
c16813
// DecodeHeader decodes binary PDU header data.
c16814
// SerializeTo serializes the Header to its binary form to the given writer.
c16815
// NewGenericNACK creates and initializes a GenericNACK PDU.
c16816
// NewBindReceiver creates a new Bind PDU.
c16817
// NewBindTransceiver creates a new Bind PDU.
c16818
// NewBindTransmitter creates a new Bind PDU.
c16819
// NewBindReceiverResp creates and initializes a new BindResp PDU.
c16820
// NewBindTransceiverResp creates and initializes a new BindResp PDU.
c16821
// NewBindTransmitterResp creates and initializes a new BindResp PDU.
c16822
// NewQuerySM creates and initializes a new QuerySM PDU.
c16823
// NewQuerySMResp creates and initializes a new QuerySMResp PDU.
c16824
// NewSubmitSM creates and initializes a new SubmitSM PDU.
c16825
// NewSubmitSMResp creates and initializes a new SubmitSMResp PDU.
c16826
// NewSubmitMulti creates and initializes a new SubmitMulti PDU.
c16827
// NewSubmitMultiResp creates and initializes a new SubmitMultiResp PDU.
c16828
// NewDeliverSM creates and initializes a new DeliverSM PDU.
c16829
// NewDeliverSMResp creates and initializes a new DeliverSMResp PDU.
c16830
// NewDeliverSMRespSeq creates and initializes a new DeliverSMResp PDU for a specific seq.
c16831
// NewUnbind creates and initializes a Unbind PDU.
c16832
// NewUnbindResp creates and initializes a UnbindResp PDU.
c16833
// NewEnquireLink creates and initializes a EnquireLink PDU.
c16834
// NewEnquireLinkResp creates and initializes a EnquireLinkResp PDU.
c16835
// NewEnquireLinkRespSeq creates and initializes a EnquireLinkResp PDU for a specific seq.
c16836
// NewTLV parses the given binary data and returns a Data object, // or nil if the field Name is unknown.
c16837
// Dial dials to the SMPP server and returns a Conn, or error. // TLS is only used if provided.
c16838
// Set sets the underlying Conn with the given one. // If we hold a Conn already, it will be closed before switching over.
c16839
// Close implements the Conn interface.
c16840
// Bind implements the ClientConn interface.
c16841
// init initializes the codec's list and maps and sets the header // sequence number.
c16842
// setup replaces the codec's current maps with the given ones.
c16843
// Len implements the PDU interface.
c16844
// SerializeTo implements the PDU interface.
c16845
// Encode to ISO88595.
c16846
// Decode from ISO88595.
c16847
// Hex returns hexadecimal representation of tag
c16848
// Encode to UCS2.
c16849
// Decode from UCS2.
c16850
// Returns the characters, in the given text, that can not be represented in GSM 7-bit encoding.
c16851
// Returns the bytes, in the given buffer, that are outside of the GSM 7-bit encoding range.
c16852
// Bind starts the connection manager and blocks until Close is called. // It must be called in a goroutine.
c16853
// Read reads PDU binary data off the wire and returns it.
c16854
// Write serializes the given PDU and writes to the connection.
c16855
// Close terminates the current connection and stop any further attempts.
c16856
// trysleep for the given duration, or return if Close is called.
c16857
// respTimeout returns a channel that fires based on the configured // response timeout, or the default 1s.
c16858
// bind attempts to bind the connection.
c16859
// Encode a Go struct into protocol buffer format. // The caller must pass a pointer to the struct to encode.
c16860
// GenerateProtobufDefinition generates a .proto file from a list of structs via reflection. // fieldNamer is a function that maps ProtoField types to generated protobuf field names.
c16861
// String returns an easy way to visualize what you have in your constructors.
c16862
// DecodeWithConstructors is like Decode, but you can pass a map of // constructors with which to instantiate interface types.
c16863
// Decode a Protocol Buffers message into a Go struct. // The Kind of the passed value v must be Struct.
c16864
// Pull a value from the buffer and put it into a reflective Value.
c16865
// Instantiate an arbitrary type, handling dynamic interface types. // Returns a Ptr value.
c16866
// Handle decoding of slices
c16867
// register gets the type tag and map it to the generator function
c16868
// get returns the generator associated with the tag
c16869
// WriteFile writes given endecoded file to the filesystem
c16870
// Add the provide SSH public key to the core user's list of // authorized keys
c16871
// Error adds an error entry to the report.
c16872
// Warning adds a warning entry to the report.
c16873
// Info adds an info entry to the report.
c16874
// String returns a human-readable representation of the entry.
c16875
// MarshalJSON satisfies the json.Marshaler interface, returning the entry // encoded as a JSON object.
c16876
// PlaceUnit writes a unit file at its desired destination, creating parent // directories as necessary.
c16877
// PlaceUnitDropIn writes a unit drop-in file at its desired destination, // creating parent directories as necessary.
c16878
// Child attempts to find the child with the given name in the node's list of // children. If no such child is found, an invalid node is returned.
c16879
// HumanType returns the human-consumable string representation of the type of // the node.
c16880
// NewNode returns the node representation of the given value. The context // will be used in an attempt to determine line numbers for the given value.
c16881
// findKey attempts to find the requested key within the provided context. // A modified copy of the context is returned with every line up to the key // incremented past. A boolean, true if the key was found, is also returned.
c16882
// WriteEnvFile updates an existing env `KEY=value` formated file with // new values provided in EnvFile.Vars; File.Content is ignored. // Existing ordering and any unknown formatting such as comments are // preserved. If no changes are required the file is untouched.
c16883
// keys returns the keys of a map in sorted order
c16884
// Units generates a Unit file drop-in for fleet, if any fleet options were // configured in cloud-config
c16885
// serviceContents generates the contents for a drop-in unit given the config. // The argument must be a struct from the 'config' package.
c16886
// Units creates a Unit file drop-in for etcd, using any configured options.
c16887
// GetRetry fetches a given URL with support for exponential backoff and maximum retries
c16888
// Apply goes through the map of substitutions and replaces all instances of // the keys with their respective values. It supports escaping substitutions // with a leading '\'.
c16889
// checkDiscoveryUrl verifies that the string is a valid url.
c16890
// checkEncoding validates that, for each file under 'write_files', the // content can be decoded given the specified encoding.
c16891
// checkStructure compares the provided config to the empty config.CloudConfig // structure. Each node is checked to make sure that it exists in the known // structure and that its type is compatible.
c16892
// isCompatible determines if the type of kind n can be converted to the type // of kind g in the context of YAML. This is not an exhaustive list, but its // enough for the purposes of cloud-config validation.
c16893
// getDatasources creates a slice of possible Datasources for cloudinit based // on the different source command-line flags.
c16894
// selectDatasource attempts to choose a valid Datasource to use based on its // current availability. The first Datasource to report to be available is // returned. Datasources will be retried if possible if they are not // immediately available. If all Datasources are permanently unavailable or // datasourceTimeout i...
c16895
// Decode decodes the content of cloud config. Currently only WriteFiles section // supports several types of encoding and all of them are supported. After // decode operation, Encoding type is unset.
c16896
// AssertStructValid checks the fields in the structure and makes sure that // they contain valid values as specified by the 'valid' flag. Empty fields are // implicitly valid.
c16897
// AssertValid checks to make sure that the given value is in the list of // valid values. Zero values are implicitly valid.
c16898
// Validate runs a series of validation tests against the given userdata and // returns a report detailing all of the issues. Presently, only cloud-configs // can be validated.
c16899
// validateCloudConfig runs all of the validation rules in Rules and returns // the resulting report and any errors encountered.