Additional third party packages
package "github.com/go-asn1-ber/asn1-ber"
v1.x.x
To learn more about the LDAP package, please reference the library’s documentation.
type Packet
type Packet struct {
}
Packet
represents a unit of data for transportation.
func Encode
func Encode(classType Class, tagType Type, tag Tag, value interface{}, description string) *Packet
Encode
data into a specific format for transportation.
func NewString
func NewString(classType Class, tagType Type, tag Tag, value, description string) *Packet
func NewBoolean
func NewBoolean(classType Class, tagType Type, tag Tag, value bool, description string) *Packet
func NewInteger
func NewInteger(classType Class, tagType Type, tag Tag, value interface{}, description string) *Packet
const ClassUniversal
const ClassUniversal Class = 0
const TagBoolean
const TagBoolean Tag = 0x01
const TagInteger
const TagInteger Tag = 0x02
const TagOctetString
const TagOctetString Tag = 0x04
const TagSequence
const TagSequence Tag = 0x10
const TypeConstructed
const TypeConstructed Type = 32
const TypePrimitive
const TypePrimitive Type = 0
package "github.com/go-ldap/ldap/v3"
v3.x.x
To learn more about the LDAP package, please reference the library’s documentation.
type Client
type Client interface {
}
Client
knows how to interact with an LDAP server
type Conn
type Conn struct {
// contains filtered or unexported fields
}
Conn
represents an LDAP Connection.
type Control
type Control interface {
}
Control
defines an interface controls provide to encode and describe themselves
func DialURL
DialURL(addr string, opts ...DialOpt) (*Conn, error)
DialURL
when successful returns a connection to the given LDAP address.
The following schemes are supported: ldap://
,ldaps://
, ldapi://
.
DialOpt
configures the DialContext.
After a successful Conn
is established, any of the connections methods
can be used.
func DialWithTLSConfig
DialWithTLSConfig(tc *tls.Config)
DialWithTLSConfig
is a DialOpt
that updates tls.Config in DialContext. This
allows dialing via TLS directly instead of having to upgrade the tcp connection to
TLS via conn.StartTLS
.
func NewModifyRequest
func NewModifyRequest(dn string, controls []Control) *ModifyRequest
NewModifyRequest
creates a modify request for the given DN
func NewPasswordModifyRequest
func NewPasswordModifyRequest(
userIdentity string,
oldPassword string,
newPassword string,
) *PasswordModifyRequest
NewPasswordModifyRequest
creates a new password modify request.
func NewSearchRequest
func NewSearchRequest(
BaseDN string,
Scope, DerefAliases, SizeLimit, TimeLimit int,
TypesOnly bool,
Filter string,
Attributes []string,
Controls []Control,
) *SearchRequest
NewSearchRequest
creates a new search request.
SearchRequest
options
scope choices:
const (
ScopeBaseObject = 0
ScopeSingleLevel = 1
ScopeWholeSubtree = 2
)
derefAliases:
const (
NeverDerefAliases = 0
DerefInSearching = 1
DerefFindingBaseObj = 2
DerefAlways = 3
)
package "github.com/go-jose/go-jose/v3"
v3.x.x
To learn more about the go-jose package, please reference the library’s documentation.
const A256CBC_HS512
const A256CBC_HS512 = ContentEncryption("A256CBC-HS512") // AES-CBC + HMAC-SHA512 (256)
const RS256
const RS256 = SignatureAlgorithm("RS256") // RSASSA-PKCS-v1.5 using SHA-256
const RSA_OAEP_256
const RSA_OAEP_256 = KeyAlgorithm("RSA-OAEP-256") // RSA-OAEP-SHA256
type ContentType
type ContentType string
ContentType represents type of the contained data.
type EncrypterOptions
type EncrypterOptions struct {
}
EncrypterOptions represents options that can be set on new encrypters.
type JSONWebKeySet
type JSONWebKeySet struct {
}
JSONWebKeySet represents a JWK Set object.
type JSONWebKey
type JSONWebKey struct {
}
JSONWebKey represents a public or private key in JWK format.
type Recipient
type Recipient struct {
}
Recipient represents an algorithm/ key to encrypt messages to.
type SignerOptions
type SignerOptions struct {
}
SignerOptions represents options that can be set when creating signers.
type SigningKey
type SigningKey struct {
}
SigningKey represents an algorithm/key used to sign a message.
func NewEncrypter
func NewEncrypter(enc ContentEncryption, rcpt Recipient, opts *EncrypterOptions) (Encrypter, error)
NewEncrypter creates an appropriate encrypter based on the key type.
func NewSigner
func NewSigner(sig SigningKey, opts *SignerOptions) (Signer, error)
NewSigner creates an appropriate signer based on the key type.
package "github.com/go-jose/go-jose/v3/jwt"
v3.x.x
For more info on the JWT package, please see the library’s documentation.
type Builder
type Builder interface {
}
Builder is a utility for making JSON Web Tokens. Calls can be chained, and errors are accumulated until the final call to CompactSerialize/FullSerialize.
type Claims
type Claims struct {
}
Claims represents public claim values (as specified in RFC 7519).
type Encrypted
import "github.com/go-jose/go-jose/v3/jwt"
func Encrypted(enc jose.Encrypter) Builder
Encrypted creates a Builder for encrypted tokens.
func ParseEncrypted
import "github.com/go-jose/go-jose/v3/jwt"
func ParseEncrypted(s string) (*JSONWebToken, error)
ParseEncrypted parses token from JSON Web Encryption (JWE) form.
func NewNumericDate
func NewNumericDate(t time.Time) *NumericDate
NewNumericDate constructs NumericDate from time.Time value.
func ParseSigned
import "github.com/go-jose/go-jose/v3/jwt"
func ParseSigned(s string) (*JSONWebToken, error)
ParseSigned parses a signed JSON Web Token (JWT).
func ParseSignedAndEncrypted
import "github.com/go-jose/go-jose/v3/jwt"
func ParseSignedAndEncrypted(s string) (*NestedJSONWebToken, error)
ParseSignedAndEncrypted parses a signed then encrypted JSON Web Token (JWT).
func Signed
func Signed(sig jose.Signer) Builder
Signed creates builder for signed tokens.
package "github.com/aws/aws-sdk-go-v2/config"
v1.18.12
func WithRegion
import "github.com/aws/aws-sdk-go-v2/config"
func WithRegion(v string) LoadOptionsFunc
WithRegion is a helper function to construct functional options that sets Region on config’s LoadOptions. Setting the region to an empty string will result in the region value being ignored. If multiple WithRegion calls are made, the last call overrides the previous call values.
func LoadDefaultConfig
import "github.com/aws/aws-sdk-go-v2/config"
func LoadDefaultConfig(ctx context.Context, optFns ...func(*LoadOptions) error) (cfg aws.Config, err error)
LoadDefaultConfig reads the SDK’s default external configurations and populates an AWS Config with the values from the external configurations.
package "github.com/aws/aws-sdk-go-v2/service/verifiedpermissions"
v1.10.0
type IsAuthorizedInput
type IsAuthorizedInput struct {
}
type IsAuthorizedOutput
type IsAuthorizedOutput struct {
}
func NewFromConfig
import "github.com/aws/aws-sdk-go-v2/service/verifiedpermissions"
func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client
NewFromConfig returns a new client from the provided config.
package "github.com/aws/aws-sdk-go-v2/service/verifiedpermissions/types"
v1.10.0
type EntityIdentifier
type EntityIdentifier struct {
}
Contains the identifier of an entity, including its ID and type. This data type is used as a request parameter for IsAuthorized (https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_IsAuthorized.html) operation, and as a response parameter for the CreatePolicy (https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreatePolicy.html) , GetPolicy (https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_GetPolicy.html) , and UpdatePolicy (https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_UpdatePolicy.html) operations. Example: {“entityId”:“string”,“entityType”:“string”}
type ActionIdentifier
type ActionIdentifier struct {
}
Contains information about an action for a request for which an authorization
decision is made. This data type is used as a request parameter to the
IsAuthorized (https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_IsAuthorized.html)
, BatchIsAuthorized (https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_BatchIsAuthorized.html)
, and IsAuthorizedWithToken (https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_IsAuthorizedWithToken.html)
operations. Example: { “actionId”: “
package "golang.org/x/net/html"
v0.22.0
To learn more about the HTML package, please reference the library’s documentation.
func Parse
func Parse(r io.Reader) (*Node, error)
Parse
returns the parse tree for the HTML from the given Reader.
It implements the HTML5 parsing algorithm
(https://html.spec.whatwg.org/multipage/syntax.html#tree-construction), which is
very complicated. The resultant tree can contain implicitly created nodes that have
no explicit
The input is assumed to be UTF-8 encoded.
type Node
type Node struct {
Parent, FirstChild, LastChild, PrevSibling, NextSibling *Node
Type NodeType
DataAtom atom.Atom
Data string
Namespace string
Attr []Attribute
}
Node
consists of a NodeType and some Data (tag name for element nodes, content for
text) and are part of a tree of Nodes. Element nodes may also have a Namespace and
contain a slice of Attributes. Data is unescaped, so that it looks like
“a<b” rather than “a<b”. For element nodes, DataAtom is the atom for Data, or zero
if Data is not a known tag name.
An empty Namespace implies a “http://www.w3.org/1999/xhtml" namespace. Similarly, “math” is short for “http://www.w3.org/1998/Math/MathML", and “svg” is short for “http://www.w3.org/2000/svg".
type NodeType
const (
...
ElementNode NodeType = 3
)
NodeType
defines the type of Node
.