UNPKG

@soft-stech/fleet

Version:
56 lines (55 loc) 2.3 kB
import { IObjectMeta } from "@soft-stech/apimachinery/apis/meta/v1/ObjectMeta"; import { Model, ModelData } from "@soft-stech/base"; /** * ClusterRegistrationToken is used by agents to register a new cluster. */ export interface IClusterRegistrationToken { /** * APIVersion defines the versioned schema of this representation of an object. * Servers should convert recognized schemas to the latest internal value, and * may reject unrecognized values. * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources */ "apiVersion": "fleet.cattle.io/v1alpha1"; /** * Kind is a string value representing the REST resource this object represents. * Servers may infer this from the endpoint the client submits requests to. * Cannot be updated. * In CamelCase. * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds */ "kind": "ClusterRegistrationToken"; "metadata"?: IObjectMeta; "spec"?: { /** * TTL is the time to live for the token. It is used to calculate the * expiration time. If the token expires, it will be deleted. */ "ttl"?: string; }; "status"?: { /** * Expires is the time when the token expires. * @format date-time */ "expires"?: string | null; /** * SecretName is the name of the secret containing the token. */ "secretName"?: string; }; } /** * ClusterRegistrationToken is used by agents to register a new cluster. */ export declare class ClusterRegistrationToken extends Model<IClusterRegistrationToken> implements IClusterRegistrationToken { "apiVersion": IClusterRegistrationToken["apiVersion"]; "kind": IClusterRegistrationToken["kind"]; "metadata"?: IClusterRegistrationToken["metadata"]; "spec"?: IClusterRegistrationToken["spec"]; "status"?: IClusterRegistrationToken["status"]; static apiVersion: IClusterRegistrationToken["apiVersion"]; static kind: IClusterRegistrationToken["kind"]; static is: import("@soft-stech/base").TypeMetaGuard<IClusterRegistrationToken>; constructor(data?: ModelData<IClusterRegistrationToken>); }