jwtpatch

package module
v0.0.0-...-db8f46d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(b bool) *bool

func ClaimTypePtr

func ClaimTypePtr(c jwt.ClaimType) *jwt.ClaimType

func DurationPtr

func DurationPtr(d time.Duration) *time.Duration

func ExportTypePtr

func ExportTypePtr(t jwt.ExportType) *jwt.ExportType

func Int64Ptr

func Int64Ptr(i int64) *int64

func IntPtr

func IntPtr(i int) *int

func PatchAccount

func PatchAccount(a *jwt.Account, with *AccountPatches)

func PatchAccountClaims

func PatchAccountClaims(c *jwt.AccountClaims, with *AccountClaimsPatches)

func PatchAccountLimits

func PatchAccountLimits(l *jwt.AccountLimits, with *AccountLimitsPatches)

func PatchCIDRList

func PatchCIDRList(s *jwt.CIDRList, with *CIDRListPatches)

func PatchClaimsData

func PatchClaimsData(c *jwt.ClaimsData, with *ClaimsDataPatches)

func PatchExport

func PatchExport(e *jwt.Export, with *ExportPatches)

func PatchExports

func PatchExports(e *jwt.Exports, with *ExportsPatches)

func PatchGenericFields

func PatchGenericFields(f *jwt.GenericFields, with *GenericFieldsPatches)

func PatchImport

func PatchImport(i *jwt.Import, with *ImportPatches)

func PatchImports

func PatchImports(i *jwt.Imports, with *ImportsPatches)

func PatchJetStreamLimits

func PatchJetStreamLimits(l *jwt.JetStreamLimits, with *JetStreamLimitsPatches)

func PatchLimits

func PatchLimits(l *jwt.Limits, with *LimitsPatches)

func PatchNATSLimits

func PatchNATSLimits(l *jwt.NatsLimits, with *NATSLimitsPatches)

func PatchOperator

func PatchOperator(o *jwt.Operator, with *OperatorPatches)

func PatchOperatorClaims

func PatchOperatorClaims(c *jwt.OperatorClaims, with *OperatorClaimsPatches)

func PatchOperatorLimits

func PatchOperatorLimits(l *jwt.OperatorLimits, with *OperatorLimitsPatches)

func PatchPermission

func PatchPermission(p *jwt.Permission, with *PermissionPatches)

PatchPermission patches a jwt.Permission with PermissionPatches.

func PatchPermissions

func PatchPermissions(p *jwt.Permissions, with *PermissionsPatches)

func PatchRevocationList

func PatchRevocationList(l *jwt.RevocationList, with *RevocationListPatches)

func PatchServiceLatency

func PatchServiceLatency(l *jwt.ServiceLatency, with *ServiceLatencyPatches)

func PatchStringList

func PatchStringList(s *jwt.StringList, with *StringListPatches)

PatchStringList patches a jwt.StringList with StringListPatches.

func PatchTagList

func PatchTagList(s *jwt.TagList, with *TagListPatches)

func PatchTimeRangeList

func PatchTimeRangeList(s *[]jwt.TimeRange, with *TimeRangePatches)

func PatchUser

func PatchUser(u *jwt.User, with *UserPatches)

func PatchUserClaims

func PatchUserClaims(c *jwt.UserClaims, with *UserClaimsPatches)

func PatchUserLimits

func PatchUserLimits(l *jwt.UserLimits, with *UserLimitsPatches)

func ResponseTypePtr

func ResponseTypePtr(t jwt.ExportType) *jwt.ExportType

func StringPtr

func StringPtr(s string) *string

func SubjectPtr

func SubjectPtr(s jwt.Subject) *jwt.Subject

func UintPtr

func UintPtr(u uint) *uint

Types

type AccountClaimsPatches

type AccountClaimsPatches struct {
	ClaimsDataPatches
	AccountPatches
}

type AccountLimitsPatches

type AccountLimitsPatches struct {
	Imports         *int64
	Exports         *int64
	WildcardExports *bool
	Conn            *int64
	LeafNodeConn    *int64
}

type AccountPatches

type AccountPatches struct {
	Imports            ImportsPatches
	Exports            ExportsPatches
	Limits             OperatorLimitsPatches
	SigningKeys        StringListPatches
	Revocations        RevocationListPatches
	DefaultPermissions PermissionsPatches
	GenericFieldsPatches
}

type CIDRListPatches

