logs_state.js 1.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// Copyright 2015 Google Inc. 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.

/** Name of the state. Can be used in, e.g., $state.go method. */
16
export const stateName = 'log';
17 18 19 20 21 22 23 24 25 26

/**
 * Parameters for this state.
 *
 * All properties are @exported and in sync with URL param names.
 * @final
 */
export class StateParams {
  /**
   * @param {string} namespace
27
   * @param {string} replicationController
28
   * @param {string} podId
29
   * @param {string=} opt_container
30
   */
31
  constructor(namespace, replicationController, podId, opt_container) {
32
    /** @export {string} Namespace of this Replication Controller. */
33 34
    this.namespace = namespace;

35 36
    /** @export {string} Name of this Replication Controller. */
    this.replicationController = replicationController;
37 38 39 40

    /** @export {string} Id of this Pod. */
    this.podId = podId;

B
bryk 已提交
41
    /** @export {string|undefined} Name of this pod container. */
42
    this.container = opt_container;
43 44
  }
}