//go:generate go run tailscale.com/cmd/cloner -clonefunc=false -type=StructWithPtrs,StructWithoutPtrs,Map,StructWithSlices,OnlyGetClone,StructWithEmbedded,GenericIntStruct,GenericNoPtrsStruct,GenericCloneableStruct,StructWithContainers,StructWithTypeAliasFields,GenericTypeAliasStruct
// View returns a readonly view of StructWithPtrs.
// View returns a read-only view of StructWithPtrs.
func(p*StructWithPtrs)View()StructWithPtrsView{
returnStructWithPtrsView{ж:p}
}
@ -32,7 +32,7 @@ type StructWithPtrsView struct {
ж*StructWithPtrs
}
// Valid reports whether underlying value is non-nil.
// Valid reports whether v's underlying value is non-nil.
//go:generate go run tailscale.com/cmd/cloner -clonefunc=true -type=User,Node,Hostinfo,NetInfo,Login,DNSConfig,RegisterResponse,RegisterResponseAuth,RegisterRequest,DERPHomeParams,DERPRegion,DERPMap,DERPNode,SSHRule,SSHAction,SSHPrincipal,ControlDialPlan,Location,UserProfile
// View returns a readonly view of User.
// View returns a read-only view of User.
func(p*User)View()UserView{
returnUserView{ж:p}
}
@ -37,7 +37,7 @@ type UserView struct {
ж*User
}
// Valid reports whether underlying value is non-nil.
// Valid reports whether v's underlying value is non-nil.
func(vUserView)Valid()bool{returnv.ж!=nil}
// AsStruct returns a clone of the underlying value which aliases no memory with
@ -79,7 +79,7 @@ var _UserViewNeedsRegeneration = User(struct {
Createdtime.Time
}{})
// View returns a readonly view of Node.
// View returns a read-only view of Node.
func(p*Node)View()NodeView{
returnNodeView{ж:p}
}
@ -95,7 +95,7 @@ type NodeView struct {
ж*Node
}
// Valid reports whether underlying value is non-nil.
// Valid reports whether v's underlying value is non-nil.
func(vNodeView)Valid()bool{returnv.ж!=nil}
// AsStruct returns a clone of the underlying value which aliases no memory with
@ -216,7 +216,7 @@ var _NodeViewNeedsRegeneration = Node(struct {
ExitNodeDNSResolvers[]*dnstype.Resolver
}{})
// View returns a readonly view of Hostinfo.
// View returns a read-only view of Hostinfo.
func(p*Hostinfo)View()HostinfoView{
returnHostinfoView{ж:p}
}
@ -232,7 +232,7 @@ type HostinfoView struct {
ж*Hostinfo
}
// Valid reports whether underlying value is non-nil.
// Valid reports whether v's underlying value is non-nil.
func(vHostinfoView)Valid()bool{returnv.ж!=nil}
// AsStruct returns a clone of the underlying value which aliases no memory with
@ -341,7 +341,7 @@ var _HostinfoViewNeedsRegeneration = Hostinfo(struct {
Location*Location
}{})
// View returns a readonly view of NetInfo.
// View returns a read-only view of NetInfo.
func(p*NetInfo)View()NetInfoView{
returnNetInfoView{ж:p}
}
@ -357,7 +357,7 @@ type NetInfoView struct {
ж*NetInfo
}
// Valid reports whether underlying value is non-nil.
// Valid reports whether v's underlying value is non-nil.
func(vNetInfoView)Valid()bool{returnv.ж!=nil}
// AsStruct returns a clone of the underlying value which aliases no memory with
@ -421,7 +421,7 @@ var _NetInfoViewNeedsRegeneration = NetInfo(struct {
FirewallModestring
}{})
// View returns a readonly view of Login.
// View returns a read-only view of Login.
func(p*Login)View()LoginView{
returnLoginView{ж:p}
}
@ -437,7 +437,7 @@ type LoginView struct {
ж*Login
}
// Valid reports whether underlying value is non-nil.
// Valid reports whether v's underlying value is non-nil.
func(vLoginView)Valid()bool{returnv.ж!=nil}
// AsStruct returns a clone of the underlying value which aliases no memory with
@ -482,7 +482,7 @@ var _LoginViewNeedsRegeneration = Login(struct {
ProfilePicURLstring
}{})
// View returns a readonly view of DNSConfig.
// View returns a read-only view of DNSConfig.
func(p*DNSConfig)View()DNSConfigView{
returnDNSConfigView{ж:p}
}
@ -498,7 +498,7 @@ type DNSConfigView struct {
ж*DNSConfig
}
// Valid reports whether underlying value is non-nil.
// Valid reports whether v's underlying value is non-nil.
func(vDNSConfigView)Valid()bool{returnv.ж!=nil}
// AsStruct returns a clone of the underlying value which aliases no memory with
@ -563,7 +563,7 @@ var _DNSConfigViewNeedsRegeneration = DNSConfig(struct {
TempCorpIssue13969string
}{})
// View returns a readonly view of RegisterResponse.
// View returns a read-only view of RegisterResponse.