type CIDRListPatches struct {
	// Clear always happens first
	Clear bool
	// Remove happens second
	Remove jwt.CIDRList
	// Add happens third
	Add jwt.CIDRList
}

type ClaimsDataPatches

type ClaimsDataPatches struct {
	Audience  *string
	Expires   *int64
	ID        *string
	IssuedAt  *int64
	Issuer    *string
	Name      *string
	NotBefore *int64
	Subject   *string
}

type ExportPatches

type ExportPatches struct {
	Name                 *string
	Subject              *jwt.Subject
	Type                 *jwt.ExportType
	TokenReq             *bool
	Revocations          RevocationListPatches
	ResponseType         *jwt.ResponseType
	ResponseThreshold    *time.Duration
	Latency              *ServiceLatencyPatches
	AccountTokenPosition *uint
}

type ExportsPatches

type ExportsPatches struct {
	// Clear always happens first
	Clear bool
	// Edit happens second
	Edit map[string]ExportPatches
	// Remove happens third
	Remove jwt.StringList
	// Add happens fourth
	Add jwt.Exports
}

type GenericFieldsPatches

type GenericFieldsPatches struct {
	Tags    TagListPatches
	Type    *jwt.ClaimType
	Version *int
}

type ImportPatches

type ImportPatches struct {
	Name    *string
	Subject *jwt.Subject
	Account *string
	Token   *string
	To      *jwt.Subject
	Type    *jwt.ExportType
}

type ImportsPatches

type ImportsPatches struct {
	// Clear always happens first
	Clear bool
	// Edit happens second
	Edit map[string]ImportPatches
	// Remove happens third
	Remove jwt.StringList
	// Add happens fourth
	Add jwt.Imports
}

type JetStreamLimitsPatches

type JetStreamLimitsPatches struct {
	MemoryStorage *int64
	DiskStorage   *int64
	Streams       *int64
	Consumer      *int64
}

type LimitsPatches

type LimitsPatches struct {
	UserLimitsPatches
	NATSLimitsPatches
}

type NATSLimitsPatches

type NATSLimitsPatches struct {
	Subs    *int64
	Data    *int64
	Payload *int64
}

type OperatorClaimsPatches

type OperatorClaimsPatches struct {
	ClaimsDataPatches
	OperatorPatches
}

type OperatorPatches

type OperatorPatches struct {
	SigningKeys         StringListPatches
	AccountServerURL    *string
	OperatorServiceURLs StringListPatches
	SystemAccount       *string
	AssertServerVersion *string
	GenericFieldsPatches
}

type PermissionPatches

type PermissionPatches struct {
	Allow StringListPatches
	Deny  StringListPatches
}

PermissionPatches contains patches for a jwt.Permission.

type PermissionsPatches

type PermissionsPatches struct {
	Pub  *PermissionPatches
	Sub  *PermissionPatches
	Resp *ResponsePermissionPatches
}

type ResponsePermissionPatches

type ResponsePermissionPatches struct {
	MaxMsgs *int
	Expires *time.Duration
}

type RevocationListPatches

type RevocationListPatches struct {
	// Clear always happens first
	Clear bool
	// Remove happens second
	Remove jwt.StringList
	// Add happens third
	Add map[string]time.Time
}

type ServiceLatencyPatches

type ServiceLatencyPatches struct {
	Sampling *int
	Results  *jwt.Subject
}

type StringListPatches

type StringListPatches struct {
	// Clear always happens first
	Clear bool
	// Remove happens second
	Remove jwt.StringList
	// Add happens third
	Add jwt.StringList
}

StringListPatches contains patches for a jwt.StringList.

type TagListPatches

type TagListPatches struct {
	// Clear always happens first
	Clear bool
	// Remove happens second
	Remove jwt.TagList
	// Add happens third
	Add jwt.TagList
}

type TimeRangePatches

type TimeRangePatches struct {
	// Clear always happens first
	Clear bool
	// Remove happens second
	Remove []jwt.TimeRange
	// Add happens third
	Add []jwt.TimeRange
}

type UserClaimsPatches

type UserClaimsPatches struct {
	ClaimsDataPatches
	UserPatches
}

type UserLimitsPatches

type UserLimitsPatches struct {
	// contains filtered or unexported fields
}

type UserPatches

type UserPatches struct {
	PermissionsPatches
	LimitsPatches
	BearerToken            *bool
	AllowedConnectionTypes StringListPatches
	IssuerAccount          *string
	GenericFieldsPatches
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL