
Provides fast transformations of int64 scaled values with overflow to inf.Dec as needed. Attempts to reduce allocations and expensive operations in the critical path. Alters the public signature of Quantity to encourage more efficient use
47 lines
1.3 KiB
Go
47 lines
1.3 KiB
Go
/*
|
|
Copyright 2016 The Kubernetes Authors All rights reserved.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
// Code generated by protoc-gen-gogo.
|
|
// source: k8s.io/kubernetes/pkg/api/resource/generated.proto
|
|
// DO NOT EDIT!
|
|
|
|
/*
|
|
Package resource is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
k8s.io/kubernetes/pkg/api/resource/generated.proto
|
|
|
|
It has these top-level messages:
|
|
Quantity
|
|
*/
|
|
package resource
|
|
|
|
import proto "github.com/gogo/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
func (m *Quantity) Reset() { *m = Quantity{} }
|
|
func (*Quantity) ProtoMessage() {}
|
|
|
|
func init() {
|
|
proto.RegisterType((*Quantity)(nil), "k8s.io.kubernetes.pkg.api.resource.Quantity")
|
|
}
|